|
virtual void | draw (sf::RenderTarget &target, sf::RenderStates states) override |
|
virtual void | updateInput (sf::Uint32 code) override |
|
virtual sf::Vector2f | getSizeReal () const |
|
const std::function< bool(sf::String &)> & | getFilter () const |
|
void | setFilter (const std::function< bool(sf::String &)> &filter) |
|
void | moveCursor (int n) |
|
void | setCursor (int n) |
|
int | getCursor () const |
|
virtual void | setSize (sf::Vector2f) override |
|
virtual void | setFontSize (unsigned int fontSize) override |
|
virtual void | setMargin (float margin) override |
|
virtual void | setText (const sf::String &text) override |
|
float | getRealHeight () const |
|
virtual bool | setPressed (bool pressed) |
|
virtual bool | setPressedAlt (bool pressed) |
|
sf::Keyboard::Key | getHotKey () const |
|
void | setHotKey (sf::Keyboard::Key hotKey) |
|
virtual bool | update (sf::Vector2f mp=sf::Vector2f(0.f, 0.f), bool pressLeft=false, bool pressRight=false, bool aboveHover=false) |
|
void | setStickyPress (bool stickyPress) |
|
void | setIgnoreAbove (bool value) |
|
void | setIgnoreDialogs (bool value) |
|
void | setIgnoreTextInputable (bool value) |
|
virtual void | onFocusGain () |
|
virtual void | onFocusLost () |
|
| Element (const Element *parent=nullptr) |
|
| Element (const Element &element) |
|
Element & | operator= (const Element &) |
|
void | mainDraw (sf::RenderTarget &target, const sf::RenderStates &states=sf::RenderStates()) |
|
void | mainUpdate (sf::RenderWindow &rw) |
|
void | setParent (const Element *parent) |
|
const Element * | getParent () const |
|
virtual void | updateArea () |
|
virtual bool | setRelativeViewport (sf::RenderTarget &target, const sf::FloatRect *area=nullptr) const |
|
bool | isMaximized () const |
|
void | setMaximized (bool maximized) |
|
void | setMaximizationMode (MaximizationMode value) |
|
sf::Vector2f | getPosition () const |
|
sf::Vector2f | getSize () const |
|
virtual void | setPosition (sf::Vector2f) |
|
void | move (sf::Vector2f) |
|
sf::FloatRect & | getArea () |
|
const sf::FloatRect & | getArea () const |
|
void | fitToWindow (const sf::RenderWindow &rw) |
|
void | setArea (const sf::FloatRect &area) |
|
const sf::FloatRect & | getRelativeArea () const |
|
sf::Vector2f | getRelativeViewportCenterShift () const |
|
sf::Vector2f | getViewportCenterShift () const |
|
void | setViewportCenterShift (const sf::Vector2f &value) |
|
sf::String | getParentName () const |
|
sf::String | getTypeName () const |
|
sf::FloatRect | getClippedArea () const |
|
sf::FloatRect | computeRelativeArea () const |
|
| HaveName (const sf::String &n=L"") |
|
const sf::String & | getName () const |
|
void | setName (const sf::String &name) |
|
| HaveFocus (bool focus=false) |
|
bool | isFocus () const |
|
void | setFocus (bool focus) |
|
| HaveVisible (bool v=true) |
|
bool | isVisible () const |
|
void | setVisible (bool visible) |
|
virtual void | onSetAction (const sf::String &type) |
|
virtual void | setAction (function_type &&action, const sf::String &type=ActionType::main) |
|
virtual void | setAction (function_type &action, const sf::String &type=ActionType::main) |
|
virtual void | setAction (std::function< void()> &&action, const sf::String &type=ActionType::main) |
|
virtual void | setAction (std::function< void()> &action, const sf::String &type=ActionType::main) |
|
virtual void | doAction (const sf::String &type=ActionType::main) |
|
| HaveHover (ColorProvider &colorProvider, bool h=false) |
|
bool | isHover () const |
|
void | setHover (bool hover) |
|
virtual bool | updateHover (const sf::Vector2f &pointer, const sf::FloatRect &clippedArea) |
|
void | setTooltip (const sf::String &value) |
|
| HavePressed (ColorProvider &colorProvider, bool p=false, bool pa=false) |
|
virtual bool | isPressed () const |
|
virtual bool | isPressedAlt () const |
|
| HaveSelected (ColorProvider &colorProvider) |
|
bool | isSelected () const |
|
void | setSelected (bool value) |
|
const sf::String & | getText () const |
|
float | getMargin () const |
|
void | setMarginUnit (MarginUnit marginUnit) |
|
float | relativeMargin (sf::FloatRect area) const |
|
MarginMode | getMarginMode () const |
|
void | setMarginMode (MarginMode value) |
|
| HaveEnabled (ColorProvider &colorProvider, bool e=true) |
|
bool | isEnabled () const |
|
void | setEnabled (bool enabled) |
|
| HaveOutline (ColorProvider &colorProvider) |
|
void | setOutlineSize (float outlineSize) |
|
| HaveFont (ColorProvider &colorProvider) |
|
| HaveFont (ColorProvider &colorProvider, const HaveFont ©) |
|
virtual void | setFont (const sf::String &name) |
|
virtual void | setFont (const std::shared_ptr< sf::Font > &font) |
|
std::shared_ptr< sf::Font > | getFont () const |
|
size_t | getFontSize () const |
|
virtual void | setFontOutlineSize (float fontOutlineSize) |
|
sf::Uint32 | getFontStyle () const |
|
virtual void | setFontStyle (sf::Uint32 fontStyle) |
|
virtual void | fontChangeEvent () |
|
| 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 |
|
| SetColorAccess (ColorProvider &colorProvider) |
|
virtual bool | setColorFrom (const SetColorAccess &colorAccess) |
|
virtual bool | setColor (ColorId::Type colorId, StateId::Type stateId, sf::Color newColor) |
|
virtual bool | setColorEnabled (ColorId::Type colorId, StateId::Type stateId, bool enabled) |
|
| GetColorAccess (ColorProvider &colorProvider) |
|
virtual bool | colorDeduce (const ColorRef &colorRef) const |
|
virtual bool | getColor (ColorId::Type colorId, StateId::Type stateId, sf::Color &result) const |
|
|
using | function_type = typename HaveActionHelper< TextInput & >::function_type |
|
friend | TextInputable |
|
friend | Element |
|
friend | Element |
|
friend | Element |
|
friend | Element |
|
friend | Element |
|
friend | Element |
|
friend | FontManager |
|
friend | Element |
|
static const sf::Clock & | dclock = GlobalTimer::drawClock |
|
static const sf::Clock & | rclock = GlobalTimer::runtimeClock |
|
static const float & | dtime = GlobalTimer::drawTime |
|
static const float & | rtime = GlobalTimer::runTime |
|
static const float & | fps = GlobalTimer::framesPerSecond |
|
sf::Vector2f | computeRelativeViewportCenterShift () const |
|
sf::FloatRect | computeClipped () const |
|
sf::FloatRect | clipArea (const sf::FloatRect &scissors, sf::FloatRect toCut) const |
|
ColorProvider & | getColorProvider () |
|
bool | anyDialogExist () |
|
void | initDefaultButtonOutlineStyle (ColorProvider &colorProvider) |
|
sf::FloatRect | withoutOutlineArea (const sf::FloatRect &) |
|
void | drawBackgroundSymbol (sf::FloatRect area, sf::RenderTarget &target, const sf::RenderStates &states=sf::RenderStates()) |
|
| HaveColorProviderReference (const HaveColorProviderReference &)=delete |
|
HaveColorProviderReference & | operator= (const HaveColorProviderReference &) |
|
| HaveColorProviderReference (ColorProvider &colorProvider) |
|
static void | releaseAllFonts () |
|
sf::Keyboard::Key | hotKey |
|
bool | hotPress |
|
bool | stickyPress |
|
bool | ignoreAbove |
|
bool | ignoreDialogs |
|
bool | ignoreTextInputable |
|
const Element * | parent = nullptr |
|
sf::FloatRect | area |
|
sf::FloatRect | lastArea |
|
sf::FloatRect | relativeParentArea |
|
sf::FloatRect | relativeArea |
|
sf::FloatRect | clippedArea |
|
sf::Vector2f | viewportCenterShift |
|
sf::Vector2f | relativeViewportCenterShift |
|
MaximizationMode | maximizationMode = MaximizationMode::Both |
|
bool | relativeParentSizeChanged = false |
|
bool | relativeParentWidthChanged = false |
|
bool | relativeParentHeightChanged = false |
|
bool | areaChanged = false |
|
bool | maximized = false |
|
sf::String | name |
|
bool | focus |
|
bool | visible |
|
std::map< sf::String, function_type > | action |
|
std::map< sf::String, std::function< void()> > | actionVoid |
|
sf::String | mainActionType |
|
bool | hover |
|
sf::String | tooltip |
|
bool | pressed = false |
|
bool | lastPressLeft = false |
|
bool | pressedAlt = false |
|
bool | lastPressRight = false |
|
friend | Element |
|
bool | selected |
|
sf::String | text |
|
float | margin |
|
MarginUnit | marginUnit |
|
MarginMode | marginMode |
|
bool | enabled |
|
float | outlineSize |
|
sf::Uint32 | fontStyle |
|
unsigned int | fontSize |
|
float | fontOutlineSize |
|
std::shared_ptr< sf::Font > | font |
|
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 |
|
ColorProvider & | colorProviderReference |
|
static HaveFocus * | lastFocus = nullptr |
|
static float | timeFocused =0.f |
|
static std::set< HaveFont * > | haveFontSet |
|
static sf::Mutex | haveFontSetMutex |
|
static sf::Color | defaultBackgroundColor = {0, 0, 0, 0} |
|
static std::shared_ptr< sf::Texture > | defaultTexture = nullptr |
|