diff --git a/redo/basicctrls.go b/redo/basicctrls.go index 3eb7d66..94f5c8d 100644 --- a/redo/basicctrls.go +++ b/redo/basicctrls.go @@ -87,6 +87,8 @@ type Label interface { // Text and SetText get and set the Label's text. Text() string SetText(text string) + + isStandalone() bool } // NewLabel creates a new Label with the given text. diff --git a/redo/label_darwin.go b/redo/label_darwin.go index 73f6d28..fab59d9 100644 --- a/redo/label_darwin.go +++ b/redo/label_darwin.go @@ -41,6 +41,10 @@ func (l *label) SetText(text string) { C.textFieldSetText(l._id, ctext) } +func (l *label) isStandalone() bool { + return l.standalone +} + func (l *label) id() C.id { return l._id } diff --git a/redo/label_unix.go b/redo/label_unix.go index 0790539..45a3dad 100644 --- a/redo/label_unix.go +++ b/redo/label_unix.go @@ -54,6 +54,10 @@ func (l *label) SetText(text string) { C.gtk_label_set_text(l.label, ctext) } +func (l *label) isStandalone() bool { + return l.standalone +} + func (l *label) widget() *C.GtkWidget { return l._widget } diff --git a/redo/label_windows.go b/redo/label_windows.go index 7dc8723..96daa67 100644 --- a/redo/label_windows.go +++ b/redo/label_windows.go @@ -44,6 +44,10 @@ func (l *label) SetText(text string) { baseSetText(l, text) } +func (l *label) isStandalone() bool { + return l.standalone +} + func (l *label) hwnd() C.HWND { return l._hwnd }