From a7769752395a5496f198672ad6810b8bb525d304 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 24 Aug 2006 11:41:22 +0000 Subject: All fl_ functions indexed and linked. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5352 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/osissues.html | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) (limited to 'documentation/osissues.html') diff --git a/documentation/osissues.html b/documentation/osissues.html index a7ea7ed3b..83c486502 100644 --- a/documentation/osissues.html +++ b/documentation/osissues.html @@ -133,6 +133,12 @@ unsigned long fl_xpixel(uchar r, uchar g, uchar b) index or RGB color. This is the X pixel that fl_color() would use. +

int fl_parse_color(const char* p, uchar& r, uchar& g, uchar& b)

+ +

Convert a name into the red, green, and blue values of a color +by parsing the X11 color names. On other systems, fl_parse_color +can only convert names in hexadecimal encoding, for example #ff8083. +

extern XFontStruct *fl_xfont

Points to the font selected by the most recent NULL if not found. This function uses a cache so it is slightly faster than iterating through the windows yourself. -

Drawing Things Using the WIN32 GDIi

+

Drawing Things Using the WIN32 GDI

When the virtual function Fl_Widget::draw() is @@ -640,6 +646,25 @@ window handle, or NULL if not found. FLTK windows that are children of top-level windows share the WindowRef of the top-level window. +

Apple "Quit" Event

+ +

When the user press Cmd-Q or requests a termination of the +application, OS X will send a "Quit" Apple Event. FLTK handles +this event by sending an FL_CLOSE event to all open +windows. If all windows close, the application will terminate. + +

Apple "Open" Event

+ +Whenever the user drops a file onto an application icon, OS X +generates an Apple Event of the type "Open". You can have FLTK +notify you of an Open event by setting the fl_open_callback. + +

void fl_open_callback(void (*cb)(const char *))

+ +cb will be called with a single iUnix-style file name and path. +If multiple files were dropped, fl_open_callback will be called +multiple times. +

Drawing Things Using QuickDraw

When the virtual function Fl_Widget::draw() is @@ -647,6 +672,17 @@ called, FLTK has prepared the Window and CGrafPort for drawing. Clipping and offsets are prepared to allow correct subwindow drawing. +

Drawing Things Using Quartz

+ +

If the FLTK library was compiled using the configuration +flag --enable-quartz, all code inside Fl_Widget::draw() +is expected to call Quartz drawing functions instead of +QuickDraw. The Quartz coordinate system is flipped to match +FLTK's coordinate system. The origin for all drawing is in the top +left corner of the enclosing Fl_Window. + +

Fl_Double_Window

+

OS X double-buffers all windows automatically. On OS X, Fl_Window and Fl_Double_Window are handled internally in the same way. -- cgit v1.2.3