|
|
| |
App::PFM::Event(3) |
User Contributed Perl Documentation |
App::PFM::Event(3) |
This class defines events that can occur in and be handled by pfm.
- new(hashref $args)
- Initializes new instances. Called from the constructor. Copies known
object properties from the options to the new object.
- clone()
- Clone the Event object. References inside the event are conserved,
i.e. objects contained inside the event are not cloned.
- to_string()
Event objects have got the following properties:
- name
- The name of the event, also to be used by (un)register_listener().
This is a mandatory property.
- origin
- The object from which this event originates.
- type
- Allowed values:
- key
- A keyboard command has been received.
- mouse
- A mouse command has been received.
- paste
- An X selection has been pasted to the window.
- resize
- A window resize has been requested.
- job
- A job receives input
- soft
- An event that is triggered by one of
"pfm"'s functions.
- data
- The received data (for key and job).
- mousebutton
- The mouse button which was clicked (for mouse).
- mouserow
- The screen row on which the mouse was clicked (for mouse).
- mousecol
- The screen column on which the mouse was clicked (for mouse).
- mouseitem
- If the mouse has clicked on a list item, this property will contain it
(for mouse).
- currentfile
- The current File object, to pass it from the Browser to the
CommandHandler.
- lunchbox
- A container for miscellaneous data.
pfm(1), App::PFM::Abstract(3pm).
Visit the GSP FreeBSD Man Page Interface. Output converted with ManDoc. |