- createDefaultTheme
Theme createDefaultTheme()
Undocumented in source. Be warned that the author may not have intended to support it.
- decodeAlignment
ubyte decodeAlignment(string s)
parses string like "Left|VCenter" to bit set of Align flags
- decodeFocusRectColors
uint[] decodeFocusRectColors(string s)
Decode color list attribute, e.g.: "#84A, #99FFFF" -> [0x8844aa, 0x99ffff]
- decodeFontFamily
FontFamily decodeFontFamily(string s)
decode FontFamily item name to value
- decodeFontWeight
FontWeight decodeFontWeight(string s)
decode FontWeight item name to value
- decodeLayoutDimension
int decodeLayoutDimension(string s)
decode layout dimension (FILL_PARENT, WRAP_CONTENT, or just size)
- decodeRect
Rect decodeRect(string s)
decode comma delimited dimension list or single value - and put to Rect
- decodeTextFlags
uint decodeTextFlags(string s)
parses string like "HotKeys|UnderlineHotKeysWhenAltPressed" to bit set of TextFlag flags
- loadStyleAttributes
bool loadStyleAttributes(Style style, Element elem, bool allowStates)
load style attributes from XML element
- loadTheme
bool loadTheme(Theme theme, Element doc, int level)
load theme from XML document
- loadTheme
bool loadTheme(Theme theme, string resourceId, int level)
- loadTheme
Theme loadTheme(string resourceId)
load theme from XML file (null if failed)
- overrideCustomDrawableId
string overrideCustomDrawableId(string id)
returns custom drawable replacement id for specified id from current theme, or returns passed value if not found or no current theme
- ALIGN_UNSPECIFIED
enum ubyte ALIGN_UNSPECIFIED;
unspecified align - to take parent's value instead
- ATTR_SCROLLBAR_BUTTON_DOWN
auto ATTR_SCROLLBAR_BUTTON_DOWN;
Undocumented in source.
- ATTR_SCROLLBAR_BUTTON_LEFT
auto ATTR_SCROLLBAR_BUTTON_LEFT;
Undocumented in source.
- ATTR_SCROLLBAR_BUTTON_RIGHT
auto ATTR_SCROLLBAR_BUTTON_RIGHT;
Undocumented in source.
- ATTR_SCROLLBAR_BUTTON_UP
auto ATTR_SCROLLBAR_BUTTON_UP;
Undocumented in source.
- ATTR_SCROLLBAR_INDICATOR_HORIZONTAL
auto ATTR_SCROLLBAR_INDICATOR_HORIZONTAL;
Undocumented in source.
- ATTR_SCROLLBAR_INDICATOR_VERTICAL
auto ATTR_SCROLLBAR_INDICATOR_VERTICAL;
Undocumented in source.
- FONT_SIZE_UNSPECIFIED
enum ushort FONT_SIZE_UNSPECIFIED;
unspecified font size constant - to take parent style property value
- FONT_STYLE_ITALIC
enum ubyte FONT_STYLE_ITALIC;
italic font style constant
- FONT_STYLE_NORMAL
enum ubyte FONT_STYLE_NORMAL;
normal font style constant
- FONT_STYLE_UNSPECIFIED
enum ubyte FONT_STYLE_UNSPECIFIED;
unspecified font style constant - to take parent style property value
- FONT_WEIGHT_UNSPECIFIED
enum ushort FONT_WEIGHT_UNSPECIFIED;
unspecified font weight constant - to take parent style property value
- STYLE_BUTTON
string STYLE_BUTTON;
standard style id for Button
- STYLE_BUTTON_IMAGE
string STYLE_BUTTON_IMAGE;
standard style id for Button image
- STYLE_BUTTON_LABEL
string STYLE_BUTTON_LABEL;
standard style id for Button label
- STYLE_BUTTON_NOMARGINS
string STYLE_BUTTON_NOMARGINS;
style id for Button w/o margins
- STYLE_BUTTON_TRANSPARENT
string STYLE_BUTTON_TRANSPARENT;
style id for transparent Button
- STYLE_CHECKBOX
string STYLE_CHECKBOX;
standard style id for CheckBox
- STYLE_CHECKBOX_IMAGE
string STYLE_CHECKBOX_IMAGE;
standard style id for CheckBox image
- STYLE_CHECKBOX_LABEL
string STYLE_CHECKBOX_LABEL;
standard style id for CheckBox label
- STYLE_COLOR_DIALOG_BACKGROUND
string STYLE_COLOR_DIALOG_BACKGROUND;
dialog background color resource id
- STYLE_COLOR_WINDOW_BACKGROUND
string STYLE_COLOR_WINDOW_BACKGROUND;
window background color resource id
- STYLE_COMBO_BOX
string STYLE_COMBO_BOX;
standard style id for combo box
- STYLE_COMBO_BOX_BODY
string STYLE_COMBO_BOX_BODY;
standard style id for combo box body (current item)
- STYLE_COMBO_BOX_BUTTON
string STYLE_COMBO_BOX_BUTTON;
standard style id for combo box button
- STYLE_DOCK_HOST
string STYLE_DOCK_HOST;
standard style id for dock host
- STYLE_DOCK_HOST_BODY
string STYLE_DOCK_HOST_BODY;
standard style id for dock host body
- STYLE_DOCK_WINDOW
string STYLE_DOCK_WINDOW;
standard style id for dock window
- STYLE_DOCK_WINDOW_BODY
string STYLE_DOCK_WINDOW_BODY;
standard style id for dock window body
- STYLE_DOCK_WINDOW_CAPTION
string STYLE_DOCK_WINDOW_CAPTION;
standard style id for dock window caption
- STYLE_DOCK_WINDOW_CAPTION_LABEL
string STYLE_DOCK_WINDOW_CAPTION_LABEL;
standard style id for dock window caption label
- STYLE_EDIT_BOX
string STYLE_EDIT_BOX;
standard style id for EditBox
- STYLE_EDIT_LINE
string STYLE_EDIT_LINE;
standard style id for EditLine
- STYLE_FLOATING_WINDOW
string STYLE_FLOATING_WINDOW;
standard style id for toolbar separator
- STYLE_GROUP_BOX
string STYLE_GROUP_BOX;
standard style id for GroupBox
- STYLE_GROUP_BOX_CAPTION
string STYLE_GROUP_BOX_CAPTION;
standard style id for GroupBox caption
- STYLE_HSPACER
string STYLE_HSPACER;
standard style id for HSpacer
- STYLE_LIST_BOX
string STYLE_LIST_BOX;
standard style id for lists
- STYLE_LIST_ITEM
string STYLE_LIST_ITEM;
standard style id for list items
- STYLE_MAIN_MENU
string STYLE_MAIN_MENU;
standard style id for main menu
- STYLE_MAIN_MENU_ITEM
string STYLE_MAIN_MENU_ITEM;
standard style id for main menu item
- STYLE_MAIN_MENU_LABEL
string STYLE_MAIN_MENU_LABEL;
standard style id for main menu item label
- STYLE_MENU_ACCEL
string STYLE_MENU_ACCEL;
standard style id for menu item accelerators label
- STYLE_MENU_ICON
string STYLE_MENU_ICON;
standard style id for menu item icon
- STYLE_MENU_ITEM
string STYLE_MENU_ITEM;
standard style id for menu item
- STYLE_MENU_LABEL
string STYLE_MENU_LABEL;
standard style id for menu item label
- STYLE_MULTILINE_TEXT
string STYLE_MULTILINE_TEXT;
standard style id for MultilineTextWidget
- STYLE_PAGE_SCROLL
string STYLE_PAGE_SCROLL;
standard style id for ScrollBar page control
- STYLE_POPUP_MENU
string STYLE_POPUP_MENU;
standard style id for PopupMenu
- STYLE_PROGRESS_BAR
string STYLE_PROGRESS_BAR;
standard style id for ProgressBarWidget caption
- STYLE_RADIOBUTTON
string STYLE_RADIOBUTTON;
standard style id for RadioButton
- STYLE_RADIOBUTTON_IMAGE
string STYLE_RADIOBUTTON_IMAGE;
standard style id for RadioButton image
- STYLE_RADIOBUTTON_LABEL
string STYLE_RADIOBUTTON_LABEL;
standard style id for RadioButton label
- STYLE_SCROLLBAR
string STYLE_SCROLLBAR;
standard style id for ScrollBar
- STYLE_SCROLLBAR_BUTTON
string STYLE_SCROLLBAR_BUTTON;
standard style id for ScrollBar button
- STYLE_SCROLLBAR_BUTTON_TRANSPARENT
string STYLE_SCROLLBAR_BUTTON_TRANSPARENT;
standard style id for ScrollBar button
- STYLE_SETTINGS_PAGES
string STYLE_SETTINGS_PAGES;
standard style id for settings dialog content pages frame
- STYLE_SETTINGS_PAGE_TITLE
string STYLE_SETTINGS_PAGE_TITLE;
standard style id for settings dialog page title
- STYLE_SETTINGS_TREE
string STYLE_SETTINGS_TREE;
standard style id for settings dialog tree
- STYLE_SLIDER
string STYLE_SLIDER;
standard style id for SliderWidget
- STYLE_STATUS_LINE
string STYLE_STATUS_LINE;
standard style id for app frame status line
- STYLE_STRING_GRID
string STYLE_STRING_GRID;
standard style id for StringGrid
- STYLE_SWITCH
string STYLE_SWITCH;
standard style id for Switch
- STYLE_TAB_DOWN_BUTTON_DARK
string STYLE_TAB_DOWN_BUTTON_DARK;
standard style id for tab control tab button in dock frame
- STYLE_TAB_DOWN_BUTTON_DARK_TEXT
string STYLE_TAB_DOWN_BUTTON_DARK_TEXT;
standard style id for tab control tab button text in dock frame
- STYLE_TAB_DOWN_DARK
string STYLE_TAB_DOWN_DARK;
standard style id for tab control in dock frame
- STYLE_TAB_HOST
string STYLE_TAB_HOST;
standard style id for TabHost
- STYLE_TAB_UP
string STYLE_TAB_UP;
standard style id for Tab with Up alignment
- STYLE_TAB_UP_BUTTON
string STYLE_TAB_UP_BUTTON;
standard style id for button of Tab with Up alignment
- STYLE_TAB_UP_BUTTON_DARK
string STYLE_TAB_UP_BUTTON_DARK;
standard style id for tab control tab button in dock frame
- STYLE_TAB_UP_BUTTON_DARK_TEXT
string STYLE_TAB_UP_BUTTON_DARK_TEXT;
standard style id for tab control tab button text in dock frame
- STYLE_TAB_UP_BUTTON_TEXT
string STYLE_TAB_UP_BUTTON_TEXT;
standard style id for button of Tab with Up alignment
- STYLE_TAB_UP_DARK
string STYLE_TAB_UP_DARK;
standard style id for tab control in dock frame
- STYLE_TAB_WIDGET
string STYLE_TAB_WIDGET;
standard style id for TabWidget
- STYLE_TEXT
string STYLE_TEXT;
standard style id for TextWidget
- STYLE_TOOLBAR
string STYLE_TOOLBAR;
standard style id for toolbars
- STYLE_TOOLBAR_BUTTON
string STYLE_TOOLBAR_BUTTON;
standard style id for toolbar button
- STYLE_TOOLBAR_CONTROL
string STYLE_TOOLBAR_CONTROL;
standard style id for toolbar control, e.g. combobox
- STYLE_TOOLBAR_HOST
string STYLE_TOOLBAR_HOST;
standard style id for toolbars layout
- STYLE_TOOLBAR_SEPARATOR
string STYLE_TOOLBAR_SEPARATOR;
standard style id for toolbar separator
- STYLE_TOOLTIP
string STYLE_TOOLTIP;
standard style id for tooltip popup
- STYLE_TRANSPARENT_BUTTON_BACKGROUND
string STYLE_TRANSPARENT_BUTTON_BACKGROUND;
standard style id for background similar to transparent button
- STYLE_TREE_ITEM
string STYLE_TREE_ITEM;
standard style id for tree item
- STYLE_TREE_ITEM_BODY
string STYLE_TREE_ITEM_BODY;
standard style id for tree item body (icon + label)
- STYLE_TREE_ITEM_EXPAND_ICON
string STYLE_TREE_ITEM_EXPAND_ICON;
standard style id for tree item expand icon
- STYLE_TREE_ITEM_ICON
string STYLE_TREE_ITEM_ICON;
standard style id for tree item icon
- STYLE_TREE_ITEM_LABEL
string STYLE_TREE_ITEM_LABEL;
standard style id for tree item label
- STYLE_VSPACER
string STYLE_VSPACER;
standard style id for VSpacer
- TEXT_FLAGS_UNSPECIFIED
enum uint TEXT_FLAGS_UNSPECIFIED;
use text flags from parent style
- TEXT_FLAGS_USE_PARENT
enum uint TEXT_FLAGS_USE_PARENT;
use text flags from parent widget
- WEIGHT_UNSPECIFIED
enum int WEIGHT_UNSPECIFIED;
to take layout weight from parent
This module contains declaration of themes and styles implementation.
Style - style container Theme - parent for all styles