Minsky
|
supports +/-/←/→/↓/↑ widget More...
#include <godleyTableWindow.h>
Public Member Functions | |
void | draw (cairo_t *) |
void | drawButton (cairo_t *, const std::string &label, double r, double g, double b, int idx) |
draw button idx, with label label and colour r, b, g More... | |
void | invoke (double x) |
invoke action associated with button at x More... | |
void | hover (int button) |
indicate which button mouse is hovering over. x<0 means not hovering More... | |
void | hover (double x) |
int | button (double x) const |
convert x coordinate into a button More... | |
int | mouseOver () const |
ButtonWidget (GodleyIcon &godleyIcon, unsigned idx=0) | |
template<> | |
void | invoke (double x) |
template<> | |
void | invoke (double x) |
Public Attributes | |
Pos | pos =middle |
unsigned | idx =0 |
row or column this widget is located in More... | |
Static Public Attributes | |
static constexpr double | buttonSpacing =15 |
Protected Attributes | |
GodleyIcon & | godleyIcon |
int | m_mouseOver =-1 |
Private Member Functions | |
CLASSDESC_ACCESS (ButtonWidget) | |
Additional Inherited Members | |
![]() | |
enum | RowCol { row, col } |
enum | Pos { first, second, middle, last, firstAndLast } |
supports +/-/←/→/↓/↑ widget
Definition at line 45 of file godleyTableWindow.h.
|
inline |
Definition at line 70 of file godleyTableWindow.h.
|
inline |
convert x coordinate into a button
Definition at line 67 of file godleyTableWindow.h.
Referenced by minsky::ButtonWidget< row >::hover().
|
private |
void minsky::ButtonWidget< rowCol >::draw | ( | cairo_t * | cairo | ) |
Definition at line 1197 of file godleyTableWindow.cc.
void minsky::ButtonWidget< rowCol >::drawButton | ( | cairo_t * | cairo, |
const std::string & | label, | ||
double | r, | ||
double | g, | ||
double | b, | ||
int | idx | ||
) |
draw button idx, with label label and colour r, b, g
Definition at line 1171 of file godleyTableWindow.cc.
|
inline |
indicate which button mouse is hovering over. x<0 means not hovering
Definition at line 64 of file godleyTableWindow.h.
|
inline |
Definition at line 65 of file godleyTableWindow.h.
void minsky::ButtonWidget< rowCol >::invoke | ( | double | x | ) |
invoke action associated with button at x
void minsky::ButtonWidget< ButtonWidgetEnums::row >::invoke | ( | double | x | ) |
Definition at line 75 of file godleyTableWindow.cc.
void minsky::ButtonWidget< ButtonWidgetEnums::col >::invoke | ( | double | x | ) |
Definition at line 102 of file godleyTableWindow.cc.
|
inline |
Definition at line 68 of file godleyTableWindow.h.
|
static |
Definition at line 52 of file godleyTableWindow.h.
Referenced by minsky::ButtonWidget< row >::button().
|
protected |
Definition at line 49 of file godleyTableWindow.h.
unsigned minsky::ButtonWidget< rowCol >::idx =0 |
row or column this widget is located in
Definition at line 55 of file godleyTableWindow.h.
|
protected |
Definition at line 50 of file godleyTableWindow.h.
Referenced by minsky::ButtonWidget< row >::hover(), and minsky::ButtonWidget< row >::mouseOver().
Pos minsky::ButtonWidget< rowCol >::pos =middle |
Definition at line 54 of file godleyTableWindow.h.