Exemplo n.º 1
0
        private void InternalMoveFocusOut(Gtk.DirectionType direction)
        {
            MoveFocusOutNativeDelegate unmanaged = class_abi.BaseOverride <MoveFocusOutNativeDelegate>(this.LookupGType(), "move_focus_out");

            if (unmanaged == null)
            {
                return;
            }

            unmanaged(this.Handle, (int)direction);
        }
Exemplo n.º 2
0
        private void InternalMove(Gtk.DirectionType type)
        {
            MoveNativeDelegate unmanaged = class_abi.BaseOverride <MoveNativeDelegate>(this.LookupGType(), "move");

            if (unmanaged == null)
            {
                return;
            }

            unmanaged(this.Handle, (int)type);
        }
Exemplo n.º 3
0
 private void InternalCycleFocus(Gtk.DirectionType p0)
 {
     GLib.Value      ret             = GLib.Value.Empty;
     GLib.ValueArray inst_and_params = new GLib.ValueArray(2);
     GLib.Value[]    vals            = new GLib.Value [2];
     vals [0] = new GLib.Value(this);
     inst_and_params.Append(vals [0]);
     vals [1] = new GLib.Value(p0);
     inst_and_params.Append(vals [1]);
     g_signal_chain_from_overridden(inst_and_params.ArrayPtr, ref ret);
     foreach (GLib.Value v in vals)
     {
         v.Dispose();
     }
 }
Exemplo n.º 4
0
        private void InternalMoveFocusOut(Gtk.DirectionType direction)
        {
            MoveFocusOutNativeDelegate unmanaged = null;

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

            unmanaged(this.Handle, (int)direction);
        }
Exemplo n.º 5
0
 protected virtual void OnMoveCursor(Gtk.DirectionType dir, bool clear_selection)
 {
     gnomesharp_iconlist_base_move_cursor(Handle, (int)dir, clear_selection);
 }
Exemplo n.º 6
0
 protected virtual void OnCycleFocus(Gtk.DirectionType p0)
 {
     InternalCycleFocus(p0);
 }
Exemplo n.º 7
0
 protected virtual void OnMoveFocusOut(Gtk.DirectionType direction)
 {
     InternalMoveFocusOut(direction);
 }
Exemplo n.º 8
0
 protected virtual void OnMove(Gtk.DirectionType type)
 {
     InternalMove(type);
 }
Exemplo n.º 9
0
 public void Focus(Gtk.DirectionType direction, Action <Gtk.DirectionType> onExit)
 {
     exitAction = onExit;
     Focus(direction);
 }
Exemplo n.º 10
0
 void Focus(Gtk.DirectionType direction)
 {
     awesomeBar.Window.MakeFirstResponder(direction == Gtk.DirectionType.TabForward ? (NSView)awesomeBar.RunButton : (NSView)awesomeBar.SearchBar);
 }