Simple SFML GUI  0.2a
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
HaveBackground Class Reference
Inheritance diagram for HaveBackground:
Inheritance graph
[legend]

Public Member Functions

 HaveBackground (ColorProvider &colorProvider)
 
void setBackgroundTexture (const std::shared_ptr< sf::Texture > &backgroundTexture)
 
void setBackgroundTextureRect (const sf::IntRect &value)
 
void setGradientType (GradientType gradientType)
 
void updateGradient (sf::FloatRect &area)
 
void setGradientPoints (const ColorVector &evenlyColors)
 
void setGradientPoints (const GradientVector &gradientPoints)
 
void setGradientModifier (const GradientModifier &gradientModifier)
 
void setBackgroundSymbol (const sf::VertexArray &value)
 
void setBackgroundSymbolTransform (const sf::Transform &value)
 
void setBackgroundSymbolShift (const sf::Vector2f &value)
 
sf::Vector2f getBackgroundSymbolShift () const
 
void setBackgroundSymbolStrech (bool value)
 
void setBackgroundSymbolColor (sf::Color col)
 
void mulBackgroundSymbolColor (sf::Color col)
 
void initDefaultButtonBackgroundStyle (ColorProvider &colorProvider)
 
bool isBackroundTextureRectActive () const
 

Static Public Member Functions

static void setDefaultBackgroundColor (sf::Color defaultBackgroundColor)
 
static sf::Color sum (sf::Color col, sf::Vector3i mod)
 

Public Attributes

friend Element
 

Protected Member Functions

void drawBackgroundSymbol (sf::FloatRect area, sf::RenderTarget &target, const sf::RenderStates &states=sf::RenderStates())
 

Protected Attributes

std::shared_ptr< sf::Texture > backgroundTexture
 
sf::VertexArray backgroundSymbol
 
sf::VertexArray gradient
 
GradientVector gradientPoints
 
GradientType gradientType
 
GradientModifier gradientModifier
 
sf::FloatRect lastGradientUpdateArea
 
sf::IntRect backgroundTextureRect
 
sf::Transform backgroundSymbolTransform
 
sf::Vector2f backgroundSymbolShift
 
bool backgroundSymbolStrech
 

Static Protected Attributes

static sf::Color defaultBackgroundColor = {0, 0, 0, 0}
 
static std::shared_ptr< sf::Texture > defaultTexture = nullptr
 

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