Struct InlineStyle

struct InlineStyle

Properties

TypeNameDescription
alignment[set] Alignment (combined vertical and horizontal)
backgroundClip[set]
string
backgroundColor[set] Set background color from string like "#5599CC" or "white"
backgroundColor[set] Background color of the widget
backgroundImage[set] Background image drawable
backgroundOrigin[set]
backgroundRepeat[set]
borderBottomColor[set] Color of the bottom widget border
borderBottomLeftRadius[set]
borderBottomRightRadius[set]
borderBottomStyle[set] Line style of the bottom widget border
borderBottomWidth[set]
borderColor[set] Set a color for all four border sides
borderLeftColor[set] Color of the left widget border
borderLeftStyle[set] Line style of the left widget border
borderLeftWidth[set]
InsetsOf!(float)
borderRadius[set] Set a border radius for all corners simultaneously
borderRightColor[set] Color of the right widget border
borderRightStyle[set] Line style of the right widget border
borderRightWidth[set]
borderStyle[set] Set a line style for all four border sides
borderTopColor[set] Color of the top widget border
borderTopLeftRadius[set] Set a border radius for all corners simultaneously
borderTopRightRadius[set]
borderTopStyle[set] Line style of the top widget border
borderTopWidth[set]
InsetsOf!(float)
borderWidth[set]
bottom[set]
boxShadow[set]
columnGap[set] Space between columns in layouts (e.g. in row flex layout)
cursor[set] Specifies the type of mouse cursor when pointing over the widget
string
display[set] A kind of layout this widget may apply to its children list
flexBasis[set] The initial size by main axis of the flexible item
flexDirection[set] Specifies flexbox main axis and its start and end sides
float
flexGrow[set] Sets how much flex item will grow relative to other flexible items in the container
float
flexShrink[set] Sets how much flex item will shrink relative to other flexible items in the container
flexWrap[set] Controls whether flexbox breaks items across several lines
string
fontFace[set] Font face for widget
fontFamily[set] Font family for widget
bool
fontItalic[set] Font style (italic/normal) for widget
fontSize[set] Font size for widget
ushort
fontWeight[set] Font weight for widget
gap[set] Set one value for row and column gaps
gridAutoColumns[set] Default size for grid columns
gridAutoFlow[set] Specifies how auto-placed items get inserted in the grid
gridAutoRows[set] Default size for grid rows
gridColumnEnd[set]
gridColumnStart[set]
gridRowEnd[set]
gridRowStart[set]
height[set] Widget natural (preferred) height (SIZE_UNSPECIFIED or Length.none to unset)
left[set]
letterSpacing[set]
lineHeight[set]
marginBottom[set] Bottom margin value (SIZE_UNSPECIFIED or Length.none for auto)
marginLeft[set] Left margin value (SIZE_UNSPECIFIED or Length.none for auto)
marginRight[set] Right margin value (SIZE_UNSPECIFIED or Length.none for auto)
InsetsOf!(float)
margins[set] Margins around widget (SIZE_UNSPECIFIED or Length.none for auto)
marginTop[set] Top margin value (SIZE_UNSPECIFIED or Length.none for auto)
maxHeight[set] Widget max height constraint (SIZE_UNSPECIFIED or Length.none to unset)
maxWidth[set] Widget max width constraint (SIZE_UNSPECIFIED or Length.none to unset)
minHeight[set] Widget min height constraint (SIZE_UNSPECIFIED or Length.none to unset)
minWidth[set] Widget min width constraint (SIZE_UNSPECIFIED or Length.none to unset)
mixBlendMode[set] Specifies how widget blends with a backdrop
float
opacity[set] Opacity of the whole widget, always clamped to [0..1] range, where 0.0 - invisible, 1.0 - normal
int
order[set] Controls item reordering in some layouts
InsetsOf!(float)
padding[set] Padding (between background bounds and content of widget)
paddingBottom[set] Bottom padding value
paddingLeft[set] Left padding value
paddingRight[set] Right padding value
paddingTop[set] Top padding value
placeContent[set] Content distribution by main and cross axes
placeItems[set] Default alignment by main and cross axes for all layout items
placeSelf[set] Item alignment by main and cross axes
right[set]
rowGap[set] Space between rows in layouts (e.g. in column flex layout)
stretch[set] Controls whether widget occupies all available width/height in a linear layout.
tabSize[set] Tab stop size, in number of spaces from 1 to 16
textAlign[set] Text alignment - start, center, end, or justify
textColor[set] Text color
string
textColor[set] Set text color from string like "#5599CC" or "white"
textDecor[set] Text decoration - underline, overline, and so on
textDecorColor[set] The color of text decorations, set with textDecorLine
textDecorLine[set] Place where text decoration line(s) appears. Required to be not none to draw something
textDecorStyle[set] Style of the line drawn for text decoration - solid, dashed, and the like
textHotkey[set] Controls how text with & hotkey marks should be displayed
textIndent[set]
textOverflow[set] Specifies how text that doesn't fit and is not displayed should behave
textTransform[set] Controls capitalization of text
top[set]
width[set] Widget natural (preferred) width (SIZE_UNSPECIFIED or Length.none to unset)
wordSpacing[set]
bool
wordWrap[set] Controls whether text wrapping is enabled
int
zIndex[set] Widget stack order (int.min to unspecified)

Methods

NameDescription
inherit (property) Set the property to inherit its value from parent element
initialize (property) Set the property to its initial value