Event Class Reference

Inheritance diagram for Event:

EventButton EventClient EventConfigure EventCrossing EventDND EventExpose EventFocus EventKey EventMotion EventNoExpose EventProperty EventProximity EventScroll EventSelection EventSetting EventVisibility EventWindowState List of all members.

Detailed Description

GUI events from gtk.


Public Member Functions

public GdkEvent * getE ()
 Gets the GDK evetn struct.
int getType ()
 Gets the event types.
public int getX ()
 Gets the event pointer X value or 0 if the event contains no mouse information.
public int getY ()
 Gets the event pointer Y value or 0 if the event contains no mouse information.
public int getXRoot ()
 Gets the event pointer X value or 0 if the event contains no mouse information.
public int getYRoot ()
 Gets the event pointer Y value or 0 if the event contains no mouse information.
void put ()
 Puts this event into the queue.
Event createEvent (GdkEventType type)
 Creates a new event from an event type.
Event copy ()
 Creates a copy of this event.
void free ()
 Frees this event ???
guint32 getTime ()
 Returns the time stamp of this event.
gboolean getState (GdkModifierType *state)
 Gets the state of this event for a given modifier.
bit testState (ModifierType state)
 Gets the state for the modifer masks passed.
gboolean getCoords (gdouble *xWin, gdouble *yWin)
 Gets the event pointer coordinates on the root window.
gboolean getRootCoords (gdouble *xRoot, gdouble *yRoot)
 Gets the event pointer coordinates on the root window.
gboolean getAxis (GdkAxisUse axis_use, gdouble *value)
 Gets the event axis ???
void setScreen (Screen screen)
 Sets the event screen.
Screen getScreen ()
 Gets the event screen.
void setShowEvents (gboolean showEvents)
 Set the show events flag.
gboolean getShowEvents ()
 Gets the show events flag.

Static Public Member Functions

public GdkWindow * getWindow (GdkEvent *event)
 Gets the window for this event.


Member Function Documentation

Event Event.copy  ) 
 

Creates a copy of this event.

Returns:
a copy of this event

Event Event.createEvent GdkEventType  type  ) 
 

Creates a new event from an event type.

Returns:
a new event

void Event.free  ) 
 

Frees this event ???

gboolean Event.getAxis GdkAxisUse  axis_use,
gdouble *  value
 

Gets the event axis ???

Returns:
true if the event can return the axis

gboolean Event.getCoords gdouble *  xWin,
gdouble *  yWin
 

Gets the event pointer coordinates on the root window.

Parameters:
xWin the x pointer coord on the window
yWin the y pointer coord on the window

public GdkEvent* Event.getE  ) 
 

Gets the GDK evetn struct.

Returns:
the GdkEvent*

gboolean Event.getRootCoords gdouble *  xRoot,
gdouble *  yRoot
 

Gets the event pointer coordinates on the root window.

Parameters:
xRoot the x pointer coord on the root window
yRoot the y pointer coord on the root window

Screen Event.getScreen  ) 
 

Gets the event screen.

Returns:
the evetn screen

gboolean Event.getShowEvents  ) 
 

Gets the show events flag.

Returns:
the show event flag

gboolean Event.getState GdkModifierType *  state  ) 
 

Gets the state of this event for a given modifier.

Parameters:
state the modifier types to test
Returns:
true if the test was sucesseful and set the state according to the event

guint32 Event.getTime  ) 
 

Returns the time stamp of this event.

Returns:
the event time

int Event.getType  ) 
 

Gets the event types.

Returns:
the event type

public GdkWindow* Event.getWindow GdkEvent *  event  )  [static]
 

Gets the window for this event.

Returns:
the event's window

public int Event.getX  ) 
 

Gets the event pointer X value or 0 if the event contains no mouse information.

Returns:
the pointer X values or 0 if the event contains no mouse information

Reimplemented in EventButton.

public int Event.getXRoot  ) 
 

Gets the event pointer X value or 0 if the event contains no mouse information.

Returns:
the pointer X values or 0 if the event contains no mouse information

public int Event.getY  ) 
 

Gets the event pointer Y value or 0 if the event contains no mouse information.

Returns:
the pointer Y values or 0 if the event contains no mouse information

Reimplemented in EventButton.

public int Event.getYRoot  ) 
 

Gets the event pointer Y value or 0 if the event contains no mouse information.

Returns:
the pointer Y values or 0 if the event contains no mouse information

void Event.put  ) 
 

Puts this event into the queue.

void Event.setScreen Screen  screen  ) 
 

Sets the event screen.

Parameters:
screen 

void Event.setShowEvents gboolean  showEvents  ) 
 

Set the show events flag.

Parameters:
showEvents 

bit Event.testState ModifierType  state  ) 
 

Gets the state for the modifer masks passed.

Returns:
true if the test is sucesseful and all modifiers are present


SourceForge.net Logo DSource.org Logo digitalmars.com Logo