FLTK 1.3.3
Mac OS X-specific symbols

Mac OS X-specific symbols declared in <FL/x.H> or <FL/gl.h> More...

Classes

class  Fl_Mac_App_Menu
 Mac OS-specific class allowing to localize the application menu. More...
 

Functions

void fl_mac_set_about (Fl_Callback *cb, void *user_data, int shortcut=0)
 Attaches a callback to the "About myprog" item of the system application menu. More...
 
void fl_open_callback (void(*cb)(const char *))
 Register a function called for each file dropped onto an application icon. More...
 
int gl_texture_pile_height (void)
 Returns the current height of the pile of pre-computed string textures. More...
 
void gl_texture_pile_height (int max)
 Changes the height of the pile of pre-computed string textures. More...
 

Variables

int fl_mac_os_version
 The version number of the running Mac OS X (e.g., 100604 for 10.6.4)
 
class Fl_Sys_Menu_Barfl_sys_menu_bar
 The system menu bar.
 

Detailed Description

Mac OS X-specific symbols declared in <FL/x.H> or <FL/gl.h>

See Also
The Apple OS X Interface

Function Documentation

void fl_mac_set_about ( Fl_Callback cb,
void *  user_data,
int  shortcut = 0 
)

Attaches a callback to the "About myprog" item of the system application menu.

Parameters
cba callback that will be called by "About myprog" menu item with NULL 1st argument.
user_dataa pointer transmitted as 2nd argument to the callback.
shortcutoptional shortcut to attach to the "About myprog" menu item (e.g., FL_META+'a')
void fl_open_callback ( void(*)(const char *)  cb)

Register a function called for each file dropped onto an application icon.

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

int gl_texture_pile_height ( void  )

Returns the current height of the pile of pre-computed string textures.

The default value is 100

void gl_texture_pile_height ( int  max)

Changes the height of the pile of pre-computed string textures.

Strings that are often re-displayed can be processed much faster if this pile is set high enough to hold all of them.

Parameters
maxHeight of the texture pile