mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
change CairoWidget API to be a more logical/intuitive for setting widget state, to differentiate between active state and visual state (prelight, insensitive etc)
git-svn-id: svn://localhost/ardour2/branches/3.0@10314 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
24765e8459
commit
892f3c361e
11 changed files with 80 additions and 90 deletions
|
|
@ -30,10 +30,6 @@ class LED : public CairoWidget
|
|||
LED ();
|
||||
virtual ~LED ();
|
||||
|
||||
void set_active (bool yn);
|
||||
bool active () const { return _active; }
|
||||
void set_visual_state (int32_t s);
|
||||
int32_t visual_state() const { return _visual_state; }
|
||||
void set_diameter (float);
|
||||
|
||||
protected:
|
||||
|
|
@ -42,8 +38,6 @@ class LED : public CairoWidget
|
|||
void on_realize ();
|
||||
|
||||
private:
|
||||
int32_t _visual_state;
|
||||
bool _active;
|
||||
float _diameter;
|
||||
bool _fixed_diameter;
|
||||
float _red;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue