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

A small dialog showing a list of items and allowing the user to chose one of them. More...

#include <popup.h>

Inheritance diagram for GUI::PopUpDialog:
Collaboration diagram for GUI::PopUpDialog:

List of all members.

Public Member Functions

 PopUpDialog (Widget *boss, const Common::String &name, int clickX, int clickY)
void open () override
void reflowLayout () override
void drawDialog (DrawLayer layerToDraw) override
 Draw the dialog in its entirety (background and widgets).
void handleMouseUp (int x, int y, int button, int clickCount) override
void handleMouseWheel (int x, int y, int direction) override
void handleMouseMoved (int x, int y, int button) override
void handleMouseLeft (int button) override
void handleKeyDown (Common::KeyState state) override
void setPosition (int x, int y)
void setPadding (int left, int right)
void setLineHeight (int lineHeight)
void setWidth (uint16 width)
void appendEntry (const Common::String &entry)
void clearEntries ()
void setSelection (int item)

Protected Types

typedef Common::Array
< Common::String
EntryList

Protected Member Functions

void drawMenuEntry (int entry, bool hilite)
int findItem (int x, int y) const
bool isMouseDown ()
void moveUp ()
void moveDown ()
void read (Common::String)

Protected Attributes

Widget_boss
int _clickX
int _clickY
int _selection
int _initialSelection
uint32 _openTime
bool _twoColumns
int _entriesPerColumn
int _leftPadding
int _rightPadding
int _lineHeight
int _lastRead
EntryList _entries

Detailed Description

A small dialog showing a list of items and allowing the user to chose one of them.

Used by PopUpWidget and DropdownButtonWidget.

Definition at line 93 of file popup.h.


Member Typedef Documentation

Definition at line 109 of file popup.h.


Constructor & Destructor Documentation

GUI::PopUpDialog::PopUpDialog ( Widget boss,
const Common::String name,
int  clickX,
int  clickY 
)

Definition at line 35 of file popup.cpp.


Member Function Documentation

void GUI::PopUpDialog::appendEntry ( const Common::String entry  ) 

Definition at line 291 of file popup.cpp.

void GUI::PopUpDialog::clearEntries (  ) 

Definition at line 295 of file popup.cpp.

void GUI::PopUpDialog::drawDialog ( DrawLayer  layerToDraw  )  [override, virtual]

Draw the dialog in its entirety (background and widgets).

Reimplemented from GUI::Dialog.

Definition at line 129 of file popup.cpp.

void GUI::PopUpDialog::drawMenuEntry ( int  entry,
bool  hilite 
) [protected]

Definition at line 367 of file popup.cpp.

int GUI::PopUpDialog::findItem ( int  x,
int  y 
) const [protected]

Definition at line 299 of file popup.cpp.

void GUI::PopUpDialog::handleKeyDown ( Common::KeyState  state  )  [override, virtual]

Reimplemented from GUI::Dialog.

Definition at line 213 of file popup.cpp.

void GUI::PopUpDialog::handleMouseLeft ( int  button  )  [override, virtual]

Reimplemented from GUI::Dialog.

Definition at line 198 of file popup.cpp.

void GUI::PopUpDialog::handleMouseMoved ( int  x,
int  y,
int  button 
) [override, virtual]

Reimplemented from GUI::Dialog.

Definition at line 178 of file popup.cpp.

void GUI::PopUpDialog::handleMouseUp ( int  x,
int  y,
int  button,
int  clickCount 
) [override, virtual]

Reimplemented from GUI::Dialog.

Definition at line 154 of file popup.cpp.

void GUI::PopUpDialog::handleMouseWheel ( int  x,
int  y,
int  direction 
) [override, virtual]

Reimplemented from GUI::Dialog.

Definition at line 171 of file popup.cpp.

bool GUI::PopUpDialog::isMouseDown (  )  [protected]

Definition at line 331 of file popup.cpp.

void GUI::PopUpDialog::moveDown (  )  [protected]

Definition at line 352 of file popup.cpp.

void GUI::PopUpDialog::moveUp (  )  [protected]

Definition at line 339 of file popup.cpp.

void GUI::PopUpDialog::open (  )  [override, virtual]

Reimplemented from GUI::Dialog.

Definition at line 54 of file popup.cpp.

void GUI::PopUpDialog::read ( Common::String  str  )  [protected]

Definition at line 202 of file popup.cpp.

void GUI::PopUpDialog::reflowLayout (  )  [override, virtual]

Reimplemented from GUI::Dialog.

Definition at line 126 of file popup.cpp.

void GUI::PopUpDialog::setLineHeight ( int  lineHeight  ) 

Definition at line 283 of file popup.cpp.

void GUI::PopUpDialog::setPadding ( int  left,
int  right 
)

Definition at line 278 of file popup.cpp.

void GUI::PopUpDialog::setPosition ( int  x,
int  y 
)

Definition at line 273 of file popup.cpp.

void GUI::PopUpDialog::setSelection ( int  item  ) 

Definition at line 316 of file popup.cpp.

void GUI::PopUpDialog::setWidth ( uint16  width  ) 

Definition at line 287 of file popup.cpp.


Member Data Documentation

Definition at line 95 of file popup.h.

int GUI::PopUpDialog::_clickX [protected]

Definition at line 96 of file popup.h.

int GUI::PopUpDialog::_clickY [protected]

Definition at line 96 of file popup.h.

Definition at line 110 of file popup.h.

Definition at line 101 of file popup.h.

Definition at line 98 of file popup.h.

int GUI::PopUpDialog::_lastRead [protected]

Definition at line 107 of file popup.h.

Definition at line 103 of file popup.h.

Definition at line 105 of file popup.h.

Definition at line 99 of file popup.h.

Definition at line 104 of file popup.h.

Definition at line 97 of file popup.h.

Definition at line 100 of file popup.h.


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


Generated on Sat Jul 4 2020 05:03:59 for ResidualVM by doxygen 1.7.1
curved edge   curved edge