![]() |
![]() |
Public Member Functions | |
Event (const Event& other) | |
Event (GdkEvent* gobject, bool make_a_copy=true) | |
Event () | |
bool | get_axis (AxisUse axis_use, double& value) const |
Extract the axis value for a particular axis use from an event structure. | |
bool | get_coords (double& x_win, double& y_win) const |
Extract the event window relative x/y coordinates from an event. | |
bool | get_root_coords (double& x_root, double& y_root) const |
Extract the root window relative x/y coordinates from an event. | |
Glib::RefPtr<const Screen> | get_screen () const |
Returns the screen for the event. | |
Glib::RefPtr<Screen> | get_screen () |
Returns the screen for the event. | |
bool | get_state (ModifierType& state) const |
If the event contains a "state" field, puts that field in state . | |
guint32 | get_time () const |
Returns the time stamp from event , if there is one; otherwise returns Gdk::CURRENT_TIME. | |
const GdkEvent* | gobj () const |
Provides access to the underlying C instance. | |
GdkEvent* | gobj () |
Provides access to the underlying C instance. | |
GdkEvent* | gobj_copy () const |
Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs. | |
Event& | operator= (const Event& other) |
void | put () |
Appends a copy of the given event onto the front of the event queue for event->any.window's display, or the default event queue if event->any.window is 0 . | |
bool | send_client_message (const Glib::RefPtr<Display>& display, NativeWindow winid) |
bool | send_client_message (NativeWindow winid) |
Sends an X ClientMessage event to a given window (which must be on the default Gdk::Display. | |
void | set_screen (const Glib::RefPtr<Screen>& screen) |
Sets the screen for event to screen . | |
void | swap (Event& other) |
~Event () | |
Static Public Member Functions | |
static bool | events_pending () |
Checks if any events are ready to be processed for any display. | |
static Event | get () |
Checks all open displays for a Gdk::Event to process,to be processed on, fetching events from the windowing system if necessary. | |
static Event | get_graphics_expose (const Glib::RefPtr<Window>& window) |
Waits for a GraphicsExpose or NoExpose event from the X server. | |
static bool | get_show_events () |
Gets whether event debugging output is enabled. | |
static Event | peek () |
If there is an event waiting in the event queue of some open display, returns a copy of it. | |
static void | set_show_events (bool show_events) |
Sets whether a trace of received events is output. | |
Protected Attributes | |
GdkEvent* | gobject_ |
Related Functions | |
(Note that these are not member functions.) | |
void | swap (Event& lhs, Event& rhs) |
Gdk::Event | wrap (GdkEvent* object, bool take_copy=false) |
|
|
|
|
|
|
|
|
|
Checks if any events are ready to be processed for any display.
|
|
Checks all open displays for a Gdk::Event to process,to be processed on, fetching events from the windowing system if necessary. See Gdk::Display::get_event().
|
|
Extract the axis value for a particular axis use from an event structure.
|
|
Extract the event window relative x/y coordinates from an event.
|
|
Waits for a GraphicsExpose or NoExpose event from the X server. This is used in the Gtk::Text and Gtk::CList widgets in GTK+ to make sure any GraphicsExpose events are handled before the widget is scrolled.
|
|
Extract the root window relative x/y coordinates from an event.
|
|
Returns the screen for the event.
The screen is typically the screen for
|
|
Returns the screen for the event.
The screen is typically the screen for
|
|
Gets whether event debugging output is enabled.
|
|
If the event contains a "state" field, puts that field in state .
Otherwise stores an empty state (0). Returns
|
|
Returns the time stamp from event , if there is one; otherwise returns Gdk::CURRENT_TIME.
If event is
|
|
Provides access to the underlying C instance.
|
|
Provides access to the underlying C instance.
|
|
Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs.
|
|
|
|
If there is an event waiting in the event queue of some open display, returns a copy of it. See Gdk::Display::peek_event().
|
|
Appends a copy of the given event onto the front of the event queue for event->any.window's display, or the default event queue if event->any.window is |
|
|
|
Sends an X ClientMessage event to a given window (which must be on the default Gdk::Display. ) This could be used for communicating between different applications, though the amount of data is limited to 20 bytes.
|
|
Sets the screen for event to screen . The event must have been allocated by GTK+, for instance, by gdk_event_copy().
|
|
Sets whether a trace of received events is output. Note that GTK+ must be compiled with debugging (that is, configured using the <option>--enable-debug</option> option) to use this option.
|
|
|
|
|
|
|
|
|