From 74d47ce80c68cff16554a37e554bcb6df9ff3728 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 19 Dec 2002 21:34:26 +0000 Subject: Doco updates. Added filename_setext() macro for FLTK_1_0_COMPAT. Fixed copy() methods so they don't overflow the source image buffer. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2881 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/drawing.html | 41 +++++++++++++++++++++++++++++++++++++++++ documentation/migration.html | 4 ++++ 2 files changed, 45 insertions(+) (limited to 'documentation') diff --git a/documentation/drawing.html b/documentation/drawing.html index c3f8d7ca8..e88eed887 100644 --- a/documentation/drawing.html +++ b/documentation/drawing.html @@ -46,6 +46,8 @@ following types of drawing functions: +

Boxes

+ +

FLTK provides three functions that can be used to draw boxes +for buttons and other UI controls. Each function uses the +supplied upper-lefthand corner and width and height to determine +where to draw the box. + +

void fl_draw_box(Fl_Boxtype b, int x, int y, int w, int h, Fl_Color c);

+ +

The first box drawing function is fl_draw_box() +which draws a standard boxtype c in the specified +color c. + +

void fl_frame(const char *s, int x, int y, int w, int h);

+ +

The fl_frame() function draws a series of line +segments around the given box. The string s must +contain groups of 4 letters which specify one of 24 standard +grayscale values, where 'A' is black and 'X' is white. The order +of each set of 4 characters is: top, left, bottom, right. The +results of calling fl_frame() with a string that is +not a multiple of 4 characters in length are undefined. + +

The only difference between this function and +fl_frame2() is the order of the line segments. + +

void fl_frame2(const char *s, int x, int y, int w, int h);

+ +

The fl_frame2() function draws a series of line +segments around the given box. The string s must +contain groups of 4 letters which specify one of 24 standard +grayscale values, where 'A' is black and 'X' is white. The order +of each set of 4 characters is: bottom, right, top, left. The +results of calling fl_frame2() with a string that is +not a multiple of 4 characters in length are undefined. + +

The only difference between this function and +fl_frame() is the order of the line segments. +

Clipping

You can limit all your drawing to a rectangular region by calling diff --git a/documentation/migration.html b/documentation/migration.html index 9e50b0533..be0f283a1 100644 --- a/documentation/migration.html +++ b/documentation/migration.html @@ -91,6 +91,10 @@ symbol on the command-line when you compile filename_relative() fl_filename_relative() + + filename_setext() + fl_filename_setext() + frame() fl_frame() -- cgit v1.2.3