|
virtual | ~IPanelObject ()=default |
|
virtual bool | onInit () override |
|
virtual void | onRender () override |
|
virtual void | onQuit () override |
|
virtual void | onUpdate (float fElapsedTime)=0 |
|
virtual void | onEvent (const Event &event)=0 |
|
void | renderPanel () |
|
AssetHandle | getSpriteSheet () const |
|
AssetHandle | getFontAsset () const |
|
std::string | getIconResourceName () const |
|
std::string | getFontResourceName () const |
|
int | getIconWidth () const |
|
int | getIconHeight () const |
|
int | getFontWidth () const |
|
int | getFontHeight () const |
|
PanelBaseIndex | getBaseIndex () const |
|
OrphanRetentionPolicy | getOrphanRetentionPolicy () const |
|
IDisplayObject & | setOrphanRetentionPolicy (OrphanRetentionPolicy policy) |
|
std::chrono::milliseconds | getOrphanGrace () const |
|
IDisplayObject & | setOrphanGrace (std::chrono::milliseconds grace) |
|
bool | operator== (const IDisplayObject &other) const |
|
bool | operator< (const IDisplayObject &other) const |
|
bool | operator!= (const IDisplayObject &other) const |
|
bool | operator> (const IDisplayObject &other) const |
|
bool | operator<= (const IDisplayObject &other) const |
|
bool | operator>= (const IDisplayObject &other) const |
|
virtual bool | onUnitTest () |
| Runs unit tests for this object.
|
|
void | cleanAll () |
|
bool | getDirty () const |
|
IDisplayObject & | setDirty () |
|
IDisplayObject & | setDirty (bool grime) |
|
bool | isDirty () const |
|
void | printTree (int depth=0, bool isLast=true, const std::vector< bool > &hasMoreSiblings={}) const |
|
void | addEventListener (EventType &type, std::function< void(Event &)> listener, bool useCapture=false, int priority=0) |
|
void | removeEventListener (EventType &type, std::function< void(Event &)> listener, bool useCapture=false) |
|
void | triggerEventListeners (Event &event, bool useCapture) |
|
bool | hasEventListeners (const EventType &type, bool useCapture) const |
|
void | queue_event (const EventType &type, std::function< void(Event &)> init_payload) |
|
void | addChild (DisplayHandle child, bool useWorld=false, int worldX=0, int worldY=0) |
|
DisplayHandle | getChild (std::string name) const |
|
bool | removeChild (DisplayHandle child) |
|
bool | removeChild (const std::string &name) |
|
const std::vector< DisplayHandle > & | getChildren () const |
|
DisplayHandle | getParent () const |
|
IDisplayObject & | setParent (const DisplayHandle &parent) |
|
bool | hasChild (DisplayHandle child) const |
|
bool | isAncestorOf (DisplayHandle descendant) const |
|
bool | isAncestorOf (const std::string &name) const |
|
bool | isDescendantOf (DisplayHandle ancestor) const |
|
bool | isDescendantOf (const std::string &name) const |
|
bool | removeFromParent () |
|
bool | removeDescendant (DisplayHandle descendant) |
|
bool | removeDescendant (const std::string &descendantName) |
|
std::string | getType () const |
|
IDisplayObject & | setType (const std::string &newType) |
|
Bounds | getBounds () const |
|
IDisplayObject & | setBounds (const Bounds &b) |
|
SDL_Color | getColor () const |
|
IDisplayObject & | setColor (const SDL_Color &color) |
|
int | getMaxPriority () const |
|
int | getMinPriority () const |
|
int | getPriority () const |
|
IDisplayObject & | setToHighestPriority () |
|
IDisplayObject & | setToLowestPriority () |
|
IDisplayObject & | sortChildrenByPriority () |
|
IDisplayObject & | setPriority (int priority) |
|
std::vector< int > | getChildrenPriorities () const |
|
IDisplayObject & | moveToTop () |
|
int | getZOrder () const |
|
IDisplayObject & | setZOrder (int z_order) |
|
void | setKeyboardFocus () |
|
bool | isKeyboardFocused () const |
|
bool | isMouseHovered () const |
|
bool | isClickable () const |
|
IDisplayObject & | setClickable (bool clickable) |
|
bool | isEnabled () const |
|
IDisplayObject & | setEnabled (bool enabled) |
|
bool | isHidden () const |
|
IDisplayObject & | setHidden (bool hidden) |
|
bool | isVisible () const |
|
IDisplayObject & | setVisible (bool visible) |
|
int | getTabPriority () const |
|
IDisplayObject & | setTabPriority (int index) |
|
bool | isTabEnabled () const |
|
IDisplayObject & | setTabEnabled (bool enabled) |
|
int | getX () const |
|
int | getY () const |
|
int | getWidth () const |
|
int | getHeight () const |
|
IDisplayObject & | setX (int p_x) |
|
IDisplayObject & | setY (int p_y) |
|
IDisplayObject & | setWidth (int width) |
|
IDisplayObject & | setHeight (int height) |
|
AnchorPoint | getAnchorTop () const |
|
AnchorPoint | getAnchorLeft () const |
|
AnchorPoint | getAnchorBottom () const |
|
AnchorPoint | getAnchorRight () const |
|
void | setAnchorTop (AnchorPoint ap) |
|
void | setAnchorLeft (AnchorPoint ap) |
|
void | setAnchorBottom (AnchorPoint ap) |
|
void | setAnchorRight (AnchorPoint ap) |
|
float | getLeft () const |
|
float | getRight () const |
|
float | getTop () const |
|
float | getBottom () const |
|
IDisplayObject & | setLeft (float p_left) |
|
IDisplayObject & | setRight (float p_right) |
|
IDisplayObject & | setTop (float p_top) |
|
IDisplayObject & | setBottom (float p_bottom) |
|
float | getLocalX () const |
|
float | getLocalY () const |
|
float | getLocalWidth () const |
|
float | getLocalHeight () const |
|
float | getLocalLeft () const |
|
float | getLocalRight () const |
|
float | getLocalTop () const |
|
float | getLocalBottom () const |
|
IDisplayObject & | setLocalLeft (float value) |
|
IDisplayObject & | setLocalRight (float value) |
|
IDisplayObject & | setLocalTop (float value) |
|
IDisplayObject & | setLocalBottom (float value) |
|
std::string | getName () const |
|
void | setName (const std::string &newName) |
|
void | registerLuaBindings (const std::string &typeName, sol::state_view lua) |
|
|
AssetHandle | spriteSheetAsset_ |
|
AssetHandle | fontAsset_ |
|
std::string | icon_resource_ = "internal_icon_8x8" |
|
std::string | font_resource_ = "internal_font_8x8" |
|
int | icon_width_ = 8 |
|
int | icon_height_ = 8 |
|
int | font_width_ = 8 |
|
int | font_height_ = 8 |
|
PanelBaseIndex | base_index_ = PanelBaseIndex::ButtonUp |
|
PanelBaseIndex | last_base_index_ = PanelBaseIndex::ButtonUp |
|
float | left_ = 0.0f |
|
float | top_ = 0.0f |
|
float | right_ = 0.0f |
|
float | bottom_ = 0.0f |
|
std::string | type_ |
|
bool | bIsDirty_ = false |
|
SDL_Color | color_ = {255, 255, 255, 255} |
|
SDL_Color | foregroundColor_ = {255, 255, 255, 255} |
|
SDL_Color | backgroundColor_ = {255, 255, 255, 128} |
|
SDL_Color | borderColor_ = {0, 0, 0, 128} |
|
SDL_Color | outlineColor_ = {0, 0, 0, 255} |
|
SDL_Color | dropshadowColor_ = {0, 0, 0, 128} |
|
AnchorPoint | anchorTop_ = AnchorPoint::TOP_LEFT |
|
AnchorPoint | anchorLeft_ = AnchorPoint::TOP_LEFT |
|
AnchorPoint | anchorBottom_ = AnchorPoint::TOP_LEFT |
|
AnchorPoint | anchorRight_ = AnchorPoint::TOP_LEFT |
|
int | z_order_ = 0 |
|
int | priority_ = 0 |
|
bool | isClickable_ = false |
|
bool | isEnabled_ = true |
|
bool | isHidden_ = false |
|
int | tabPriority_ = -1 |
|
bool | tabEnabled_ = false |
|
DisplayHandle | parent_ |
|
std::vector< DisplayHandle > | children_ |
|
std::unordered_map< EventType, std::vector< ListenerEntry >, EventTypeHash > | captureEventListeners |
|
std::unordered_map< EventType, std::vector< ListenerEntry >, EventTypeHash > | bubblingEventListeners |
|
sol::usertype< IDisplayObject > | objHandleType_ |
|
std::string | name_ = "IDataObject" |
|