mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-29 09:23:32 +00:00
Added "enabled" method.
This commit is contained in:
parent
59ae779fca
commit
b696c0dfb9
@ -249,6 +249,14 @@ public:
|
|||||||
void textf(const char* text, ...);
|
void textf(const char* text, ...);
|
||||||
void set_text_quiet(const char* text);
|
void set_text_quiet(const char* text);
|
||||||
|
|
||||||
|
bool enabled() { return jwidget_is_enabled(this); }
|
||||||
|
void enabled(bool state) {
|
||||||
|
if (state)
|
||||||
|
jwidget_enable(this);
|
||||||
|
else
|
||||||
|
jwidget_disable(this);
|
||||||
|
}
|
||||||
|
|
||||||
bool selected() { return jwidget_is_selected(this); }
|
bool selected() { return jwidget_is_selected(this); }
|
||||||
void selected(bool state) { jwidget_set_selected(this, state); }
|
void selected(bool state) { jwidget_set_selected(this, state); }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user