ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <actionmenu.h>

Inheritance diagram for Stark::ActionMenu:
Collaboration diagram for Stark::ActionMenu:

List of all members.

Classes

struct  ActionButton

Public Member Functions

 ActionMenu (Gfx::Driver *gfx, Cursor *cursor)
 ~ActionMenu ()
void setInventory (InventoryWindow *inventory)
void open (Resources::ItemVisual *item, const Common::Point &itemRelativePos)
void close ()

Protected Member Functions

Common::Rect computePosition (const Common::Point &mouse) const
void onMouseMove (const Common::Point &pos) override
void onClick (const Common::Point &pos) override
void onRender () override

Private Types

enum  ActionMenuType { kActionHand = 0, kActionEye = 1, kActionMouth = 2 }

Private Member Functions

void clearActions ()
void enableAction (uint32 action)

Private Attributes

bool _fromInventory
ActionButton _buttons [3]
VisualImageXMG_background
Common::Point _itemRelativePos
Resources::ItemVisual_item
InventoryWindow_inventory

Detailed Description

Definition at line 39 of file actionmenu.h.


Member Enumeration Documentation

Enumerator:
kActionHand 
kActionEye 
kActionMouth 

Definition at line 57 of file actionmenu.h.


Constructor & Destructor Documentation

Stark::ActionMenu::ActionMenu ( Gfx::Driver gfx,
Cursor cursor 
)

Definition at line 48 of file actionmenu.cpp.

Stark::ActionMenu::~ActionMenu (  ) 

Definition at line 66 of file actionmenu.cpp.


Member Function Documentation

void Stark::ActionMenu::clearActions (  )  [private]

Definition at line 132 of file actionmenu.cpp.

void Stark::ActionMenu::close (  ) 

Definition at line 99 of file actionmenu.cpp.

Common::Rect Stark::ActionMenu::computePosition ( const Common::Point mouse  )  const [protected]

Definition at line 104 of file actionmenu.cpp.

void Stark::ActionMenu::enableAction ( uint32  action  )  [private]

Definition at line 138 of file actionmenu.cpp.

void Stark::ActionMenu::onClick ( const Common::Point pos  )  [override, protected, virtual]

Reimplemented from Stark::Window.

Definition at line 162 of file actionmenu.cpp.

void Stark::ActionMenu::onMouseMove ( const Common::Point pos  )  [override, protected, virtual]

Reimplemented from Stark::Window.

Definition at line 147 of file actionmenu.cpp.

void Stark::ActionMenu::onRender (  )  [override, protected, virtual]

Implements Stark::Window.

Definition at line 118 of file actionmenu.cpp.

void Stark::ActionMenu::open ( Resources::ItemVisual item,
const Common::Point itemRelativePos 
)

Definition at line 69 of file actionmenu.cpp.

void Stark::ActionMenu::setInventory ( InventoryWindow inventory  ) 

Definition at line 184 of file actionmenu.cpp.


Member Data Documentation

Definition at line 72 of file actionmenu.h.

Definition at line 70 of file actionmenu.h.

Definition at line 69 of file actionmenu.h.

Definition at line 77 of file actionmenu.h.

Definition at line 75 of file actionmenu.h.

Definition at line 74 of file actionmenu.h.


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


Generated on Sat Jan 12 2019 05:05:12 for ResidualVM by doxygen 1.7.1
curved edge   curved edge