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