// BackForwardList is a wrapper around webkit_web_view_get_back_forward_list(). func (w *WebView) BackForwardList() *BackForwardList { c := C.webkit_web_view_get_back_forward_list(w.native()) obj := &glib.Object{GObject: glib.ToGObject(unsafe.Pointer(c))} obj.RefSink() runtime.SetFinalizer(obj, (*glib.Object).Unref) return wrapBackForwardList(obj) }
// Flip is a wrapper around gdk_pixbuf_flip(). func (v *Pixbuf) Flip(horizontal bool) (*Pixbuf, error) { c := C.gdk_pixbuf_flip(v.Native(), gbool(horizontal)) if c == nil { return nil, nilPtrErr } obj := &glib.Object{glib.ToGObject(unsafe.Pointer(c))} p := &Pixbuf{obj} runtime.SetFinalizer(obj, (*glib.Object).Unref) return p, nil }
// ScaleSimple is a wrapper around gdk_pixbuf_scale_simple(). func (v *Pixbuf) ScaleSimple(width, height int, interp InterpType) (*Pixbuf, error) { c := C.gdk_pixbuf_scale_simple(v.Native(), C.int(width), C.int(height), C.GdkInterpType(interp)) if c == nil { return nil, nilPtrErr } obj := &glib.Object{glib.ToGObject(unsafe.Pointer(c))} p := &Pixbuf{obj} runtime.SetFinalizer(obj, (*glib.Object).Unref) return p, nil }
// Context is a wrapper around webkit_web_view_get_context(). func (w *WebView) Context() *WebContext { c := C.webkit_web_view_get_context(w.native()) if c == nil { return nil } obj := &glib.Object{GObject: glib.ToGObject(unsafe.Pointer(c))} obj.RefSink() runtime.SetFinalizer(obj, (*glib.Object).Unref) return wrapWebContext(obj) }
// RotateSimple is a wrapper around gdk_pixbuf_rotate_simple(). func (v *Pixbuf) RotateSimple(angle PixbufRotation) (*Pixbuf, error) { c := C.gdk_pixbuf_rotate_simple(v.Native(), C.GdkPixbufRotation(angle)) if c == nil { return nil, nilPtrErr } obj := &glib.Object{glib.ToGObject(unsafe.Pointer(c))} p := &Pixbuf{obj} runtime.SetFinalizer(obj, (*glib.Object).Unref) return p, nil }
// SecurityManager is a wrapper around webkit_web_context_get_security_manager(). func (w *WebContext) SecurityManager() *SecurityManager { c := C.webkit_web_context_get_security_manager(w.native()) if c == nil { return nil } obj := &glib.Object{GObject: glib.ToGObject(unsafe.Pointer(c))} obj.RefSink() runtime.SetFinalizer(obj, (*glib.Object).Unref) return wrapSecurityManager(obj) }
// NewWebViewWithGroup is a wrapper around webkit_web_view_new_with_group(). func NewWebViewWithGroup(group *WebViewGroup) *WebView { c := C.webkit_web_view_new_with_group(group.native()) if c == nil { return nil } obj := &glib.Object{GObject: glib.ToGObject(unsafe.Pointer(c))} obj.RefSink() runtime.SetFinalizer(obj, (*glib.Object).Unref) return wrapWebView(obj) }
// FaviconDatabase is a wrapper around webkit_web_context_get_favicon_database(). func (w *WebContext) FaviconDatabase() *FaviconDatabase { c := C.webkit_web_context_get_favicon_database(w.native()) if c == nil { return nil } obj := &glib.Object{GObject: glib.ToGObject(unsafe.Pointer(c))} obj.RefSink() runtime.SetFinalizer(obj, (*glib.Object).Unref) return wrapFaviconDatabase(obj) }
// DefaultWebContext is a wrapper around webkit_web_context_get_default(). func DefaultWebContext() *WebContext { c := C.webkit_web_context_get_default() if c == nil { return nil } obj := &glib.Object{GObject: glib.ToGObject(unsafe.Pointer(c))} obj.RefSink() runtime.SetFinalizer(obj, (*glib.Object).Unref) return wrapWebContext(obj) }
// NthItem is a wrapper around webkit_back_forward_list_get_nth_item(). func (l *BackForwardList) NthItem(n int) *BackForwardListItem { c := C.webkit_back_forward_list_get_nth_item(l.native(), C.gint(n)) if c == nil { return nil } obj := &glib.Object{GObject: glib.ToGObject(unsafe.Pointer(c))} obj.RefSink() runtime.SetFinalizer(obj, (*glib.Object).Unref) return wrapBackForwardListItem(obj) }
// GetHeader is a wrapper around gtk_list_box_row_get_header(). func (v *ListBoxRow) GetHeader() *Widget { c := C.gtk_list_box_row_get_header(v.native()) if c == nil { return nil } obj := &glib.Object{glib.ToGObject(unsafe.Pointer(c))} w := wrapWidget(obj) obj.RefSink() runtime.SetFinalizer(obj, (*glib.Object).Unref) return w }
func ListBoxRowNew() (*ListBoxRow, error) { c := C.gtk_list_box_row_new() if c == nil { return nil, nilPtrErr } obj := &glib.Object{glib.ToGObject(unsafe.Pointer(c))} w := wrapListBoxRow(obj) obj.RefSink() runtime.SetFinalizer(obj, (*glib.Object).Unref) return w, nil }
// GetDeviceManager() is a wrapper around gdk_display_get_device_manager(). func (v *Display) GetDeviceManager() (*DeviceManager, error) { c := C.gdk_display_get_device_manager(v.Native()) if c == nil { return nil, nilPtrErr } obj := &glib.Object{glib.ToGObject(unsafe.Pointer(c))} d := &DeviceManager{obj} obj.Ref() runtime.SetFinalizer(obj, (*glib.Object).Unref) return d, nil }
// DisplayGetDefault() is a wrapper around gdk_display_get_default(). func DisplayGetDefault() (*Display, error) { c := C.gdk_display_get_default() if c == nil { return nil, nilPtrErr } obj := &glib.Object{glib.ToGObject(unsafe.Pointer(c))} d := &Display{obj} obj.Ref() runtime.SetFinalizer(obj, (*glib.Object).Unref) return d, nil }
// GetSystemVisual is a wrapper around gdk_screen_get_system_visual(). func (v *Screen) GetSystemVisual() (*Visual, error) { c := C.gdk_screen_get_system_visual(v.native()) if c == nil { return nil, nilPtrErr } obj := &glib.Object{glib.ToGObject(unsafe.Pointer(c))} visual := &Visual{obj} obj.Ref() runtime.SetFinalizer(obj, (*glib.Object).Unref) return visual, nil }
// StackSwitcherNew is a wrapper around gtk_stack_switcher_new(). func StackSwitcherNew() (*StackSwitcher, error) { c := C.gtk_stack_switcher_new() if c == nil { return nil, nilPtrErr } obj := &glib.Object{glib.ToGObject(unsafe.Pointer(c))} s := wrapStackSwitcher(obj) obj.RefSink() runtime.SetFinalizer(obj, (*glib.Object).Unref) return s, nil }
// RevealerNew is a wrapper around gtk_revealer_new() func RevealerNew() (*Revealer, error) { c := C.gtk_revealer_new() if c == nil { return nil, nilPtrErr } obj := &glib.Object{glib.ToGObject(unsafe.Pointer(c))} r := wrapRevealer(obj) obj.RefSink() runtime.SetFinalizer(obj, (*glib.Object).Unref) return r, nil }
// PlugNew is a wrapper around gtk_plug_new(). func PlugNew(socketId WindowId) (*Plug, error) { c := C.gtk_plug_new(C.Window(socketId)) if c == nil { return nil, nilPtrErr } obj := &glib.Object{glib.ToGObject(unsafe.Pointer(c))} p := wrapPlug(obj) obj.RefSink() runtime.SetFinalizer(obj, (*glib.Object).Unref) return p, nil }
// GetVisibleChild is a wrapper around gtk_stack_get_visible_child(). func (v *Stack) GetVisibleChild() *Widget { c := C.gtk_stack_get_visible_child(v.native()) if c == nil { return nil } obj := &glib.Object{glib.ToGObject(unsafe.Pointer(c))} s := wrapWidget(obj) obj.RefSink() runtime.SetFinalizer(obj, (*glib.Object).Unref) return s }
// GetPlugWindow is a wrapper around gtk_socket_get_plug_window(). func (v *Socket) GetPlugWindow() (*gdk.Window, error) { c := C.gtk_socket_get_plug_window(v.Native()) if c == nil { return nil, nilPtrErr } obj := &glib.Object{glib.ToGObject(unsafe.Pointer(c))} w := &gdk.Window{obj} w.Ref() runtime.SetFinalizer(obj, (*glib.Object).Unref) return w, nil }
// GetStack is a wrapper around gtk_stack_switcher_get_stack(). func (v *StackSwitcher) GetStack() *Stack { c := C.gtk_stack_switcher_get_stack(v.native()) if c == nil { return nil } obj := &glib.Object{glib.ToGObject(unsafe.Pointer(c))} s := wrapStack(obj) obj.RefSink() runtime.SetFinalizer(obj, (*glib.Object).Unref) return s }
// GetPixbuf() is a wrapper around gdk_pixbuf_loader_get_pixbuf(). func (v *PixbufLoader) GetPixbuf() (*Pixbuf, error) { c := C.gdk_pixbuf_loader_get_pixbuf(v.Native()) if c == nil { return nil, nilPtrErr } obj := &glib.Object{glib.ToGObject(unsafe.Pointer(c))} p := &Pixbuf{obj} obj.Ref() runtime.SetFinalizer(obj, (*glib.Object).Unref) return p, nil }
// SocketNew is a wrapper around gtk_socket_new(). func SocketNew() (*Socket, error) { c := C.gtk_socket_new() if c == nil { return nil, nilPtrErr } obj := &glib.Object{glib.ToGObject(unsafe.Pointer(c))} s := wrapSocket(obj) obj.RefSink() runtime.SetFinalizer(obj, (*glib.Object).Unref) return s, nil }
// HeaderBarNew is a wrapper around gtk_header_bar_new(). func HeaderBarNew() (*HeaderBar, error) { c := C.gtk_header_bar_new() if c == nil { return nil, nilPtrErr } obj := &glib.Object{glib.ToGObject(unsafe.Pointer(c))} h := wrapHeaderBar(obj) obj.RefSink() runtime.SetFinalizer(obj, (*glib.Object).Unref) return h, nil }
// GetImage is a wrapper around gtk_message_dialog_get_image(). func (v *MessageDialog) GetImage() (*Widget, error) { c := C.gtk_message_dialog_get_image(v.native()) if c == nil { return nil, nilPtrErr } obj := &glib.Object{glib.ToGObject(unsafe.Pointer(c))} w := wrapWidget(obj) obj.RefSink() runtime.SetFinalizer(obj, (*glib.Object).Unref) return w, nil }
// GetCustomTitle is a wrapper around gtk_header_bar_get_custom_title(). func (v *HeaderBar) GetCustomTitle() (*Widget, error) { c := C.gtk_header_bar_get_custom_title(v.native()) if c == nil { return nil, nilPtrErr } obj := &glib.Object{glib.ToGObject(unsafe.Pointer(c))} w := wrapWidget(obj) obj.RefSink() runtime.SetFinalizer(obj, (*glib.Object).Unref) return w, nil }
// GetDefaultScreen() is a wrapper around gdk_display_get_default_screen(). func (v *Display) GetDefaultScreen() (*Screen, error) { c := C.gdk_display_get_default_screen(v.Native()) if c == nil { return nil, nilPtrErr } obj := &glib.Object{glib.ToGObject(unsafe.Pointer(c))} s := &Screen{obj} obj.Ref() runtime.SetFinalizer(obj, (*glib.Object).Unref) return s, nil }
// GetSelectedRow is a wrapper around gtk_list_box_get_selected_row(). func (v *ListBox) GetSelectedRow() *ListBoxRow { c := C.gtk_list_box_get_selected_row(v.native()) if c == nil { return nil } obj := &glib.Object{glib.ToGObject(unsafe.Pointer(c))} l := wrapListBoxRow(obj) obj.RefSink() runtime.SetFinalizer(obj, (*glib.Object).Unref) return l }
// GetDefaultGroup() is a wrapper around gdk_display_get_default_group(). func (v *Display) GetDefaultGroup() (*Window, error) { c := C.gdk_display_get_default_group(v.Native()) if c == nil { return nil, nilPtrErr } obj := &glib.Object{glib.ToGObject(unsafe.Pointer(c))} w := &Window{obj} obj.Ref() runtime.SetFinalizer(obj, (*glib.Object).Unref) return w, nil }
// GetRowAtY is a wrapper around gtk_list_box_get_row_at_y(). func (v *ListBox) GetRowAtY(y int) *ListBoxRow { c := C.gtk_list_box_get_row_at_y(v.native(), C.gint(y)) if c == nil { return nil } obj := &glib.Object{glib.ToGObject(unsafe.Pointer(c))} l := wrapListBoxRow(obj) obj.RefSink() runtime.SetFinalizer(obj, (*glib.Object).Unref) return l }