Class _Event

Summary

#

 An instance of this class is used to represent an event.

Package:
(main)
File:
gui.icn
Methods:
get_code, get_component, get_event, set_code, set_component, set_event

Fields:
code, component, event

Source code.

Details
Constructor

_Event(event, component, code)

Parameters:
event
The Icon event
component
The Component producing the event
code
The integer code number for different event types.

Methods:

get_code()

#
  Returns an additional field to distinguish between different
  types of event generated by the same component.  For
  example, a TextField produces a code of zero when return is
  pressed, and a code of one when the contents are changed.


get_component()

#
  Returns the component associated with the event.  This may
  be a subclass of either Component or a MenuComponent.


get_event()

#
  Returns the Icon event associated with the event.


set_code(x)


set_component(x)


set_event(x)


Fields:
code -- The integer code number for different event types.

component -- The Component producing the event

event -- The Icon event


This page produced by UniDoc on 2021/04/15 @ 23:59:54.