![]() |
Reference for .Net version of SpaceVIL
0.3.5.8
SpaceVIL (Space of Visual Items Layout) is a cross-platform and multilingual framework for creating GUI client applications for .NET Standard, .NET Core and JVM. SpaceVIL is based on OpenGL graphic technology and GLFW. Using this framework in conjunction with .Net Core or with a JVM, you can work and create graphical client applications on Linux, Mac OS X and Windows.
|
Style is a class that describes the appearance of an element. Can contains Styles for inner items. More...
Public Member Functions | |
Style () | |
Constructs a default Style. More... | |
void | SetStyle (params IBaseItem[] items) |
Setting this style for all items in sequence. More... | |
void | SetSize (int width, int height) |
Setting size of an item's shape. More... | |
void | SetMinSize (int width, int height) |
Setting minimum size of an item's shape (shape can not be smaller than specified width and height). More... | |
void | SetMaxSize (int width, int height) |
Setting maximim size of an item's shape (shape can not be bigger than specified width and height). More... | |
void | SetSizePolicy (SizePolicy widthPolicy, SizePolicy heightPolicy) |
Setting the size policy of an item's shape. Can be Fixed (shape not changes its size) or Expand (shape is stretched to all available space). More... | |
void | SetBackground (int r, int g, int b) |
Setting background color of an item's shape in byte RGB format. More... | |
void | SetBackground (int r, int g, int b, int a) |
Setting background color of an item's shape in byte RGBA format. More... | |
void | SetBackground (float r, float g, float b) |
Setting background color of an item's shape in float RGB format. More... | |
void | SetBackground (float r, float g, float b, float a) |
Setting background color of an item's shape in float RGBA format. More... | |
void | SetForeground (int r, int g, int b) |
Setting text color of an item in byte RGB format. More... | |
void | SetForeground (int r, int g, int b, int a) |
Setting text color of an item in byte RGBA format. More... | |
void | SetForeground (float r, float g, float b) |
Setting text color of an item in float RGB format. More... | |
void | SetForeground (float r, float g, float b, float a) |
Setting text color of an item in float RGBA format. More... | |
void | SetPadding (Indents padding) |
Setting indents of an item to offset its children. More... | |
void | SetPadding (int left=0, int top=0, int right=0, int bottom=0) |
Setting indents of an item to offset its children. More... | |
void | SetMargin (Indents margin) |
Setting indents of an item to offset itself relative to its container. More... | |
void | SetMargin (int left=0, int top=0, int right=0, int bottom=0) |
Setting indents of an item to offset itself relative to its container. More... | |
void | SetSpacing (Spacing spacing) |
Setting indents between children of a container type item. More... | |
void | SetSpacing (int horizontal=0, int vertical=0) |
Setting indents between children of a container type item. More... | |
void | SetBorder (Border border) |
Setting border of an item's shape. Border consist of corner radiuses, thickness and color. More... | |
void | SetBorder (Color fill, CornerRadius radius, int thickness) |
Setting border for an item's shape. Border consist of corner radiuses, thickness and color. More... | |
void | SetShadow (Shadow shadow) |
Setting shadow for an item's shape. More... | |
void | SetAlignment (ItemAlignment alignment) |
Setting an Alignment of an item's shape relative to its container. Combines with alignment by vertically (Top, VCenter, Bottom) and horizontally (Left, HCenter, Right). Attention: this property is required. More... | |
void | SetAlignment (params ItemAlignment[] alignment) |
Setting an Alignment of an item's shape relative to its container. Combines with alignment by vertically (Top, VCenter, Bottom) and horizontally (Left, HCenter, Right). Attention: this property is required. More... | |
void | SetTextAlignment (ItemAlignment alignment) |
Alignment of an item's text. Combines with alignment by vertically (Top, VCenter, Bottom) and horizontally (Left, HCenter, Right). Can be used only if the item contains text and in this case this property is required. More... | |
void | SetTextAlignment (params ItemAlignment[] alignment) |
Alignment of an item's text. Combines with alignment by vertically (Top, VCenter, Bottom) and horizontally (Left, HCenter, Right). Can be used only if the item contains text and in this case this property is required. More... | |
void | AddInnerShape (IBaseItem shape) |
Adding inner primitives to the item (as decorations only). Note: not supported in the current version! More... | |
void | AddInnerStyle (String keyName, Style style) |
Assigning a style for an item's child by key name. More... | |
Style | GetInnerStyle (String keyName) |
Getting a child’s style by key name. More... | |
void | RemoveInnerStyle (String keyName) |
Removing a child's style by its key name. More... | |
void | AddItemState (ItemStateType type, ItemState state) |
Adding visual state for an item. Type can be Base, Hovered, Pressed, Toggled, Focused, Disabled. More... | |
ItemState | GetState (ItemStateType type) |
Getting visual state of an item by type. Type can be Base, Hovered, Pressed, Toggled, Focused, Disabled. More... | |
Dictionary< ItemStateType, ItemState > | GetAllStates () |
Getting all presented in the current style visual states of an item. More... | |
void | RemoveItemState (ItemStateType type) |
Removing visual state of an item by type. Type can be Base, Hovered, Pressed, Toggled, Focused, Disabled. More... | |
Style | Clone () |
Cloning the current style and returning a new deep copy of Style. More... | |
Static Public Member Functions | |
static Style | GetDefaultCommonStyle () |
Getting a default common style. Properly filled in all the necessary properties. Use this method to create instance of Style class instead of using pure constructor (new Style()). More... | |
static Style | GetButtonCoreStyle () |
Getting default style for a ButtonCore item. Properly filled in all the necessary properties. More... | |
static Style | GetButtonToggleStyle () |
Getting default style for a ButtonToggle item. Properly filled in all the necessary properties. More... | |
static Style | GetCheckBoxStyle () |
Getting default style for a CheckBox item. Properly filled in all the necessary properties. Inner styles: "indicator", "text". More... | |
static Style | GetIndicatorStyle () |
Getting default style for a Indicator item. Properly filled in all the necessary properties. Inner styles: "marker". This is part of CheckBox item style. More... | |
static Style | GetTextLineStyle () |
Getting default style for a text type item. Attention: not all the necessary properties properly filled. More... | |
static Style | GetComboBoxStyle () |
Getting default style for a ComboBox item. Properly filled in all the necessary properties. Inner styles: "selection", "dropdownbutton", "dropdownarea", "arrow". More... | |
static Style | GetComboBoxDropDownStyle () |
Getting default style for a ComboBoxDropDown item. Properly filled in all the necessary properties. Inner styles: "itemlist". Inner styles for "itemlist": "vscrollbar", "hscrollbar", "menu". This is part of ComboBox item style. More... | |
static Style | GetMenuItemStyle () |
Getting default style for a MenuItem item. Properly filled in all the necessary properties. Inner styles: "text", "arrow". More... | |
static Style | GetContextMenuStyle () |
Getting default style for a ContextMenu item. Properly filled in all the necessary properties. Inner styles: "itemlist". More... | |
static Style | GetFreeAreaStyle () |
Getting default style for a FreeArea item. Properly filled in all the necessary properties. More... | |
static Style | GetFrameStyle () |
Getting default style for a Frame item. Properly filled in all the necessary properties. More... | |
static Style | GetGridStyle () |
Getting default style for a Grid item. Properly filled in all the necessary properties. More... | |
static Style | GetHorizontalScrollBarStyle () |
Getting default style for a HorizontalScrollBar item. Properly filled in all the necessary properties. Inner styles: "uparrow", "downarrow", "slider". Inner styles for "slider": "track", "handler". This is part of many items style. More... | |
static Style | GetSimpleHorizontalScrollBarStyle () |
Getting simplified style for a SimpleHorizontalScrollBar item. Properly filled in all the necessary properties. Inner styles: "uparrow", "downarrow", "slider". Inner styles for "slider": "track", "handler". More... | |
static Style | GetVerticalScrollBarStyle () |
Getting default style for a VerticalScrollBar item. Properly filled in all the necessary properties. Inner styles: "uparrow", "downarrow", "slider". Inner styles for "slider": "track", "handler". This is part of many items style. More... | |
static Style | GetSimpleVerticalScrollBarStyle () |
Getting simplified style for a SimpleVerticalScrollBar item. Properly filled in all the necessary properties. Inner styles: "uparrow", "downarrow", "slider". Inner styles for "slider": "track", "handler". More... | |
static Style | GetHorizontalSliderStyle () |
Getting default style for a HorizontalSlider item. Properly filled in all the necessary properties. Inner styles: "track", "handler". More... | |
static Style | GetVerticalSliderStyle () |
Getting default style for a VerticalSlider item. Properly filled in all the necessary properties. Inner styles: "track", "handler". More... | |
static Style | GetHorizontalStackStyle () |
Getting default style for a HorizontalStack item. Properly filled in all the necessary properties. More... | |
static Style | GetVerticalStackStyle () |
Getting default style for a VerticalStack item. Properly filled in all the necessary properties. More... | |
static Style | GetHorizontalSplitAreaStyle () |
Getting default style for a HorizontalSplitArea item. Properly filled in all the necessary properties. Inner styles: "splitholder". More... | |
static Style | GetVerticalSplitAreaStyle () |
Getting default style for a VerticalSplitArea item. Properly filled in all the necessary properties. Inner styles: "splitholder". More... | |
static Style | GetLabelStyle () |
Getting default style for a Label item. Properly filled in all the necessary properties. More... | |
static Style | GetListAreaStyle () |
Getting default style for a ListArea item. Properly filled in all the necessary properties. Inner styles: "selection". This is part of many items style. More... | |
static Style | GetListBoxStyle () |
Getting default style for a ListBox item. Properly filled in all the necessary properties. Inner styles: "area", "vscrollbar", "hscrollbar", "menu". More... | |
static Style | GetWContainerStyle () |
Note: not supported in current version. More... | |
static Style | GetRadioButtonStyle () |
Getting default style for a RadioButton item. Properly filled in all the necessary properties. Inner styles: "indicator", "text". Inner styles of "indicator": "marker". More... | |
static Style | GetPasswordLineStyle () |
Getting default style for a PasswordLine item. Properly filled in all the necessary properties. Inner styles: "showmarker", "textedit". More... | |
static Style | GetTextEditStyle () |
Getting default style for a TextEdit item. Properly filled in all the necessary properties. Inner styles: "text". Inner styles for "text": "cursor", "selection", "substrate". More... | |
static Style | GetTextBlockStyle () |
Getting default style for a sealed TextBlock item. Properly filled in all the necessary properties. Inner styles: "cursor", "selection". This is part of TextArea item style as "textedit". More... | |
static Style | GetTextAreaStyle () |
Getting default style for a TextArea item. Properly filled in all the necessary properties. Inner styles: "textedit", "vscrollbar", "hscrollbar", "menu". More... | |
static Style | GetTextViewStyle () |
Getting default style for a TextView item. Properly filled in all the necessary properties. Inner styles: "selection". More... | |
static Style | GetPopUpMessageStyle () |
Getting default style for a PopUpMessage item. Properly filled in all the necessary properties. Inner styles: "closebutton". More... | |
static Style | GetProgressBarStyle () |
Getting default style for a ProgressBar item. Properly filled in all the necessary properties. Inner styles: "progressbar". More... | |
static Style | GetToolTipStyle () |
Getting default style for a ToolTip item. Properly filled in all the necessary properties. Inner styles: "text". More... | |
static Style | GetTitleBarStyle () |
Getting default style for a TitleBar item. Properly filled in all the necessary properties. Inner styles: "closebutton", "minimizebutton", "maximizebutton", "title". More... | |
static Style | GetTreeViewStyle () |
Getting default style for a TreeView item. Properly filled in all the necessary properties. Inner styles: "area", "vscrollbar", "hscrollbar", "menu". More... | |
static Style | GetTreeItemStyle () |
Getting default style for a TreeItem item. Properly filled in all the necessary properties. Inner styles: "indicator", "branchicon", "leaficon". More... | |
static Style | GetSpinItemStyle () |
Getting default style for a SpinItem item. Properly filled in all the necessary properties. Inner styles: "uparrow", "downarrow", "buttonsarea", "textedit". More... | |
static Style | GetDialogItemStyle () |
Getting default style for a DialogItem item. Properly filled in all the necessary properties. Inner styles: "window". This is part of OpenEntryDialog item style. More... | |
static Style | GetMessageItemStyle () |
Getting default style for a MessageItem item. Properly filled in all the necessary properties. Inner styles: "window", "button", "toolbar", "userbar", "message", "layout". More... | |
static Style | GetWindowContainerStyle () |
Getting default style for a window itself. Properly filled in all the necessary properties. More... | |
static Style | GetFileSystemEntryStyle () |
Getting default style for a FileSystemEntry item. Properly filled in all the necessary properties. Inner styles: "icon", "text". More... | |
static Style | GetOpenEntryDialogStyle () |
Getting default style for a OpenEntryDialog item. Properly filled in all the necessary properties. Inner styles: "window", "layout", "toolbar", "toolbarbutton", "addressline", "filenameline", "list", "controlpanel", "okbutton", "cancelbutton", "filter", "filtertext", "divider". More... | |
static Style | GetInputDialogStyle () |
Getting default style for a InputDialog item. Properly filled in all the necessary properties. Inner styles: "window", "button", "textedit", "layout", "toolbar". More... | |
static Style | GetSelectionItemStyle () |
Getting default style for a SelectionItem item. Properly filled in all the necessary properties. More... | |
static Style | GetWrapAreaStyle () |
Getting default style for a WrapArea item. Properly filled in all the necessary properties. Inner styles: "selection". This is part of WrapGrid item style as "area". More... | |
static Style | GetWrapGridStyle () |
Getting default style for a WrapGrid item. Properly filled in all the necessary properties. Inner styles: "area", "vscrollbar", "hscrollbar". Inner styles for "area": see Style.GetWrapAreaStyle(). More... | |
static Style | GetSideAreaStyle () |
Getting default style for a SideArea item. Properly filled in all the necessary properties. Inner styles: "window", "closebutton". More... | |
static Style | GetImageItemStyle () |
Getting default style for a ImageItem item. Properly filled in all the necessary properties. More... | |
static Style | GetLoadingScreenStyle () |
Getting default style for a LoadingScreen item. Properly filled in all the necessary properties. Inner styles: "text", "image". More... | |
static Style | GetTabStyle () |
Getting default style for a Tab item. Properly filled in all the necessary properties. Inner styles: "text", "closebutton", "view". This is part of TabView item style as "tab". More... | |
static Style | GetTabBarStyle () |
Getting default style for a TabBar item. Properly filled in all the necessary properties. This is part of TabView item style. More... | |
static Style | GetTabViewStyle () |
Getting default style for a *** item. Properly filled in all the necessary properties. Inner styles: "tabbar", "tab", "viewarea". Inner styles for "tab": see Style.GetTabStyle(). More... | |
Public Attributes | |
Color | Background |
Background color of an item's shape. Attention: this property is required. This property is System.Drawing.Color. More... | |
Color | Foreground |
Color of an item's text. Can be used only if the item contains text and in this case this property is required. This property is System.Drawing.Color. More... | |
Font | Font = null |
Font of an item's text. Can be used only if the item contains text and in this case this property is required. This property is System.Drawing.Font. More... | |
SizePolicy | WidthPolicy |
Width policy of an item's shape. Can be Fixed (shape not changes its size) or Expand (shape is stretched to all available space). Attention: this property is required. This property is SpaceVIL.Core.SizePolicy. More... | |
SizePolicy | HeightPolicy |
Height policy of an item's shape. Can be Fixed (shape not changes its size) or Expand (shape is stretched to all available space). Attention: this property is required. This property is SpaceVIL.Core.SizePolicy. More... | |
int | Width |
Width of an item's shape. More... | |
int | MinWidth |
Minimum width of an item's shape (shape cannot be smaller this value). Default: 0. More... | |
int | MaxWidth |
Maximum width of an item's shape (shape cannot be bigger this value). Default: 32767. More... | |
int | Height |
Height of an item's shape. More... | |
int | MinHeight |
Minimum height of an item's shape (shape cannot be smaller this value). Default: 0. More... | |
int | MaxHeight |
Maximum height of an item's shape (shape cannot be bigget this value). Default: 32767. More... | |
ItemAlignment | Alignment |
Alignment of an item's shape relative to its container. Combines with alignment by vertically (Top, VCenter, Bottom) and horizontally (Left, HCenter, Right). Attention: this property is required. This property is SpaceVIL.Core.ItemAlignment. More... | |
ItemAlignment | TextAlignment |
Alignment of an item's text. Combines with alignment by vertically (Top, VCenter, Bottom) and horizontally (Left, HCenter, Right). Can be used only if the item contains text and in this case this property is required. This property is SpaceVIL.Core.ItemAlignment. More... | |
int | X |
X axis position of left-top cornet of an item's shape. This property itself is mostly ignored. Used only when creating container-type items or with SpaceVIL.FreeArea. More... | |
int | Y |
Y axis position of left-top cornet of an item's shape. This property itself is mostly ignored. Used only when creating container-type items or with SpaceVIL.FreeArea. More... | |
Indents | Padding |
Indents of an item to offset its children. Attention: this property is required. This property is SpaceVIL.Decorations.Indents. More... | |
Spacing | Spacing |
Indents between children of a container type item. It is used mainly in containers. This property is SpaceVIL.Decorations.Spacing. More... | |
Indents | Margin |
Indents of an item to offset itself relative to its container. Attention: this property is required. This property is SpaceVIL.Decorations.Indents. More... | |
CornerRadius | BorderRadius = new CornerRadius() |
Radiuses to round the rectangular shape of the item. More... | |
int | BorderThickness = 0 |
Thickness of an item's border. Default: 0. More... | |
Color | BorderFill |
Color of an item's border. This property is System.Drawing.Color. More... | |
List< float[]> | Shape |
A form of an item's shape. If not assigned, the shape is rectangular. Format: System.Collections.Generic.List<System.Single[]>. More... | |
bool | IsFixedShape = false |
A flag that determines if the shape of an item can be changed or not. True: if shape can not be resized. False: if shape can be resised. Default: False. More... | |
List< IBaseItem > | InnerShapes |
A storage of shapes for future use. Note: not supported in the current version! Format: System.Collections.Generic.List<SpaceVIL.Core.IBaseItem>. More... | |
int | ShadowRadius |
Blur radius of a shadow. Min value: 0. Max value: 10. Default: 0. More... | |
int | ShadowXOffset |
X shift of a shadow. More... | |
int | ShadowYOffset |
Y shift of a shadow. More... | |
bool | IsShadowDrop = false |
Drop shadow flag. True: allow shadow dropping. False: not allow shadow dropping. Default: False. More... | |
Color | ShadowColor |
Color of a shadow. This property is System.Drawing.Color. More... | |
bool | IsVisible |
A flag that determines if an item is visible or not. True: if visible. False: if not visible. Default: True. More... | |
Style is a class that describes the appearance of an element. Can contains Styles for inner items.
SpaceVIL.Decorations.Style.Style | ( | ) |
Constructs a default Style.
void SpaceVIL.Decorations.Style.AddInnerShape | ( | IBaseItem | shape | ) |
Adding inner primitives to the item (as decorations only). Note: not supported in the current version!
void SpaceVIL.Decorations.Style.AddInnerStyle | ( | String | keyName, |
Style | style | ||
) |
Assigning a style for an item's child by key name.
keyName | Key name of a child. |
style | Style as SpaceVIL.Decorations.Style. |
void SpaceVIL.Decorations.Style.AddItemState | ( | ItemStateType | type, |
ItemState | state | ||
) |
Adding visual state for an item. Type can be Base, Hovered, Pressed, Toggled, Focused, Disabled.
type | Type as SpaceVIL.Core.ItemStateType. |
state | Visual state as SpaceVIL.Decorations.ItemState. |
Style SpaceVIL.Decorations.Style.Clone | ( | ) |
Cloning the current style and returning a new deep copy of Style.
Dictionary<ItemStateType, ItemState> SpaceVIL.Decorations.Style.GetAllStates | ( | ) |
Getting all presented in the current style visual states of an item.
|
static |
Getting default style for a ButtonCore item. Properly filled in all the necessary properties.
|
static |
Getting default style for a ButtonToggle item. Properly filled in all the necessary properties.
|
static |
Getting default style for a CheckBox item. Properly filled in all the necessary properties. Inner styles: "indicator", "text".
|
static |
Getting default style for a ComboBoxDropDown item. Properly filled in all the necessary properties. Inner styles: "itemlist". Inner styles for "itemlist": "vscrollbar", "hscrollbar", "menu". This is part of ComboBox item style.
|
static |
Getting default style for a ComboBox item. Properly filled in all the necessary properties. Inner styles: "selection", "dropdownbutton", "dropdownarea", "arrow".
|
static |
Getting default style for a ContextMenu item. Properly filled in all the necessary properties. Inner styles: "itemlist".
|
static |
Getting a default common style. Properly filled in all the necessary properties. Use this method to create instance of Style class instead of using pure constructor (new Style()).
|
static |
Getting default style for a DialogItem item. Properly filled in all the necessary properties. Inner styles: "window". This is part of OpenEntryDialog item style.
|
static |
Getting default style for a FileSystemEntry item. Properly filled in all the necessary properties. Inner styles: "icon", "text".
|
static |
Getting default style for a Frame item. Properly filled in all the necessary properties.
|
static |
Getting default style for a FreeArea item. Properly filled in all the necessary properties.
|
static |
Getting default style for a Grid item. Properly filled in all the necessary properties.
|
static |
Getting default style for a HorizontalScrollBar item. Properly filled in all the necessary properties. Inner styles: "uparrow", "downarrow", "slider". Inner styles for "slider": "track", "handler". This is part of many items style.
|
static |
Getting default style for a HorizontalSlider item. Properly filled in all the necessary properties. Inner styles: "track", "handler".
|
static |
Getting default style for a HorizontalSplitArea item. Properly filled in all the necessary properties. Inner styles: "splitholder".
|
static |
Getting default style for a HorizontalStack item. Properly filled in all the necessary properties.
|
static |
Getting default style for a ImageItem item. Properly filled in all the necessary properties.
|
static |
Getting default style for a Indicator item. Properly filled in all the necessary properties. Inner styles: "marker". This is part of CheckBox item style.
Style SpaceVIL.Decorations.Style.GetInnerStyle | ( | String | keyName | ) |
Getting a child’s style by key name.
keyName | Key name of a child. |
|
static |
Getting default style for a InputDialog item. Properly filled in all the necessary properties. Inner styles: "window", "button", "textedit", "layout", "toolbar".
|
static |
Getting default style for a Label item. Properly filled in all the necessary properties.
|
static |
Getting default style for a ListArea item. Properly filled in all the necessary properties. Inner styles: "selection". This is part of many items style.
|
static |
Getting default style for a ListBox item. Properly filled in all the necessary properties. Inner styles: "area", "vscrollbar", "hscrollbar", "menu".
|
static |
Getting default style for a LoadingScreen item. Properly filled in all the necessary properties. Inner styles: "text", "image".
|
static |
Getting default style for a MenuItem item. Properly filled in all the necessary properties. Inner styles: "text", "arrow".
|
static |
Getting default style for a MessageItem item. Properly filled in all the necessary properties. Inner styles: "window", "button", "toolbar", "userbar", "message", "layout".
|
static |
Getting default style for a OpenEntryDialog item. Properly filled in all the necessary properties. Inner styles: "window", "layout", "toolbar", "toolbarbutton", "addressline", "filenameline", "list", "controlpanel", "okbutton", "cancelbutton", "filter", "filtertext", "divider".
|
static |
Getting default style for a PasswordLine item. Properly filled in all the necessary properties. Inner styles: "showmarker", "textedit".
|
static |
Getting default style for a PopUpMessage item. Properly filled in all the necessary properties. Inner styles: "closebutton".
|
static |
Getting default style for a ProgressBar item. Properly filled in all the necessary properties. Inner styles: "progressbar".
|
static |
Getting default style for a RadioButton item. Properly filled in all the necessary properties. Inner styles: "indicator", "text". Inner styles of "indicator": "marker".
|
static |
Getting default style for a SelectionItem item. Properly filled in all the necessary properties.
|
static |
Getting default style for a SideArea item. Properly filled in all the necessary properties. Inner styles: "window", "closebutton".
|
static |
Getting simplified style for a SimpleHorizontalScrollBar item. Properly filled in all the necessary properties. Inner styles: "uparrow", "downarrow", "slider". Inner styles for "slider": "track", "handler".
|
static |
Getting simplified style for a SimpleVerticalScrollBar item. Properly filled in all the necessary properties. Inner styles: "uparrow", "downarrow", "slider". Inner styles for "slider": "track", "handler".
|
static |
Getting default style for a SpinItem item. Properly filled in all the necessary properties. Inner styles: "uparrow", "downarrow", "buttonsarea", "textedit".
ItemState SpaceVIL.Decorations.Style.GetState | ( | ItemStateType | type | ) |
Getting visual state of an item by type. Type can be Base, Hovered, Pressed, Toggled, Focused, Disabled.
type | Type as SpaceVIL.Core.ItemStateType. |
|
static |
Getting default style for a TabBar item. Properly filled in all the necessary properties. This is part of TabView item style.
|
static |
Getting default style for a Tab item. Properly filled in all the necessary properties. Inner styles: "text", "closebutton", "view". This is part of TabView item style as "tab".
|
static |
Getting default style for a *** item. Properly filled in all the necessary properties. Inner styles: "tabbar", "tab", "viewarea". Inner styles for "tab": see Style.GetTabStyle().
|
static |
Getting default style for a TextArea item. Properly filled in all the necessary properties. Inner styles: "textedit", "vscrollbar", "hscrollbar", "menu".
|
static |
Getting default style for a sealed TextBlock item. Properly filled in all the necessary properties. Inner styles: "cursor", "selection". This is part of TextArea item style as "textedit".
|
static |
Getting default style for a TextEdit item. Properly filled in all the necessary properties. Inner styles: "text". Inner styles for "text": "cursor", "selection", "substrate".
|
static |
Getting default style for a text type item. Attention: not all the necessary properties properly filled.
|
static |
Getting default style for a TextView item. Properly filled in all the necessary properties. Inner styles: "selection".
|
static |
Getting default style for a TitleBar item. Properly filled in all the necessary properties. Inner styles: "closebutton", "minimizebutton", "maximizebutton", "title".
|
static |
Getting default style for a ToolTip item. Properly filled in all the necessary properties. Inner styles: "text".
|
static |
Getting default style for a TreeItem item. Properly filled in all the necessary properties. Inner styles: "indicator", "branchicon", "leaficon".
|
static |
Getting default style for a TreeView item. Properly filled in all the necessary properties. Inner styles: "area", "vscrollbar", "hscrollbar", "menu".
|
static |
Getting default style for a VerticalScrollBar item. Properly filled in all the necessary properties. Inner styles: "uparrow", "downarrow", "slider". Inner styles for "slider": "track", "handler". This is part of many items style.
|
static |
Getting default style for a VerticalSlider item. Properly filled in all the necessary properties. Inner styles: "track", "handler".
|
static |
Getting default style for a VerticalSplitArea item. Properly filled in all the necessary properties. Inner styles: "splitholder".
|
static |
Getting default style for a VerticalStack item. Properly filled in all the necessary properties.
|
static |
Note: not supported in current version.
|
static |
Getting default style for a window itself. Properly filled in all the necessary properties.
|
static |
Getting default style for a WrapArea item. Properly filled in all the necessary properties. Inner styles: "selection". This is part of WrapGrid item style as "area".
|
static |
Getting default style for a WrapGrid item. Properly filled in all the necessary properties. Inner styles: "area", "vscrollbar", "hscrollbar". Inner styles for "area": see Style.GetWrapAreaStyle().
void SpaceVIL.Decorations.Style.RemoveInnerStyle | ( | String | keyName | ) |
Removing a child's style by its key name.
keyName | Key name of a child. |
void SpaceVIL.Decorations.Style.RemoveItemState | ( | ItemStateType | type | ) |
Removing visual state of an item by type. Type can be Base, Hovered, Pressed, Toggled, Focused, Disabled.
type | Type as SpaceVIL.Core.ItemStateType. |
void SpaceVIL.Decorations.Style.SetAlignment | ( | ItemAlignment | alignment | ) |
Setting an Alignment of an item's shape relative to its container. Combines with alignment by vertically (Top, VCenter, Bottom) and horizontally (Left, HCenter, Right). Attention: this property is required.
alignment | Alignment as SpaceVIL.Core.ItemAlignment. |
void SpaceVIL.Decorations.Style.SetAlignment | ( | params ItemAlignment[] | alignment | ) |
Setting an Alignment of an item's shape relative to its container. Combines with alignment by vertically (Top, VCenter, Bottom) and horizontally (Left, HCenter, Right). Attention: this property is required.
alignment | Alignment as sequence of SpaceVIL.Core.ItemAlignment. |
void SpaceVIL.Decorations.Style.SetBackground | ( | float | r, |
float | g, | ||
float | b | ||
) |
Setting background color of an item's shape in float RGB format.
r | Red color component. Range: (0.0f - 1.0f) |
g | Green color component. Range: (0.0f - 1.0f) |
b | Blue color component. Range: (0.0f - 1.0f) |
void SpaceVIL.Decorations.Style.SetBackground | ( | float | r, |
float | g, | ||
float | b, | ||
float | a | ||
) |
Setting background color of an item's shape in float RGBA format.
r | Red color component. Range: (0.0f - 1.0f) |
g | Green color component. Range: (0.0f - 1.0f) |
b | Blue color component. Range: (0.0f - 1.0f) |
a | Alpha color component. Range: (0.0f - 1.0f) |
void SpaceVIL.Decorations.Style.SetBackground | ( | int | r, |
int | g, | ||
int | b | ||
) |
Setting background color of an item's shape in byte RGB format.
r | Red color component. Range: (0 - 255) |
g | Green color component. Range: (0 - 255) |
b | Blue color component. Range: (0 - 255) |
void SpaceVIL.Decorations.Style.SetBackground | ( | int | r, |
int | g, | ||
int | b, | ||
int | a | ||
) |
Setting background color of an item's shape in byte RGBA format.
r | Red color component. Range: (0 - 255) |
g | Green color component. Range: (0 - 255) |
b | Blue color component. Range: (0 - 255) |
a | Alpha color component. Range: (0 - 255) |
void SpaceVIL.Decorations.Style.SetBorder | ( | Border | border | ) |
Setting border of an item's shape. Border consist of corner radiuses, thickness and color.
border | Border as SpaceVIL.Decorations.Border. |
void SpaceVIL.Decorations.Style.SetBorder | ( | Color | fill, |
CornerRadius | radius, | ||
int | thickness | ||
) |
Setting border for an item's shape. Border consist of corner radiuses, thickness and color.
fill | Border color as System.Drawing.Color. |
radius | Radiuses of an border corners as SpaceVIL.Decorations.CornerRadius. |
thickness | Border thickness. |
void SpaceVIL.Decorations.Style.SetForeground | ( | float | r, |
float | g, | ||
float | b | ||
) |
Setting text color of an item in float RGB format.
r | Red color component. Range: (0.0f - 1.0f) |
g | Green color component. Range: (0.0f - 1.0f) |
b | Blue color component. Range: (0.0f - 1.0f) |
void SpaceVIL.Decorations.Style.SetForeground | ( | float | r, |
float | g, | ||
float | b, | ||
float | a | ||
) |
Setting text color of an item in float RGBA format.
r | Red color component. Range: (0.0f - 1.0f) |
g | Green color component. Range: (0.0f - 1.0f) |
b | Blue color component. Range: (0.0f - 1.0f) |
a | Alpha color component. Range: (0.0f - 1.0f) |
void SpaceVIL.Decorations.Style.SetForeground | ( | int | r, |
int | g, | ||
int | b | ||
) |
Setting text color of an item in byte RGB format.
r | Red color component. Range: (0 - 255) |
g | Green color component. Range: (0 - 255) |
b | Blue color component. Range: (0 - 255) |
void SpaceVIL.Decorations.Style.SetForeground | ( | int | r, |
int | g, | ||
int | b, | ||
int | a | ||
) |
Setting text color of an item in byte RGBA format.
r | Red color component. Range: (0 - 255) |
g | Green color component. Range: (0 - 255) |
b | Blue color component. Range: (0 - 255) |
a | Alpha color component. Range: (0 - 255) |
void SpaceVIL.Decorations.Style.SetMargin | ( | Indents | margin | ) |
Setting indents of an item to offset itself relative to its container.
margin | Indents as SpaceVIL.Decorations.Indents. |
void SpaceVIL.Decorations.Style.SetMargin | ( | int | left = 0 , |
int | top = 0 , |
||
int | right = 0 , |
||
int | bottom = 0 |
||
) |
Setting indents of an item to offset itself relative to its container.
left | Indent on the left. |
top | Indent on the top. |
right | Indent on the right. |
bottom | Indent on the bottom. |
void SpaceVIL.Decorations.Style.SetMaxSize | ( | int | width, |
int | height | ||
) |
Setting maximim size of an item's shape (shape can not be bigger than specified width and height).
width | Maximim width of a shape. |
height | Maximim height of a shape. |
void SpaceVIL.Decorations.Style.SetMinSize | ( | int | width, |
int | height | ||
) |
Setting minimum size of an item's shape (shape can not be smaller than specified width and height).
width | Minimum width of a shape. |
height | Minimum height of a shape. |
void SpaceVIL.Decorations.Style.SetPadding | ( | Indents | padding | ) |
Setting indents of an item to offset its children.
padding | Padding indents as SpaceVIL.Decorations.Indents. |
void SpaceVIL.Decorations.Style.SetPadding | ( | int | left = 0 , |
int | top = 0 , |
||
int | right = 0 , |
||
int | bottom = 0 |
||
) |
Setting indents of an item to offset its children.
left | Indent on the left. |
top | Indent on the top. |
right | Indent on the right. |
bottom | Indent on the bottom. |
void SpaceVIL.Decorations.Style.SetShadow | ( | Shadow | shadow | ) |
Setting shadow for an item's shape.
shadow | Shadow as SpaceVIL.Decorations.Shadow. |
void SpaceVIL.Decorations.Style.SetSize | ( | int | width, |
int | height | ||
) |
Setting size of an item's shape.
width | Width of a shape. |
height | Height of a shape. |
void SpaceVIL.Decorations.Style.SetSizePolicy | ( | SizePolicy | widthPolicy, |
SizePolicy | heightPolicy | ||
) |
Setting the size policy of an item's shape. Can be Fixed (shape not changes its size) or Expand (shape is stretched to all available space).
widthPolicy | Width policy of an item's shape. |
heightPolicy | Height policy of an item's shape. |
void SpaceVIL.Decorations.Style.SetSpacing | ( | int | horizontal = 0 , |
int | vertical = 0 |
||
) |
Setting indents between children of a container type item.
horizontal | Horizontal indent. |
vertical | Vertical indent. |
void SpaceVIL.Decorations.Style.SetSpacing | ( | Spacing | spacing | ) |
Setting indents between children of a container type item.
spacing | Spacing as SpaceVIL.Decorations.Spacing. |
void SpaceVIL.Decorations.Style.SetStyle | ( | params IBaseItem[] | items | ) |
Setting this style for all items in sequence.
items | A sequence of items that are SpaceVIL.Core.IBaseItem. |
void SpaceVIL.Decorations.Style.SetTextAlignment | ( | ItemAlignment | alignment | ) |
Alignment of an item's text. Combines with alignment by vertically (Top, VCenter, Bottom) and horizontally (Left, HCenter, Right). Can be used only if the item contains text and in this case this property is required.
alignment | Text alignment as SpaceVIL.Core.ItemAlignment. |
void SpaceVIL.Decorations.Style.SetTextAlignment | ( | params ItemAlignment[] | alignment | ) |
Alignment of an item's text. Combines with alignment by vertically (Top, VCenter, Bottom) and horizontally (Left, HCenter, Right). Can be used only if the item contains text and in this case this property is required.
alignment | Text alignment as sequence of SpaceVIL.Core.ItemAlignment. |
ItemAlignment SpaceVIL.Decorations.Style.Alignment |
Alignment of an item's shape relative to its container. Combines with alignment by vertically (Top, VCenter, Bottom) and horizontally (Left, HCenter, Right). Attention: this property is required. This property is SpaceVIL.Core.ItemAlignment.
Color SpaceVIL.Decorations.Style.Background |
Background color of an item's shape. Attention: this property is required. This property is System.Drawing.Color.
Color SpaceVIL.Decorations.Style.BorderFill |
Color of an item's border. This property is System.Drawing.Color.
CornerRadius SpaceVIL.Decorations.Style.BorderRadius = new CornerRadius() |
Radiuses to round the rectangular shape of the item.
int SpaceVIL.Decorations.Style.BorderThickness = 0 |
Thickness of an item's border. Default: 0.
Font SpaceVIL.Decorations.Style.Font = null |
Font of an item's text. Can be used only if the item contains text and in this case this property is required. This property is System.Drawing.Font.
Color SpaceVIL.Decorations.Style.Foreground |
Color of an item's text. Can be used only if the item contains text and in this case this property is required. This property is System.Drawing.Color.
int SpaceVIL.Decorations.Style.Height |
Height of an item's shape.
SizePolicy SpaceVIL.Decorations.Style.HeightPolicy |
Height policy of an item's shape. Can be Fixed (shape not changes its size) or Expand (shape is stretched to all available space). Attention: this property is required. This property is SpaceVIL.Core.SizePolicy.
List<IBaseItem> SpaceVIL.Decorations.Style.InnerShapes |
A storage of shapes for future use. Note: not supported in the current version! Format: System.Collections.Generic.List<SpaceVIL.Core.IBaseItem>.
bool SpaceVIL.Decorations.Style.IsFixedShape = false |
A flag that determines if the shape of an item can be changed or not. True: if shape can not be resized. False: if shape can be resised. Default: False.
bool SpaceVIL.Decorations.Style.IsShadowDrop = false |
Drop shadow flag. True: allow shadow dropping. False: not allow shadow dropping. Default: False.
bool SpaceVIL.Decorations.Style.IsVisible |
A flag that determines if an item is visible or not. True: if visible. False: if not visible. Default: True.
Indents SpaceVIL.Decorations.Style.Margin |
Indents of an item to offset itself relative to its container. Attention: this property is required. This property is SpaceVIL.Decorations.Indents.
int SpaceVIL.Decorations.Style.MaxHeight |
Maximum height of an item's shape (shape cannot be bigget this value). Default: 32767.
int SpaceVIL.Decorations.Style.MaxWidth |
Maximum width of an item's shape (shape cannot be bigger this value). Default: 32767.
int SpaceVIL.Decorations.Style.MinHeight |
Minimum height of an item's shape (shape cannot be smaller this value). Default: 0.
int SpaceVIL.Decorations.Style.MinWidth |
Minimum width of an item's shape (shape cannot be smaller this value). Default: 0.
Indents SpaceVIL.Decorations.Style.Padding |
Indents of an item to offset its children. Attention: this property is required. This property is SpaceVIL.Decorations.Indents.
Color SpaceVIL.Decorations.Style.ShadowColor |
Color of a shadow. This property is System.Drawing.Color.
int SpaceVIL.Decorations.Style.ShadowRadius |
Blur radius of a shadow. Min value: 0. Max value: 10. Default: 0.
int SpaceVIL.Decorations.Style.ShadowXOffset |
X shift of a shadow.
int SpaceVIL.Decorations.Style.ShadowYOffset |
Y shift of a shadow.
List<float[]> SpaceVIL.Decorations.Style.Shape |
A form of an item's shape. If not assigned, the shape is rectangular. Format: System.Collections.Generic.List<System.Single[]>.
Spacing SpaceVIL.Decorations.Style.Spacing |
Indents between children of a container type item. It is used mainly in containers. This property is SpaceVIL.Decorations.Spacing.
ItemAlignment SpaceVIL.Decorations.Style.TextAlignment |
Alignment of an item's text. Combines with alignment by vertically (Top, VCenter, Bottom) and horizontally (Left, HCenter, Right). Can be used only if the item contains text and in this case this property is required. This property is SpaceVIL.Core.ItemAlignment.
int SpaceVIL.Decorations.Style.Width |
Width of an item's shape.
SizePolicy SpaceVIL.Decorations.Style.WidthPolicy |
Width policy of an item's shape. Can be Fixed (shape not changes its size) or Expand (shape is stretched to all available space). Attention: this property is required. This property is SpaceVIL.Core.SizePolicy.
int SpaceVIL.Decorations.Style.X |
X axis position of left-top cornet of an item's shape. This property itself is mostly ignored. Used only when creating container-type items or with SpaceVIL.FreeArea.
int SpaceVIL.Decorations.Style.Y |
Y axis position of left-top cornet of an item's shape. This property itself is mostly ignored. Used only when creating container-type items or with SpaceVIL.FreeArea.