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 getMinSize (int &minWidth, int &minHeight) 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 248 of file widget.h.


Member Typedef Documentation

Definition at line 267 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 432 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 439 of file widget.cpp.


Member Function Documentation

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

Definition at line 515 of file widget.cpp.

void GUI::DropdownButtonWidget::clearEntries (  ) 

Definition at line 522 of file widget.cpp.

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

Reimplemented from GUI::ButtonWidget.

Definition at line 526 of file widget.cpp.

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

Reimplemented from GUI::ButtonWidget.

Definition at line 507 of file widget.cpp.

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

Definition at line 457 of file widget.cpp.

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

Reimplemented from GUI::ButtonWidget.

Definition at line 477 of file widget.cpp.

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

Definition at line 452 of file widget.cpp.

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

Definition at line 501 of file widget.cpp.

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

Definition at line 446 of file widget.cpp.


Member Data Documentation

Definition at line 277 of file widget.h.

Definition at line 275 of file widget.h.

Definition at line 279 of file widget.h.

Definition at line 278 of file widget.h.


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


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