 |
Irrlicht 3D Engine
|
|
Go to the documentation of this file.
5 #ifndef __I_GUI_SKIN_H_INCLUDED__
6 #define __I_GUI_SKIN_H_INCLUDED__
216 "MessageBoxGapSpace",
217 "MessageBoxMinTextWidth",
218 "MessageBoxMaxTextWidth",
219 "MessageBoxMinTextHeight",
220 "MessageBoxMaxTextHeight",
221 "ButtonPressedImageOffsetX",
222 "ButtonPressedImageOffsetY",
223 "ButtonPressedTextOffsetX",
224 "ButtonPressedTextOffsetY",
260 "WindowButtonMaximize",
261 "WindowButtonMinimize",
262 "WindowButtonRestore",
337 "radioButtonChecked",
@ EGDI_MORE_UP
icon indicating that there is more content above
@ EGDC_GRAY_TEXT
Grayed (disabled) text.
virtual void draw3DButtonPaneStandard(IGUIElement *element, const core::rect< s32 > &rect, const core::rect< s32 > *clip=0)=0
draws a standard 3d button pane
@ EGDS_BUTTON_WIDTH
width of a default button
const c8 *const GUISkinColorNames[EGDC_COUNT+1]
Names for default skin colors.
virtual IGUISpriteBank * getSpriteBank() const =0
returns the sprite bank
@ EGDS_MENU_HEIGHT
height of menu
@ EGDI_CURSOR_UP
scroll bar up button
@ EGDI_CHECK_BOX_CHECKED
tick for checkbox
const c8 *const GUISkinIconNames[EGDI_COUNT+1]
virtual void draw2DRectangle(IGUIElement *element, const video::SColor &color, const core::rect< s32 > &pos, const core::rect< s32 > *clip=0)=0
draws a 2d rectangle.
@ EGDI_MORE_DOWN
icon indicating that there is more content below
@ EGDC_TOOLTIP_BACKGROUND
Tool tip background color.
char c8
8 bit character variable.
@ EGDI_WINDOW_RESTORE
restore window button
@ EGDC_ACTIVE_BORDER
Active window border.
@ EGDC_WINDOW_SYMBOL
Window symbols like on close buttons, scroll bars and check boxes.
@ EGDC_HIGH_LIGHT_TEXT
Text of item(s) selected in a control.
const c8 *const GUISkinSizeNames[EGDS_COUNT+1]
Names for default skin sizes.
An object which is able to serialize and deserialize its attributes into an attributes object.
@ EGDI_WINDOW_RESIZE
resize icon for bottom right corner of a window
@ EGDS_TEXT_DISTANCE_Y
distance for text from background
@ EGDI_CURSOR_DOWN
scroll bar down button
@ EGDI_RADIO_BUTTON_CHECKED
selection dot in a radio button
@ EGUIA_UPPERLEFT
Aligned to parent's top or left side (default)
@ EGDC_FOCUSED_EDITABLE
Show focus of window background for editable field (editbox or when checkbox-field is pressed)
@ EGDI_WINDOW_MINIMIZE
minimize window button
EGUI_DEFAULT_COLOR
Enumeration for skin colors.
@ EGDI_COLLAPSE
minus icon for trees
@ EGDI_CURSOR_RIGHT
scroll bar right button
virtual void draw3DSunkenPane(IGUIElement *element, video::SColor bgcolor, bool flat, bool fillBackGround, const core::rect< s32 > &rect, const core::rect< s32 > *clip=0)=0
draws a sunken 3d pane
@ EGDS_MESSAGE_BOX_MAX_TEXT_WIDTH
maximal space to reserve for messagebox text-width
@ EGDS_MESSAGE_BOX_MIN_TEXT_HEIGHT
minimal space to reserve for messagebox text-height
@ EGDC_INACTIVE_BORDER
Inactive window border.
@ EGDI_DIRECTORY
folder icon for file selection
@ EGDT_WINDOW_MINIMIZE
Tooltip text for window minimize button.
@ EGDS_BUTTON_PRESSED_TEXT_OFFSET_X
pixels to move the button text to the right when a pushbutton is pressed
EGUI_SKIN_TYPE
Enumeration of available default skins.
@ EGDI_SMALL_CURSOR_DOWN
smaller down arrow
@ EGDC_ICON
Icons in a list or tree.
2d vector template class with lots of operators and methods.
A skin modifies the look of the GUI elements.
signed int s32
32 bit signed variable.
@ EGDC_ACTIVE_CAPTION
Active window title bar text.
@ EGDS_BUTTON_PRESSED_IMAGE_OFFSET_X
pixels to move the button image to the right when a pushbutton is pressed
virtual void draw3DButtonPanePressed(IGUIElement *element, const core::rect< s32 > &rect, const core::rect< s32 > *clip=0)=0
draws a pressed 3d button pane
@ EGDT_MSG_BOX_NO
Text for the No button on a message box.
@ EGDS_SCROLLBAR_SIZE
default with / height of scrollbar
virtual void setSize(EGUI_DEFAULT_SIZE which, s32 size)=0
sets a default size
@ EGDC_3D_FACE
Face color for three-dimensional display elements and for dialog box backgrounds.
@ EGDI_FILE
file icon for file selection
@ EGDS_MESSAGE_BOX_MIN_TEXT_WIDTH
minimal space to reserve for messagebox text-width
@ EGDI_SMALL_CURSOR_UP
smaller up arrow
@ EGDT_MSG_BOX_OK
Text for the OK button on a message box.
virtual core::rect< s32 > draw3DWindowBackground(IGUIElement *element, bool drawTitleBar, video::SColor titleBarColor, const core::rect< s32 > &rect, const core::rect< s32 > *clip=0, core::rect< s32 > *checkClientArea=0)=0
draws a window background
virtual s32 getSize(EGUI_DEFAULT_SIZE size) const =0
returns size for the given size type
virtual void setColor(EGUI_DEFAULT_COLOR which, video::SColor newColor)=0
sets a default color
@ EGDF_DEFAULT
For static text, edit boxes, lists and most other places.
@ EGDT_MSG_BOX_CANCEL
Text for the Cancel button on a message box.
virtual void setFont(IGUIFont *font, EGUI_DEFAULT_FONT which=EGDF_DEFAULT)=0
sets a default font
@ EGDS_CHECK_BOX_WIDTH
width of a checkbox check
virtual const wchar_t * getDefaultText(EGUI_DEFAULT_TEXT text) const =0
Returns a default text.
@ EGDT_WINDOW_RESTORE
Tooltip text for window restore button.
@ EGDT_WINDOW_MAXIMIZE
Tooltip text for window maximize button.
virtual void draw3DTabButton(IGUIElement *element, bool active, const core::rect< s32 > &rect, const core::rect< s32 > *clip=0, gui::EGUI_ALIGNMENT alignment=EGUIA_UPPERLEFT)=0
draws a tab button
@ EGDC_HIGH_LIGHT
Item(s) selected in a control.
@ EGST_COUNT
this value is not used, it only specifies the number of skin types
@ EGDC_INACTIVE_CAPTION
Inactive window caption.
@ EGDF_BUTTON
Font for buttons.
virtual void drawIcon(IGUIElement *element, EGUI_DEFAULT_ICON icon, const core::position2di position, u32 starttime=0, u32 currenttime=0, bool loop=false, const core::rect< s32 > *clip=0)=0
draws an icon, usually from the skin's sprite bank
@ EGDI_WINDOW_CLOSE
close window button
const c8 *const GUISkinTextNames[EGDT_COUNT+1]
Names for default skin sizes.
virtual void setDefaultText(EGUI_DEFAULT_TEXT which, const wchar_t *newText)=0
Sets a default text.
virtual u32 getIcon(EGUI_DEFAULT_ICON icon) const =0
Returns a default icon.
@ EGDC_3D_LIGHT
Light color for three-dimensional display elements (for edges facing the light source....
@ EGDS_MESSAGE_BOX_HEIGHT
@ EGDT_MSG_BOX_YES
Text for the Yes button on a message box.
EGUI_DEFAULT_ICON
Customizable symbols for GUI.
@ EGDC_APP_WORKSPACE
Background color of multiple document interface (MDI) applications.
@ EGDS_WINDOW_BUTTON_WIDTH
width of a window button
@ EGDF_MENU
Font for menu items.
@ EGDI_CURSOR_LEFT
scroll bar left button
@ EGDT_COUNT
this value is not used, it only specifies the number of default texts
@ EGDI_MORE_LEFT
<< icon indicating there is more content to the left
virtual IGUIFont * getFont(EGUI_DEFAULT_FONT which=EGDF_DEFAULT) const =0
returns the default font
@ EGDI_DROP_DOWN
down arrow for dropdown menus
@ EGST_BURNING_SKIN
Burning's skin.
virtual video::SColor getColor(EGUI_DEFAULT_COLOR color) const =0
returns default color
virtual void draw3DTabBody(IGUIElement *element, bool border, bool background, const core::rect< s32 > &rect, const core::rect< s32 > *clip=0, s32 tabHeight=-1, gui::EGUI_ALIGNMENT alignment=EGUIA_UPPERLEFT)=0
draws a tab control body
EGUI_DEFAULT_SIZE
Enumeration for default sizes.
@ EGDC_3D_SHADOW
Shadow color for three-dimensional display elements (for edges facing away from the light source).
Everything in the Irrlicht Engine can be found in this namespace.
virtual EGUI_SKIN_TYPE getType() const
get the type of this skin
@ EGDC_3D_DARK_SHADOW
Dark shadow for three-dimensional display elements.
virtual void setSpriteBank(IGUISpriteBank *bank)=0
sets the sprite bank
@ EGDS_BUTTON_HEIGHT
height of a default button
unsigned int u32
32 bit unsigned variable.
@ EGDI_COUNT
value not used, it only specifies the number of icons
@ EGDF_WINDOW
Font for window title bars.
@ EGDC_BUTTON_TEXT
Text on a button.
virtual void draw3DToolBar(IGUIElement *element, const core::rect< s32 > &rect, const core::rect< s32 > *clip=0)=0
draws a standard 3d tool bar
@ EGDI_WINDOW_MAXIMIZE
maximize window button
@ EGDF_TOOLTIP
Font for tooltips.
@ EGDC_EDITABLE
Window background for editable field (editbox, checkbox-field)
@ EGST_WINDOWS_CLASSIC
Default windows look and feel.
const c8 *const GUISkinTypeNames[EGST_COUNT+1]
Names for gui element types.
virtual void draw3DMenuPane(IGUIElement *element, const core::rect< s32 > &rect, const core::rect< s32 > *clip=0)=0
draws a standard 3d menu pane
@ EGDC_WINDOW
Window background.
@ EGST_UNKNOWN
An unknown skin, not serializable at present.
@ EGDC_TOOLTIP
Tool tip text color.
const c8 *const GUISkinFontNames[EGDF_COUNT+1]
@ EGDS_TEXT_DISTANCE_X
distance for text from background
@ EGDS_BUTTON_PRESSED_IMAGE_OFFSET_Y
pixels to move the button image down when a pushbutton is pressed
@ EGDC_GRAY_WINDOW_SYMBOL
Grayed (disabled) window symbols like on close buttons, scroll bars and check boxes.
Class representing a 32 bit ARGB color.
@ EGDS_TITLEBARTEXT_DISTANCE_X
distance for text in the title bar, from the left of the window rect
@ EGDI_EXPAND
plus icon for trees
virtual void setIcon(EGUI_DEFAULT_ICON icon, u32 index)=0
Sets a default icon.
@ EGDS_TITLEBARTEXT_DISTANCE_Y
distance for text in the title bar, from the top of the window rect
@ EGDC_3D_HIGH_LIGHT
Highlight color for three-dimensional display elements (for edges facing the light source....
@ EGST_WINDOWS_METALLIC
Like EGST_WINDOWS_CLASSIC, but with metallic shaded windows and buttons.
Base class of all GUI elements.
@ EGDC_ICON_HIGH_LIGHT
Selected icons in a list or tree.
@ EGDT_WINDOW_CLOSE
Tooltip text for window close button.
@ EGDI_MENU_MORE
icon for menu children
@ EGDS_BUTTON_PRESSED_TEXT_OFFSET_Y
pixels to move the button text down when a pushbutton is pressed
@ EGDC_SCROLLBAR
Scrollbar gray area.
@ EGDS_MESSAGE_BOX_GAP_SPACE
free space in a messagebox between borders and contents on all sides
@ EGDC_GRAY_EDITABLE
Grayed (disabled) window background for editable field (editbox, checkbox-field)
@ EGDI_MORE_RIGHT
icon indicating that there is more content to the right
@ EGDS_MESSAGE_BOX_MAX_TEXT_HEIGHT
maximal space to reserve for messagebox text-height