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

#include <widget.h>

Inheritance diagram for GUI::DropdownButtonWidget:
Collaboration diagram for GUI::DropdownButtonWidget:

List of all members.

Classes

struct  Entry

Public Member Functions

 DropdownButtonWidget (GuiObject *boss, int x, int y, int w, int h, const Common::String &label, const char *tooltip=nullptr, uint32 cmd=0, uint8 hotkey=0)
 DropdownButtonWidget (GuiObject *boss, const Common::String &name, const Common::String &label, const char *tooltip=nullptr, uint32 cmd=0, uint8 hotkey=0)
void handleMouseMoved (int x, int y, int button) override
void handleMouseUp (int x, int y, int button, int clickCount) override
void reflowLayout () override
void appendEntry (const Common::String &label, uint32 cmd)
void clearEntries ()

Protected Types

typedef Common::Array< EntryEntryList

Protected Member Functions

void drawWidget () override
void reset ()
bool isInDropDown (int x, int y) const

Protected Attributes

EntryList _entries
uint32 _dropdownWidth
bool _inDropdown
bool _inButton

Detailed Description

Definition at line 233 of file widget.h.


Member Typedef Documentation

Definition at line 250 of file widget.h.


Constructor & Destructor Documentation

GUI::DropdownButtonWidget::DropdownButtonWidget ( GuiObject boss,
int  x,
int  y,
int  w,
int  h,
const Common::String label,
const char *  tooltip = nullptr,
uint32  cmd = 0,
uint8  hotkey = 0 
)

Definition at line 390 of file widget.cpp.

GUI::DropdownButtonWidget::DropdownButtonWidget ( GuiObject boss,
const Common::String name,
const Common::String label,
const char *  tooltip = nullptr,
uint32  cmd = 0,
uint8  hotkey = 0 
)

Definition at line 397 of file widget.cpp.


Member Function Documentation

void GUI::DropdownButtonWidget::appendEntry ( const Common::String label,
uint32  cmd 
)

Definition at line 465 of file widget.cpp.

void GUI::DropdownButtonWidget::clearEntries (  ) 

Definition at line 472 of file widget.cpp.

void GUI::DropdownButtonWidget::drawWidget (  )  [override, protected]

Reimplemented from GUI::ButtonWidget.

Definition at line 476 of file widget.cpp.

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

Definition at line 415 of file widget.cpp.

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

Reimplemented from GUI::ButtonWidget.

Definition at line 435 of file widget.cpp.

bool GUI::DropdownButtonWidget::isInDropDown ( int  x,
int  y 
) const [protected]

Definition at line 410 of file widget.cpp.

void GUI::DropdownButtonWidget::reflowLayout (  )  [override]

Definition at line 459 of file widget.cpp.

void GUI::DropdownButtonWidget::reset (  )  [protected]

Definition at line 404 of file widget.cpp.


Member Data Documentation

Definition at line 260 of file widget.h.

Definition at line 258 of file widget.h.

Definition at line 262 of file widget.h.

Definition at line 261 of file widget.h.


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


Generated on Sat Mar 28 2020 05:02:49 for ResidualVM by doxygen 1.7.1
curved edge   curved edge