#include <BaseWidget.hpp>
List of all members.
Detailed Description
Definition at line 18 of file BaseWidget.hpp.
Constructor & Destructor Documentation
| yap::BaseWidget::BaseWidget |
( |
| ) |
|
| yap::BaseWidget::~BaseWidget |
( |
| ) |
|
|
virtual |
Member Function Documentation
| void yap::BaseWidget::AddChild |
( |
IWidget & |
child | ) |
|
|
virtual |
| void yap::BaseWidget::AddDrawable |
( |
IDrawable & |
drawable | ) |
|
|
virtual |
| void yap::BaseWidget::ChangeColor |
( |
const sf::Color & |
color | ) |
|
|
virtual |
| void yap::BaseWidget::Close |
( |
| ) |
|
|
virtual |
| void yap::BaseWidget::FrontAddChild |
( |
IWidget & |
child | ) |
|
|
virtual |
| const Vector2 & yap::BaseWidget::GetBottomRight |
( |
| ) |
const |
|
virtual |
| const Vector2 & yap::BaseWidget::GetCenter |
( |
| ) |
const |
|
virtual |
| const Vector2 & yap::BaseWidget::GetPosition |
( |
| ) |
const |
|
virtual |
Gets the coordinates in pixels of the origin of this ISpatial from the global origin.
- Returns:
- The coordinates in pixels of the origin of this ISpatial from the global origin.
Implements yap::ISpatial.
Definition at line 43 of file BaseWidget.cpp.
| const sf::FloatRect & yap::BaseWidget::GetRectangle |
( |
| ) |
const |
|
virtual |
| IWidget & yap::BaseWidget::GetRoot |
( |
| ) |
const |
|
virtual |
| const Vector2 & yap::BaseWidget::GetSize |
( |
| ) |
const |
|
virtual |
| const Vector2 & yap::BaseWidget::GetTopLeft |
( |
| ) |
const |
|
virtual |
| Vector2 yap::BaseWidget::GetUserSize |
( |
| ) |
const |
| void yap::BaseWidget::HandleChangeColor |
( |
const sf::Color & |
color | ) |
|
|
protectedvirtual |
Reimplemented in ycl::PokemonBasicInfoWidget, ycl::PokemonMoveInfoWidget, yap::WidgetBorder, ycl::ChatWidget, yap::Label, yap::LayoutBox, ycl::PokemonStatsInfoWidget, ycl::PokemonTeamWidget, yap::Menu, yap::WidgetBackground, yap::GridMenu, yap::DialogBoxWidget, ycl::RegistrationWidget, yap::MultiLabelWidget, ycl::PokedexWidget, ycl::TrainerCardWidget, ycl::LoginWidget, yap::TextBoxWidget, yap::MenuItem, yap::PictureBox, ycl::PokemonInfoWidget, ycl::PokemonSingleMoveInfoWidget, ycl::PokemonFrontInfoWidget, ycl::PokedexCompositeWidget, ycl::PokemonInfoBox, ycl::PokemonExperienceBarWidget, ycl::PokemonHPBarWidget, yap::GuiManager, yap::HorizontalLayout, ycl::BaseBattleWidget, and yap::VerticalLayout.
Definition at line 478 of file BaseWidget.cpp.
Reimplemented in ycl::PokemonBasicInfoWidget, ycl::PokemonMoveInfoWidget, yap::WidgetBorder, yap::Label, yap::LayoutBox, ycl::ChatWidget, ycl::PokemonStatsInfoWidget, ycl::PokemonTeamWidget, yap::Menu, yap::WidgetBackground, yap::GridMenu, yap::DialogBoxWidget, ycl::BattleInfoWidget, ycl::RegistrationWidget, yap::MultiLabelWidget, ycl::LoginWidget, ycl::PokedexWidget, ycl::TrainerCardWidget, yap::TextBoxWidget, ycl::PokemonInfoWidget, ycl::PokemonSingleMoveInfoWidget, yap::MenuItem, yap::PictureBox, ycl::PokemonFrontInfoWidget, ycl::PokemonInfoBox, ycl::PokedexCompositeWidget, ycl::PokemonExperienceBarWidget, ycl::PokemonHPBarWidget, ycl::BaseBattleWidget, yap::GuiManager, yap::HorizontalLayout, and yap::VerticalLayout.
Definition at line 470 of file BaseWidget.cpp.
| Vector2 yap::BaseWidget::HandleGetSize |
( |
| ) |
const |
|
protectedvirtual |
Reimplemented in yap::WidgetBorder, yap::Label, yap::LayoutBox, ycl::ChatWidget, ycl::PokemonTeamWidget, yap::Menu, yap::WidgetBackground, ycl::BattleInfoWidget, yap::GridMenu, yap::DialogBoxWidget, yap::MultiLabelWidget, ycl::PokedexWidget, ycl::TrainerCardWidget, yap::TextBoxWidget, yap::MenuItem, yap::PictureBox, and ycl::PokedexCompositeWidget.
Definition at line 286 of file BaseWidget.cpp.
| void yap::BaseWidget::HandleMove |
( |
const Vector2 & |
offset | ) |
|
|
protectedvirtual |
Reimplemented in ycl::PokemonBasicInfoWidget, ycl::PokemonMoveInfoWidget, yap::WidgetBorder, yap::Label, yap::LayoutBox, ycl::ChatWidget, ycl::PokemonStatsInfoWidget, ycl::PokemonTeamWidget, yap::Menu, yap::WidgetBackground, yap::GridMenu, ycl::RegistrationWidget, yap::DialogBoxWidget, ycl::LoginWidget, yap::MultiLabelWidget, ycl::PokedexWidget, ycl::TrainerCardWidget, yap::TextBoxWidget, ycl::PokemonInfoWidget, ycl::PokemonSingleMoveInfoWidget, ycl::PokemonFrontInfoWidget, yap::MenuItem, yap::PictureBox, ycl::PokemonInfoBox, ycl::PokemonExperienceBarWidget, ycl::PokemonHPBarWidget, ycl::PokedexCompositeWidget, ycl::BaseBattleWidget, yap::GuiManager, yap::HorizontalLayout, and yap::VerticalLayout.
Definition at line 462 of file BaseWidget.cpp.
| bool yap::BaseWidget::HandleOnEvent |
( |
const GuiEvent & |
guiEvent | ) |
|
|
protectedvirtual |
Reimplemented in ycl::PokemonTeamWidget, yap::Menu, ycl::ChatWidget, yap::GridMenu, ycl::PokedexWidget, ycl::TrainerCardWidget, ycl::PokemonInfoWidget, yap::DialogBoxWidget, yap::MultiLabelWidget, yap::TextBoxWidget, ycl::GameGuiManager, ycl::GameMenu, and ycl::OpponentBattleInfoWidget.
Definition at line 435 of file BaseWidget.cpp.
| bool yap::BaseWidget::HandleOnPriorityEvent |
( |
const GuiEvent & |
guiEvent | ) |
|
|
protectedvirtual |
| void yap::BaseWidget::HandleScale |
( |
const Vector2 & |
factor | ) |
|
|
protectedvirtual |
Reimplemented in ycl::PokemonBasicInfoWidget, ycl::PokemonMoveInfoWidget, yap::WidgetBorder, yap::Label, yap::LayoutBox, ycl::ChatWidget, ycl::PokemonStatsInfoWidget, ycl::PokemonTeamWidget, yap::Menu, yap::WidgetBackground, yap::GridMenu, ycl::RegistrationWidget, yap::DialogBoxWidget, ycl::LoginWidget, yap::MultiLabelWidget, ycl::PokedexWidget, ycl::TrainerCardWidget, yap::TextBoxWidget, ycl::PokemonInfoWidget, ycl::PokemonSingleMoveInfoWidget, ycl::PokemonFrontInfoWidget, yap::MenuItem, yap::PictureBox, ycl::PokemonInfoBox, ycl::PokemonExperienceBarWidget, ycl::PokemonHPBarWidget, ycl::PokedexCompositeWidget, ycl::BaseBattleWidget, yap::GuiManager, yap::HorizontalLayout, and yap::VerticalLayout.
Definition at line 466 of file BaseWidget.cpp.
| void yap::BaseWidget::HandleShow |
( |
bool |
isVisible | ) |
|
|
protectedvirtual |
Reimplemented in ycl::PokemonBasicInfoWidget, ycl::PokemonMoveInfoWidget, yap::WidgetBorder, ycl::ChatWidget, yap::Label, yap::LayoutBox, ycl::PokemonStatsInfoWidget, ycl::PokemonTeamWidget, yap::Menu, yap::WidgetBackground, yap::GridMenu, yap::DialogBoxWidget, ycl::RegistrationWidget, yap::MultiLabelWidget, ycl::PokedexWidget, ycl::TrainerCardWidget, ycl::LoginWidget, yap::TextBoxWidget, yap::MenuItem, yap::PictureBox, ycl::PokemonInfoWidget, ycl::PokemonSingleMoveInfoWidget, ycl::PokemonFrontInfoWidget, ycl::PokedexCompositeWidget, ycl::PokemonInfoBox, ycl::PokemonExperienceBarWidget, ycl::PokemonHPBarWidget, yap::GuiManager, yap::HorizontalLayout, ycl::BaseBattleWidget, and yap::VerticalLayout.
Definition at line 474 of file BaseWidget.cpp.
| void yap::BaseWidget::HandleUpdate |
( |
const Time & |
dt | ) |
|
|
protectedvirtual |
Reimplemented in yap::WidgetBorder, ycl::PokemonBasicInfoWidget, ycl::PokemonMoveInfoWidget, ycl::ChatWidget, yap::Label, yap::LayoutBox, ycl::PokemonTeamWidget, ycl::PokemonStatsInfoWidget, yap::Menu, yap::WidgetBackground, yap::GridMenu, yap::DialogBoxWidget, yap::MultiLabelWidget, ycl::PokedexWidget, ycl::RegistrationWidget, ycl::TrainerCardWidget, yap::TextBoxWidget, ycl::LoginWidget, yap::MenuItem, yap::PictureBox, ycl::PokemonInfoWidget, ycl::PokemonSingleMoveInfoWidget, ycl::PokedexCompositeWidget, ycl::PokemonFrontInfoWidget, ycl::PokemonInfoBox, ycl::PokemonExperienceBarWidget, ycl::PokemonHPBarWidget, yap::GuiManager, yap::HorizontalLayout, yap::VerticalLayout, and ycl::BaseBattleWidget.
Definition at line 482 of file BaseWidget.cpp.
| virtual bool yap::BaseWidget::IsFocusable |
( |
| ) |
const |
|
pure virtual |
Implements yap::IWidget.
Implemented in ycl::PokemonBasicInfoWidget, ycl::PokemonMoveInfoWidget, yap::WidgetBorder, ycl::PokemonTeamWidget, ycl::ChatWidget, ycl::PokemonStatsInfoWidget, ycl::RegistrationWidget, yap::Menu, yap::Label, ycl::LoginWidget, yap::GridMenu, yap::WidgetBackground, yap::LayoutBox, ycl::PokedexWidget, ycl::PokemonSingleMoveInfoWidget, ycl::TrainerCardWidget, ycl::PokemonFrontInfoWidget, yap::DialogBoxWidget, yap::MultiLabelWidget, ycl::PokemonInfoBox, ycl::PokemonExperienceBarWidget, ycl::PokemonHPBarWidget, yap::TextBoxWidget, ycl::BaseBattleWidget, ycl::PokedexCompositeWidget, ycl::PokemonInfoWidget, yap::MenuItem, yap::GameWorldWidget, yap::PictureBox, and yap::GuiManager.
| bool yap::BaseWidget::IsVisible |
( |
| ) |
const |
|
virtual |
| void yap::BaseWidget::Move |
( |
const Vector2 & |
offset | ) |
|
|
virtual |
| bool yap::BaseWidget::OnEvent |
( |
const GuiEvent & |
guiEvent | ) |
|
|
virtual |
Treats an event. Transferts the event before treating it.
- Parameters:
-
| guiEvent | The event to treat. |
- Returns:
- True if the handler is concerned by the events and treated it, else false.
Implements yap::IEventHandler.
Definition at line 224 of file BaseWidget.cpp.
| bool yap::BaseWidget::OnPriorityEvent |
( |
const GuiEvent & |
guiEvent | ) |
|
|
virtual |
Treats an event. Treats the event before transfering it.
- Parameters:
-
| guiEvent | The event to treat. |
- Returns:
- True if the handler is concerned by the events and treated it, else false.
Implements yap::IEventHandler.
Definition at line 244 of file BaseWidget.cpp.
| void yap::BaseWidget::Open |
( |
| ) |
|
|
virtual |
| void yap::BaseWidget::Refresh |
( |
| ) |
|
|
protectedvirtual |
| void yap::BaseWidget::RefreshBorder |
( |
| ) |
|
|
protected |
| void yap::BaseWidget::RemoveChild |
( |
IWidget & |
child | ) |
|
|
virtual |
| void yap::BaseWidget::Scale |
( |
const Vector2 & |
factor | ) |
|
|
virtual |
| void yap::BaseWidget::SetDefaultColor |
( |
const sf::Color & |
color | ) |
|
|
virtual |
| void yap::BaseWidget::SetEnable |
( |
bool |
enable | ) |
|
|
virtual |
| void yap::BaseWidget::SetFocused |
( |
bool |
state | ) |
|
|
protectedvirtual |
| void yap::BaseWidget::SetPadding |
( |
const Padding & |
padding | ) |
|
|
virtual |
| void yap::BaseWidget::SetParent |
( |
IWidget & |
parent | ) |
|
|
virtual |
| void yap::BaseWidget::SetPosAfterBorder |
( |
uint |
width, |
|
|
uint |
height, |
|
|
bool |
refreshing |
|
) |
| |
|
private |
| void yap::BaseWidget::SetPosition |
( |
const Vector2 & |
position | ) |
|
|
virtual |
| void yap::BaseWidget::SetSize |
( |
const Vector2 & |
size | ) |
|
|
virtual |
| void yap::BaseWidget::SetToTop |
( |
| ) |
|
|
virtual |
| void yap::BaseWidget::Show |
( |
bool |
isVisible | ) |
|
|
virtual |
| void yap::BaseWidget::UnsetBackground |
( |
| ) |
|
|
virtual |
| void yap::BaseWidget::UnsetBorder |
( |
| ) |
|
|
virtual |
| void yap::BaseWidget::Update |
( |
const Time & |
dt | ) |
|
|
virtual |
Makes the object evolve for one frame of the game.
- Parameters:
-
| dt | Delta time since the last frame. |
Implements yap::IUpdateable.
Definition at line 272 of file BaseWidget.cpp.
Member Data Documentation
| sf::Color yap::BaseWidget::color_ |
|
protected |
| const sf::Color yap::BaseWidget::DEFAULT_COLOR = sf::Color::Black |
|
staticprotected |
| const bool yap::BaseWidget::DEFAULT_ENABLED_STATE = true |
|
staticprotected |
| const bool yap::BaseWidget::DEFAULT_VISIBLE_STATE = true |
|
staticprotected |
| bool yap::BaseWidget::isChangeColorCall_ |
|
protected |
| bool yap::BaseWidget::isEnabled_ |
|
protected |
| bool yap::BaseWidget::isExtensible_ |
|
protected |
| bool yap::BaseWidget::isFocused_ |
|
protected |
| bool yap::BaseWidget::isVisible_ |
|
protected |
| sf::Color yap::BaseWidget::userColor_ |
|
protected |
The documentation for this class was generated from the following files: