Beispiel #1
0
 static void SetSummaryCallback(IntPtr table, IntPtr accessible)
 {
     try {
         Atk.TableImplementor __obj = GLib.Object.GetObject(table, false) as Atk.TableImplementor;
         __obj.Summary = GLib.Object.GetObject(accessible) as Atk.Object;
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
Beispiel #2
0
 static void SetRowHeaderCallback(IntPtr table, int row, IntPtr header)
 {
     try {
         Atk.TableImplementor __obj = GLib.Object.GetObject(table, false) as Atk.TableImplementor;
         __obj.SetRowHeader(row, GLib.Object.GetObject(header) as Atk.Object);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
Beispiel #3
0
 static void SetRowDescriptionCallback(IntPtr table, int row, IntPtr description)
 {
     try {
         Atk.TableImplementor __obj = GLib.Object.GetObject(table, false) as Atk.TableImplementor;
         __obj.SetRowDescription(row, GLib.Marshaller.Utf8PtrToString(description));
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
Beispiel #4
0
 static void SetCaptionCallback(IntPtr table, IntPtr caption)
 {
     try {
         Atk.TableImplementor __obj = GLib.Object.GetObject(table, false) as Atk.TableImplementor;
         __obj.Caption = GLib.Object.GetObject(caption) as Atk.Object;
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, false);
     }
 }
Beispiel #5
0
 static IntPtr RefAtCallback(IntPtr table, int row, int column)
 {
     try {
         Atk.TableImplementor __obj    = GLib.Object.GetObject(table, false) as Atk.TableImplementor;
         Atk.Object           __result = __obj.RefAt(row, column);
         return(__result == null ? IntPtr.Zero : __result.OwnedHandle);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
Beispiel #6
0
 static bool RemoveColumnSelectionCallback(IntPtr table, int column)
 {
     try {
         Atk.TableImplementor __obj = GLib.Object.GetObject(table, false) as Atk.TableImplementor;
         bool __result = __obj.RemoveColumnSelection(column);
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
Beispiel #7
0
 static IntPtr GetRowDescriptionCallback(IntPtr table, int row)
 {
     try {
         Atk.TableImplementor __obj = GLib.Object.GetObject(table, false) as Atk.TableImplementor;
         string __result            = __obj.GetRowDescription(row);
         return(GLib.Marshaller.StringToPtrGStrdup(__result));
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
Beispiel #8
0
 static int GetRowExtentAtCallback(IntPtr table, int row, int column)
 {
     try {
         Atk.TableImplementor __obj = GLib.Object.GetObject(table, false) as Atk.TableImplementor;
         int __result = __obj.GetRowExtentAt(row, column);
         return(__result);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }
Beispiel #9
0
 static int GetSelectedRowsCallback(IntPtr table, out IntPtr selected_ptr)
 {
     try {
         Atk.TableImplementor __obj = GLib.Object.GetObject(table, false) as Atk.TableImplementor;
         int [] selected            = __obj.SelectedRows;
         if (selected.Length > 0)
         {
             selected_ptr = GLib.Marshaller.Malloc((ulong)(sizeof(int) * selected.Length));
             Marshal.Copy(selected, 0, selected_ptr, selected.Length);
         }
         else
         {
             selected_ptr = IntPtr.Zero;
         }
         return(selected.Length);
     } catch (Exception e) {
         GLib.ExceptionManager.RaiseUnhandledException(e, true);
         // NOTREACHED: above call does not return.
         throw e;
     }
 }