SpaceVIL
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
SpaceVIL.Decorations.Style Class Reference

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, ItemStateGetAllStates ()
 
Returns
Dictionary of the ItemStateTypes and its ItemStates

 
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 ()
 
Returns
default style for ButtonCore objects

 
static Style GetButtonToggleStyle ()
 
Returns
default style for ButtonToggle objects

 
static Style GetCheckBoxStyle ()
 
Returns
default style for CheckBox objects

 
static Style GetIndicatorStyle ()
 
Returns
default style for Indicator objects

 
static Style GetTextLineStyle ()
 
Returns
default style for TextLine objects

 
static Style GetComboBoxStyle ()
 
Returns
default style for ComboBox objects

 
static Style GetComboBoxDropDownStyle ()
 
Returns
default style for ComboBoxDropDown objects

 
static Style GetMenuItemStyle ()
 
Returns
default style for MenuItem objects

 
static Style GetContextMenuStyle ()
 
Returns
default style for ContextMenu objects

 
static Style GetFreeAreaStyle ()
 
Returns
default style for FreeArea objects

 
static Style GetFrameStyle ()
 
Returns
default style for Frame objects

 
static Style GetGridStyle ()
 
Returns
default style for Grid objects

 
static Style GetHorizontalScrollBarStyle ()
 
Returns
default style for HorizontalScrollBar objects

 
static Style GetSimpleHorizontalScrollBarStyle ()
 
Returns
default simple style for HorizontalScrollBar objects

 
static Style GetVerticalScrollBarStyle ()
 
Returns
default style for VerticalScrollBar objects

 
static Style GetSimpleVerticalScrollBarStyle ()
 
Returns
default simple style for VerticalScrollBar objects

 
static Style GetHorizontalSliderStyle ()
 
Returns
default style for HorizontalSlider objects

 
static Style GetVerticalSliderStyle ()
 
Returns
default style for VerticalSlider objects

 
static Style GetHorizontalStackStyle ()
 
Returns
default style for HorizontalStack objects

 
static Style GetVerticalStackStyle ()
 
Returns
default style for VerticalStack objects

 
static Style GetHorizontalSplitAreaStyle ()
 
Returns
default style for HorizontalSplitArea objects

 
static Style GetVerticalSplitAreaStyle ()
 
Returns
default style for VerticalSplitArea objects

 
static Style GetLabelStyle ()
 
Returns
default style for Label objects

 
static Style GetListAreaStyle ()
 
Returns
default style for ListArea objects

 
static Style GetListBoxStyle ()
 
Returns
default style for ListBox objects

 
static Style GetWContainerStyle ()
 note: not supported in current version More...
 
static Style GetRadioButtonStyle ()
 
Returns
default style for RadioButton objects

 
static Style GetPasswordLineStyle ()
 
Returns
default style for PasswordLine objects

 
static Style GetTextEditStyle ()
 
Returns
default style for TextEdit objects

 
static Style GetTextBlockStyle ()
 
Returns
default style for TextBlock objects

 
static Style GetTextAreaStyle ()
 
Returns
default style for TextArea objects

 
static Style GetPopUpMessageStyle ()
 
Returns
default style for PopUpMessage objects

 
static Style GetProgressBarStyle ()
 
Returns
default style for ProgressBar objects

 
static Style GetToolTipStyle ()
 
Returns
default style for ToolTip objects

 
static Style GetTitleBarStyle ()
 
Returns
default style for TitleBar objects

 
static Style GetTabViewStyle ()
 
Returns
default style for TabView objects

 
static Style GetTreeViewStyle ()
 
Returns
default style for TreeView objects

 
static Style GetTreeItemStyle ()
 
Returns
default style for TreeItem objects

 
static Style GetSpinItemStyle ()
 
Returns
default style for SpinItem objects

 
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< IBaseItemInnerShapes
 
bool IsFixedShape
 
bool IsVisible
 

Detailed Description

A class that describes style Settings of the object

Constructor & Destructor Documentation

