Minetest 5.10.0-dev
 
Loading...
Searching...
No Matches
irr::gui::GUISkin Class Reference

#include <guiSkin.h>

+ Inheritance diagram for irr::gui::GUISkin:
+ Collaboration diagram for irr::gui::GUISkin:

Public Member Functions

 GUISkin (EGUI_SKIN_TYPE type, video::IVideoDriver *driver)
 
virtual ~GUISkin ()
 destructor
 
virtual float getScale () const
 returns display density scaling factor
 
virtual void setScale (float scale)
 sets display density scaling factor
 
virtual video::SColor getColor (EGUI_DEFAULT_COLOR color) const
 returns default color
 
virtual void setColor (EGUI_DEFAULT_COLOR which, video::SColor newColor)
 sets a default color
 
virtual s32 getSize (EGUI_DEFAULT_SIZE size) const
 returns size for the given size type
 
virtual void setSize (EGUI_DEFAULT_SIZE which, s32 size)
 sets a default size
 
virtual IGUIFont * getFont (EGUI_DEFAULT_FONT which=EGDF_DEFAULT) const
 returns the default font
 
virtual void setFont (IGUIFont *font, EGUI_DEFAULT_FONT which=EGDF_DEFAULT)
 sets a default font
 
virtual void setSpriteBank (IGUISpriteBank *bank)
 sets the sprite bank used for drawing icons
 
virtual IGUISpriteBank * getSpriteBank () const
 gets the sprite bank used for drawing icons
 
virtual u32 getIcon (EGUI_DEFAULT_ICON icon) const
 Returns a default icon.
 
virtual void setIcon (EGUI_DEFAULT_ICON icon, u32 index)
 Sets a default icon.
 
virtual const wchar_t * getDefaultText (EGUI_DEFAULT_TEXT text) const
 Returns a default text.
 
virtual void setDefaultText (EGUI_DEFAULT_TEXT which, const wchar_t *newText)
 Sets a default text.
 
virtual void draw3DButtonPaneStandard (IGUIElement *element, const core::rect< s32 > &rect, const core::rect< s32 > *clip=0)
 draws a standard 3d button pane
 
virtual void drawColored3DButtonPaneStandard (IGUIElement *element, const core::rect< s32 > &rect, const core::rect< s32 > *clip=0, const video::SColor *colors=0)
 draws a standard 3d button pane
 
virtual void draw3DButtonPanePressed (IGUIElement *element, const core::rect< s32 > &rect, const core::rect< s32 > *clip=0)
 draws a pressed 3d button pane
 
virtual void drawColored3DButtonPanePressed (IGUIElement *element, const core::rect< s32 > &rect, const core::rect< s32 > *clip=0, const video::SColor *colors=0)
 draws a pressed 3d button pane
 
virtual void draw3DSunkenPane (IGUIElement *element, video::SColor bgcolor, bool flat, bool fillBackGround, const core::rect< s32 > &rect, const core::rect< s32 > *clip=0)
 draws a sunken 3d pane
 
virtual void drawColored3DSunkenPane (IGUIElement *element, video::SColor bgcolor, bool flat, bool fillBackGround, const core::rect< s32 > &rect, const core::rect< s32 > *clip=0, const video::SColor *colors=0)
 draws a sunken 3d pane
 
virtual core::rect< s32 > draw3DWindowBackground (IGUIElement *element, bool drawTitleBar, video::SColor titleBarColor, const core::rect< s32 > &rect, const core::rect< s32 > *clip, core::rect< s32 > *checkClientArea)
 draws a window background
 
virtual core::rect< s32 > drawColored3DWindowBackground (IGUIElement *element, bool drawTitleBar, video::SColor titleBarColor, const core::rect< s32 > &rect, const core::rect< s32 > *clip, core::rect< s32 > *checkClientArea, const video::SColor *colors=0)
 draws a window background
 
virtual void draw3DMenuPane (IGUIElement *element, const core::rect< s32 > &rect, const core::rect< s32 > *clip=0)
 draws a standard 3d menu pane
 
virtual void drawColored3DMenuPane (IGUIElement *element, const core::rect< s32 > &rect, const core::rect< s32 > *clip=0, const video::SColor *colors=0)
 draws a standard 3d menu pane
 
