public AccelKey(Gdk.Key key, Gdk.ModifierType mods, Gtk.AccelFlags flags) { this.Key = key; this.AccelMods = mods; this._bitfield0 = 0; this.AccelFlags = flags; }
public void AddAccelerator(EventHandler handler, uint key, Gdk.ModifierType modifiers, Gtk.AccelFlags flags) { Gtk.MenuItem foo = new Gtk.MenuItem(); foo.Activated += handler; foo.AddAccelerator("activate", accel_group, key, modifiers, flags); foo.Show(); fake_menu.Append(foo); }
public void Connect(uint accel_key, Gdk.ModifierType accel_mods, Gtk.AccelFlags accel_flags, IntPtr closure) { gtk_accel_group_connect(Handle, accel_key, (int)accel_mods, (int)accel_flags, closure); }
public static extern IntPtr gtk_accel_group_connect(IntPtr accel_group, Gdk.Key accel_key, Gdk.ModifierType accel_mods, Gtk.AccelFlags accel_flags, IntPtr closure);
public AccelKey(Gdk.Key key, Gdk.ModifierType mods, Gtk.AccelFlags flags) { this.Key = key; this.AccelMods = mods; this.AccelFlags = (ushort)flags; }