Package: gdk

Function gdk-event-new

Lambda List

gdk-event-new (event-type &rest args)

Arguments

event-type -- a value of the gdk-event-type enumeration
args -- pairs of property name and property value

Return Value

A new gdk-event instance.

Details

Creates a new event of the given type.

Example

(gdk-event-new :button-press :x 10.0d0 :y 20.0d0)
=>
#S(GDK-EVENT-BUTTON
   :TYPE :BUTTON-PRESS
   :WINDOW NIL
   :SEND-EVENT NIL
   :TIME 0
   :X 10.0d0
   :Y 20.0d0
   :AXES (0.0d0 0.0d0)
   :STATE 0
   :BUTTON 0
   :DEVICE #.(SB-SYS:INT-SAP #X00000000)
   :X-ROOT 0.0d0
   :Y-ROOT 0.0d0)    
 

See also

2020-11-28