mirror of https://github.com/buggins/dlangui.git
Widget: prevents using text() without override
This commit is contained in:
parent
1a76d96452
commit
d63cb402e3
|
@ -570,11 +570,17 @@ public:
|
||||||
@property FontRef font() const { return stateStyle.font; }
|
@property FontRef font() const { return stateStyle.font; }
|
||||||
|
|
||||||
/// returns widget content text (override to support this)
|
/// returns widget content text (override to support this)
|
||||||
@property dstring text() const { return ""; }
|
@property dstring text() const {
|
||||||
|
assert(false, __FUNCTION__~" isn't implemented");
|
||||||
|
}
|
||||||
/// sets widget content text (override to support this)
|
/// sets widget content text (override to support this)
|
||||||
@property Widget text(dstring s) { return this; }
|
@property Widget text(dstring s) {
|
||||||
|
assert(false, __FUNCTION__~" isn't implemented");
|
||||||
|
}
|
||||||
/// sets widget content text (override to support this)
|
/// sets widget content text (override to support this)
|
||||||
@property Widget text(UIString s) { return this; }
|
@property Widget text(UIString s) {
|
||||||
|
assert(false, __FUNCTION__~" isn't implemented");
|
||||||
|
}
|
||||||
|
|
||||||
/// override to handle font changes
|
/// override to handle font changes
|
||||||
protected void handleFontChanged() {}
|
protected void handleFontChanged() {}
|
||||||
|
|
Loading…
Reference in New Issue