Example #1
0
func NewFrame(label string) *Frame {
	f := &Frame{}

	s := gobject.GString(label)
	defer s.Free()

	o := C.gtk_frame_new((*C.gchar)(s.GetPtr()))

	f.Container = NewContainer(unsafe.Pointer(o))
	f.object = C.to_GtkFrame(unsafe.Pointer(o))

	return f
}
Example #2
0
// Conversion function for gobject registration map
func newFrameFromNative(obj unsafe.Pointer) interface{} {
	var f Frame
	f.object = C.to_GtkFrame(obj)
	f.Container = NewContainer(unsafe.Pointer(f.object))
	return &f
}