home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / smalltk / src / stdtext.h < prev    next >
C/C++ Source or Header  |  1991-10-12  |  2KB  |  52 lines

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