Mana
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
EmoteShortcutContainer Class Reference

An emote shortcut container. More...

#include <emoteshortcutcontainer.h>

Inheritance diagram for EmoteShortcutContainer:
ShortcutContainer

Public Member Functions

 EmoteShortcutContainer ()
 
void draw (gcn::Graphics *graphics) override
 Draws the items.
 
void mouseDragged (gcn::MouseEvent &event) override
 Handles mouse when dragged.
 
void mousePressed (gcn::MouseEvent &event) override
 Handles mouse when pressed.
 
void mouseReleased (gcn::MouseEvent &event) override
 Handles mouse release.
 
- Public Member Functions inherited from ShortcutContainer
 ShortcutContainer ()
 
void drawFrame (gcn::Graphics *graphics) override
 
void widgetResized (const gcn::Event &event) override
 Invoked when a widget changes its size.
 
int getMaxItems () const
 
int getBoxWidth () const
 
int getBoxHeight () const
 

Private Attributes

bool mEmoteClicked = false
 
int mEmoteMoved = -1
 

Additional Inherited Members

- Protected Member Functions inherited from ShortcutContainer
int getIndexFromGrid (int pointX, int pointY) const
 Gets the index from the grid provided the point is in an item box.
 
- Protected Attributes inherited from ShortcutContainer
int mMaxItems = 0
 
int mBoxWidth = 0
 
int mBoxHeight = 0
 
int mCursorPosX = 0
 
int mCursorPosY = 0
 
int mGridWidth = 1
 
int mGridHeight = 1
 

Detailed Description

An emote shortcut container.

Used to quickly use emoticons.

Definition at line 31 of file emoteshortcutcontainer.h.

Constructor & Destructor Documentation

◆ EmoteShortcutContainer()

EmoteShortcutContainer::EmoteShortcutContainer ( )

Definition at line 36 of file emoteshortcutcontainer.cpp.

Member Function Documentation

◆ draw()

void EmoteShortcutContainer::draw ( gcn::Graphics *  graphics)
overridevirtual

Draws the items.

Implements ShortcutContainer.

Definition at line 41 of file emoteshortcutcontainer.cpp.

◆ mouseDragged()

void EmoteShortcutContainer::mouseDragged ( gcn::MouseEvent &  event)
override

Handles mouse when dragged.

Definition at line 87 of file emoteshortcutcontainer.cpp.

◆ mousePressed()

void EmoteShortcutContainer::mousePressed ( gcn::MouseEvent &  event)
override

Handles mouse when pressed.

Definition at line 113 of file emoteshortcutcontainer.cpp.

◆ mouseReleased()

void EmoteShortcutContainer::mouseReleased ( gcn::MouseEvent &  event)
override

Handles mouse release.

Definition at line 131 of file emoteshortcutcontainer.cpp.

Member Data Documentation

◆ mEmoteClicked

bool EmoteShortcutContainer::mEmoteClicked = false
private

Definition at line 57 of file emoteshortcutcontainer.h.

◆ mEmoteMoved

int EmoteShortcutContainer::mEmoteMoved = -1
private

Definition at line 58 of file emoteshortcutcontainer.h.


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