Added Label.isStandalone(), used by Grid. Now for the Grid test...
This commit is contained in:
parent
d824e549f1
commit
0359d3bf4a
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue