예제 #1
0
        public Gtk.WidgetPath Copy()
        {
            IntPtr raw_ret = gtk_widget_path_copy(Handle);

            Gtk.WidgetPath ret = raw_ret == IntPtr.Zero ? null : (Gtk.WidgetPath)GLib.Opaque.GetOpaque(raw_ret, typeof(Gtk.WidgetPath), true);
            return(ret);
        }
예제 #2
0
        public Gtk.WidgetPath IterGetSiblings(int pos)
        {
            IntPtr raw_ret = gtk_widget_path_iter_get_siblings(Handle, pos);

            Gtk.WidgetPath ret = raw_ret == IntPtr.Zero ? null : (Gtk.WidgetPath)GLib.Opaque.GetOpaque(raw_ret, typeof(Gtk.WidgetPath), false);
            return(ret);
        }
예제 #3
0
        public int AppendWithSiblings(Gtk.WidgetPath siblings, uint sibling_index)
        {
            int raw_ret = gtk_widget_path_append_with_siblings(Handle, siblings == null ? IntPtr.Zero : siblings.Handle, sibling_index);
            int ret     = raw_ret;

            return(ret);
        }
예제 #4
0
        public Gtk.WidgetPath GetPathForChild(Gtk.Widget child)
        {
            IntPtr raw_ret = gtk_container_get_path_for_child(Handle, child == null ? IntPtr.Zero : child.Handle);

            Gtk.WidgetPath ret = raw_ret == IntPtr.Zero ? null : (Gtk.WidgetPath)GLib.Opaque.GetOpaque(raw_ret, typeof(Gtk.WidgetPath), false);
            return(ret);
        }
예제 #5
0
        public bool GetStyleProperty(Gtk.WidgetPath path, Gtk.StateFlags state, IntPtr pspec, GLib.Value value)
        {
            IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc(value);
            bool   raw_ret      = gtk_style_provider_get_style_property(Handle, path == null ? IntPtr.Zero : path.Handle, (int)state, pspec, native_value);
            bool   ret          = raw_ret;

            Marshal.FreeHGlobal(native_value);
            return(ret);
        }