home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 5 / FreshFish_July-August1994.bin / bbs / dev / alst-3.04.lha / ALSt-3.04 / src / stdwtext.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-05-14  |  1.8 KB  |  50 lines

  1. /* STDWIN TEXTEDIT PACKAGE INTERFACE */
  2.  
  3. /* This file is only ever included by "stdwin.h" */
  4.  
  5. #define TEXTEDIT struct _textedit
  6.  
  7. TEXTEDIT *tealloc _ARGS((WINDOW *win, int left, int top, int width));
  8. TEXTEDIT *tecreate _ARGS((WINDOW *win,
  9.     int left, int top, int right, int bottom));
  10. void tefree _ARGS((TEXTEDIT *tp));
  11. void tedestroy _ARGS((TEXTEDIT *tp));
  12. void tesetactive _ARGS((TEXTEDIT *tp, /*bool*/int active));
  13.  
  14. void tedraw _ARGS((TEXTEDIT *tp));
  15. void tedrawnew _ARGS((TEXTEDIT *tp,
  16.     int left, int top, int right, int bottom));
  17. void temove _ARGS((TEXTEDIT *tp, int left, int top, int width));
  18. void temovenew _ARGS((TEXTEDIT *tp,
  19.     int left, int top, int right, int bottom));
  20.  
  21. void tesetfocus _ARGS((TEXTEDIT *tp, int foc1, int foc2));
  22. void tereplace _ARGS((TEXTEDIT *tp, char *str));
  23. void tesetbuf _ARGS((TEXTEDIT *tp, char *buf, int buflen));
  24.  
  25. void tearrow _ARGS((TEXTEDIT *tp, int code));
  26. void tebackspace _ARGS((TEXTEDIT *tp));
  27. /*bool*/int teclicknew _ARGS((TEXTEDIT *tp, int h, int v, /*bool*/int extend, /*bool*/int dclick));
  28. /*bool*/int tedoubleclick _ARGS((TEXTEDIT *tp, int h, int v));
  29. /*bool*/int teevent _ARGS((TEXTEDIT *tp, EVENT *ep));
  30.  
  31. #define teclick(tp, h, v) teclicknew(tp, h, v, FALSE)
  32. #define teclickextend(tp, h, v) teclicknew(tp, h, v, TRUE)
  33.  
  34. char *tegettext _ARGS((TEXTEDIT *tp));
  35. int tegetlen _ARGS((TEXTEDIT *tp));
  36. int tegetnlines _ARGS((TEXTEDIT *tp));
  37. int tegetfoc1 _ARGS((TEXTEDIT *tp));
  38. int tegetfoc2 _ARGS((TEXTEDIT *tp));
  39. int tegetleft _ARGS((TEXTEDIT *tp));
  40. int tegettop _ARGS((TEXTEDIT *tp));
  41. int tegetright _ARGS((TEXTEDIT *tp));
  42. int tegetbottom _ARGS((TEXTEDIT *tp));
  43.  
  44. /* Text paragraph drawing functions: */
  45.  
  46. int wdrawpar _ARGS((int h, int v, char *text, int width));
  47.     /* Returns new v coord. */
  48. int wparheight _ARGS((char *text, int width));
  49.     /* Returns height */
  50.