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

Public Member Functions

 PanelTabbed (bool autoResize=false)
 
void setTabWidth (float value)
 
void setTabHeight (float value)
 
virtual bool update (sf::Vector2f mp, bool pressLeft, bool pressRight, bool aboveHover)
 
virtual void draw (sf::RenderTarget &target, sf::RenderStates states)
 
void addTab (const sf::String &name, long long index=-1)
 
void addToTab (const sf::String &name, const ElementPtr &element, bool createNewTab=false)
 
void addToTab (long long index, const ElementPtr &element)
 
ButtongetTabButton (const sf::String &name)
 
const ButtongetTabButton (const sf::String &name) const
 
ButtongetTabButton (long long index)
 
const ButtongetTabButton (long long index) const
 
PanelScrolledgetTabPanel (const sf::String &name)
 
const PanelScrolledgetTabPanel (const sf::String &name) const
 
PanelScrolledgetTabPanel (long long index)
 
const PanelScrolledgetTabPanel (long long index) const
 
PanelScrolledgetTabHolder ()
 
const PanelScrolledgetTabHolder () const
 
bool removeTab (const sf::String &name)
 
bool removeTab (long long index)
 
bool activateTab (const sf::String &name)
 
bool activateTab (long long index)
 
sf::String getActiveName ()
 
void setTabGap (float value)
 
void setTabMaxAutoSize (float value)
 
virtual void setOrientation (Orientation orientation)
 
void setTabPosition (TabPosition value)
 
void refreshTabs ()
 
void setTabMode (TabMode value)
 
size_t getTabCount () const
 
void setAutoResize (bool value)
 
- Public Member Functions inherited from GenericPanelSplitted< T >
 GenericPanelSplitted (const Element *parent=nullptr)
 
virtual void updateArea () override
 
void setOrientation (Orientation orientation)
 
void setPositionType (PositionType positionType)
 
bool setSplitPosition (float splitPosition)
 
void setSplitButtonSize (float splitButtonSize)
 
T & getFirst ()
 
const T & getFirst () const
 
T & getSecond ()
 
const T & getSecond () const
 
void addToFirst (std::shared_ptr< Element > element)
 
void addToFirst (std::vector< std::shared_ptr< Element >> &elements)
 
void addToFirst (std::vector< std::shared_ptr< Element >> &&elements)
 
void addToSecond (std::shared_ptr< Element > element)
 
void addToSecond (std::vector< std::shared_ptr< Element >> &elements)
 
void addToSecond (std::vector< std::shared_ptr< Element >> &&elements)
 
void setModelFirst (const std::shared_ptr< PanelModel > &model)
 
void setModelSecond (const std::shared_ptr< PanelModel > &model)
 
void setSplitPositionLimitFirst (float value)
 
void setSplitPositionLimitSecond (float value)
 
void setResizeable (bool resizeable)
 
void setVisibleSplitButton (bool visible)
 
- Public Member Functions inherited from Element
 Element (const Element *parent=nullptr)
 
 Element (const Element &element)
 
Elementoperator= (const Element &)
 
void mainDraw (sf::RenderTarget &target, const sf::RenderStates &states=sf::RenderStates())
 
void mainUpdate (sf::RenderWindow &rw)
 
void setParent (const Element *parent)
 
const ElementgetParent () 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
 
- Public Member Functions inherited from HaveName
 HaveName (const sf::String &n=L"")
 
const sf::String & getName () const
 
void setName (const sf::String &name)
 
- Public Member Functions inherited from HaveFocus
 HaveFocus (bool focus=false)
 
bool isFocus () const
 
void setFocus (bool focus)
 
virtual void onFocusGain ()
 
virtual void onFocusLost ()
 
- Public Member Functions inherited from HaveVisible
 HaveVisible (bool v=true)
 
bool isVisible () const
 
void setVisible (bool visible)
 
- Public Member Functions inherited from HaveEnabled
 HaveEnabled (ColorProvider &colorProvider, bool e=true)
 
bool isEnabled () const
 
void setEnabled (bool enabled)
 

Additional Inherited Members

- Static Public Member Functions inherited from HaveFocus
static void unFocus ()
 
- Public Attributes inherited from HaveFocus
friend TextInputable
 
- Public Attributes inherited from GlobalTimer
friend Element
 
- Public Attributes inherited from HaveEnabled
friend Element
 
- Static Public Attributes inherited from GlobalTimer
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
 
- Protected Member Functions inherited from Element
sf::Vector2f computeRelativeViewportCenterShift () const
 
sf::FloatRect computeClipped () const
 
sf::FloatRect clipArea (const sf::FloatRect &scissors, sf::FloatRect toCut) const
 
ColorProvidergetColorProvider ()
 
- Protected Attributes inherited from GenericPanelSplitted< T >
bool resizeable
 
float splitPosition
 
float splitButtonSize
 
float splitPositionLimitFirst
 
float splitPositionLimitSecond
 
PositionType positionType
 
Orientation orientation
 
sf::FloatRect areaFirst
 
sf::FloatRect areaSecond
 
first
 
second
 
Button splitButton
 
- Protected Attributes inherited from Element
const Elementparent = 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
 
- Protected Attributes inherited from HaveName
sf::String name
 
- Protected Attributes inherited from HaveFocus
bool focus
 
- Protected Attributes inherited from HaveVisible
bool visible
 
- Protected Attributes inherited from HaveEnabled
bool enabled
 
- Static Protected Attributes inherited from HaveFocus
static HaveFocuslastFocus = nullptr
 
static float timeFocused =0.f
 

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