Added Label.isStandalone(), used by Grid. Now for the Grid test...

This commit is contained in:
Pietro Gagliardi 2014-08-15 19:35:49 -04:00
parent d824e549f1
commit 0359d3bf4a
4 changed files with 14 additions and 0 deletions

View File

@ -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.

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}