Minor clean up.

--HG--
branch : dev
This commit is contained in:
Martí­n Lucas Golini
2017-03-21 23:34:50 -03:00
parent d1edfcf705
commit ca9950b282
17 changed files with 96 additions and 71 deletions

View File

@@ -7,28 +7,27 @@ namespace EE { namespace UI {
class EE_API UIBackground {
public:
static UIBackground * New();
UIBackground();
UIBackground( const ColorA& color, const unsigned int& corners = 0, const EE_BLEND_MODE& BlendMode = ALPHA_NORMAL );
UIBackground( const UIBackground& Back );
UIBackground( const ColorA& TopLeftColor, const ColorA& BottomLeftColor, const ColorA& BottomRightColor, const ColorA& TopRightColor, const unsigned int& corners, const EE_BLEND_MODE& BlendMode );
ColorA& getColor( const unsigned int& index = 0 );
void setColor( const ColorA& Col );
UIBackground * setColor( const ColorA& Col );
const std::vector<ColorA>& getColors();
void setColors( const ColorA& TopLeftColor, const ColorA& BottomLeftColor, const ColorA& BottomRightColor, const ColorA& TopRightColor );
UIBackground * setColors( const ColorA& TopLeftColor, const ColorA& BottomLeftColor, const ColorA& BottomRightColor, const ColorA& TopRightColor );
void setColorsTo( const ColorA& color );
UIBackground * setColorsTo( const ColorA& color );
const EE_BLEND_MODE& getBlendMode() const;
void setBlendMode( const EE_BLEND_MODE& blend );
UIBackground * setBlendMode( const EE_BLEND_MODE& blend );
const unsigned int& getCorners() const;
void setCorners( const unsigned int& corners );
UIBackground * setCorners( const unsigned int& corners );
protected:
std::vector<ColorA> mColor;

View File

@@ -7,16 +7,17 @@ namespace EE { namespace UI {
class EE_API UIBorder {
public:
static UIBorder * New();
UIBorder();
UIBorder( const UIBorder& border );
const ColorA& getColor() const;
void setColor( const ColorA& Col );
UIBorder * setColor( const ColorA& Col );
const unsigned int& getWidth() const;
void setWidth( const unsigned int& width );
UIBorder * setWidth( const unsigned int& width );
protected:
ColorA mColor;
unsigned int mWidth;

View File

@@ -12,6 +12,8 @@ namespace EE { namespace UI {
class EE_API UISkinComplex : public UISkin {
public:
static UISkinComplex * New( const std::string& name );
static std::string getSideSuffix( const Uint32& Side );
enum UISkinComplexSides {
@@ -27,7 +29,7 @@ class EE_API UISkinComplex : public UISkin {
SideCount
};
UISkinComplex( const std::string& getName );
UISkinComplex( const std::string& name );
virtual ~UISkinComplex();

View File

@@ -12,7 +12,9 @@ namespace EE { namespace UI {
class EE_API UISkinSimple : public UISkin {
public:
UISkinSimple( const std::string& getName );
static UISkinSimple * New( const std::string& name );
UISkinSimple( const std::string& name );
virtual ~UISkinSimple();
@@ -39,4 +41,3 @@ class EE_API UISkinSimple : public UISkin {
}}
#endif

View File

@@ -19,6 +19,8 @@ class EE_API UISkinState {
StateCount
};
static UISkinState * New( UISkin * skin );
UISkinState( UISkin * Skin );
~UISkinState();

View File

@@ -23,6 +23,8 @@ class EE_API UITheme : protected ResourceManager<UISkin> {
using ResourceManager<UISkin>::exists;
using ResourceManager<UISkin>::existsId;
static UITheme * New( const std::string& name, const std::string& abbr, Graphics::Font * defaultFont = NULL );
static UITheme * loadFromTextureAtlas( UITheme * tTheme, Graphics::TextureAtlas * getTextureAtlas );
static UITheme * loadFromFile( UITheme * tTheme, const std::string& Path, const std::string ImgExt = "png" );

View File

@@ -7,6 +7,8 @@ namespace EE { namespace UI {
class EE_API UIThemeDefault : public UITheme {
public:
static UIThemeDefault * New( const std::string& name, const std::string& abbr, Graphics::Font * defaultFont = NULL );
UIThemeDefault( const std::string& name, const std::string& abbr, Graphics::Font * defaultFont = NULL );
UITabWidgetStyleConfig getTabWidgetStyleConfig();