Exemplo n.º 1
0
//Create and return new entry Structure
func NewEntry() *Entry {
	e := &Entry{}

	o := C.gtk_entry_new()

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

	e.object = C.to_GtkEntry(unsafe.Pointer(o))
	return e
}
Exemplo n.º 2
0
// Conversion function for gobject registration map
func newEntryFromNative(obj unsafe.Pointer) interface{} {
	var entry Entry
	entry.object = C.to_GtkEntry(obj)
	entry.Container = NewContainer(unsafe.Pointer(obj))
	return &entry
}