38
38
* --------------------------------------------------------------------------
39
39
* $Log: vibprocs.h,v $
40
* Revision 6.28 2004/04/01 13:43:09 lavr
41
* Spell "occurred", "occurrence", and "occurring"
43
* Revision 6.27 2004/02/23 16:36:51 sinyakov
44
* Use Int4 instead of Int2 for cursor position and text selection in text boxes
46
* Revision 6.26 2004/02/12 20:05:26 bazhin
47
* Added callback function "Nlm_SetKeepCrNlTextFieldCallback(Nlm_TexT t)",
48
* which allows to copy-paste texts from multiple columns to single string.
50
* Revision 6.25 2004/02/05 16:25:06 kans
51
* revert to Nlm_GetTextVScrollBar and Nlm_GetTextHScrollBar being static, implement setOffset and getOffset for scroll text, since Windows scroll text has its own scroll bar
53
* Revision 6.24 2004/02/04 15:21:02 kans
54
* make GetTextVScrollBar and GetTextHScrollBar extern, to add search function to general text viewer
56
* Revision 6.23 2004/01/05 17:08:09 kans
57
* added functions to control use of dual screens
59
* Revision 6.22 2003/10/29 19:19:34 kans
60
* added prototype for Nlm_SetTextColor
62
* Revision 6.21 2002/04/30 18:25:12 bazhin
63
* Added function "Nlm_SetWindowConfigureCallback(WindoW w)", which
64
* allows to catch events, when window just moved without resizing.
65
* Fixed some "gcc -Wall -ansi" warnings.
67
* Revision 6.20 2002/01/09 15:23:54 kans
68
* added HasAquaMenuLayout
40
70
* Revision 6.19 2001/09/10 17:34:33 bazhin
41
71
* Added function Nlm_SetTextCursorBlinkRate(Nlm_TexT t, Nlm_Int2 msec).
325
355
void Nlm_SetWindowExtra PROTO((Nlm_WindoW w, Nlm_VoidPtr data, Nlm_WndFreeProc cleanup));
326
356
Nlm_VoidPtr Nlm_GetWindowExtra PROTO((Nlm_WindoW w));
358
void Nlm_SetWindowConfigureCallback PROTO((Nlm_WindoW w));
360
/* Dual screen functions control centering where the window left parameter is negative */
362
Nlm_Boolean Nlm_HasDualScreen (void);
363
void Nlm_UseFullScreen (void);
364
void Nlm_UseLeftScreen (void);
365
void Nlm_UseRightScreen (void);
328
368
/*** GROUPING OBJECT ***/
516
557
/* return TRUE and selection range [begin,end] -- if there is a selection
518
Nlm_Boolean Nlm_TextSelectionRange PROTO((Nlm_TexT t, Nlm_Int2Ptr begin, Nlm_Int2Ptr end));
559
Nlm_Boolean Nlm_TextSelectionRange PROTO((Nlm_TexT t, Nlm_Int4Ptr begin, Nlm_Int4Ptr end));
520
561
void Nlm_CutText PROTO((Nlm_TexT t));
521
562
void Nlm_CopyText PROTO((Nlm_TexT t));
523
564
void Nlm_ClearText PROTO((Nlm_TexT t));
525
566
size_t Nlm_TextLength PROTO((Nlm_TexT t));
526
void Nlm_SelectText PROTO((Nlm_TexT t, Nlm_Int2 begin, Nlm_Int2 end));
567
void Nlm_SelectText PROTO((Nlm_TexT t, Nlm_Int4 begin, Nlm_Int4 end));
527
568
void Nlm_SetTextEditable PROTO((Nlm_TexT t, Nlm_Boolean editable));
528
569
void Nlm_SetTextCursorBlinkRate PROTO((Nlm_TexT t, Nlm_Int2 msec));
570
void Nlm_SetTextColor PROTO((Nlm_TexT t, Nlm_Uint4 r, Nlm_Uint4 g, Nlm_Uint4 b));
571
void Nlm_SetKeepCrNlTextFieldCallback PROTO((Nlm_TexT t));
530
573
/* return the new insertion position in the text(it may differ from "pos"
531
* if an error occured or "pos" is out of limits)
574
* if an error occurred or "pos" is out of limits)
533
Nlm_Int2 Nlm_SetTextCursorPos PROTO((Nlm_TexT t, Nlm_Int2 pos));
535
Nlm_Int2 Nlm_GetTextCursorPos PROTO((Nlm_TexT t));
576
Nlm_Int4 Nlm_SetTextCursorPos PROTO((Nlm_TexT t, Nlm_Int4 pos));
578
Nlm_Int4 Nlm_GetTextCursorPos PROTO((Nlm_TexT t));
538
582
/*** Static Prompt Objects ***/
1223
1267
Nlm_IO_READ, /* file descriptor has data available */
1224
1268
Nlm_IO_WRITE, /* file descriptor available for writing */
1225
Nlm_IO_ERROR, /* I/O error(exception) occured */
1269
Nlm_IO_ERROR, /* I/O error(exception) occurred */
1226
1270
Nlm_IO_CLEANUP /* when called from UnregisterIO() */