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

The player mini-status dialog. More...

#include <ministatuswindow.h>

Inheritance diagram for MiniStatusWindow:
Popup EventListener Container

Classes

struct  StatusIcon
 

Public Member Functions

 MiniStatusWindow ()
 
 ~MiniStatusWindow () override
 
void event (Event::Channel channel, const Event &event) override
 
void logic () override
 
void draw (gcn::Graphics *graphics) override
 
void mouseMoved (gcn::MouseEvent &mouseEvent) override
 
void mouseExited (gcn::MouseEvent &event) override
 
- Public Member Functions inherited from Popup
 Popup (const std::string &name=std::string(), SkinType skinType=SkinType::Popup)
 Constructor.
 
 ~Popup () override
 Destructor.
 
void add (gcn::Widget *widget) override
 
void add (gcn::Widget *widget, int x, int y) override
 
void draw (gcn::Graphics *graphics) override
 Draws the popup.
 
void drawFrame (gcn::Graphics *graphics) override
 Draws the popup frame.
 
void setContentSize (int width, int height)
 Sets the size of this popup.
 
void setLocationRelativeTo (gcn::Widget *widget)
 Sets the location relative to the given widget.
 
void mouseMoved (gcn::MouseEvent &event) override
 
void setMinWidth (int width)
 Sets the minimum width of the popup.
 
int getMinWidth () const
 
void setMinHeight (int height)
 Sets the minimum height of the popup.
 
int getMinHeight () const
 
void setMaxWidth (int width)
 Sets the maximum width of the popup.
 
int getMaxWidth () const
 
void setMaxHeight (int height)
 Sets the minimum height of the popup.
 
int getMaxHeight () const
 
int getPadding () const
 Gets the padding of the popup.
 
void setPadding (int padding)
 
void setPopupName (const std::string &name)
 Sets the name of the popup.
 
const std::string & getPopupName () const
 
void scheduleDelete ()
 Schedule this popup for deletion.
 
gcn::Rectangle getChildrenArea () override
 
void position (int x, int y)
 Sets the location to display the popup.
 
const SkingetSkin () const
 Returns the Skin used by this popup.
 
- Public Member Functions inherited from Container
 Container ()
 
 ~Container () override
 
void drawFrame (gcn::Graphics *graphics) override
 
- Public Member Functions inherited from EventListener
virtual ~EventListener ()
 
void listen (Event::Channel channel)
 
void ignore (Event::Channel channel)
 

Private Member Functions

void drawIcons (Graphics *graphics)
 
void updateSize ()
 

Private Attributes

ProgressBarmHpBar
 
ProgressBarmMpBar
 
ProgressBarmXpBar
 
TextPopupmTextPopup
 
std::vector< StatusIconmStatusIcons
 

Additional Inherited Members

- Static Public Member Functions inherited from Popup
static void setWindowContainer (WindowContainer *windowContainer)
 Sets the window container to be used by new popups.
 
- Protected Member Functions inherited from Container
LayoutgetLayout ()
 Gets the layout handler for this container.
 
LayoutCellplace (int x, int y, gcn::Widget *wg, int w=1, int h=1)
 Adds a widget to the container and sets it at given cell.
 
ContainerPlacer getPlacer (int x, int y)
 Returns a proxy for adding widgets in an inner table of the layout.
 

Detailed Description

The player mini-status dialog.

Definition at line 41 of file ministatuswindow.h.

Constructor & Destructor Documentation

◆ MiniStatusWindow()

MiniStatusWindow::MiniStatusWindow ( )

Definition at line 54 of file ministatuswindow.cpp.

◆ ~MiniStatusWindow()

MiniStatusWindow::~MiniStatusWindow ( )
overridedefault

Member Function Documentation

◆ draw()

void MiniStatusWindow::draw ( gcn::Graphics *  graphics)
override

Definition at line 204 of file ministatuswindow.cpp.

◆ drawIcons()

void MiniStatusWindow::drawIcons ( Graphics graphics)
private

Definition at line 106 of file ministatuswindow.cpp.

◆ event()

void MiniStatusWindow::event ( Event::Channel  channel,
const Event event 
)
overridevirtual

Implements EventListener.

Definition at line 124 of file ministatuswindow.cpp.

◆ logic()

void MiniStatusWindow::logic ( )
override

Definition at line 183 of file ministatuswindow.cpp.

◆ mouseExited()

void MiniStatusWindow::mouseExited ( gcn::MouseEvent &  event)
override

Definition at line 280 of file ministatuswindow.cpp.

◆ mouseMoved()

void MiniStatusWindow::mouseMoved ( gcn::MouseEvent &  mouseEvent)
override

Definition at line 211 of file ministatuswindow.cpp.

◆ updateSize()

void MiniStatusWindow::updateSize ( )
private

Definition at line 287 of file ministatuswindow.cpp.

Member Data Documentation

◆ mHpBar

ProgressBar* MiniStatusWindow::mHpBar
private

Definition at line 63 of file ministatuswindow.h.

◆ mMpBar

ProgressBar* MiniStatusWindow::mMpBar
private

Definition at line 64 of file ministatuswindow.h.

◆ mStatusIcons

std::vector<StatusIcon> MiniStatusWindow::mStatusIcons
private

Definition at line 74 of file ministatuswindow.h.

◆ mTextPopup

TextPopup* MiniStatusWindow::mTextPopup
private

Definition at line 66 of file ministatuswindow.h.

◆ mXpBar

ProgressBar* MiniStatusWindow::mXpBar
private

Definition at line 65 of file ministatuswindow.h.


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