Expose corner_mask variable for ArdourButtons

This commit is contained in:
Ben Loftis 2025-01-11 08:48:25 -06:00 committed by Robin Gareus
parent c02a7668d7
commit 9463eabfe4
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
2 changed files with 73 additions and 27 deletions

View file

@ -94,7 +94,20 @@ class LIBWIDGETS_API ArdourButton : public CairoWidget , public Gtkmm2ext::Activ
void set_icon (ArdourIcon::Icon);
void set_icon (rendercallback_t, void*);
enum CornerMask {
NONE = 0x0,
TOP_LEFT = 0x1,
TOP_RIGHT = 0x2,
BOTTOM_LEFT = 0x4,
BOTTOM_RIGHT = 0x8,
TOP = 0x3,
BOTTOM = 0xC,
LEFT = 0x5,
RIGHT = 0xA
};
void set_corner_radius (float);
void set_corner_mask (int);
void set_text (const std::string&, bool markup = false);
const std::string& get_text () const { return _text; }