| version 1.5, 2005/12/09 12:38:39 |
version 1.6, 2005/12/10 21:25:01 |
|
|
| // -this library is extension of ncurses (curses) library thats why is there 'cu' in the name |
// -this library is extension of ncurses (curses) library thats why is there 'cu' in the name |
| // -and it is cooking chars on your display so together it sounds like cook-char, shortly cuchar |
// -and it is cooking chars on your display so together it sounds like cook-char, shortly cuchar |
| // This library should make easier to create UI for console aplications. |
// This library should make easier to create UI for console aplications. |
| // TODO: |
|
| // mozno by som konstantam dal dlhsi prefix identifikujuci ich do cc, |
|
| // aby sa nepomiesali s konstantami ineho programu kde by bola pouzita kniznica |
|
| // nieco ako |
|
| // CC_K_* by bolo namiesto KK_* |
|
| // CC_M_* by bolo namiesto MM_* (nechapem co znamena to druhe M v MM) |
|
| // neviem co znamena XX - na co by to malo byt pouzite? |
|
| // -vsetky *OFFSET konstanty by som zmenil na CC_OFFSET_K, CC_OFFSET_M, ... |
|
| // a dal ich na jedno miesto |
|
| |
|
| #ifndef false |
#ifndef false |
| #define false 0 |
#define false 0 |
| Line 378 typedef struct _Cc_Timer_P{ |
|
| Line 369 typedef struct _Cc_Timer_P{ |
|
| #endif |
#endif |
| |
|
| // Exported functions |
// Exported functions |
| bool cc_file_open_dialog(Cc_Win *parent,char *caption,char *filename, |
Cc_Win *cc_file_open_dialog(Cc_Win *parent, |
| char *mask); |
void (*action)(Cc_Win *sender,char *filename), |
| long cc_color_dialog(Cc_Win *parent,char *caption,long color); |
bool modal,char *caption,char *filename,char *mask); |
| |
Cc_Win *cc_color_dialog(Cc_Win *parent,void (*action)(Cc_Win *sender,long i), |
| |
bool modal,char *caption,long color); |
| Cc_Win *cc_message_box(Cc_Win *parent,void (*action)(Cc_Win *sender,long i), |
Cc_Win *cc_message_box(Cc_Win *parent,void (*action)(Cc_Win *sender,long i), |
| bool modal,char *caption,char *text, |
bool modal,char *caption,char *text, |
| long style); // style=CC_MB_xxx |
long style); // style=CC_MB_xxx |
| Line 408 void cc_set_capture(Cc_Win *win); |
|
| Line 401 void cc_set_capture(Cc_Win *win); |
|
| Cc_Win *cc_get_capture(); |
Cc_Win *cc_get_capture(); |
| bool cc_set_focus(Cc_Win *win); |
bool cc_set_focus(Cc_Win *win); |
| Cc_Win *cc_get_focus(); |
Cc_Win *cc_get_focus(); |
| void cc_show_win(Cc_Win *win,bool visible); |
bool cc_show_win(Cc_Win *win,bool visible); |
| void cc_get_mouse_pos(long *x,long *y); |
void cc_get_mouse_pos(long *x,long *y); |
| void cc_sleep(long milisec); |
void cc_sleep(long milisec); |
| long cc_get_tick(); |
long cc_get_tick(); |