2003-02-23 09:17:59 +00:00
<Type Name= "AccelGroup" FullName= "Gtk.AccelGroup" >
<TypeSignature Language= "C#" Value= "public class AccelGroup : GLib.Object, IWrapper, IDisposable" Maintainer= "RJS" />
<AssemblyInfo >
<AssemblyName > gtk-sharp</AssemblyName>
2003-12-24 01:35:30 +00:00
<AssemblyPublicKey >
</AssemblyPublicKey>
2003-02-23 09:17:59 +00:00
<AssemblyVersion > 0.0.0.0</AssemblyVersion>
2003-10-28 00:48:23 +00:00
<AssemblyCulture > neutral</AssemblyCulture>
2003-02-23 09:17:59 +00:00
<Attributes />
</AssemblyInfo>
<ThreadSafetyStatement > Gtk# is thread aware, but not thread safe; See the <link location= "node:gtk-sharp/programming/threads" > Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
<Docs >
<summary > Groups of global keyboard accelerators for an entire GtkWindow</summary>
<remarks >
<para >
2003-07-01 04:15:36 +00:00
A GtkAccelGroup represents a group of keyboard accelerators,
2003-07-17 06:38:40 +00:00
typically attached to a toplevel GtkWindow (with <see cref= "M:Gtk.Window.AddAccelGroup(Gtk.AccelGroup)" /> ). Usually
2003-07-04 07:49:31 +00:00
you won't need to create a <see cref= "T:Gtk.AccelGroup" />
2003-07-17 06:38:40 +00:00
directly; instead, when using <see cref= "T:Gtk.ItemFactory" /> , Gtk# automatically sets up the accelerators for your menus
2003-07-04 07:49:31 +00:00
in the item factory's <see cref= "T:Gtk.AccelGroup" /> .
2003-02-23 09:17:59 +00:00
</para>
<para >
2003-07-01 04:15:36 +00:00
Note that accelerators are different from
mnemonics. Accelerators are shortcuts for activating a menu
2003-10-28 00:48:23 +00:00
item; they appear alongside the menu item they are a shortcut
2003-07-01 04:15:36 +00:00
for. For example "Ctrl+Q" might appear alongside the "Quit"
menu item. Mnemonics are shortcuts for GUI elements such as
text entries or buttons; they appear as underlined
2003-07-17 06:38:40 +00:00
characters. <see cref= "M:Gtk.Label.NewWithMnemonic(System.String)" /> . Menu
2003-07-04 07:49:31 +00:00
items can have both accelerators and mnemonics, of course.
2003-02-23 09:17:59 +00:00
</para>
</remarks>
</Docs>
<Base >
<BaseTypeName > GLib.Object</BaseTypeName>
</Base>
<Interfaces >
<Interface >
<InterfaceName > GLib.IWrapper</InterfaceName>
</Interface>
<Interface >
<InterfaceName > System.IDisposable</InterfaceName>
</Interface>
</Interfaces>
<Attributes />
<Members >
<Member MemberName= "FromAccelClosure" >
<MemberSignature Language= "C#" Value= "public static Gtk.AccelGroup FromAccelClosure (IntPtr closure);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > Gtk.AccelGroup</ReturnType>
</ReturnValue>
<Parameters >
2003-07-31 21:44:39 +00:00
<Parameter Name= "closure" Type= "System.IntPtr" />
</Parameters>
2003-02-23 09:17:59 +00:00
<Docs >
<summary > Finds the <see cref= "T:Gtk.AccelGroup" /> to which closure is connected.</summary>
<param name= "closure" > A GClosure (<see cref= "T:System.IntPtr" /> )</param>
2003-07-31 21:44:39 +00:00
<returns > The <see cref= "T:Gtk.AccelGroup" /> to which <paramref name= "closure" /> is connected, or <see langword= "null" /> .</returns>
2003-03-07 01:30:00 +00:00
<remarks />
2003-02-23 09:17:59 +00:00
</Docs>
</Member>
<Member MemberName= "Unlock" >
<MemberSignature Language= "C#" Value= "public void Unlock ();" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2003-07-04 07:49:31 +00:00
<summary > Undoes the last call to <see cref= "M:Gtk.AccelGroup.Lock" /> on its object.</summary>
2003-03-07 01:30:00 +00:00
<remarks />
2003-02-23 09:17:59 +00:00
</Docs>
</Member>
<Member MemberName= "Disconnect" >
<MemberSignature Language= "C#" Value= "public bool Disconnect (IntPtr closure);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Boolean</ReturnType>
</ReturnValue>
<Parameters >
2003-07-31 21:44:39 +00:00
<Parameter Name= "closure" Type= "System.IntPtr" />
</Parameters>
2003-02-23 09:17:59 +00:00
<Docs >
2003-07-04 07:49:31 +00:00
<summary > Removes an accelerator previously installed through
<see cref= "M:Gtk.AccelGroup.Connect(System.UInt32,Gdk.ModifierType,Gtk.AccelFlags,System.IntPtr)" /> .</summary>
2003-02-23 09:17:59 +00:00
<param name= "closure" > The closure to remove from this accelerator group.</param>
2003-03-07 01:30:00 +00:00
<returns >
2003-04-22 10:15:35 +00:00
<see langword= "true" /> if the closure was found and got disconnected</returns>
2003-03-07 01:30:00 +00:00
<remarks />
2003-02-23 09:17:59 +00:00
</Docs>
</Member>
<Member MemberName= "ConnectByPath" >
<MemberSignature Language= "C#" Value= "public void ConnectByPath (string accel_path, IntPtr closure);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
2003-07-31 21:44:39 +00:00
<Parameter Name= "accel_path" Type= "System.String" />
<Parameter Name= "closure" Type= "System.IntPtr" />
</Parameters>
2003-02-23 09:17:59 +00:00
<Docs >
2003-07-04 07:49:31 +00:00
<summary > Installs an accelerator in this group, using an
accelerator path to look up the appropriate key and modifiers
2005-02-23 20:16:40 +00:00
(see <see cref= "M:Gtk.AccelMap.AddEntry" /> ). When the
2004-08-24 17:01:00 +00:00
group is being activated in response to a call to <see cref= "M:Gtk.AccelGroup.Activate" /> , <paramref name= "closure" /> will be invoked if the accel_key and
2003-07-04 07:49:31 +00:00
accel_mods from <see cref= "M:Gtk.AccelGroup.Activate" />
match the key and modifiers for the path.</summary>
2003-02-23 09:17:59 +00:00
<param name= "accel_path" > Path used for determining key and modifiers.</param>
<param name= "closure" > Closure to be executed upon accelerator activation</param>
</Docs>
</Member>
<Member MemberName= "DisconnectKey" >
<MemberSignature Language= "C#" Value= "public bool DisconnectKey (uint accel_key, Gdk.ModifierType accel_mods);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Boolean</ReturnType>
</ReturnValue>
<Parameters >
2003-07-31 21:44:39 +00:00
<Parameter Name= "accel_key" Type= "System.UInt32" />
<Parameter Name= "accel_mods" Type= "Gdk.ModifierType" />
</Parameters>
2003-02-23 09:17:59 +00:00
<Docs >
2003-07-04 07:49:31 +00:00
<summary > Removes an accelerator previously installed through <see cref= "M:Gtk.AccelGroup.Connect(System.UInt32,Gdk.ModifierType,Gtk.AccelFlags,System.IntPtr)" /> .</summary>
2003-02-23 09:17:59 +00:00
<param name= "accel_key" > Key value of the accelerator.</param>
<param name= "accel_mods" > Modifier combination of the accelerator.</param>
2003-03-07 01:30:00 +00:00
<returns >
2003-04-22 10:15:35 +00:00
<see langword= "true" /> if there was an accelerator which could be removed, <see langword= "false" /> otherwise.</returns>
2003-02-23 09:17:59 +00:00
</Docs>
</Member>
<Member MemberName= "Lock" >
<MemberSignature Language= "C#" Value= "public void Lock ();" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
<summary > Locks the given accelerator group.</summary>
2003-07-04 07:49:31 +00:00
<remarks > Locking an accelerator group prevents the
accelerators contained within it to be changed duringb
runtime. Refer to 'gtk_accel_map_change_entry ()' about
runtime accelerator changes. If called more than once, it
remains locked until <see cref= "M:Gtk.AccelGroup.Unlock" />
has been called an equivalent number of times.
2003-02-23 09:17:59 +00:00
</remarks>
</Docs>
</Member>
<Member MemberName= "Connect" >
<MemberSignature Language= "C#" Value= "public void Connect (uint accel_key, Gdk.ModifierType accel_mods, Gtk.AccelFlags accel_flags, IntPtr closure);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
2003-07-31 21:44:39 +00:00
<Parameter Name= "accel_key" Type= "System.UInt32" />
<Parameter Name= "accel_mods" Type= "Gdk.ModifierType" />
<Parameter Name= "accel_flags" Type= "Gtk.AccelFlags" />
<Parameter Name= "closure" Type= "System.IntPtr" />
</Parameters>
2003-02-23 09:17:59 +00:00
<Docs >
2003-07-04 07:49:31 +00:00
<summary >
Installs an accelerator in this group. When accel_group is
2003-07-17 06:38:40 +00:00
being activated in response to a call to <see cref= "M:Gtk.AccelGroup.Activate" /> , closure will be
invoked if the accel_key and accel_mods from <see cref= "M:Gtk.AccelGroup.Activate" /> match those of this
2003-07-04 07:49:31 +00:00
connection. The signature used for the closure is that of
<see cref= "M:Gtk.AccelGroup.Activate" /> .
</summary>
2003-02-23 09:17:59 +00:00
<param name= "accel_key" > Key value of the accelerator.</param>
<param name= "accel_mods" > Modifier combination of the accelerator.</param>
<param name= "accel_flags" > A flag mask to configure this accelerator.</param>
<param name= "closure" > Closure to be executed upon accelerator activation.</param>
<remarks > Note that, due to implementation details, a single closure can only be connected to one accelerator group.</remarks>
</Docs>
</Member>
<Member MemberName= "Finalize" >
2003-10-13 22:55:58 +00:00
<MemberSignature Language= "C#" Value= "protected override void Finalize ();" />
2003-02-23 09:17:59 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
<summary > Disposes the resources associated with the object.</summary>
<remarks />
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public AccelGroup (IntPtr raw);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
2003-07-31 21:44:39 +00:00
<Parameter Name= "raw" Type= "System.IntPtr" />
</Parameters>
2003-02-23 09:17:59 +00:00
<Docs >
<summary > Internal constructor</summary>
<param name= "raw" > Pointer to the C object.</param>
<returns > An instance of AccelGroup, wrapping the C object.</returns>
<remarks >
<para > This is an internal constructor, and should not be used by user code.</para>
</remarks>
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public AccelGroup ();" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters />
<Docs >
2004-08-05 22:35:12 +00:00
<summary > Default public constructor.</summary>
<returns > A new <see cref= "T:Gtk.AccelGroup" /> .</returns>
2004-08-17 20:43:49 +00:00
<remarks />
2003-02-23 09:17:59 +00:00
</Docs>
</Member>
<Member MemberName= "AccelChanged" >
2004-02-25 23:39:06 +00:00
<MemberSignature Language= "C#" Value= "public event Gtk.AccelChangedHandler AccelChanged;" />
2003-02-23 09:17:59 +00:00
<MemberType > Event</MemberType>
2003-07-31 21:44:39 +00:00
<ReturnValue >
2004-02-25 23:39:06 +00:00
<ReturnType > Gtk.AccelChangedHandler</ReturnType>
2003-07-31 21:44:39 +00:00
</ReturnValue>
2003-02-23 09:17:59 +00:00
<Parameters />
<Docs >
2003-03-07 01:30:00 +00:00
<summary />
<remarks />
</Docs>
</Member>
2003-07-17 06:38:40 +00:00
<Member MemberName= "Find" >
<MemberSignature Language= "C#" Value= "public Gtk.AccelKey Find (Gtk.AccelGroupFindFunc find_func);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > Gtk.AccelKey</ReturnType>
</ReturnValue>
<Parameters >
2003-07-31 21:44:39 +00:00
<Parameter Name= "find_func" Type= "Gtk.AccelGroupFindFunc" />
</Parameters>
2003-07-17 06:38:40 +00:00
<Docs >
2004-08-08 08:22:39 +00:00
<summary > Finds the first entry in an accelerator group for which <paramref name= "find_func" /> returns TRUE and returns its <see cref= "T:Gtk.AccelKey" /> .</summary>
2004-08-05 22:35:12 +00:00
<param name= "find_func" > a <see cref= "T:Gtk.AccelGroupFindFunc" /> for filtering the AccelGroup entries</param>
<returns > a <see cref= "T:Gtk.AccelKey" /> , the first key matching the find function. It is owned by Gtk# and must not be freed.</returns>
<remarks />
2003-07-17 06:38:40 +00:00
</Docs>
</Member>
2003-10-28 00:48:23 +00:00
<Member MemberName= "Query" >
<MemberSignature Language= "C#" Value= "public Gtk.AccelGroupEntry Query (uint accel_key, Gdk.ModifierType accel_mods, out uint n_entries);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > Gtk.AccelGroupEntry</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "accel_key" Type= "System.UInt32" />
<Parameter Name= "accel_mods" Type= "Gdk.ModifierType" />
<Parameter Name= "n_entries" Type= "System.UInt32&" RefType= "out" />
</Parameters>
<Docs >
<summary > Queries an accelerator group for all entries matching <paramref name= "accel_key" /> and <paramref name= "accel_mods" /> .</summary>
<param name= "accel_key" > Key value of the accelerator.</param>
<param name= "accel_mods" > Modifier combination of the accelerator.</param>
<param name= "n_entries" > Location to return the number of entries found, or <see langword= "null" /> .</param>
<returns > An array of <paramref name= "n_entries" /> <see cref= "T:Gtk.AccelGroupEntry" /> elements, or <see langword= "null" /> .</returns>
2003-12-24 01:35:30 +00:00
<remarks >
</remarks>
</Docs>
</Member>
<Member MemberName= "GType" >
<MemberSignature Language= "C#" Value= "public static GLib.GType GType { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > GLib.GType</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2004-06-21 20:14:42 +00:00
<summary > GType Property.</summary>
2003-12-24 01:35:30 +00:00
<returns > a <see cref= "T:GLib.GType" /> </returns>
2004-06-21 20:14:42 +00:00
<remarks > Returns the native <see cref= "T:GLib.GType" /> value for <see cref= "T:Gtk.AccelGroup" /> .</remarks>
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
<Member MemberName= "OnAccelChanged" >
<MemberSignature Language= "C#" Value= "protected virtual void OnAccelChanged (uint keyval, Gdk.ModifierType modifier, IntPtr accel_closure);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "keyval" Type= "System.UInt32" />
<Parameter Name= "modifier" Type= "Gdk.ModifierType" />
<Parameter Name= "accel_closure" Type= "System.IntPtr" />
</Parameters>
<Docs >
2004-06-15 15:41:25 +00:00
<summary > Default handler for the <see cref= "M:Gtk.AccelGroup.AccelChanged" /> event.</summary>
2003-12-24 01:35:30 +00:00
<param name= "keyval" > a <see cref= "T:System.UInt32" /> </param>
<param name= "modifier" > a <see cref= "T:Gdk.ModifierType" /> </param>
<param name= "accel_closure" > a <see cref= "T:System.IntPtr" /> </param>
2004-06-15 15:41:25 +00:00
<remarks > Override this method in a subclass to provide a default handler for the <see cref= "M:Gtk.AccelGroup.AccelChanged" /> event.</remarks>
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "protected AccelGroup (GLib.GType gtype);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
<Parameter Name= "gtype" Type= "GLib.GType" />
</Parameters>
<Docs >
2004-06-21 20:33:11 +00:00
<summary > Protected Constructor.</summary>
2003-12-24 01:35:30 +00:00
<param name= "gtype" > a <see cref= "T:GLib.GType" /> </param>
<returns > a <see cref= "T:Gtk.AccelGroup" /> </returns>
2004-06-21 20:33:11 +00:00
<remarks > Chain to this constructor if you have manually registered a native <see cref= "T:GLib.GType" /> value for your subclass.</remarks>
2003-10-28 00:48:23 +00:00
</Docs>
</Member>
2004-11-05 21:25:40 +00:00
<Member MemberName= "Activate" >
<MemberSignature Language= "C#" Value= "public bool Activate (int accel_quark, GLib.Object acceleratable, uint accel_key, Gdk.ModifierType accel_mods);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Boolean</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "accel_quark" Type= "System.Int32" />
<Parameter Name= "acceleratable" Type= "GLib.Object" />
<Parameter Name= "accel_key" Type= "System.UInt32" />
<Parameter Name= "accel_mods" Type= "Gdk.ModifierType" />
</Parameters>
<Docs >
2004-12-31 19:36:13 +00:00
<summary > Activates the accelerator.</summary>
2004-11-05 21:25:40 +00:00
<param name= "accel_quark" > a <see cref= "T:System.Int32" /> </param>
<param name= "acceleratable" > a <see cref= "T:GLib.Object" /> </param>
<param name= "accel_key" > a <see cref= "T:System.UInt32" /> </param>
<param name= "accel_mods" > a <see cref= "T:System.Int32" /> </param>
<returns > a <see cref= "T:System.Boolean" /> </returns>
2005-02-23 20:16:40 +00:00
<remarks >
</remarks>
</Docs>
</Member>
<Member MemberName= "AccelActivate" >
<MemberSignature Language= "C#" Value= "public event Gtk.AccelActivateHandler AccelActivate;" />
<MemberType > Event</MemberType>
<ReturnValue >
<ReturnType > Gtk.AccelActivateHandler</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2005-04-22 17:20:16 +00:00
<summary >
</summary>
<remarks >
</remarks>
2004-11-05 21:25:40 +00:00
</Docs>
</Member>
2005-02-23 20:16:40 +00:00
<Member MemberName= "OnAccelActivate" >
<MemberSignature Language= "C#" Value= "protected virtual bool OnAccelActivate (GLib.Object acceleratable, uint keyval, Gdk.ModifierType modifier);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Boolean</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "acceleratable" Type= "GLib.Object" />
<Parameter Name= "keyval" Type= "System.UInt32" />
<Parameter Name= "modifier" Type= "Gdk.ModifierType" />
</Parameters>
<Docs >
<summary > Default handler for the <see cref= "M:Gtk.AccelGroup.AccelActivate" /> event.</summary>
<param name= "acceleratable" > a <see cref= "T:GLib.Object" /> </param>
<param name= "keyval" > a <see cref= "T:System.UInt32" /> </param>
<param name= "modifier" > a <see cref= "T:System.Int32" /> </param>
<returns > a <see cref= "T:System.Boolean" /> </returns>
<remarks > Override this method in a subclass to provide a default handler for the <see cref= "M:Gtk.AccelGroup.AccelActivate" /> event.</remarks>
</Docs>
</Member>
2003-02-23 09:17:59 +00:00
</Members>
2005-02-23 20:16:40 +00:00
</Type>