virtual void draw3DToolBar (IGUIElement *element, const core::rect< s32 > &rect, const core::rect< s32 > *clip=0)
 draws a standard 3d tool bar
 
virtual void drawColored3DToolBar (IGUIElement *element, const core::rect< s32 > &rect, const core::rect< s32 > *clip=0, const video::SColor *colors=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, EGUI_ALIGNMENT alignment=EGUIA_UPPERLEFT)
 draws a tab button
 
virtual void drawColored3DTabButton (IGUIElement *element, bool active, const core::rect< s32 > &rect, const core::rect< s32 > *clip=0, EGUI_ALIGNMENT alignment=EGUIA_UPPERLEFT, const video::SColor *colors=0)
 draws a tab button
 
virtual void draw3DTabBody (IGUIElement *element, bool border, bool background, const core::rect< s32 > &rect, const core::rect< s32 > *clip=0, s32 tabHeight=-1, EGUI_ALIGNMENT alignment=EGUIA_UPPERLEFT)
 draws a tab control body
 
virtual void drawColored3DTabBody (IGUIElement *element, bool border, bool background, const core::rect< s32 > &rect, const core::rect< s32 > *clip=0, s32 tabHeight=-1, EGUI_ALIGNMENT alignment=EGUIA_UPPERLEFT, const video::SColor *colors=0)
 draws a tab control body
 
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)
 draws an icon, usually from the skin's sprite bank
 
virtual void drawColoredIcon (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, const video::SColor *colors=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)
 draws a 2d rectangle.
 
virtual EGUI_SKIN_TYPE getType () const
 get the type of this skin
 
virtual void getColors (video::SColor *colors)
 gets the colors
 

Private Attributes

float Scale = 1.0f
 
video::SColor Colors [EGDC_COUNT]
 
s32 Sizes [EGDS_COUNT]
 
u32 Icons [EGDI_COUNT]
 
IGUIFont * Fonts [EGDF_COUNT]
 
IGUISpriteBank * SpriteBank
 
core::stringw Texts [EGDT_COUNT]
 
video::IVideoDriver * Driver
 
bool UseGradient
 
EGUI_SKIN_TYPE Type
 

Constructor & Destructor Documentation

◆ GUISkin()

irr::gui::GUISkin::GUISkin ( EGUI_SKIN_TYPE type,
video::IVideoDriver * driver )

References Colors, Fonts, Icons, Sizes, Texts, Type, and UseGradient.

◆ ~GUISkin()

irr::gui::GUISkin::~GUISkin ( )
virtual

destructor

References Fonts, and SpriteBank.

Member Function Documentation

◆ draw2DRectangle()

void irr::gui::GUISkin::draw2DRectangle ( IGUIElement * element,
const video::SColor & color,
const core::rect< s32 > & pos,
const core::rect< s32 > * clip = 0 )
virtual

draws a 2d rectangle.

Parameters
elementPointer to the element which wishes to draw this icon. This parameter is usually not used by IGUISkin, but can be used for example by more complex implementations to find out how to draw the part exactly.
colorColor of the rectangle to draw. The alpha component specifies how transparent the rectangle will be.
posPosition of the rectangle.
clipPointer to rectangle against which the rectangle will be clipped. If the pointer is null, no clipping will be performed.

References Driver.

◆ draw3DButtonPanePressed()

virtual void irr::gui::GUISkin::draw3DButtonPanePressed ( IGUIElement * element,
const core::rect< s32 > & rect,
const core::rect< s32 > * clip = 0 )
inlinevirtual

draws a pressed 3d button pane

Used for drawing for example buttons in pressed state. It uses the colors EGDC_3D_DARK_SHADOW, EGDC_3D_HIGH_LIGHT, EGDC_3D_SHADOW and EGDC_3D_FACE for this. See EGUI_DEFAULT_COLOR for details.

Parameters
rectDefining area where to draw.
clipClip area.
elementPointer to the element which wishes to draw this. This parameter is usually not used by ISkin, but can be used for example by more complex implementations to find out how to draw the part exactly.

References drawColored3DButtonPanePressed().

+ Here is the call graph for this function:

◆ draw3DButtonPaneStandard()

virtual void irr::gui::GUISkin::draw3DButtonPaneStandard ( IGUIElement * element,
const core::rect< s32 > & rect,
const core::rect< s32 > * clip = 0 )
inlinevirtual

