SpaceVIL
|
A class that describes style Settings of the object More...
Public Member Functions | |
Style () | |
Constructs a default Style More... | |
void | SetStyle (params IBaseItem[] items) |
Sets object size (width and height) More... | |
void | SetSize (int width, int height) |
Sets object size (width and height) More... | |
void | SetMinSize (int width, int height) |
Sets object minimum size (width and height) More... | |
void | SetMaxSize (int width, int height) |
Sets object maximum size (width and height) More... | |
void | SetSizePolicy (SizePolicy width_policy, SizePolicy height_policy) |
Sets object size policy (fixed or expand) for width and height More... | |
void | SetBackground (int r, int g, int b) |
Sets background color of the object More... | |
void | SetBackground (int r, int g, int b, int a) |
void | SetBackground (float r, float g, float b) |
void | SetBackground (float r, float g, float b, float a) |
void | SetForeground (int r, int g, int b) |
Sets text color of the object More... | |
void | SetForeground (int r, int g, int b, int a) |
void | SetForeground (float r, float g, float b) |
void | SetForeground (float r, float g, float b, float a) |
void | SetPadding (Indents padding) |
Padding of the object More... | |
void | SetPadding (int left=0, int top=0, int right=0, int bottom=0) |
Padding of the object More... | |
void | SetMargin (Indents margin) |
Margin of the object More... | |
void | SetMargin (int left=0, int top=0, int right=0, int bottom=0) |
Margin of the object More... | |
void | SetSpacing (Spacing spacing) |
Spacing of the object More... | |
void | SetSpacing (int horizontal=0, int vertical=0) |
Spacing of the object More... | |
void | SetBorder (Border border) |
Set border of the object More... | |
void | SetBorder (Color fill, CornerRadius radius, int thickness) |
Set border of the object More... | |
void | SetAlignment (ItemAlignment alignment) |
Set object alignment More... | |
void | SetAlignment (params ItemAlignment[] alignment) |
void | SetTextAlignment (ItemAlignment alignment) |
void | SetTextAlignment (params ItemAlignment[] alignment) |
void | AddInnerShape (IBaseItem shape) |
Add inner primitives to the object (as decorations only) note: not supported in the current version More... | |
void | AddInnerStyle (String item_name, Style style) |
Set style for the child of the object More... | |
Style | GetInnerStyle (String item_name) |
Returns style of the object's child by name More... | |
void | AddItemState (ItemStateType type, ItemState state) |
Object changes its state according to the ItemState when ItemStateType happens More... | |
ItemState | GetState (ItemStateType type) |
Returns ItemState of the object by ItemStateType name More... | |
Dictionary< ItemStateType, ItemState > | GetAllStates () |
| |
void | RemoveItemState (ItemStateType type) |
Remove ItemState by the ItemStateType More... | |
void | RemoveInnerStyle (String item_name) |
Remove the object's child style by name of the child More... | |
Style | Clone () |
Static Public Member Functions | |
static Style | GetDefaultCommonStyle () |
static Style | GetButtonCoreStyle () |
| |
static Style | GetButtonToggleStyle () |
| |
static Style | GetCheckBoxStyle () |
| |
static Style | GetIndicatorStyle () |
| |
static Style | GetTextLineStyle () |
| |
static Style | GetComboBoxStyle () |
| |
static Style | GetComboBoxDropDownStyle () |
| |
static Style | GetMenuItemStyle () |
| |
static Style | GetContextMenuStyle () |
| |
static Style | GetFreeAreaStyle () |
| |
static Style | GetFrameStyle () |
| |
static Style | GetGridStyle () |
| |
static Style | GetHorizontalScrollBarStyle () |
| |
static Style | GetSimpleHorizontalScrollBarStyle () |
| |
static Style | GetVerticalScrollBarStyle () |
| |
static Style | GetSimpleVerticalScrollBarStyle () |
| |
static Style | GetHorizontalSliderStyle () |
| |
static Style | GetVerticalSliderStyle () |
| |
static Style | GetHorizontalStackStyle () |
| |
static Style | GetVerticalStackStyle () |
| |
static Style | GetHorizontalSplitAreaStyle () |
| |
static Style | GetVerticalSplitAreaStyle () |
| |
static Style | GetLabelStyle () |
| |
static Style | GetListAreaStyle () |
| |
static Style | GetListBoxStyle () |
| |
static Style | GetWContainerStyle () |
note: not supported in current version More... | |
static Style | GetRadioButtonStyle () |
| |
static Style | GetPasswordLineStyle () |
| |
static Style | GetTextEditStyle () |
| |
static Style | GetTextBlockStyle () |
| |
static Style | GetTextAreaStyle () |
| |
static Style | GetPopUpMessageStyle () |
| |
static Style | GetProgressBarStyle () |
| |
static Style | GetToolTipStyle () |
| |
static Style | GetTitleBarStyle () |
| |
static Style | GetTabViewStyle () |
| |
static Style | GetTreeViewStyle () |
| |
static Style | GetTreeItemStyle () |
| |
static Style | GetSpinItemStyle () |
| |
static Style | GetDialogItemStyle () |
static Style | GetMessageItemStyle () |
static Style | GetWindowContainerStyle () |
static Style | GetFileSystemEntryStyle () |
static Style | GetOpenEntryDialogStyle () |
static Style | GetInputDialogStyle () |
static Style | GetSelectionItemStyle () |
static Style | GetWrapAreaStyle () |
static Style | GetWrapGridStyle () |
static Style | GetSideAreaStyle () |
static Style | GetImageItemStyle () |
static Style | GetLoadingScreenStyle () |
Public Attributes | |
Color | Background |
Color | Foreground |
Font | Font = null |
SizePolicy | WidthPolicy |
SizePolicy | HeightPolicy |
int | Width |
int | MinWidth |
int | MaxWidth |
int | Height |
int | MinHeight |
int | MaxHeight |
ItemAlignment | Alignment |
ItemAlignment | TextAlignment |
int | X |
int | Y |
Indents | Padding |
Spacing | Spacing |
Indents | Margin |
CornerRadius | BorderRadius |
int | BorderThickness |
Color | BorderFill |
List< float[]> | Shape |
List< IBaseItem > | InnerShapes |
bool | IsFixedShape |
bool | IsVisible |
A class that describes style Settings of the object
SpaceVIL.Decorations.Style.Style | ( | ) |
Constructs a default Style
void SpaceVIL.Decorations.Style.AddInnerShape | ( | IBaseItem | shape | ) |
Add inner primitives to the object (as decorations only) note: not supported in the current version
void SpaceVIL.Decorations.Style.AddInnerStyle | ( | String | item_name, |
Style | style | ||
) |
Set style for the child of the object
void SpaceVIL.Decorations.Style.AddItemState | ( | ItemStateType | type, |
ItemState | state | ||
) |
Object changes its state according to the ItemState when ItemStateType happens
Style SpaceVIL.Decorations.Style.GetInnerStyle | ( | String | item_name | ) |
Returns style of the object's child by name
ItemState SpaceVIL.Decorations.Style.GetState | ( | ItemStateType | type | ) |
Returns ItemState of the object by ItemStateType name
|
static |
note: not supported in current version
void SpaceVIL.Decorations.Style.RemoveInnerStyle | ( | String | item_name | ) |
Remove the object's child style by name of the child
void SpaceVIL.Decorations.Style.RemoveItemState | ( | ItemStateType | type | ) |
Remove ItemState by the ItemStateType
void SpaceVIL.Decorations.Style.SetAlignment | ( | ItemAlignment | alignment | ) |
Set object alignment
void SpaceVIL.Decorations.Style.SetBackground | ( | int | r, |
int | g, | ||
int | b | ||
) |
Sets background color of the object
<overloads> Sets background color of the object </overloads>
void SpaceVIL.Decorations.Style.SetBorder | ( | Border | border | ) |
Set border of the object
void SpaceVIL.Decorations.Style.SetBorder | ( | Color | fill, |
CornerRadius | radius, | ||
int | thickness | ||
) |
Set border of the object
fill | border color |
radius | radius of the border corners |
thickness | border thickness |
void SpaceVIL.Decorations.Style.SetForeground | ( | int | r, |
int | g, | ||
int | b | ||
) |
Sets text color of the object
<overloads> Sets text color of the object </overloads>
void SpaceVIL.Decorations.Style.SetMargin | ( | Indents | margin | ) |
Margin of the object
void SpaceVIL.Decorations.Style.SetMargin | ( | int | left = 0 , |
int | top = 0 , |
||
int | right = 0 , |
||
int | bottom = 0 |
||
) |
Margin of the object
void SpaceVIL.Decorations.Style.SetMaxSize | ( | int | width, |
int | height | ||
) |
Sets object maximum size (width and height)
void SpaceVIL.Decorations.Style.SetMinSize | ( | int | width, |
int | height | ||
) |
Sets object minimum size (width and height)
void SpaceVIL.Decorations.Style.SetPadding | ( | Indents | padding | ) |
Padding of the object
void SpaceVIL.Decorations.Style.SetPadding | ( | int | left = 0 , |
int | top = 0 , |
||
int | right = 0 , |
||
int | bottom = 0 |
||
) |
Padding of the object
void SpaceVIL.Decorations.Style.SetSize | ( | int | width, |
int | height | ||
) |
Sets object size (width and height)
void SpaceVIL.Decorations.Style.SetSizePolicy | ( | SizePolicy | width_policy, |
SizePolicy | height_policy | ||
) |
Sets object size policy (fixed or expand) for width and height
void SpaceVIL.Decorations.Style.SetSpacing | ( | int | horizontal = 0 , |
int | vertical = 0 |
||
) |
Spacing of the object
void SpaceVIL.Decorations.Style.SetStyle | ( | params IBaseItem [] | items | ) |
Sets object size (width and height)