コード例 #1
0
ファイル: Gtk_ListBox.cs プロジェクト: thiblahute/gtk-sharp
        public Gtk.ListBoxRow GetRowAtY(int y)
        {
            IntPtr raw_ret = gtk_list_box_get_row_at_y(Handle, y);

            Gtk.ListBoxRow ret = GLib.Object.GetObject(raw_ret) as Gtk.ListBoxRow;
            return(ret);
        }
コード例 #2
0
ファイル: Gtk_ListBox.cs プロジェクト: thiblahute/gtk-sharp
        public Gtk.ListBoxRow GetRowAtIndex(int index_)
        {
            IntPtr raw_ret = gtk_list_box_get_row_at_index(Handle, index_);

            Gtk.ListBoxRow ret = GLib.Object.GetObject(raw_ret) as Gtk.ListBoxRow;
            return(ret);
        }
コード例 #3
0
        private void InternalListRowActivated(Gtk.ListBoxRow row)
        {
            ListRowActivatedNativeDelegate unmanaged = class_abi.BaseOverride <ListRowActivatedNativeDelegate>(this.LookupGType(), "row_activated");

            if (unmanaged == null)
            {
                return;
            }

            unmanaged(this.Handle, row == null ? IntPtr.Zero : row.Handle);
        }
コード例 #4
0
ファイル: Gtk_ListBox.cs プロジェクト: thiblahute/gtk-sharp
        private void InternalListRowActivated(Gtk.ListBoxRow row)
        {
            ListRowActivatedNativeDelegate unmanaged = null;

            unsafe {
                IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("row_activated"));
                unmanaged = (ListRowActivatedNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(ListRowActivatedNativeDelegate));
            }
            if (unmanaged == null)
            {
                return;
            }

            unmanaged(this.Handle, row == null ? IntPtr.Zero : row.Handle);
        }
コード例 #5
0
        int InvokeNative(Gtk.ListBoxRow row1, Gtk.ListBoxRow row2)
        {
            int __result = native_cb(row1 == null ? IntPtr.Zero : row1.Handle, row2 == null ? IntPtr.Zero : row2.Handle, __data);

            return(__result);
        }
コード例 #6
0
 void InvokeNative(Gtk.ListBox box, Gtk.ListBoxRow row)
 {
     native_cb(box == null ? IntPtr.Zero : box.Handle, row == null ? IntPtr.Zero : row.Handle, __data);
 }
 void InvokeNative(Gtk.ListBoxRow row, Gtk.ListBoxRow before)
 {
     native_cb(row == null ? IntPtr.Zero : row.Handle, before == null ? IntPtr.Zero : before.Handle, __data);
 }
コード例 #8
0
ファイル: Gtk_ListBox.cs プロジェクト: thiblahute/gtk-sharp
 public void UnselectRow(Gtk.ListBoxRow row)
 {
     gtk_list_box_unselect_row(Handle, row == null ? IntPtr.Zero : row.Handle);
 }
コード例 #9
0
ファイル: Gtk_ListBox.cs プロジェクト: thiblahute/gtk-sharp
 public void DragHighlightRow(Gtk.ListBoxRow row)
 {
     gtk_list_box_drag_highlight_row(Handle, row == null ? IntPtr.Zero : row.Handle);
 }
コード例 #10
0
ファイル: Gtk_ListBox.cs プロジェクト: thiblahute/gtk-sharp
 protected virtual void OnListRowActivated(Gtk.ListBoxRow row)
 {
     InternalListRowActivated(row);
 }
コード例 #11
0
ファイル: Gtk_ListBox.cs プロジェクト: thiblahute/gtk-sharp
 protected virtual void OnRowSelected(Gtk.ListBoxRow row)
 {
     InternalRowSelected(row);
 }
コード例 #12
0
        bool InvokeNative(Gtk.ListBoxRow row)
        {
            bool __result = native_cb(row == null ? IntPtr.Zero : row.Handle, __data);

            return(__result);
        }