draws a standard 3d button pane

Used for drawing for example buttons in normal state. It uses the colors EGDC_3D_DARK_SHADOW, EGDC_3D_HIGH_LIGHT, EGDC_3D_SHADOW and EGDC_3D_FACE for this. See EGUI_DEFAULT_COLOR for details.

Parameters
rectDefining area where to draw.
clipClip area.
elementPointer to the element which wishes to draw this. This parameter is usually not used by ISkin, but can be used for example by more complex implementations to find out how to draw the part exactly.

References drawColored3DButtonPaneStandard().

Referenced by drawColored3DMenuPane().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ draw3DMenuPane()

virtual void irr::gui::GUISkin::draw3DMenuPane ( IGUIElement * element,
const core::rect< s32 > & rect,
const core::rect< s32 > * clip = 0 )
inlinevirtual

draws a standard 3d menu pane

Used for drawing for menus and context menus. It uses the colors EGDC_3D_DARK_SHADOW, EGDC_3D_HIGH_LIGHT, EGDC_3D_SHADOW and EGDC_3D_FACE for this. See EGUI_DEFAULT_COLOR for details.

Parameters
elementPointer to the element which wishes to draw this. This parameter is usually not used by ISkin, but can be used for example by more complex implementations to find out how to draw the part exactly.
rectDefining area where to draw.
clipClip area.

References drawColored3DMenuPane().

+ Here is the call graph for this function:

◆ draw3DSunkenPane()

virtual void irr::gui::GUISkin::draw3DSunkenPane ( IGUIElement * element,
video::SColor bgcolor,
bool flat,
bool fillBackGround,
const core::rect< s32 > & rect,
const core::rect< s32 > * clip = 0 )
inlinevirtual

draws a sunken 3d pane

Used for drawing the background of edit, combo or check boxes.

Parameters
elementPointer to the element which wishes to draw this. This parameter is usually not used by ISkin, but can be used for example by more complex implementations to find out how to draw the part exactly.
bgcolorBackground color.
flatSpecifies if the sunken pane should be flat or displayed as sunken deep into the ground.
rectDefining area where to draw.
clipClip area.

References drawColored3DSunkenPane().

Referenced by drawColored3DButtonPaneStandard().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ draw3DTabBody()

virtual void irr::gui::GUISkin::draw3DTabBody ( IGUIElement * element,
bool border,
bool background,
const core::rect< s32 > & rect,
const core::rect< s32 > * clip = 0,
s32 tabHeight = -1,
EGUI_ALIGNMENT alignment = EGUIA_UPPERLEFT )
inlinevirtual

draws a tab control body

Parameters
elementPointer to the element which wishes to draw this. This parameter is usually not used by ISkin, but can be used for example by more complex implementations to find out how to draw the part exactly.
borderSpecifies if the border should be drawn.
backgroundSpecifies if the background should be drawn.
rectDefining area where to draw.
clipClip area.

References drawColored3DTabBody().

+ Here is the call graph for this function:

◆ draw3DTabButton()

virtual void irr::gui::GUISkin::draw3DTabButton ( IGUIElement * element,
bool active,
const core::rect< s32 > & rect,
const core::rect< s32 > * clip = 0,
EGUI_ALIGNMENT alignment = EGUIA_UPPERLEFT )
inlinevirtual

draws a tab button

Used for drawing for tab buttons on top of tabs.

Parameters
elementPointer to the element which wishes to draw this. This parameter is usually not used by ISkin, but can be used for example by more complex implementations to find out how to draw the part exactly.
activeSpecifies if the tab is currently active.
rectDefining area where to draw.
clipClip area.

References drawColored3DTabButton().

+ Here is the call graph for this function:

◆ draw3DToolBar()

virtual void irr::gui::GUISkin::draw3DToolBar ( IGUIElement * element,
const core::rect< s32 > & rect,
const core::rect< s32 > * clip = 0 )
inlinevirtual

draws a standard 3d tool bar

Used for drawing for toolbars and menus.

Parameters
elementPointer to the element which wishes to draw this. This parameter is usually not used by ISkin, but can be used for example by more complex implementations to find out how to draw the part exactly.
rectDefining area where to draw.
clipClip area.

References drawColored3DToolBar().

+ Here is the call graph for this function:

◆ draw3DWindowBackground()

