|
| DialogInput (const sf::String &info="", const sf::String &name="") |
|
std::shared_ptr< Button > | getButtonCancel () |
|
std::shared_ptr< Button > | getButtonOk () |
|
std::shared_ptr< TextInput > | getInput () |
|
std::shared_ptr< EmptySpace > | getGap () |
|
void | setSubmitAction (const std::function< bool(DialogInput &)> &value) |
|
| Dialog (const sf::String &info="", const sf::String &name="") |
|
virtual bool | update (sf::Vector2f mp, bool pressLeft, bool pressRight, bool aboveHover) override |
|
virtual void | updateArea () override |
|
TextLabelPtr & | getLabel () |
|
void | addButton (std::shared_ptr< Button > button) |
|
void | close () |
|
void | unimplementedButton (const Button &) |
|
void | setButtonShift (float value) |
|
void | setButtonShiftType (PositionType value) |
|
PanelSplittedScrolledPtr | getPanel () const |
|
void | setDynamicButtonSize (bool value) |
|
virtual void | draw (sf::RenderTarget &target, sf::RenderStates states) |
|
bool | addScroll (float delta, Orientation type) |
|
void | centerScroll (sf::Vector2f position) |
|
void | setVerticalScrollVelocityMultiplier (float value) |
|
void | setHorizontalScrollVelocityMultiplier (float value) |
|
void | setVerticalScrollBrakeMultiplier (float value) |
|
void | setHorizontalScrollBrakeMultiplier (float value) |
|
void | setScrollType (ScrollType value) |
|
void | setScrollEnable (ScrollEnable value) |
|
void | setScrollButtonThick (float value) |
|
void | setScrollButtonSize (float value) |
|
std::pair< float, float > | getVerticalScrollLimits () const |
|
std::pair< float, float > | getHorizontalScrollLimits () const |
|
sf::Vector2f | getScrollSize () const |
|
const Button & | getVerticalScrollButton () const |
|
const Button & | getHorizontalScrollButton () const |
|
const Panel & | getVerticalScrollPanel () const |
|
const Panel & | getHorizontalScrollPanel () const |
|
| Panel (const Element *parent=nullptr) |
|
const std::shared_ptr< PanelModel > & | getModel () const |
|
void | setModel (const std::shared_ptr< PanelModel > &model) |
|
void | add (const ElementPtr &element, const Element *stop) |
| Instant adding element after stop ptr.
|
|
void | add (const ElementPtr &element) |
| Queued adding element to end.
|
|
void | add (const std::vector< ElementPtr > &elements) |
| Queued adding vector of elements to end.
|
|
void | add (const std::vector< ElementPtr > &&elements) |
| Queued adding vector of elements to end.
|
|
const ElementPtr | get (const sf::String &name) |
|
const ElementPtr | getFront () |
|
const std::vector< ElementPtr > & | getElements () |
|
const std::vector< ElementPtr > & | getElements () const |
|
bool | remove (const Element *ptr) |
| Queued removing by ptr.
|
|
bool | remove (int index) |
| Queued removing by order index.
|
|
bool | removeFirst (const sf::String &name) |
| Queued removing by name.
|
|
bool | removeAll () |
| Queued removing all elements.
|
|
virtual void | refreshModel (bool *wasTwice=nullptr) |
|
virtual bool | setPressed (bool pressed) |
|
virtual bool | setPressedAlt (bool pressed) |
|
sf::Keyboard::Key | getHotKey () const |
|
void | setHotKey (sf::Keyboard::Key hotKey) |
|
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 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 | setSize (sf::Vector2f) |
|
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) |
|
| HaveEnabled (ColorProvider &colorProvider, bool e=true) |
|
bool | isEnabled () const |
|
void | setEnabled (bool enabled) |
|
| 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 |
|
virtual void | setMargin (float margin) |
|
float | getMargin () const |
|
void | setMarginUnit (MarginUnit marginUnit) |
|
float | relativeMargin (sf::FloatRect area) const |
|
MarginMode | getMarginMode () const |
|
void | setMarginMode (MarginMode value) |
|
|
std::shared_ptr< Button > | buttonOk |
|
std::shared_ptr< Button > | buttonCancel |
|
std::shared_ptr< TextInput > | input |
|
std::shared_ptr< EmptySpace > | gap |
|
std::function< bool(DialogInput &)> | submitAction |
|
PanelSplittedScrolledPtr | ss |
|
TextLabelPtr | label |
|
PanelModelLinePtr | centerLine1 |
|
PanelModelLinePtr | centerLine2 |
|
float | buttonShift |
|
float | lastButtonHeight |
|
bool | dynamicButtonSize |
|
PositionType | buttonShiftType |
|
Button | verticalScrollButton |
|
Button | horizontalScrollButton |
|
Panel | verticalScrollPanel |
|
Panel | horizontalScrollPanel |
|
sf::Vector2f | scroll |
|
sf::Vector2f | scrollSize |
|
sf::Vector2f | scrollVelocity |
|
sf::FloatRect | insideRelativeArea |
|
std::pair< float, float > | verticalLimits |
|
std::pair< float, float > | horizontalLimits |
|
float | scrollVisibleTimer |
|
float | verticalScrollWakeTimer |
|
float | horizontalScrollWakeTimer |
|
float | verticalScrollVelocityMultiplier |
|
float | horizontalScrollVelocityMultiplier |
|
float | verticalScrollBrakeMultiplier |
|
float | horizontalScrollBrakeMultiplier |
|
float | buttonSize |
|
float | buttonThick |
|
ScrollType | scrollType |
|
ScrollEnable | scrollEnable |
|
const float | scrollSizeThreshold = 1.5f |
|
std::vector< std::shared_ptr< Element > > | elements |
|
std::vector< std::pair< bool, std::shared_ptr< Element > > > | elementsQueue |
|
std::shared_ptr< PanelModel > | model |
|
bool | updateRenderTexture |
|
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 |
|
bool | enabled |
|
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 |
|
float | margin |
|
MarginUnit | marginUnit |
|
MarginMode | marginMode |
|