Reference Manual
Inti Logo
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

Inti::Gdk::EventButton Class Reference

A GdkEventButton C++ wrapper class. More...

#include <events.h>

Inheritance diagram for Inti::Gdk::EventButton:

Inti::Gdk::EventAny Inti::Gdk::Event Inti::G::Boxed Inti::ReferencedObject Inti::ReferencedBase List of all members.

Public Member Functions

Accessors

Detailed Description

A GdkEventButton C++ wrapper class.

An EventButton is used for button press and button release events.

The event type will be one of BUTTON_PRESS, TWO_BUTTON_PRESS, THREE_BUTTON_PRESS and BUTTON_RELEASE. Double and triple-clicks result in a sequence of events being received.

For double-clicks the order of events will be:

Note that the first click is received just like a normal button press, while the second click results in a TWO_BUTTON_PRESS being received just after the BUTTON_PRESS.

Triple-clicks are very similar to double-clicks, except that THREE_BUTTON_PRESS is inserted after the third click. The order of the events is:

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.


Member Function Documentation

unsigned int Inti::Gdk::EventButton::button  )  const
 

Returns 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.

Reimplemented from Inti::Gdk::Event.


The documentation for this class was generated from the following file: Main Page - Footer


Generated on Sun Sep 14 20:08:10 2003 for Inti by doxygen 1.3.2 written by Dimitri van Heesch, © 1997-2002