From 4c53a5d8f4f23358a101ef6bda4b6b8ea4b95274 Mon Sep 17 00:00:00 2001 From: Bill Spitzak Date: Sun, 31 Jan 1999 07:43:16 +0000 Subject: Added optimization for SGI builds (mike: please run autoconf before making a distribution). Documentation fixes. git-svn-id: file:///fltk/svn/fltk/trunk@259 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/drawing.html | 45 +++++++-------------------------------------- 1 file changed, 7 insertions(+), 38 deletions(-) (limited to 'documentation/drawing.html') diff --git a/documentation/drawing.html b/documentation/drawing.html index 75ad5d52e..49c973a6e 100644 --- a/documentation/drawing.html +++ b/documentation/drawing.html @@ -18,9 +18,7 @@ identified by an 8-bit index that is stored in the widget's box()
  • You can call Fl_Window::make_current() to do incremental update of a widget. Use -Fl_Widget::window() to find the window. Under X this only -works for the base Fl_Window class, not for double buffered, -overlay, or OpenGL windows!
  • +Fl_Widget::window() to find the window.

    FLTK Drawing Functions

    To use the drawing functions you must first include the @@ -33,7 +31,6 @@ drawing functions:
  • Complex Shapes
  • Text
  • Images
  • -
  • Cursor
  • Overlay
  • Clipping

    @@ -72,7 +69,7 @@ is completely outside the region. is not the X or WIN32 pixel, it is an index into an internal table! The table provides several general colors, a 24-entry gray ramp, and a 5x8x5 color cube. All of these are named with -symbols in +symbols in <FL/Enumerations.H>.

    For colormapped displays, a color cell will be allocated out of fl_colormap the first time you use a color. If the colormap fills @@ -144,9 +141,9 @@ w - 1 and h - 1.

    transformations. The functionality matches that found in Adobe® PostScriptTM. The exact pixels that are filled is less defined than for the previous calls so that FLTK can take advantage of drawing -hardware. The transformed vertices are rounded to integers before -drawing the line segments. This severely limits the accuracy of these -functions for complex graphics. Use OpenGL when greater accuracy +hardware. On both X and WIN32 the transformed vertices are rounded to integers before +drawing the line segments: this severely limits the accuracy of these +functions for complex graphics, so use OpenGL when greater accuracy and/or performance is required.

    void fl_push_matrix()
    void fl_pop_matrix()

    @@ -249,9 +246,8 @@ value points at a static buffer that is overwritten with each call. above. You may call this outside a draw context if necessary to call fl_width(), but on X this will open the display.

    The font is identified by a face and a size. The -size of the font is measured in pixels (i.e. it is not -"resolution [in]dependent"). Lines should be spaced size - pixels apart (or more).

    +size of the font is measured in pixels (not "points"). Lines + should be spaced size pixels apart (or more).

    The face is an index into an internal table. Initially only the first 16 faces are filled in. There are symbolic names for them: FL_HELVETICA, FL_TIMES, FL_COURIER, @@ -263,33 +259,6 @@ since it stores the index as a byte.


    int fl_size() Returns the face and size set by the most recent call to fl_font(a,b). This can be used to save/restore the font. -

    Cursor

    -

    void fl_cursor(Fl_Cursor, Fl_Color = FL_WHITE, Fl_Color = FL_BLACK)

    - Change the cursor. Depending on the system this may affect the cursor -everywhere, or only when it is pointing at the window that is current -when you call this. For portability you should change the cursor back -to the default in response to FL_LEAVE events. -

    The type Fl_Cursor is an enumeration defined in -<Enumerations.H>. The double-headed arrows are bitmaps -provided by FLTK on X, the others are provided by system-defined -cursors. Under X you can get any XC_cursor value by passing -Fl_Cursor((XC_foo/2)+1).

    -

    The following standard cursors are available:

    -

    Overlays

    void fl_overlay_rect(int x, int y, int w, int h)
    void fl_overlay_clear()

    -- cgit v1.2.3