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

Public Member Functions

virtual void init (const Panel &panel) override
 
virtual sf::FloatRect customizeArea (const sf::FloatRect &area) const override
 
virtual bool scrollLimits (sf::Vector2f &topLeft, sf::Vector2f &bottomRight) const override
 
- Public Member Functions inherited from PanelModel
virtual void handleElement (const Panel &panel, Element &element, size_t order)=0
 
virtual void notifyNewElement (Element &element)
 
bool isElementChanged () const
 
- Public Member Functions inherited from HaveMargin
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)
 

Protected Member Functions

void handleScrollLimits (const sf::Vector2f &elementViewportCenterShift, const sf::FloatRect &elementArea, const sf::FloatRect &panelArea)
 
float marginSize (MarginMode mode) const
 
float marginSize (MarginMode mode, sf::FloatRect area) const
 

Protected Attributes

sf::Vector2f topLeft
 
sf::Vector2f bottomRight
 
bool enableScrollLimits
 
- Protected Attributes inherited from PanelModel
bool elementChanged
 
- Protected Attributes inherited from HaveMargin
float margin
 
MarginUnit marginUnit
 
MarginMode marginMode
 

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