![]() |
YAPOG
0.0.1
Yet Another Pokemon Online Game
|
#include <DialogBoxWidget.hpp>
Public Member Functions | |
| DialogBoxWidget () | |
| DialogBoxWidget (const String &content) | |
| virtual | ~DialogBoxWidget () |
| virtual String | GetContent () const |
| virtual void | AddText (const String &contentArg) |
| virtual bool | IsFocusable () const |
| void | SetShowText (bool state) |
| void | SkipText () |
Public Member Functions inherited from yap::BaseWidget | |
| BaseWidget () | |
| virtual | ~BaseWidget () |
| virtual void | AddDrawable (IDrawable &drawable) |
| virtual void | AddChild (IWidget &child) |
| virtual void | FrontAddChild (IWidget &child) |
| virtual void | RemoveChild (IWidget &child) |
| virtual IWidget & | GetRoot () const |
| virtual void | SetDefaultColor (const sf::Color &color) |
| virtual void | SetParent (IWidget &parent) |
| virtual void | SetPadding (const Padding &padding) |
| virtual void | SetBackground (WidgetBackground &background) |
| virtual void | SetBorder (WidgetBorder &border, uint width) |
| virtual void | SetBorder (WidgetBorder &border) |
| virtual void | UnsetBackground () |
| virtual void | UnsetBorder () |
| Vector2 | GetUserSize () const |
| virtual void | SetToTop () |
| virtual void | SetEnable (bool enable) |
| virtual void | Open () |
| virtual void | Close () |
| virtual const Vector2 & | GetPosition () const |
| Gets the coordinates in pixels of the origin of this ISpatial from the global origin. | |
| virtual const Vector2 & | GetSize () const |
| Gets the size in pixels of this ISpatial. | |
| virtual const Vector2 & | GetTopLeft () const |
| virtual const Vector2 & | GetBottomRight () const |
| virtual const Vector2 & | GetCenter () const |
| virtual const sf::FloatRect & | GetRectangle () const |
| virtual WidgetBorder * | GetBorder () const |
| virtual void | Move (const Vector2 &offset) |
| virtual void | Scale (const Vector2 &factor) |
| virtual void | SetPosition (const Vector2 &position) |
| virtual void | SetSize (const Vector2 &size) |
| virtual void | Draw (IDrawingContext &context) |
| virtual bool | IsVisible () const |
| virtual void | Show (bool isVisible) |
| virtual void | ChangeColor (const sf::Color &color) |
| virtual bool | OnEvent (const GuiEvent &guiEvent) |
| Treats an event. Transferts the event before treating it. | |
| virtual bool | OnPriorityEvent (const GuiEvent &guiEvent) |
| Treats an event. Treats the event before transfering it. | |
| virtual void | Update (const Time &dt) |
| Makes the object evolve for one frame of the game. | |
Public Member Functions inherited from yap::IWidget | |
| virtual | ~IWidget () |
Public Member Functions inherited from yap::ISpatial | |
| virtual | ~ISpatial () |
Public Member Functions inherited from yap::IDrawable | |
| virtual | ~IDrawable () |
Public Member Functions inherited from yap::IEventHandler | |
| virtual | ~IEventHandler () |
Public Member Functions inherited from yap::IUpdateable | |
| virtual | ~IUpdateable () |
Public Attributes | |
| Event< const BaseWidget &, const EmptyEventArgs & > | OnTextChanged |
Public Attributes inherited from yap::BaseWidget | |
| Event< const BaseWidget &, const EventArgs & > | OnMoved |
| Event< const BaseWidget &, const EventArgs & > | OnScaled |
| Event< const BaseWidget &, const EventArgs & > | OnSizeSet |
| Event< const BaseWidget &, const EventArgsDraw & > | OnDraw |
| Event< const BaseWidget &, const EventArgsColor & > | OnColorChanged |
| Event< const BaseWidget &, const EventArgsIWidget & > | OnChildAdded |
Protected Member Functions | |
| void | Refresh () |
| virtual bool | HandleOnEvent (const GuiEvent &guiEvent) |
| virtual Vector2 | HandleGetSize () const |
| virtual void | HandleMove (const Vector2 &offset) |
| virtual void | HandleScale (const Vector2 &factor) |
| virtual void | HandleDraw (IDrawingContext &context) |
| virtual void | HandleShow (bool isVisible) |
| virtual void | HandleChangeColor (const sf::Color &color) |
| virtual void | HandleUpdate (const Time &dt) |
Protected Member Functions inherited from yap::BaseWidget | |
| void | RefreshBorder () |
| virtual void | SetFocused (bool state) |
| virtual bool | HandleOnPriorityEvent (const GuiEvent &guiEvent) |
Private Member Functions | |
| DISALLOW_COPY (DialogBoxWidget) | |
Private Attributes | |
| String | content_ |
| collection::Array< Label * > | labels_ |
| uint | currentText_ |
| UpdateableTimer | textSpeed_ |
| bool | showText_ |
Additional Inherited Members | |
Protected Attributes inherited from yap::BaseWidget | |
| SpatialInfo | spatialInfo_ |
| bool | isVisible_ |
| bool | isEnabled_ |
| sf::Color | color_ |
| collection::List< IDrawable * > | drawables_ |
| collection::List< IEventHandler * > | eventHandlers_ |
| collection::List< IWidget * > | childen_ |
| collection::List< IUpdateable * > | updatables_ |
| IWidget * | root_ |
| IWidget * | parent_ |
| Padding | padding_ |
| WidgetBackground * | background_ |
| WidgetBorder * | border_ |
| Vector2 | userSize_ |
| bool | isExtensible_ |
| bool | isFocused_ |
| sf::Color | userColor_ |
| bool | isChangeColorCall_ |
Static Protected Attributes inherited from yap::BaseWidget | |
| static const bool | DEFAULT_VISIBLE_STATE = true |
| static const bool | DEFAULT_ENABLED_STATE = true |
| static const sf::Color | DEFAULT_COLOR = sf::Color::Black |
Definition at line 14 of file DialogBoxWidget.hpp.
| yap::DialogBoxWidget::DialogBoxWidget | ( | ) |
Definition at line 11 of file DialogBoxWidget.cpp.
| yap::DialogBoxWidget::DialogBoxWidget | ( | const String & | content | ) |
|
virtual |
Definition at line 25 of file DialogBoxWidget.cpp.
|
virtual |
Definition at line 113 of file DialogBoxWidget.cpp.
|
private |
|
virtual |
Definition at line 93 of file DialogBoxWidget.cpp.
|
protectedvirtual |
Reimplemented from yap::BaseWidget.
Definition at line 87 of file DialogBoxWidget.cpp.
|
protectedvirtual |
Reimplemented from yap::BaseWidget.
Definition at line 56 of file DialogBoxWidget.cpp.
|
protectedvirtual |
Reimplemented from yap::BaseWidget.
Definition at line 50 of file DialogBoxWidget.cpp.
|
protectedvirtual |
Reimplemented from yap::BaseWidget.
Definition at line 69 of file DialogBoxWidget.cpp.
|
protectedvirtual |
Reimplemented from yap::BaseWidget.
Definition at line 98 of file DialogBoxWidget.cpp.
|
protectedvirtual |
Reimplemented from yap::BaseWidget.
Definition at line 75 of file DialogBoxWidget.cpp.
|
protectedvirtual |
Reimplemented from yap::BaseWidget.
Definition at line 63 of file DialogBoxWidget.cpp.
|
protectedvirtual |
Reimplemented from yap::BaseWidget.
Definition at line 81 of file DialogBoxWidget.cpp.
|
virtual |
Implements yap::BaseWidget.
Definition at line 34 of file DialogBoxWidget.cpp.
|
protectedvirtual |
Reimplemented from yap::BaseWidget.
Definition at line 39 of file DialogBoxWidget.cpp.
| void yap::DialogBoxWidget::SetShowText | ( | bool | state | ) |
| void yap::DialogBoxWidget::SkipText | ( | ) |
Definition at line 150 of file DialogBoxWidget.cpp.
|
private |
Definition at line 47 of file DialogBoxWidget.hpp.
|
private |
Definition at line 49 of file DialogBoxWidget.hpp.
|
private |
Definition at line 48 of file DialogBoxWidget.hpp.
| Event<const BaseWidget&, const EmptyEventArgs&> yap::DialogBoxWidget::OnTextChanged |
Definition at line 19 of file DialogBoxWidget.hpp.
|
private |
Definition at line 51 of file DialogBoxWidget.hpp.
|
private |
Definition at line 50 of file DialogBoxWidget.hpp.