fltk
1.3.5-source
About: FLTK (Fast Light Tool Kit) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X. Fossies Dox: fltk-1.3.5-source.tar.bz2 ("inofficial" and yet experimental doxygen-generated source code documentation) 
|
Go to the documentation of this file. 42 #if !defined(WIN32) && !defined(__APPLE__) 55 if (!shortcut)
return 0;
64 if ((shortcut&shift) != (shortcut&0x7fff0000))
return 0;
66 int mismatch = (shortcut^shift)&0x7fff0000;
81 && firstChar==(
key^0x40))
return 1;
121 #elif defined(__APPLE__) 127 {0xff0b,
"\xe2\x8c\xa6"},
134 {
FL_Up,
"\xe2\x86\x91"},
217 int ln = strlen(
name);
230 else if (
p[-1] ==
'+')
250 char *end = &
buf[
sizeof(
buf)-20];
252 if (!shortcut) {*
p = 0;
return buf;}
271 #if defined(WIN32) || defined(__APPLE__) // if not X 297 strcpy(
p,
"KP_");
p += 3;
309 else if (
key > 32 &&
key < 0x100) q = 0;
310 else q = XKeysymToString(
key);
397 if (!s || !*s)
return 0;
398 if (s[1]==0 && strchr(
"@!",s[0]))
return s[0];
400 if (*s ==
'#') {n |=
FL_ALT; s++;}
401 if (*s ==
'+') {n |=
FL_SHIFT; s++;}
402 if (*s ==
'^') {n |=
FL_CTRL; s++;}
403 if (*s ==
'!') {n |=
FL_META; s++;}
405 if (*s && s[1])
return n | (int)strtol(s,0,0);
430 else if (s==(
unsigned int)
'&') t++;
#define FL_Up
The up arrow key.
unsigned int fl_old_shortcut(const char *s)
#define FL_Shift_L
The lefthand shift key.
#define FL_Enter
The enter key.
#define FL_BackSpace
The backspace key.
#define FL_META
One of the meta/Windows keys is down.
const char * fl_shortcut_label(unsigned int shortcut)
#define FL_SHIFT
One of the shift keys is down.
#define FL_Page_Down
The page-down key.
static const char * event_text()
const char * fl_local_meta
string pointer used in shortcuts, you can change it to another language
#define FL_KP_Enter
The enter key on the keypad, same as Fl_KP+'\r'.
#define FL_Print
The print (or print-screen) key.
#define FL_Page_Up
The page-up key.
const char * fl_local_shift
string pointer used in shortcuts, you can change it to another language
#define FL_Down
The down arrow key.
unsigned fl_utf8decode(const char *p, const char *end, int *len)
#define FL_CAPS_LOCK
The caps lock is on.
const char * fl_local_ctrl
string pointer used in shortcuts, you can change it to another language
static int test_shortcut(Fl_Shortcut)
#define FL_End
The end key.
#define FL_Meta_R
The right meta/Windows key.
#define FL_Left
The left arrow key.
#define FL_Right
The right arrow key.
#define FL_Alt_R
The right alt key.
#define FL_Tab
The tab key.
#define FL_ALT
One of the alt keys is down.
#define FL_Home
The home key.
utility header to pull drawing functions together
#define FL_Control_R
The righthand control key.
#define FL_COMMAND
An alias for FL_CTRL on WIN32 and X11, or FL_META on MacOS X.
#define FL_KP_Last
The last keypad key; use to range-check keypad.
#define FL_Pause
The pause key.
const char * fl_local_alt
string pointer used in shortcuts, you can change it to another language
#define FL_KEY_MASK
All keys are 16 bit for now.
static int event_length()
#define FL_KP
One of the keypad numbers; use FL_KP + 'n' for digit n.
#define FL_Control_L
The lefthand control key.
#define FL_Scroll_Lock
The scroll lock key.
#define FL_Shift_R
The righthand shift key.
#define FL_Menu
The menu key.
int fl_utf8encode(unsigned ucs, char *buf)
#define FL_Num_Lock
The num lock key.
#define FL_Meta_L
The left meta/Windows key.
#define FL_Alt_L
The left alt key.
static char * add_modifier_key(char *p, const char *end, const char *name)
int fl_toupper(unsigned int ucs)
#define FL_Insert
The insert key.
#define FL_F
One of the function keys; use FL_F + n for function key n.
#define FL_Caps_Lock
The caps lock key.
#define FL_CTRL
One of the ctrl keys is down.
#define FL_Delete
The delete key.
#define FL_F_Last
The last function key; use to range-check function keys.
int fl_tolower(unsigned int ucs)
#define FL_Escape
The escape key.