YAPOG  0.0.1
Yet Another Pokemon Online Game
ycl::TrainerCardWidget Class Reference

#include <TrainerCardWidget.hpp>

Inheritance diagram for ycl::TrainerCardWidget:
Collaboration diagram for ycl::TrainerCardWidget:

List of all members.

Public Member Functions

 TrainerCardWidget (const User &user)
virtual ~TrainerCardWidget ()
void Init ()
virtual bool IsFocusable () const
- 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 IWidgetGetRoot () 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 Close ()
virtual const Vector2GetPosition () const
 Gets the coordinates in pixels of the origin of this ISpatial from the global origin.
virtual const Vector2GetSize () const
 Gets the size in pixels of this ISpatial.
virtual const Vector2GetTopLeft () const
virtual const Vector2GetBottomRight () const
virtual const Vector2GetCenter () const
virtual const sf::FloatRect & GetRectangle () const
virtual WidgetBorderGetBorder () 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 ()

Protected Member Functions

void Open ()
virtual yap::Vector2 HandleGetSize () const
virtual void HandleMove (const yap::Vector2 &offset)
virtual void HandleScale (const yap::Vector2 &factor)
virtual void HandleDraw (yap::IDrawingContext &context)
virtual void HandleShow (bool isVisible)
virtual void HandleChangeColor (const sf::Color &color)
virtual void HandleUpdate (const yap::Time &dt)
virtual bool HandleOnEvent (const yap::GuiEvent &guiEvent)
- Protected Member Functions inherited from yap::BaseWidget
void RefreshBorder ()
virtual void SetFocused (bool state)
virtual void Refresh ()
virtual bool HandleOnPriorityEvent (const GuiEvent &guiEvent)

Private Member Functions

 DISALLOW_COPY (TrainerCardWidget)

Private Attributes

const Useruser_
yap::LabeluniqueIDLabel_
yap::LabeluniqueID_
yap::LabelnameLabel_
yap::Labelname_
yap::LabelmoneyLabel_
yap::Labelmoney_
yap::LabelpokedexLabel_
yap::Labelpokedex_
yap::LabelgameTimeLabel_
yap::LabelgameTime_
yap::PictureBoxplayerSprite_
yap::VerticalLayoutmainLayout_
yap::VerticalLayoutfirstLine_
yap::HorizontalLayoutuniqueIDLayout_
yap::HorizontalLayoutsecondLine_
yap::VerticalLayoutsecondLinePartLeft_
yap::HorizontalLayoutnameLayout_
yap::HorizontalLayoutplayerDataLayout_
yap::VerticalLayoutplayerDataLabelsLayout_
yap::VerticalLayoutplayerDataValuesLayout_
yap::VerticalLayoutsecondLinePartRight_
yap::HorizontalLayoutplayerSpriteLayout_

Additional Inherited Members

- 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 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_
IWidgetroot_
IWidgetparent_
Padding padding_
WidgetBackgroundbackground_
WidgetBorderborder_
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

Detailed Description

Definition at line 19 of file TrainerCardWidget.hpp.


Constructor & Destructor Documentation

ycl::TrainerCardWidget::TrainerCardWidget ( const User user)

Definition at line 19 of file TrainerCardWidget.cpp.

Here is the call graph for this function:

ycl::TrainerCardWidget::~TrainerCardWidget ( )
virtual

Definition at line 95 of file TrainerCardWidget.cpp.


Member Function Documentation

ycl::TrainerCardWidget::DISALLOW_COPY ( TrainerCardWidget  )
private
void ycl::TrainerCardWidget::HandleChangeColor ( const sf::Color &  color)
protectedvirtual

Reimplemented from yap::BaseWidget.

Definition at line 273 of file TrainerCardWidget.cpp.

void ycl::TrainerCardWidget::HandleDraw ( yap::IDrawingContext context)
protectedvirtual

Reimplemented from yap::BaseWidget.

Definition at line 265 of file TrainerCardWidget.cpp.

yap::Vector2 ycl::TrainerCardWidget::HandleGetSize ( ) const
protectedvirtual

Reimplemented from yap::BaseWidget.

Definition at line 250 of file TrainerCardWidget.cpp.

void ycl::TrainerCardWidget::HandleMove ( const yap::Vector2 offset)
protectedvirtual

Reimplemented from yap::BaseWidget.

Definition at line 255 of file TrainerCardWidget.cpp.

bool ycl::TrainerCardWidget::HandleOnEvent ( const yap::GuiEvent guiEvent)
protectedvirtual

Reimplemented from yap::BaseWidget.