virtual core::rect< s32 > irr::gui::GUISkin::draw3DWindowBackground ( IGUIElement * element,
bool drawTitleBar,
video::SColor titleBarColor,
const core::rect< s32 > & rect,
const core::rect< s32 > * clip,
core::rect< s32 > * checkClientArea )
inlinevirtual

draws a window background

Used for drawing the background of dialogs and windows.

Parameters
elementPointer to the element which wishes to draw this. This parameter is usually not used by ISkin, but can be used for example by more complex implementations to find out how to draw the part exactly.
titleBarColorTitle color.
drawTitleBarTrue to enable title drawing.
rectDefining area where to draw.
clipClip area.
checkClientAreaWhen set to non-null the function will not draw anything, but will instead return the clientArea which can be used for drawing by the calling window. That is the area without borders and without titlebar.
Returns
Returns rect where it would be good to draw title bar text. This will work even when checkClientArea is set to a non-null value.

References drawColored3DWindowBackground().

+ Here is the call graph for this function:

◆ drawColored3DButtonPanePressed()

void irr::gui::GUISkin::drawColored3DButtonPanePressed ( IGUIElement * element,
const core::rect< s32 > & r,
const core::rect< s32 > * clip = 0,
const video::SColor * colors = 0 )
virtual

draws a pressed 3d button pane

Used for drawing for example buttons in pressed state. It uses the colors EGDC_3D_DARK_SHADOW, EGDC_3D_HIGH_LIGHT, EGDC_3D_SHADOW and EGDC_3D_FACE for this. See EGUI_DEFAULT_COLOR for details.

Parameters
rectDefining area where to draw.
clipClip area.
elementPointer to the element which wishes to draw this. This parameter is usually not used by ISkin, but can be used for example by more complex implementations to find out how to draw the part exactly.

References Colors, Driver, and UseGradient.

Referenced by GUIButton::draw(), and draw3DButtonPanePressed().

+ Here is the caller graph for this function:

◆ drawColored3DButtonPaneStandard()

void irr::gui::GUISkin::drawColored3DButtonPaneStandard ( IGUIElement * element,
const core::rect< s32 > & r,
const core::rect< s32 > * clip = 0,
const video::SColor * colors = 0 )
virtual

draws a standard 3d button pane

Used for drawing for example buttons in normal state. It uses the colors EGDC_3D_DARK_SHADOW, EGDC_3D_HIGH_LIGHT, EGDC_3D_SHADOW and EGDC_3D_FACE for this. See EGUI_DEFAULT_COLOR for details.

Parameters
rectDefining area where to draw.
clipClip area.
elementPointer to the element which wishes to draw this. This parameter is usually not used by ISkin, but can be used for example by more complex implementations to find out how to draw the part exactly.

References Colors, draw3DSunkenPane(), Driver, Type, and UseGradient.

Referenced by GUIButton::draw(), and draw3DButtonPaneStandard().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ drawColored3DMenuPane()

void irr::gui::GUISkin::drawColored3DMenuPane ( IGUIElement * element,
const core::rect< s32 > & r,
const core::rect< s32 > * clip = 0,
const video::SColor * colors = 0 )
virtual

draws a standard 3d menu pane

Used for drawing for menus and context menus. It uses the colors EGDC_3D_DARK_SHADOW, EGDC_3D_HIGH_LIGHT, EGDC_3D_SHADOW and EGDC_3D_FACE for this. See EGUI_DEFAULT_COLOR for details.

Parameters
elementPointer to the element which wishes to draw this. This parameter is usually not used by ISkin, but can be used for example by more complex implementations to find out how to draw the part exactly.
rectDefining area where to draw.
clipClip area.

References Colors, draw3DButtonPaneStandard(), Driver, Type, and UseGradient.

Referenced by draw3DMenuPane().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ drawColored3DSunkenPane()

void irr::gui::GUISkin::drawColored3DSunkenPane ( IGUIElement * element,
video::SColor bgcolor,
bool flat,
bool fillBackGround,
const core::rect< s32 > & r,
const core::rect< s32 > * clip = 0,
const video::SColor * colors = 0 )
virtual

draws a sunken 3d pane

Used for drawing the background of edit, combo or check boxes.

