Exemple #1
0
func NewButton() *Button {
	bt := C.gtk_button_new()
	if bt == nil {
		return nil
	}
	return ToButton(unsafe.Pointer(bt))
}
Exemple #2
0
//Create and return new button Structure
func NewButton() *Button {
	b := &Button{}

	o := C.gtk_button_new()

	b.Container = NewContainer(unsafe.Pointer(o))

	b.object = C.to_GtkButton(unsafe.Pointer(o))
	return b
}
Exemple #3
0
func NewButton() *Button {
	b := new(Button)
	b.SetPtr(glib.Pointer(C.gtk_button_new()))
	return b
}
Exemple #4
0
func gtk_button_new() *C.GtkWidget {
	return C.gtk_button_new()
}