![]() |
![]() |
Public Methods | |
Event () | |
Event (GdkEvent* gobject, bool make_a_copy=true) | |
Event (const Event& other) | |
Event& | operator= (const Event& other) |
~Event () | |
void | swap (Event& other) |
GdkEvent* | gobj () |
const GdkEvent* | gobj () const |
GdkEvent* | gobj_copy () const |
void | put () |
guint32 | get_time () const |
Returns the time stamp from event, if there is one; otherwise returns Gdk::CURRENT_TIME. | |
bool | get_state (ModifierType& state) const |
If the event contains a "state" field, puts that field in state. | |
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. | |
bool | get_axis (AxisUse axis_use, double& value) const |
Extract the axis value for a particular axis use from an event structure. | |
void | set_screen (const Glib::RefPtr<Screen>& screen) |
Glib::RefPtr<Screen> | get_screen () |
Glib::RefPtr<const Screen> | get_screen () const |
bool | send_client_message (GdkNativeWindow winid) |
bool | send_client_message (const Glib::RefPtr<Display>& display, GdkNativeWindow winid) |
Static Public Methods | |
Event | get () |
Event | peek () |
Event | get_graphics_expose (const Glib::RefPtr<Window>& window) |
bool | events_pending () |
void | set_show_events (bool show_events) |
bool | get_show_events () |
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) |
|
|
|
|
|
|
|
|
|
|
|
|
|
Extract the axis value for a particular axis use from an event structure.
|
|
Extract the event window relative x/y coordinates from an event.
|
|
|
|
Extract the root window relative x/y coordinates from an event.
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|