YAPOG  0.0.1
Yet Another Pokemon Online Game
yap::IWidget Struct Reference

Base element of the graphical user interface. More...

#include <IWidget.hpp>

Inheritance diagram for yap::IWidget:
Collaboration diagram for yap::IWidget:

List of all members.

Public Member Functions

virtual ~IWidget ()
virtual void SetDefaultColor (const sf::Color &color)=0
virtual void AddDrawable (IDrawable &drawable)=0
virtual void AddChild (IWidget &child)=0
virtual void FrontAddChild (IWidget &child)=0
virtual void RemoveChild (IWidget &child)=0
virtual IWidgetGetRoot () const =0
virtual WidgetBorderGetBorder () const =0
virtual void SetParent (IWidget &parent)=0
virtual void SetPadding (const Padding &padding)=0
virtual void SetBackground (WidgetBackground &background)=0
virtual void SetBorder (WidgetBorder &border, uint width)=0
virtual void Refresh ()=0
virtual bool IsFocusable () const =0
virtual void SetFocused (bool state)=0
virtual void SetEnable (bool enable)=0
virtual void Open ()=0
virtual void Close ()=0
virtual void SetToTop ()=0
- Public Member Functions inherited from yap::ISpatial
virtual ~ISpatial ()
virtual const Vector2GetPosition () const =0
 Gets the coordinates in pixels of the origin of this ISpatial from the global origin.
virtual const Vector2GetSize () const =0
 Gets the size in pixels of this ISpatial.
virtual const Vector2GetTopLeft () const =0
virtual const Vector2GetBottomRight () const =0
virtual const Vector2GetCenter () const =0
virtual const sf::FloatRect & GetRectangle () const =0
virtual void Move (const Vector2 &offset)=0
virtual void Scale (const Vector2 &factor)=0
virtual void SetPosition (const Vector2 &position)=0
virtual void SetSize (const Vector2 &size)=0
- Public Member Functions inherited from yap::IDrawable
virtual ~IDrawable ()
virtual void Draw (IDrawingContext &context)=0
virtual bool IsVisible () const =0
virtual void Show (bool isVisible)=0
virtual void ChangeColor (const sf::Color &color)=0
- Public Member Functions inherited from yap::IEventHandler
virtual ~IEventHandler ()
virtual bool OnEvent (const GuiEvent &guiEvent)=0
 Treats an event. Transferts the event before treating it.
virtual bool OnPriorityEvent (const GuiEvent &guiEvent)=0
 Treats an event. Treats the event before transfering it.
- Public Member Functions inherited from yap::IUpdateable
virtual ~IUpdateable ()
virtual void Update (const Time &dt)=0
 Makes the object evolve for one frame of the game.

Detailed Description

Base element of the graphical user interface.

Definition at line 17 of file IWidget.hpp.


Constructor & Destructor Documentation

virtual yap::IWidget::~IWidget ( )
inlinevirtual

Definition at line 23 of file IWidget.hpp.


Member Function Documentation

virtual void yap::IWidget::AddChild ( IWidget child)
pure virtual

Implemented in yap::BaseWidget.

virtual void yap::IWidget::AddDrawable ( IDrawable drawable)
pure virtual

Implemented in yap::BaseWidget.

virtual void yap::IWidget::Close ( )
pure virtual

Implemented in yap::BaseWidget.

Here is the caller graph for this function:

virtual void yap::IWidget::FrontAddChild ( IWidget child)
pure virtual

Implemented in yap::BaseWidget.

Here is the caller graph for this function:

virtual WidgetBorder* yap::IWidget::GetBorder ( ) const
pure virtual

Implemented in yap::BaseWidget.

virtual IWidget& yap::IWidget::GetRoot ( ) const
pure virtual

Implemented in yap::BaseWidget.

Here is the caller graph for this function:

virtual void yap::IWidget::Open ( )
pure virtual

Implemented in yap::BaseWidget, and ycl::TrainerCardWidget.

Here is the caller graph for this function:

virtual void yap::IWidget::Refresh ( )
pure virtual

Implemented in yap::BaseWidget, yap::Label, yap::LayoutBox, yap::DialogBoxWidget, yap::MultiLabelWidget, yap::TextBoxWidget, and yap::MenuItem.

Here is the caller graph for this function:

virtual void yap::IWidget::RemoveChild ( IWidget child)
pure virtual

Implemented in yap::BaseWidget, and yap::LayoutBox.

Here is the caller graph for this function:

virtual void yap::IWidget::SetBackground ( WidgetBackground background)
pure virtual

Implemented in yap::BaseWidget, and yap::Label.

virtual void yap::IWidget::SetBorder ( WidgetBorder border,
uint  width 
)
pure virtual

Implemented in yap::BaseWidget.

virtual void yap::IWidget::SetDefaultColor ( const sf::Color &  color)
pure virtual

Implemented in yap::BaseWidget, and yap::Label.

Here is the caller graph for this function:

virtual void yap::IWidget::SetEnable ( bool  enable)
pure virtual

Implemented in yap::BaseWidget.

virtual void yap::IWidget::SetFocused ( bool  state)
pure virtual

Implemented in yap::BaseWidget.

Here is the caller graph for this function:

virtual void yap::IWidget::SetPadding ( const Padding padding)
pure virtual

Implemented in yap::BaseWidget.

virtual void yap::IWidget::SetParent ( IWidget parent)
pure virtual

Implemented in yap::BaseWidget.

Here is the caller graph for this function:

virtual void yap::IWidget::SetToTop ( )
pure virtual

Implemented in yap::BaseWidget.

Here is the caller graph for this function:


The documentation for this struct was generated from the following file: