From 0e6e2393bfc7eeaa47b8a2ebd6c2023f560d7a90 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Fri, 28 Apr 2000 18:15:26 +0000 Subject: Typos reported by Alexander Mai Fl_Browser_ docos finished. Added Fl_Group::init_sizes() description. Added links for common widgets in chapter 3 (?) Fixed formatting problems in subclassing and FLUID chapters. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1100 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/events.html | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) (limited to 'documentation/events.html') diff --git a/documentation/events.html b/documentation/events.html index 502be762f..12072d73a 100644 --- a/documentation/events.html +++ b/documentation/events.html @@ -3,16 +3,23 @@ This chapter discusses the FLTK event model and how to handle events in your program or widget.

The FLTK Event Model

- Events are identified by the integer argument passed to the -Fl_Widget::handle() virtual method. Other information -about the most recent event is stored in static locations and acquired -by calling the Fl::event_*() methods. -This static information remains valid until the next event is read from -window system (i.e. it is ok to look at it outside of the handle() - method). + +

Every time a user moves the mouse pointer, clicks a button, or presses +a key, an event is generated and sent to your application. Events can also +come from other programs like the window manager. + +

Events are identified by the integer argument passed to the + Fl_Widget::handle() virtual +method. Other information about the most recent event is stored in +static locations and acquired by calling the Fl::event_*() methods. This static +information remains valid until the next event is read from window +system (i.e. it is ok to look at it outside of the handle() +method). +

Mouse Events

FL_PUSH

- A mouse button has gone down with the mouse pointing at this widget. +A mouse button has gone down with the mouse pointing at this widget. You can find out what button by calling Fl::event_button(). You find out the mouse position by calling Fl::event_x() and -- cgit v1.2.3