diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2000-04-28 18:15:26 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2000-04-28 18:15:26 +0000 |
| commit | 0e6e2393bfc7eeaa47b8a2ebd6c2023f560d7a90 (patch) | |
| tree | 520f55d1b4ea126082b79300d5936065e81388c5 /documentation/events.html | |
| parent | 0f36c495f9d2c4b41e61ca35684e8968fb70ee54 (diff) | |
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
Diffstat (limited to 'documentation/events.html')
| -rw-r--r-- | documentation/events.html | 23 |
1 files changed, 15 insertions, 8 deletions
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. <H2>The FLTK Event Model</H2> - Events are identified by the integer argument passed to the <A href=functions.html#handle> -<TT>Fl_Widget::handle()</TT></A> virtual method. Other information -about the most recent event is stored in static locations and acquired -by calling the <A href=#event_xxx><TT>Fl::event_*()</TT></A> 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 <TT>handle()</TT> - method). + +<P>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. + +<P>Events are identified by the integer argument passed to the +<A href=functions.html#handle> <TT>Fl_Widget::handle()</TT></A> virtual +method. Other information about the most recent event is stored in +static locations and acquired by calling the <A +href=#event_xxx><TT>Fl::event_*()</TT></A> 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 <TT>handle()</TT> +method). + <H2>Mouse Events</H2> <H3>FL_PUSH</H3> - 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 <A href=#event_button><TT> Fl::event_button()</TT></A>. You find out the mouse position by calling <A href=#event_x><TT>Fl::event_x()</TT></A> and <A href=functions.html#event_y> |
