BButton: Add flat property

* Add methods SetFlat()/IsFlat(). A flat button doesn't draw its frame,
  unless the mouse is hovering over it or it is otherwise activated.
* As a side effect this change also activates the hover glow that was
  already implemented in BControlLook, but not activated in BButton.
This commit is contained in:
Ingo Weinhold
2013-12-29 00:13:49 +01:00
parent 94c2eb2092
commit a249edfbfc
4 changed files with 106 additions and 19 deletions
+1
View File
@@ -82,6 +82,7 @@ public:
B_DEFAULT_BUTTON = 1 << 5,
B_IGNORE_OUTLINE = 1 << 6,
B_PARTIALLY_ACTIVATED = 1 << 7, // like B_ACTIVATED, but for tri-state
B_FLAT = 1 << 8, // flat look (e.g. button background)
B_BLEND_FRAME = 1 << 16
};