You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
*/
#ifndef __gtk2_ardour_ardour_button_h__
Body = 0x2,
Text = 0x4,
Indicator = 0x8,
+ FlatFace = 0x10,
};
static Element default_elements;
enum Tweaks {
ShowClick = 0x1,
- NoModel = 0x4,
+ NoModel = 0x2,
+ ImplicitUsesSolidColor = 0x4,
};
Tweaks tweaks() const { return _tweaks; }
Element elements() const { return _elements; }
void set_elements (Element);
+ void add_elements (Element);
void set_corner_radius (float);
void set_rounded_corner_mask (int);
void set_text (const std::string&);
void set_markup (const std::string&);
+ void set_angle (const double);
+ void set_alignment (const float, const float);
+ void get_alignment (float& xa, float& ya) {xa = _xalign; ya = _yalign;};
void set_led_left (bool yn);
void set_distinct_led_click (bool yn);
float _corner_radius;
int _corner_mask;
- cairo_pattern_t* edge_pattern;
- cairo_pattern_t* active_pattern;
- cairo_pattern_t* inactive_pattern;
+ double _angle;
+ float _xalign, _yalign;
+
+ uint32_t bg_color;
+ uint32_t border_color;
+ uint32_t fill_color_active;
+ uint32_t fill_color_inactive;
+ cairo_pattern_t* fill_pattern;
+ cairo_pattern_t* fill_pattern_active;
+ cairo_pattern_t* shine_pattern;
cairo_pattern_t* led_inset_pattern;
cairo_pattern_t* reflection_pattern;