home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / gwm18a.zip / wl_label.h < prev    next >
C/C++ Source or Header  |  1995-07-03  |  2KB  |  66 lines

  1. /* Copyright 1989 GROUPE BULL -- See license conditions in file COPYRIGHT
  2.  * Copyright 1989 Massachusetts Institute of Technology
  3.  */
  4. /************************\
  5. *              *
  6. *  WOOL_OBJECT: WLLabel     *
  7. *  DEFINITIONS         *
  8. *              *
  9. \************************/
  10.  
  11. #ifndef INCLUDE_WL_LABEL_H
  12. #define INCLUDE_WL_LABEL_H
  13.  
  14. /* type */
  15.  
  16. typedef struct _WOOL_Label {
  17.     WOOL_HEADER;
  18.     int x, y;
  19.     long        font;
  20.     long        color;
  21.     WOOL_String        label;
  22. }              *WOOL_Label;
  23.  
  24. /* exported functions */
  25.  
  26. EXT WOOL_OBJECT wool_label_make();
  27. EXT WOOL_Label WLLabel_make();
  28. EXT WOOL_OBJECT WLLabel_print();
  29. EXT WOOL_OBJECT WLLabel_free();
  30. EXT char *    WLLabel_get_C_value();
  31. EXT WOOL_OBJECT WLLabel_get_dimensions();
  32. EXT WOOL_OBJECT WLLabel_draw();
  33. EXT WOOL_OBJECT WLLabel_open();
  34.  
  35. /* methods */
  36.  
  37. EXT WOOL_METHOD WLLabel[]
  38. #ifdef DO_INIT
  39. = {
  40.    (WOOL_METHOD) 0,        /* METHODS_ARRAY */
  41.    WLNumber_eval,        /* WOOL_eval 1 */
  42.    WLLabel_print,        /* WOOL_print 2 */
  43.    WLLabel_free,        /* WOOL_free 3 */
  44.    wool_undefined_method_2,        /* WOOL_execute 4 */
  45.    wool_undefined_method_2,        /* WOOL_set 5 */
  46.    (WOOL_METHOD) WLLabel_get_C_value,/* WOOL_get_C_value 6 */
  47.    WLLabel_open,        /* WOOL_open 7 */
  48.    wool_undefined_method_1,    /* WOOL_close 8 */
  49.    wool_undefined_method_2,    /* WOOL_process_event 9 */
  50.    wool_undefined_method_1,    /* WOOL_copy 10 */
  51.    WLLabel_get_dimensions,    /* WOOL_get_dimensions 11 */
  52.    WLLabel_draw,        /* WOOL_draw 12 */
  53.    wool_undefined_method_2,    /* WOOL_equal 13 */
  54.    wool_undefined_method_2,
  55.    wool_undefined_method_2,
  56.    wool_undefined_method_1,
  57.    wool_undefined_method_1,
  58.    wool_undefined_method_1,
  59.    wool_undefined_method_1,
  60.    wool_undefined_method_1
  61. }
  62. #endif /* DO_INIT */
  63.                ;
  64.  
  65. #endif /* INCLUDE_WL_LABEL_H */
  66.