Parameters
elementPointer to the element which wishes to draw this. This parameter is usually not used by ISkin, but can be used for example by more complex implementations to find out how to draw the part exactly.
bgcolorBackground color.
flatSpecifies if the sunken pane should be flat or displayed as sunken deep into the ground.
rectDefining area where to draw.
clipClip area.

References Colors, and Driver.

Referenced by draw3DSunkenPane().

+ Here is the caller graph for this function:

◆ drawColored3DTabBody()

void irr::gui::GUISkin::drawColored3DTabBody ( IGUIElement * element,
bool border,
bool background,
const core::rect< s32 > & rect,
const core::rect< s32 > * clip = 0,
s32 tabHeight = -1,
EGUI_ALIGNMENT alignment = EGUIA_UPPERLEFT,
const video::SColor * colors = 0 )
virtual

draws a tab control body

Parameters
elementPointer to the element which wishes to draw this. This parameter is usually not used by ISkin, but can be used for example by more complex implementations to find out how to draw the part exactly.
borderSpecifies if the border should be drawn.
backgroundSpecifies if the background should be drawn.
rectDefining area where to draw.
clipClip area.

References Colors, Driver, getSize(), and UseGradient.

Referenced by draw3DTabBody().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ drawColored3DTabButton()

void irr::gui::GUISkin::drawColored3DTabButton ( IGUIElement * element,
bool active,
const core::rect< s32 > & frameRect,
const core::rect< s32 > * clip = 0,
EGUI_ALIGNMENT alignment = EGUIA_UPPERLEFT,
const video::SColor * colors = 0 )
virtual

draws a tab button

Used for drawing for tab buttons on top of tabs.

Parameters
elementPointer to the element which wishes to draw this. This parameter is usually not used by ISkin, but can be used for example by more complex implementations to find out how to draw the part exactly.
activeSpecifies if the tab is currently active.
rectDefining area where to draw.
clipClip area.

References Colors, and Driver.

Referenced by draw3DTabButton().

+ Here is the caller graph for this function:

◆ drawColored3DToolBar()

void irr::gui::GUISkin::drawColored3DToolBar ( IGUIElement * element,
const core::rect< s32 > & r,
const core::rect< s32 > * clip = 0,
const video::SColor * colors = 0 )
virtual

draws a standard 3d tool bar

Used for drawing for toolbars and menus.

Parameters
elementPointer to the element which wishes to draw this. This parameter is usually not used by ISkin, but can be used for example by more complex implementations to find out how to draw the part exactly.
rectDefining area where to draw.
clipClip area.

References Colors, Driver, Type, and UseGradient.

Referenced by draw3DToolBar().

+ Here is the caller graph for this function:

◆ drawColored3DWindowBackground()

core::rect< s32 > irr::gui::GUISkin::drawColored3DWindowBackground ( IGUIElement * element,
bool drawTitleBar,
video::SColor titleBarColor,
const core::rect< s32 > & rect,
const core::rect< s32 > * clip,
core::rect< s32 > * checkClientArea,
const video::SColor * colors = 0 )
virtual

draws a window background

References Colors, Driver, getSize(), Type, and UseGradient.

Referenced by draw3DWindowBackground().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ drawColoredIcon()

void irr::gui::GUISkin::drawColoredIcon ( 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,
const video::SColor * colors = 0 )
virtual

draws an icon, usually from the skin's sprite bank

Parameters
parentPointer to the element which wishes to draw this icon. This parameter is usually not used by IGUISkin, but can be used for example by more complex implementations to find out how to draw the part exactly.
iconSpecifies the icon to be drawn.
positionThe position to draw the icon
starttimeThe time at the start of the animation
currenttimeThe present time, used to calculate the frame number
loopWhether the animation should loop or not
clipClip area.

References Colors, Icons, and SpriteBank.

Referenced by drawIcon().

+ Here is the caller graph for this function:

◆ drawIcon()

virtual void irr::gui::GUISkin::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 )
inlinevirtual

draws an icon, usually from the skin's sprite bank

Parameters
elementPointer to the element which wishes to draw this icon. This parameter is usually not used by IGUISkin, but can be used for example by more complex implementations to find out how to draw the part exactly.
iconSpecifies the icon to be drawn.
positionThe position to draw the icon
starttimeThe time at the start of the animation
currenttimeThe present time, used to calculate the frame number
loopWhether the animation should loop or not
clipClip area.

References drawColoredIcon().

+ Here is the call graph for this function:

◆ getColor()

video::SColor irr::gui::GUISkin::getColor ( EGUI_DEFAULT_COLOR color) const
virtual

returns default color

References Colors.

◆ getColors()

void irr::gui::GUISkin::getColors ( video::SColor * colors)
virtual

gets the colors

References Colors.

◆ getDefaultText()

const wchar_t * irr::gui::GUISkin::getDefaultText ( EGUI_DEFAULT_TEXT text) const
virtual

Returns a default text.

For example for Message box button captions: "OK", "Cancel", "Yes", "No" and so on.

References Texts.

◆ getFont()

IGUIFont * irr::gui::GUISkin::getFont ( EGUI_DEFAULT_FONT which = EGDF_DEFAULT) const
virtual

returns the default font

References Fonts.

◆ getIcon()

u32 irr::gui::GUISkin::getIcon ( EGUI_DEFAULT_ICON icon) const
virtual

Returns a default icon.

Returns the sprite index within the sprite bank

References Icons.

◆ getScale()

virtual float irr::gui::GUISkin::getScale ( ) const
inlinevirtual

returns display density scaling factor

References Scale.

◆ getSize()

s32 irr::gui::GUISkin::getSize ( EGUI_DEFAULT_SIZE size) const
virtual

returns size for the given size type

References Sizes.

Referenced by GUIButton::draw(), drawColored3DTabBody(), drawColored3DWindowBackground(), and GUIButton::setFromStyle().

+ Here is the caller graph for this function:

◆ getSpriteBank()

IGUISpriteBank * irr::gui::GUISkin::getSpriteBank ( ) const
virtual

gets the sprite bank used for drawing icons

gets the sprite bank stored

References SpriteBank.

◆ getType()

EGUI_SKIN_TYPE irr::gui::GUISkin::getType ( ) const
virtual

get the type of this skin

References Type.

◆ setColor()

void irr::gui::GUISkin::setColor ( EGUI_DEFAULT_COLOR which,
video::SColor newColor )
virtual

sets a default color

References Colors.

◆ setDefaultText()

void irr::gui::GUISkin::setDefaultText ( EGUI_DEFAULT_TEXT which,
const wchar_t * newText )
virtual

Sets a default text.

For example for Message box button captions: "OK", "Cancel", "Yes", "No" and so on.

References Texts.

◆ setFont()

void irr::gui::GUISkin::setFont ( IGUIFont * font,
EGUI_DEFAULT_FONT which = EGDF_DEFAULT )
virtual

sets a default font

References Fonts.

◆ setIcon()

void irr::gui::GUISkin::setIcon ( EGUI_DEFAULT_ICON icon,
u32 index )
virtual

Sets a default icon.

Sets the sprite index used for drawing icons like arrows, close buttons and ticks in checkboxes

Parameters
iconEnum specifying which icon to change
indexThe sprite index used to draw this icon

References Icons.

◆ setScale()

virtual void irr::gui::GUISkin::setScale ( float scale)
inlinevirtual

sets display density scaling factor

References Scale.

◆ setSize()

void irr::gui::GUISkin::setSize ( EGUI_DEFAULT_SIZE which,
s32 size )
virtual

sets a default size

References Sizes.

◆ setSpriteBank()

void irr::gui::GUISkin::setSpriteBank ( IGUISpriteBank * bank)
virtual

sets the sprite bank used for drawing icons

set a new sprite bank or remove one by passing 0

References SpriteBank.

Member Data Documentation

◆ Colors

◆ Driver

◆ Fonts

IGUIFont* irr::gui::GUISkin::Fonts[EGDF_COUNT]
private

Referenced by GUISkin(), ~GUISkin(), getFont(), and setFont().

◆ Icons

u32 irr::gui::GUISkin::Icons[EGDI_COUNT]
private

◆ Scale

float irr::gui::GUISkin::Scale = 1.0f
private

Referenced by getScale(), and setScale().

◆ Sizes

s32 irr::gui::GUISkin::Sizes[EGDS_COUNT]
private

Referenced by GUISkin(), getSize(), and setSize().

◆ SpriteBank

IGUISpriteBank* irr::gui::GUISkin::SpriteBank
private

◆ Texts

core::stringw irr::gui::GUISkin::Texts[EGDT_COUNT]
private

◆ Type

◆ UseGradient


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