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::U32String &label, const Common::U32String &tooltip=Common::U32String(""), uint32 cmd=0, uint8 hotkey=0)
 DropdownButtonWidget (GuiObject *boss, const Common::String &name, const Common::U32String &label, const Common::U32String &tooltip=Common::U32String(""), 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 getMinSize (int &minWidth, int &minHeight) override
void appendEntry (const Common::U32String &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 250 of file widget.h.


Member Typedef Documentation

Definition at line 269 of file widget.h.


Constructor & Destructor Documentation

GUI::DropdownButtonWidget::DropdownButtonWidget ( GuiObject boss,
int  x,
int  y,
int  w,
int  h,
const Common::U32String label,
const Common::U32String tooltip = Common::U32String(""),
uint32  cmd = 0,
uint8  hotkey = 0 
)

Definition at line 438 of file widget.cpp.

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

Definition at line 445 of file widget.cpp.


Member Function Documentation

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

Definition at line 521 of file widget.cpp.

void GUI::DropdownButtonWidget::clearEntries (  ) 

Definition at line 528 of file widget.cpp.

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

Reimplemented from GUI::ButtonWidget.

Definition at line 532 of file widget.cpp.

void GUI::DropdownButtonWidget::getMinSize ( int &  minWidth,
int &  minHeight 
) [override]

Reimplemented from GUI::ButtonWidget.

Definition at line 513 of file widget.cpp.

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

Definition at line 463 of file widget.cpp.

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

Reimplemented from GUI::ButtonWidget.

Definition at line 483 of file widget.cpp.

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

Definition at line 458 of file widget.cpp.

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

Definition at line 507 of file widget.cpp.

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

Definition at line 452 of file widget.cpp.


Member Data Documentation

Definition at line 279 of file widget.h.

Definition at line 277 of file widget.h.

Definition at line 281 of file widget.h.

Definition at line 280 of file widget.h.


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


Generated on Sat Sep 12 2020 05:04:50 for ResidualVM by doxygen 1.7.1
curved edge   curved edge