Interface: UIStyle
Defined in: src/ui/UIElement.ts:34
Extends
Properties
:active?
optional:active:UIStateStyle
Defined in: src/ui/UIElement.ts:91
:checked?
optional:checked:UIStateStyle
Defined in: src/ui/UIElement.ts:95
Applies while a UIToggle is checked or a dropdown option is selected.
:disabled?
optional:disabled:UIStateStyle
Defined in: src/ui/UIElement.ts:92
:focus?
optional:focus:UIStateStyle
Defined in: src/ui/UIElement.ts:93
:hover?
optional:hover:UIStateStyle
Defined in: src/ui/UIElement.ts:90
alignItems?
optionalalignItems:"center"|"flex-start"|"flex-end"|"stretch"
Defined in: src/ui/UIElement.ts:43
alignSelf?
optionalalignSelf:"auto"|"center"|"flex-start"|"flex-end"|"stretch"
Defined in: src/ui/UIElement.ts:44
backgroundColor?
optionalbackgroundColor:Paint
Defined in: src/ui/UIElement.ts:22
Inherited from
borderAlign?
optionalborderAlign:StrokeAlign
Defined in: src/ui/UIElement.ts:84
borderBottomLeftRadius?
optionalborderBottomLeftRadius:number
Defined in: src/ui/UIElement.ts:31
Inherited from
UIStateStyle.borderBottomLeftRadius
borderBottomRightRadius?
optionalborderBottomRightRadius:number
Defined in: src/ui/UIElement.ts:30
Inherited from
UIStateStyle.borderBottomRightRadius
borderColor?
optionalborderColor:Paint
Defined in: src/ui/UIElement.ts:25
Inherited from
borderRadius?
optionalborderRadius:number
Defined in: src/ui/UIElement.ts:27
Inherited from
borderTopLeftRadius?
optionalborderTopLeftRadius:number
Defined in: src/ui/UIElement.ts:28
Inherited from
UIStateStyle.borderTopLeftRadius
borderTopRightRadius?
optionalborderTopRightRadius:number
Defined in: src/ui/UIElement.ts:29
Inherited from
UIStateStyle.borderTopRightRadius
borderWidth?
optionalborderWidth:number
Defined in: src/ui/UIElement.ts:26
Inherited from
bottom?
optionalbottom:UIPosition
Defined in: src/ui/UIElement.ts:51
color?
optionalcolor:ColorRepresentation
Defined in: src/ui/UIElement.ts:23
Inherited from
columnGap?
optionalcolumnGap:number
Defined in: src/ui/UIElement.ts:57
display?
optionaldisplay:"none"|"flex"
Defined in: src/ui/UIElement.ts:85
dropShadowBlur?
optionaldropShadowBlur:number
Defined in: src/ui/UIElement.ts:80
dropShadowColor?
optionaldropShadowColor:Paint
Defined in: src/ui/UIElement.ts:79
dropShadowFalloff?
optionaldropShadowFalloff:number
Defined in: src/ui/UIElement.ts:83
dropShadowPosition?
optionaldropShadowPosition:UIVector2
Defined in: src/ui/UIElement.ts:81
dropShadowSpread?
optionaldropShadowSpread:number
Defined in: src/ui/UIElement.ts:82
flexBasis?
optionalflexBasis:number|"auto"
Defined in: src/ui/UIElement.ts:47
flexDirection?
optionalflexDirection:"row"|"column"
Defined in: src/ui/UIElement.ts:41
flexGrow?
optionalflexGrow:number
Defined in: src/ui/UIElement.ts:45
flexShrink?
optionalflexShrink:number
Defined in: src/ui/UIElement.ts:46
fontSize?
optionalfontSize:number
Defined in: src/ui/UIElement.ts:68
fontWeight?
optionalfontWeight:number|"bold"|"normal"|"medium"
Defined in: src/ui/UIElement.ts:69
gap?
optionalgap:number
Defined in: src/ui/UIElement.ts:55
height?
optionalheight:UIUnit
Defined in: src/ui/UIElement.ts:36
innerShadowBlur?
optionalinnerShadowBlur:number
Defined in: src/ui/UIElement.ts:75
innerShadowColor?
optionalinnerShadowColor:Paint
Defined in: src/ui/UIElement.ts:74
innerShadowFalloff?
optionalinnerShadowFalloff:number
Defined in: src/ui/UIElement.ts:78
innerShadowPosition?
optionalinnerShadowPosition:UIVector2
Defined in: src/ui/UIElement.ts:76
innerShadowSpread?
optionalinnerShadowSpread:number
Defined in: src/ui/UIElement.ts:77
justifyContent?
optionaljustifyContent:"center"|"flex-start"|"flex-end"|"space-between"
Defined in: src/ui/UIElement.ts:42
left?
optionalleft:UIPosition
Defined in: src/ui/UIElement.ts:52
lineHeight?
optionallineHeight:UILineHeight
Defined in: src/ui/UIElement.ts:71
Like CSS: numbers multiply fontSize; use px or % strings for explicit units.
margin?
optionalmargin:number
Defined in: src/ui/UIElement.ts:63
marginBottom?
optionalmarginBottom:number
Defined in: src/ui/UIElement.ts:66
marginLeft?
optionalmarginLeft:number
Defined in: src/ui/UIElement.ts:67
marginRight?
optionalmarginRight:number
Defined in: src/ui/UIElement.ts:65
marginTop?
optionalmarginTop:number
Defined in: src/ui/UIElement.ts:64
maxHeight?
optionalmaxHeight:number
Defined in: src/ui/UIElement.ts:40
maxWidth?
optionalmaxWidth:number
Defined in: src/ui/UIElement.ts:39
minHeight?
optionalminHeight:number
Defined in: src/ui/UIElement.ts:38
minWidth?
optionalminWidth:number
Defined in: src/ui/UIElement.ts:37
objectFit?
optionalobjectFit:"fill"|"contain"|"cover"
Defined in: src/ui/UIElement.ts:87
opacity?
optionalopacity:number
Defined in: src/ui/UIElement.ts:24
Inherited from
overflow?
optionaloverflow:"visible"|"hidden"
Defined in: src/ui/UIElement.ts:86
padding?
optionalpadding:number
Defined in: src/ui/UIElement.ts:58
paddingBottom?
optionalpaddingBottom:number
Defined in: src/ui/UIElement.ts:61
paddingLeft?
optionalpaddingLeft:number
Defined in: src/ui/UIElement.ts:62
paddingRight?
optionalpaddingRight:number
Defined in: src/ui/UIElement.ts:60
paddingTop?
optionalpaddingTop:number
Defined in: src/ui/UIElement.ts:59
position?
optionalposition:"relative"|"absolute"
Defined in: src/ui/UIElement.ts:48
right?
optionalright:UIPosition
Defined in: src/ui/UIElement.ts:50
rowGap?
optionalrowGap:number
Defined in: src/ui/UIElement.ts:56
textAlign?
optionaltextAlign:"left"|"right"|"center"
Defined in: src/ui/UIElement.ts:72
textOverflow?
optionaltextOverflow:"clip"|"ellipsis"
Defined in: src/ui/UIElement.ts:89
top?
optionaltop:UIPosition
Defined in: src/ui/UIElement.ts:49
transform?
optionaltransform:UITransform
Defined in: src/ui/UIElement.ts:53
verticalAlign?
optionalverticalAlign:"top"|"bottom"|"middle"
Defined in: src/ui/UIElement.ts:73
whiteSpace?
optionalwhiteSpace:"normal"|"nowrap"|"pre-line"
Defined in: src/ui/UIElement.ts:88
width?
optionalwidth:UIUnit
Defined in: src/ui/UIElement.ts:35
zIndex?
optionalzIndex:number
Defined in: src/ui/UIElement.ts:54