Import line: | Gdk = imports.gi.Gdk; |
GIR File: | Gdk-3.0.gir |
C documentation: | GdkEvent |
Union : | Event |
Properties | Defined By | |
---|---|---|
any : Gdk.EventAny
|
Gdk.Event | |
button : Gdk.EventButton
|
Gdk.Event | |
configure : Gdk.EventConfigure
|
Gdk.Event | |
crossing : Gdk.EventCrossing
|
Gdk.Event | |
dnd : Gdk.EventDND
|
Gdk.Event | |
expose : Gdk.EventExpose
|
Gdk.Event | |
focus_change : Gdk.EventFocus
|
Gdk.Event | |
grab_broken : Gdk.EventGrabBroken
|
Gdk.Event | |
key : Gdk.EventKey
|
Gdk.Event | |
motion : Gdk.EventMotion
|
Gdk.Event | |
owner_change : Gdk.EventOwnerChange
|
Gdk.Event | |
property : Gdk.EventProperty
|
Gdk.Event | |
proximity : Gdk.EventProximity
|
Gdk.Event | |
scroll : Gdk.EventScroll
|
Gdk.Event | |
selection : Gdk.EventSelection
|
Gdk.Event | |
setting : Gdk.EventSetting
|
Gdk.Event | |
type : Gdk.EventType
|
Gdk.Event | |
visibility : Gdk.EventVisibility
|
Gdk.Event | |
window_state : Gdk.EventWindowState
|
Gdk.Event |
Method / Constructor | Defined By | |
---|---|---|
new Gdk.Event
()
Create a new Gdk.Event
Create a new Gdk.Event
|
||
Create a new Gdk.Event
Create a new Gdk.Event
|
||
If both events contain X/Y information, this function will return TRUE
and return in angle the relative angle from event1 to event2.
If both events contain X/Y information, this function will return TRUE
and return in angle the relative angle from event1 to event2. The rotation direction for positive angles is from the positive X axis towards the positive Y axis.
|
Gdk.Event | |
If both events contain X/Y information, the center of both coordinates
will be returned in x and y. |
Gdk.Event | |
If both events have X/Y information, the distance between both coordinates
(as in a straight line going from event1 to event2) will be returned.
If both events have X/Y information, the distance between both coordinates
(as in a straight line going from event1 to event2) will be returned.
|
Gdk.Event | |
copy
()
:
Gdk.Event
Copies a GdkEvent, copying or incrementing the reference count of the
resources associated with it (e.g.
Copies a GdkEvent, copying or incrementing the reference count of the
resources associated with it (e.g. GdkWindow's and strings). gdk_event_free().
|
Gdk.Event | |
free
()
:
none
Frees a GdkEvent, freeing or decrementing any resources associated with it.
Frees a GdkEvent, freeing or decrementing any resources associated with it.
Note that this function should only be called with events returned from functions such as gdk_event_peek(), gdk_event_get(), gdk_event_copy() and gdk_event_new().
|
Gdk.Event | |
Extract the axis value for a particular axis use from
an event structure.
Extract the axis value for a particular axis use from
an event structure.
|
Gdk.Event | |
Gdk.Event | ||
get_device
()
:
Gdk.Device
If the event contains a "device" field, this function will return
it, else it will return NULL.
If the event contains a "device" field, this function will return
it, else it will return NULL.
|
Gdk.Event | |
Gdk.Event | ||
get_screen
()
:
Gdk.Screen
Returns the screen for the event.
Returns the screen for the event. The screen is
typically the screen for for events such as mouse events, it is the screen where the pointer was when the event occurs - that is, the screen which has the root window to which
|
Gdk.Event | |
get_source_device
()
:
Gdk.Device
This function returns the hardware (slave) GdkDevice that has
triggered the event, falling back to the virtual (master) device (as in gdk_event_get_device()) if the event wasn't caused by interaction with a hardware device.
This function returns the hardware (slave) GdkDevice that has
triggered the event, falling back to the virtual (master) device (as in gdk_event_get_device()) if the event wasn't caused by interaction with a hardware device. This may happen for example in synthesized crossing events after a GdkWindow updates its geometry or a grab is acquired/released. If the event does not contain a device field, this function will return NULL.
|
Gdk.Event | |
If the event contains a "state" field, puts that field in state.
If the event contains a "state" field, puts that field in state. Otherwise
stores an empty state (0). Returns TRUE if there was a state field in the event. event may be NULL, in which case it's treated as if the event had no state field.
|
Gdk.Event | |
get_time
()
:
guint32
Returns the time stamp from event, if there is one; otherwise
returns GDK_CURRENT_TIME.
Returns the time stamp from event, if there is one; otherwise
returns GDK_CURRENT_TIME. If event is NULL, returns GDK_CURRENT_TIME.
|
Gdk.Event | |
put
()
:
none
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 NULL.
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 NULL. See gdk_display_put_event().
|
Gdk.Event | |
set_device
(Device device)
:
none
Sets the device for event to device.
Sets the device for event to device. The event must
have been allocated by GTK+, for instance, by gdk_event_copy().
|
Gdk.Event | |
set_screen
(Screen screen)
:
none
Sets the screen for event to screen.
Sets the screen for event to screen. The event must
have been allocated by GTK+, for instance, by gdk_event_copy().
|
Gdk.Event | |
set_source_device
(Device device)
:
none
Sets the slave device for event to device.
Sets the slave device for event to device.
The event must have been allocated by GTK+, for instance by gdk_event_copy().
|
Gdk.Event |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Gdk
Method |
Gdk.event_get
()
:
Gdk.Event
Checks all open displays for a GdkEvent to process,to be processed
on, fetching events from the windowing system if necessary. |
Gdk
Method |
Gdk.event_peek
()
:
Gdk.Event
If there is an event waiting in the event queue of some open
display, returns a copy of it. |
Gdk.Display
Method |
get_event
()
:
Gdk.Event
Gets the next GdkEvent to be processed for display, fetching events from the
windowing system if necessary. |
Gdk.Display
Method |
peek_event
()
:
Gdk.Event
Gets a copy of the first GdkEvent in the display's event queue, without
removing the event from the queue. |
Gdk.Display
Method |
put_event
(Event event)
:
none
Appends a copy of the given event onto the front of the event
queue for display. |
Gtk
Method |
Gtk.get_current_event
()
:
Gdk.Event
Obtains a copy of the event currently being processed by GTK+.
|
Gtk
Method |
If event is NULL or the event was not associated with any widget,
returns NULL, otherwise returns the widget that received the event originally. |
Gtk
Method |
Gtk.main_do_event
(Event event)
:
none
Processes a single GDK event.
|
Gtk
Method |
Sends an event to a widget, propagating the event to parent widgets
if the event remains unhandled. |
Gtk.CellArea
Method |
activate_cell
(Widget widget, CellRenderer renderer, Event event, RectangleInt cell_area, CellRendererState flags)
:
gboolean
This is used by GtkCellArea subclasses when handling events
to activate cells, the base GtkCellArea class activates cells for keyboard events for free in its own GtkCellArea->activate() implementation. |
Gtk.CellArea
Method |
event
(CellAreaContext context, Widget widget, Event event, RectangleInt cell_area, CellRendererState flags)
:
gint32
Delegates event handling to a GtkCellArea.
|
Gtk.CellEditable
Method |
start_editing
(Event event)
:
none
Begins editing on a cell_editable.
|
Gtk.CellRenderer
Method |
activate
(Event event, Widget widget, String path, RectangleInt background_area, RectangleInt cell_area, CellRendererState flags)
:
gboolean
Passes an activate event to the cell renderer for possible processing.
|
Gtk.CellRenderer
Method |
start_editing
(Event event, Widget widget, String path, RectangleInt background_area, RectangleInt cell_area, CellRendererState flags)
:
Gtk.CellEditable
Passes an activate event to the cell renderer for possible processing.
|
Gtk.TextTag
Signal |
The ::event signal is emitted when an event occurs on a region of the
buffer marked with this tag. |
Gtk.TextTag
Method |
Emits the "event" signal on the GtkTextTag.
|
Gtk.Widget
Signal |
The ::delete-event signal is emitted if a user requests that
a toplevel window is closed. |
Gtk.Widget
Signal |
The ::destroy-event signal is emitted when a GdkWindow is destroyed.
|
Gtk.Widget
Signal |
The GTK+ main loop will emit three signals for each GDK event delivered
signal that matches the type of event delivered (e.g. |
Gtk.Widget
Signal |
After the emission of the GtkWidget::event signal and (optionally)
the second more specific signal, ::event-after will be emitted regardless of the previous two signals handlers return values. |
Gtk.Widget
Method |
Initiates a drag on the source side.
|
Gtk.Widget
Method |
Rarely-used function.
|
Gtk.Widget
Method |
Very rarely-used function.
|
Gtk.Widget
Method |
Sends the focus change event to widget
This function is not meant to be used by applications. |
GtkSource.GutterRenderer
Method |
|
GtkSource.GutterRenderer
Method |
|
GtkSource.View
Signal |
|