Package: gdk

Accessor gdk:event-type

Lambda List

gdk:event-type (instance)

Syntax

(gdk:event-type instance) => type
(setf (gdk:event-type instance) type)

Arguments

instance -- a gdk:event instance
type -- a value of the gdk:event-type enumeration

Details

Accessor of the type slot of the gdk:event structure. The type of the event as a value of the gdk:event-type enumeration.

Examples

Check for a button press event in a handler for the "event" signal on a drawing area.
(defun drawing-area-event (widget event)
  (declare (ignore widget))
  ;; Check for a button press event on the drawing area
  (when (eq (gdk:event-type event) :button-press)
    ... ))    
 

See also

2024-6-28