1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
package gtka
import (
"github.com/gotk3/gotk3/gtk"
"github.com/twstrike/gotk3adapter/gtki"
)
type label struct {
*widget
internal *gtk.Label
}
func wrapLabelSimple(v *gtk.Label) *label {
if v == nil {
return nil
}
return &label{wrapWidgetSimple(&v.Widget), v}
}
func wrapLabel(v *gtk.Label, e error) (*label, error) {
return wrapLabelSimple(v), e
}
func unwrapLabel(v gtki.Label) *gtk.Label {
if v == nil {
return nil
}
return v.(*label).internal
}
func (v *label) GetLabel() string {
return v.internal.GetLabel()
}
func (v *label) SetLabel(v1 string) {
v.internal.SetLabel(v1)
}
func (v *label) SetText(v1 string) {
v.internal.SetText(v1)
}
func (v *label) SetSelectable(v1 bool) {
v.internal.SetSelectable(v1)
}
|