2003-02-12 01:57:20 +00:00
<Type Name= "EventButton" FullName= "Gdk.EventButton" >
2003-02-15 03:08:25 +00:00
<TypeSignature Language= "C#" Value= "public sealed struct EventButton;" Maintainer= "auto" />
2003-02-12 01:57:20 +00:00
<AssemblyInfo >
<AssemblyName > gdk-sharp</AssemblyName>
2003-12-24 01:35:30 +00:00
<AssemblyPublicKey >
</AssemblyPublicKey>
2003-02-12 01:57:20 +00:00
<AssemblyVersion > 0.0.0.0</AssemblyVersion>
2003-10-28 00:48:23 +00:00
<AssemblyCulture > neutral</AssemblyCulture>
2003-02-12 01:57:20 +00:00
<Attributes />
</AssemblyInfo>
2003-02-23 07:26:30 +00:00
<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>
2003-02-12 01:57:20 +00:00
<Docs >
2003-07-29 03:14:04 +00:00
<summary > Used for button press and button release events.</summary>
<remarks >
<para >
Used for button press and button release events. The type
2003-09-17 21:56:59 +00:00
field will be one of <see cref= "F:Gdk.EventType.ButtonPress" /> ,
2003-07-30 06:47:03 +00:00
<see cref= "F:Gdk.EventType.TwoButtonPress" /> ,
<see cref= "F:Gdk.EventType.ThreeButtonPress" /> ,
2003-09-17 21:56:59 +00:00
and <see cref= "F:Gdk.EventType.ButtonRelease" /> </para>
2003-07-29 03:14:04 +00:00
<para >
Double and triple-clicks result in a sequence of events being received. For double-clicks the order of events will be:
2003-07-30 06:47:03 +00:00
<list type= "number" >
2003-09-17 21:56:59 +00:00
<item >
<term >
<see cref= "T:Gdk.EventType.ButtonPress" />
</term>
</item>
<item >
<term >
<see cref= "T:Gdk.EventType.ButtonRelease" />
</term>
</item>
<item >
<term >
<see cref= "T:Gdk.EventType.ButtonPress" />
</term>
</item>
<item >
<term >
<see cref= "T:Gdk.EventType.TwoButtonPress" />
</term>
</item>
<item >
<term >
<see cref= "T:Gdk.EventType.ButtonRelease" />
</term>
</item>
</list> </para>
2003-07-29 03:14:04 +00:00
<para >
Note that the first click is received just like a normal
button press, while the second click results in a
2003-07-30 06:47:03 +00:00
<see cref= "T:Gdk.EventType.TwoButtonPress" /> being received just after the
<see cref= "T:Gdk.EventType.ButtonPress" /> . Triple-clicks are very similar to
2003-09-17 21:56:59 +00:00
double-clicks, except that <see cref= "T:Gdk.EventType.ThreeButtonPress" /> is inserted after
2003-07-29 03:14:04 +00:00
the third click. The order of the events is:
2003-07-30 06:47:03 +00:00
<list type= "number" >
2003-09-17 21:56:59 +00:00
<item >
<term >
<see cref= "T:Gdk.EventType.ButtonPress" />
</term>
</item>
<item >
<term >
<see cref= "T:Gdk.EventType.ButtonRelease" />
</term>
</item>
<item >
<term >
<see cref= "T:Gdk.EventType.ButtonPress" />
</term>
</item>
<item >
<term >
<see cref= "T:Gdk.EventType.TwoButtonPress" />
</term>
</item>
<item >
<term >
<see cref= "T:Gdk.EventType.ButtonRelease" />
</term>
</item>
<item >
<term >
<see cref= "T:Gdk.EventType.ButtonPress" />
</term>
</item>
<item >
<term >
<see cref= "T:Gdk.EventType.ThreeButtonPress" />
</term>
</item>
<item >
<term >
<see cref= "T:Gdk.EventType.ButtonRelease" />
</term>
</item>
</list> </para>
2003-07-29 03:14:04 +00:00
<para >
For a double click to occur, the second button press must
occur within 1/4 of a second of the first. For a triple click
to occur, the third button press must also occur within 1/2
second of the first button press.
</para>
</remarks>
2003-02-12 01:57:20 +00:00
</Docs>
<Base >
<BaseTypeName > System.ValueType</BaseTypeName>
</Base>
<Interfaces />
<Attributes />
<Members >
2004-02-26 18:46:28 +00:00
<Member MemberName= "Time" >
<MemberSignature Language= "C#" Value= "public uint Time { get; };" />
<MemberType > Property</MemberType>
2003-02-12 01:57:20 +00:00
<ReturnValue >
2004-02-26 18:46:28 +00:00
<ReturnType > System.UInt32</ReturnType>
2003-02-12 01:57:20 +00:00
</ReturnValue>
<Parameters />
<Docs >
2004-06-24 12:58:08 +00:00
<summary > The time of the event in milliseconds.</summary>
2004-02-26 18:46:28 +00:00
<returns > a <see cref= "T:System.UInt32" /> </returns>
2004-06-24 12:58:08 +00:00
<remarks />
2003-02-12 01:57:20 +00:00
</Docs>
</Member>
2004-02-26 18:46:28 +00:00
<Member MemberName= "State" >
<MemberSignature Language= "C#" Value= "public Gdk.ModifierType State { get; };" />
<MemberType > Property</MemberType>
2003-02-12 01:57:20 +00:00
<ReturnValue >
2004-02-26 18:46:28 +00:00
<ReturnType > Gdk.ModifierType</ReturnType>
2003-02-12 01:57:20 +00:00
</ReturnValue>
<Parameters />
<Docs >
2004-06-24 12:58:08 +00:00
<summary > A bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons.</summary>
2004-02-26 18:46:28 +00:00
<returns > a <see cref= "T:Gdk.ModifierType" /> </returns>
2004-06-24 12:58:08 +00:00
<remarks />
2003-02-12 01:57:20 +00:00
</Docs>
</Member>
2004-02-26 18:46:28 +00:00
<Member MemberName= "X" >
<MemberSignature Language= "C#" Value= "public double X { get; };" />
<MemberType > Property</MemberType>
2003-02-12 01:57:20 +00:00
<ReturnValue >
2004-02-26 18:46:28 +00:00
<ReturnType > System.Double</ReturnType>
2003-02-12 01:57:20 +00:00
</ReturnValue>
<Parameters />
<Docs >
2004-06-24 12:58:08 +00:00
<summary > The x coordinate of the pointer relative to the window.</summary>
2004-02-26 18:46:28 +00:00
<returns > a <see cref= "T:System.Double" /> </returns>
2004-06-24 12:58:08 +00:00
<remarks />
2003-02-12 01:57:20 +00:00
</Docs>
</Member>
2004-02-26 18:46:28 +00:00
<Member MemberName= "Y" >
<MemberSignature Language= "C#" Value= "public double Y { get; };" />
<MemberType > Property</MemberType>
2003-02-12 01:57:20 +00:00
<ReturnValue >
2004-02-26 18:46:28 +00:00
<ReturnType > System.Double</ReturnType>
2003-02-12 01:57:20 +00:00
</ReturnValue>
<Parameters />
<Docs >
2004-06-24 12:58:08 +00:00
<summary > The y coordinate of the pointer relative to the window.</summary>
2004-02-26 18:46:28 +00:00
<returns > a <see cref= "T:System.Double" /> </returns>
2004-06-24 12:58:08 +00:00
<remarks />
2003-02-12 01:57:20 +00:00
</Docs>
</Member>
2004-02-26 18:46:28 +00:00
<Member MemberName= "XRoot" >
<MemberSignature Language= "C#" Value= "public double XRoot { get; };" />
<MemberType > Property</MemberType>
2003-02-12 01:57:20 +00:00
<ReturnValue >
<ReturnType > System.Double</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2004-06-24 12:58:08 +00:00
<summary > The x coordinate of the pointer relative to the root of the screen.</summary>
2004-02-26 18:46:28 +00:00
<returns > a <see cref= "T:System.Double" /> </returns>
2004-06-24 12:58:08 +00:00
<remarks />
2003-02-12 01:57:20 +00:00
</Docs>
</Member>
2004-02-26 18:46:28 +00:00
<Member MemberName= "YRoot" >
<MemberSignature Language= "C#" Value= "public double YRoot { get; };" />
<MemberType > Property</MemberType>
2003-02-12 01:57:20 +00:00
<ReturnValue >
<ReturnType > System.Double</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2004-06-24 12:58:08 +00:00
<summary > The y coordinate of the pointer relative to the root of the screen.</summary>
2004-02-26 18:46:28 +00:00
<returns > a <see cref= "T:System.Double" /> </returns>
2004-06-24 12:58:08 +00:00
<remarks />
2003-02-12 01:57:20 +00:00
</Docs>
</Member>
2004-02-26 18:46:28 +00:00
<Member MemberName= "Button" >
<MemberSignature Language= "C#" Value= "public uint Button { get; };" />
<MemberType > Property</MemberType>
2003-02-12 01:57:20 +00:00
<ReturnValue >
2004-02-26 18:46:28 +00:00
<ReturnType > System.UInt32</ReturnType>
2003-02-12 01:57:20 +00:00
</ReturnValue>
2004-02-26 18:46:28 +00:00
<Parameters />
2003-02-12 01:57:20 +00:00
<Docs >
2004-06-24 12:58:08 +00:00
<summary > The button which was pressed or released, numbered from 1 to 5. Normally button 1 is the left mouse button, 2 is the middle button, and 3 is the right button. On 2-button mice, the middle button can often be simulated by pressing both mouse buttons together.</summary>
2004-02-26 18:46:28 +00:00
<returns > a <see cref= "T:System.UInt32" /> </returns>
2004-06-24 12:58:08 +00:00
<remarks />
2003-02-12 01:57:20 +00:00
</Docs>
</Member>
2004-02-26 18:46:28 +00:00
<Member MemberName= "Device" >
<MemberSignature Language= "C#" Value= "public Gdk.Device Device { get; };" />
2003-02-12 01:57:20 +00:00
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gdk.Device</ReturnType>
</ReturnValue>
2004-02-26 18:46:28 +00:00
<Parameters />
2003-02-12 01:57:20 +00:00
<Docs >
2004-06-24 12:58:08 +00:00
<summary > The device where the event originated.</summary>
2004-02-26 18:46:28 +00:00
<returns > a <see cref= "T:Gdk.Device" /> </returns>
2004-06-24 12:58:08 +00:00
<remarks />
2003-02-12 01:57:20 +00:00
</Docs>
</Member>
2004-02-26 18:46:28 +00:00
<Member MemberName= "Axes" >
<MemberSignature Language= "C#" Value= "public double [] Axes { get; };" />
2003-02-12 01:57:20 +00:00
<MemberType > Property</MemberType>
<ReturnValue >
2004-02-26 18:46:28 +00:00
<ReturnType > System.Double[]</ReturnType>
2003-02-12 01:57:20 +00:00
</ReturnValue>
2004-02-26 18:46:28 +00:00
<Parameters />
2003-02-12 01:57:20 +00:00
<Docs >
2004-06-24 12:58:08 +00:00
<summary > x, y translated to the axes of device, or null if device is the mouse.</summary>
2004-02-26 18:46:28 +00:00
<returns > a <see cref= "T:System.Double[]" /> </returns>
2004-06-24 12:58:08 +00:00
<remarks />
2003-02-12 01:57:20 +00:00
</Docs>
</Member>
2004-02-26 18:46:28 +00:00
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public EventButton (IntPtr raw);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
<Parameter Name= "raw" Type= "System.IntPtr" />
</Parameters>
2003-07-17 06:38:40 +00:00
<Docs >
2004-06-29 04:45:04 +00:00
<summary > Internal constructor</summary>
2004-06-24 12:58:08 +00:00
<param name= "raw" > a <see cref= "T:System.IntPtr" /> to a <see cref= "T:Gdk.Event.Handle" /> </param>
2004-02-26 18:46:28 +00:00
<returns > a <see cref= "T:Gdk.EventButton" /> </returns>
2004-06-29 04:45:04 +00:00
<remarks > This constructor is internal and should not be used.</remarks>
2003-07-17 06:38:40 +00:00
</Docs>
</Member>
2003-02-12 01:57:20 +00:00
</Members>
2004-05-27 19:02:19 +00:00
</Type>