Definition at line 210 of file TrainerCardWidget.cpp.

Here is the call graph for this function:

void ycl::TrainerCardWidget::HandleScale ( const yap::Vector2 factor)
protectedvirtual

Reimplemented from yap::BaseWidget.

Definition at line 260 of file TrainerCardWidget.cpp.

void ycl::TrainerCardWidget::HandleShow ( bool  isVisible)
protectedvirtual

Reimplemented from yap::BaseWidget.

Definition at line 269 of file TrainerCardWidget.cpp.

void ycl::TrainerCardWidget::HandleUpdate ( const yap::Time dt)
protectedvirtual

Reimplemented from yap::BaseWidget.

Definition at line 277 of file TrainerCardWidget.cpp.

Here is the call graph for this function:

void ycl::TrainerCardWidget::Init ( )

Definition at line 99 of file TrainerCardWidget.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool ycl::TrainerCardWidget::IsFocusable ( ) const
virtual

Implements yap::BaseWidget.

Definition at line 187 of file TrainerCardWidget.cpp.

void ycl::TrainerCardWidget::Open ( )
protectedvirtual

Reimplemented from yap::BaseWidget.

Definition at line 192 of file TrainerCardWidget.cpp.

Here is the call graph for this function:


Member Data Documentation

yap::VerticalLayout* ycl::TrainerCardWidget::firstLine_
private

Definition at line 67 of file TrainerCardWidget.hpp.

yap::Label* ycl::TrainerCardWidget::gameTime_
private

Definition at line 59 of file TrainerCardWidget.hpp.

yap::Label* ycl::TrainerCardWidget::gameTimeLabel_
private

Definition at line 58 of file TrainerCardWidget.hpp.

yap::VerticalLayout* ycl::TrainerCardWidget::mainLayout_
private

Definition at line 65 of file TrainerCardWidget.hpp.

yap::Label* ycl::TrainerCardWidget::money_
private

Definition at line 55 of file TrainerCardWidget.hpp.

yap::Label* ycl::TrainerCardWidget::moneyLabel_
private

Definition at line 54 of file TrainerCardWidget.hpp.

yap::Label* ycl::TrainerCardWidget::name_
private

Definition at line 53 of file TrainerCardWidget.hpp.

yap::Label* ycl::TrainerCardWidget::nameLabel_
private

Definition at line 52 of file TrainerCardWidget.hpp.

yap::HorizontalLayout* ycl::TrainerCardWidget::nameLayout_
private

Definition at line 75 of file TrainerCardWidget.hpp.

yap::VerticalLayout* ycl::TrainerCardWidget::playerDataLabelsLayout_
private

Definition at line 77 of file TrainerCardWidget.hpp.

yap::HorizontalLayout* ycl::TrainerCardWidget::playerDataLayout_
private

Definition at line 76 of file TrainerCardWidget.hpp.

yap::VerticalLayout* ycl::TrainerCardWidget::playerDataValuesLayout_
private

Definition at line 78 of file TrainerCardWidget.hpp.

yap::PictureBox* ycl::TrainerCardWidget::playerSprite_
private

Definition at line 62 of file TrainerCardWidget.hpp.

yap::HorizontalLayout* ycl::TrainerCardWidget::playerSpriteLayout_
private

Definition at line 82 of file TrainerCardWidget.hpp.

yap::Label* ycl::TrainerCardWidget::pokedex_
private

Definition at line 57 of file TrainerCardWidget.hpp.

yap::Label* ycl::TrainerCardWidget::pokedexLabel_
private

Definition at line 56 of file TrainerCardWidget.hpp.

yap::HorizontalLayout* ycl::TrainerCardWidget::secondLine_
private

Definition at line 71 of file TrainerCardWidget.hpp.

yap::VerticalLayout* ycl::TrainerCardWidget::secondLinePartLeft_
private

Definition at line 73 of file TrainerCardWidget.hpp.

yap::VerticalLayout* ycl::TrainerCardWidget::secondLinePartRight_
private

Definition at line 80 of file TrainerCardWidget.hpp.

yap::Label* ycl::TrainerCardWidget::uniqueID_
private

Definition at line 51 of file TrainerCardWidget.hpp.

yap::Label* ycl::TrainerCardWidget::uniqueIDLabel_
private

Definition at line 50 of file TrainerCardWidget.hpp.

yap::HorizontalLayout* ycl::TrainerCardWidget::uniqueIDLayout_
private

Definition at line 69 of file TrainerCardWidget.hpp.

const User& ycl::TrainerCardWidget::user_
private

Definition at line 47 of file TrainerCardWidget.hpp.


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