Back to Seed Clases

Gdk


Classes

Interfaces

Structs

Unions

Enums

Union Gdk.Event

Import line: Gdk = imports.gi.Gdk;
GIR File: Gdk-3.0.gir
C documentation: GdkEvent
Union : Event
The GdkEvent struct contains a union of all of the event structs,
and allows access to the data fields in a number of ways.
The event type is always the first field in all of the event structs, and
can always be accessed with the following code, no matter what type of
event it is:


GdkEvent *event;
GdkEventType type;
type = event->type;


To access other fields of the event structs, the pointer to the event
can be cast to the appropriate event struct pointer, or the union member
name can be used. For example if the event type is GDK_BUTTON_PRESS
then the x coordinate of the button press can be accessed with:


GdkEvent *event;
gdouble x;
x = ((GdkEventButton*)event)->x;


or:


GdkEvent *event;
gdouble x;
x = event->button.x;

Properties
Properties Defined By
Methods / Constructors
Method / Constructor Defined By
 
new Gdk.Event ()
Create a new Gdk.Event
Create a new Gdk.Event
 
Events
None
Used by These Methods / Signals / Properties
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
Gtk.get_event_widget (Event event) : Gtk.Widget
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
Gtk.propagate_event (Widget widget, Event event) : none
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
event (TextTag self, Object object, Event event, TextIter iter) : gboolean
The ::event signal is emitted when an event occurs on a region of the
buffer marked with this tag.
Gtk.TextTag
Method
event (Object event_object, Event event, TextIter iter) : gboolean
Emits the "event" signal on the GtkTextTag.
Gtk.Widget
Signal
delete_event (Widget self, Event event) : gboolean
The ::delete-event signal is emitted if a user requests that
a toplevel window is closed.
Gtk.Widget
Signal
destroy_event (Widget self, Event event) : gboolean
The ::destroy-event signal is emitted when a GdkWindow is destroyed.
Gtk.Widget
Signal
event (Widget self, Event event) : gboolean
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
event_after (Widget self, Event event) : none
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
drag_begin (TargetList targets, DragAction actions, gint32 button, Event event) : Gdk.DragContext
Initiates a drag on the source side.
Gtk.Widget
Method
event (Event event) : gboolean
Rarely-used function.
Gtk.Widget
Method
send_expose (Event event) : gint32
Very rarely-used function.
Gtk.Widget
Method
send_focus_change (Event event) : gboolean
Sends the focus change event to widget
This function is not meant to be used by applications.
GtkSource.GutterRenderer
Method
activate (TextIter iter, RectangleInt area, Event event) : none
GtkSource.GutterRenderer
Method
query_activatable (TextIter iter, RectangleInt area, Event event) : gboolean
GtkSource.View
Signal
line_mark_activated (View self, TextIter object, Event p0) : none
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:10:58 GMT+0800 (HKT)