◆ Style()

SpaceVIL.Decorations.Style.Style ( )

Constructs a default Style

Member Function Documentation

◆ AddInnerShape()

void SpaceVIL.Decorations.Style.AddInnerShape ( IBaseItem  shape)

Add inner primitives to the object (as decorations only) note: not supported in the current version

◆ AddInnerStyle()

void SpaceVIL.Decorations.Style.AddInnerStyle ( String  item_name,
Style  style 
)

Set style for the child of the object

◆ AddItemState()

void SpaceVIL.Decorations.Style.AddItemState ( ItemStateType  type,
ItemState  state 
)

Object changes its state according to the ItemState when ItemStateType happens

◆ GetInnerStyle()

Style SpaceVIL.Decorations.Style.GetInnerStyle ( String  item_name)

Returns style of the object's child by name

◆ GetState()

ItemState SpaceVIL.Decorations.Style.GetState ( ItemStateType  type)

Returns ItemState of the object by ItemStateType name

◆ GetWContainerStyle()

static Style SpaceVIL.Decorations.Style.GetWContainerStyle ( )
static

note: not supported in current version

Returns
default style for WContainer objects

◆ RemoveInnerStyle()

void SpaceVIL.Decorations.Style.RemoveInnerStyle ( String  item_name)

Remove the object's child style by name of the child

◆ RemoveItemState()

void SpaceVIL.Decorations.Style.RemoveItemState ( ItemStateType  type)

Remove ItemState by the ItemStateType

◆ SetAlignment()

void SpaceVIL.Decorations.Style.SetAlignment ( ItemAlignment  alignment)

Set object alignment

◆ SetBackground()

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>

◆ SetBorder() [1/2]

void SpaceVIL.Decorations.Style.SetBorder ( Border  border)

Set border of the object

◆ SetBorder() [2/2]

void SpaceVIL.Decorations.Style.SetBorder ( Color  fill,
CornerRadius  radius,
int  thickness 
)

Set border of the object

Parameters
fillborder color
radiusradius of the border corners
thicknessborder thickness

◆ SetForeground()

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>

◆ SetMargin() [1/2]

void SpaceVIL.Decorations.Style.SetMargin ( Indents  margin)

Margin of the object

◆ SetMargin() [2/2]

void SpaceVIL.Decorations.Style.SetMargin ( int  left = 0,
int  top = 0,
int  right = 0,
int  bottom = 0 
)

Margin of the object

◆ SetMaxSize()

void SpaceVIL.Decorations.Style.SetMaxSize ( int  width,
int  height 
)

Sets object maximum size (width and height)

◆ SetMinSize()

void SpaceVIL.Decorations.Style.SetMinSize ( int  width,
int  height 
)

Sets object minimum size (width and height)

◆ SetPadding() [1/2]

void SpaceVIL.Decorations.Style.SetPadding ( Indents  padding)

Padding of the object

◆ SetPadding() [2/2]

void SpaceVIL.Decorations.Style.SetPadding ( int  left = 0,
int  top = 0,
int  right = 0,
int  bottom = 0 
)

Padding of the object

◆ SetSize()

void SpaceVIL.Decorations.Style.SetSize ( int  width,
int  height 
)

Sets object size (width and height)

◆ SetSizePolicy()

void SpaceVIL.Decorations.Style.SetSizePolicy ( SizePolicy  width_policy,
SizePolicy  height_policy 
)

Sets object size policy (fixed or expand) for width and height

◆ SetSpacing() [1/2]

void SpaceVIL.Decorations.Style.SetSpacing ( Spacing  spacing)

Spacing of the object

◆ SetSpacing() [2/2]

void SpaceVIL.Decorations.Style.SetSpacing ( int  horizontal = 0,
int  vertical = 0 
)

Spacing of the object

◆ SetStyle()

void SpaceVIL.Decorations.Style.SetStyle ( params IBaseItem []  items)

Sets object size (width and height)


The documentation for this class was generated from the following file: