Minetest 5.9.0-dev
 
Loading...
Searching...
No Matches
guiSkin.h File Reference
#include "IGUISkin.h"
#include "irrString.h"
#include <string>
#include "ITexture.h"
+ Include dependency graph for guiSkin.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  irr::gui::GUISkin
 

Namespaces

namespace  irr
 
namespace  irr::video
 
namespace  irr::gui
 

Macros

#define set3DSkinColors(skin, button_color)
 
#define getElementSkinColor(color)
 
#define setElementSkinColor(which, newColor, shading)
 

Functions

void irr::setShading (video::SColor &color, f32 s)
 Sets the shading.
 

Macro Definition Documentation

◆ getElementSkinColor

#define getElementSkinColor (   color)
Value:
{ \
if (!Colors) \
{ \
IGUISkin* skin = Environment->getSkin(); \
if (skin) \
return skin->getColor(color); \
} \
return Colors[color]; \
}
Definition: environment.h:49

◆ set3DSkinColors

#define set3DSkinColors (   skin,
  button_color 
)
Value:
{ \
skin->setColor(EGDC_3D_FACE, button_color); \
skin->setColor(EGDC_3D_DARK_SHADOW, button_color, 0.25f); \
skin->setColor(EGDC_3D_SHADOW, button_color, 0.5f); \
skin->setColor(EGDC_3D_LIGHT, button_color); \
skin->setColor(EGDC_3D_HIGH_LIGHT, button_color, 1.5f); \
}

◆ setElementSkinColor

#define setElementSkinColor (   which,
  newColor,
  shading 
)
Value:
{ \
if (!Colors) \
{ \
Colors = new video::SColor[EGDC_COUNT]; \
GUISkin* skin = (GUISkin *)Environment->getSkin(); \
if (skin) \
skin->getColors(Colors); \
} \
Colors[which] = newColor; \
setShading(Colors[which],shading); \
}