Simple SFML GUI  0.2a
Metody publiczne | Metody chronione | Atrybuty chronione | Lista wszystkich składowych
Dokumentacja klasy Panel
Diagram dziedziczenia dla Panel
Inheritance graph
[legenda]
Diagram współpracy dla Panel:
Collaboration graph
[legenda]

Metody publiczne

 Panel (const Element *parent=nullptr)
 
virtual void draw (sf::RenderTarget &target, sf::RenderStates states) override
 
virtual bool update (sf::Vector2f mp, bool pressLeft, bool pressRight, bool aboveHover) override
 
virtual void updateArea () override
 
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)
 
- Metody publiczne dziedziczone z HaveContextMenu
void setMenu (const std::shared_ptr< Element > &menu)
 
virtual void draw (sf::RenderTarget &target, const sf::RenderStates &states) const
 
void setMenuActive (bool menuActive)
 
- Metody publiczne dziedziczone z Pressable< const Element &>
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)
 
- Metody publiczne dziedziczone z FocusAction< const Element & >
virtual void onFocusGain ()
 
virtual void onFocusLost ()
 
- Metody publiczne dziedziczone z 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
 
- Metody publiczne dziedziczone z HaveName
 HaveName (const sf::String &n=L"")
 
const sf::String & getName () const
 
void setName (const sf::String &name)
 
- Metody publiczne dziedziczone z HaveFocus
 HaveFocus (bool focus=false)
 
bool isFocus () const
 
void setFocus (bool focus)
 
- Metody publiczne dziedziczone z HaveVisible
 HaveVisible (bool v=true)
 
bool isVisible () const
 
void setVisible (bool visible)
 
- Metody publiczne dziedziczone z HaveAction< const Element & >
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)
 
- Metody publiczne dziedziczone z HaveHover
 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)
 
- Metody publiczne dziedziczone z HavePressed
 HavePressed (ColorProvider &colorProvider, bool p=false, bool pa=false)
 
virtual bool isPressed () const
 
virtual bool isPressedAlt () const
 
- Metody publiczne dziedziczone z HaveSelected
 HaveSelected (ColorProvider &colorProvider)
 
bool isSelected () const
 
void setSelected (bool value)
 
- Metody publiczne dziedziczone z HaveEnabled
 HaveEnabled (ColorProvider &colorProvider, bool e=true)
 
bool isEnabled () const
 
void setEnabled (bool enabled)
 
- Metody publiczne dziedziczone z HaveBackground
 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
 
- Metody publiczne dziedziczone z SetColorAccess
 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)
 
- Metody publiczne dziedziczone z GetColorAccess
 GetColorAccess (ColorProvider &colorProvider)
 
virtual bool colorDeduce (const ColorRef &colorRef) const
 
virtual bool getColor (ColorId::Type colorId, StateId::Type stateId, sf::Color &result) const
 

Metody chronione

void refreshModelLoop ()
 
void updateElements ()
 
- Metody chronione dziedziczone z Element
sf::Vector2f computeRelativeViewportCenterShift () const
 
sf::FloatRect computeClipped () const
 
sf::FloatRect clipArea (const sf::FloatRect &scissors, sf::FloatRect toCut) const
 
ColorProvidergetColorProvider ()
 
- Metody chronione dziedziczone z HaveGUIManagerInfo
bool anyDialogExist ()
 
- Metody chronione dziedziczone z HaveBackground
void drawBackgroundSymbol (sf::FloatRect area, sf::RenderTarget &target, const sf::RenderStates &states=sf::RenderStates())
 
- Metody chronione dziedziczone z HaveColorProviderReference
 HaveColorProviderReference (const HaveColorProviderReference &)=delete
 
HaveColorProviderReferenceoperator= (const HaveColorProviderReference &)
 
 HaveColorProviderReference (ColorProvider &colorProvider)
 

Atrybuty chronione

std::vector< std::shared_ptr< Element > > elements
 
std::vector< std::pair< bool, std::shared_ptr< Element > > > elementsQueue
 
std::shared_ptr< PanelModelmodel
 
bool updateRenderTexture
 
- Atrybuty chronione dziedziczone z Pressable< const Element &>
sf::Keyboard::Key hotKey
 
bool hotPress
 
bool stickyPress
 
bool ignoreAbove
 
bool ignoreDialogs
 
bool ignoreTextInputable
 
- Atrybuty chronione dziedziczone z 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
 
- Atrybuty chronione dziedziczone z HaveName
sf::String name
 
- Atrybuty chronione dziedziczone z HaveFocus
bool focus
 
- Atrybuty chronione dziedziczone z HaveVisible
bool visible
 
- Atrybuty chronione dziedziczone z HaveAction< const Element & >
std::map< sf::String, function_type > action
 
std::map< sf::String, std::function< void()> > actionVoid
 
sf::String mainActionType
 
- Atrybuty chronione dziedziczone z HaveHover
bool hover
 
sf::String tooltip
 
- Atrybuty chronione dziedziczone z HavePressed
bool pressed = false
 
bool lastPressLeft = false
 
bool pressedAlt = false
 
bool lastPressRight = false
 
- Atrybuty chronione dziedziczone z HaveSelected
friend Element
 
bool selected
 
- Atrybuty chronione dziedziczone z HaveEnabled
bool enabled
 
- Atrybuty chronione dziedziczone z HaveBackground
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
 
- Atrybuty chronione dziedziczone z HaveColorProviderReference
ColorProvidercolorProviderReference
 

Dodatkowe Dziedziczone Składowe

- Typy publiczne dziedziczone z HaveAction< const Element & >
using function_type = typename HaveActionHelper< const Element & >::function_type
 
- Statyczne metody publiczne dziedziczone z HaveContextMenu
static HaveContextMenugetLastActiveContextMenu ()
 
- Statyczne metody publiczne dziedziczone z HaveFocus
static void unFocus ()
 
- Statyczne metody publiczne dziedziczone z HaveBackground
static void setDefaultBackgroundColor (sf::Color defaultBackgroundColor)
 
static sf::Color sum (sf::Color col, sf::Vector3i mod)
 
- Atrybuty publiczne dziedziczone z HaveFocus
friend TextInputable
 
- Atrybuty publiczne dziedziczone z GlobalTimer
friend Element
 
- Atrybuty publiczne dziedziczone z HaveHover
friend Element
 
- Atrybuty publiczne dziedziczone z HavePressed
friend Element
 
- Atrybuty publiczne dziedziczone z HaveEnabled
friend Element
 
- Atrybuty publiczne dziedziczone z HaveBackground
friend Element
 
- Statyczne atrybuty publiczne dziedziczone z 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
 
- Statyczne atrybuty chronione dziedziczone z HaveFocus
static HaveFocuslastFocus = nullptr
 
static float timeFocused =0.f
 
- Statyczne atrybuty chronione dziedziczone z HaveBackground
static sf::Color defaultBackgroundColor = {0, 0, 0, 0}
 
static std::shared_ptr< sf::Texture > defaultTexture = nullptr
 

Opis szczegółowy

Przykłady:
DemoApp i SimpleTemplate.cpp.

Dokumentacja dla tej klasy została wygenerowana z plików: