label.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /** \file label.h
  2. * \brief Header: WLabel widget
  3. */
  4. #ifndef MC__WIDGET_LABEL_H
  5. #define MC__WIDGET_LABEL_H
  6. /*** typedefs(not structures) and defined constants **********************************************/
  7. #define LABEL(x) ((WLabel *)(x))
  8. /*** enums ***************************************************************************************/
  9. /*** structures declarations (and typedefs of structures)*****************************************/
  10. typedef struct
  11. {
  12. Widget widget;
  13. gboolean auto_adjust_cols; /* compute widget.cols from strlen(text)? */
  14. char *text;
  15. gboolean transparent; /* Paint in the default color fg/bg */
  16. } WLabel;
  17. /*** global variables defined in .c file *********************************************************/
  18. /*** declarations of public functions ************************************************************/
  19. WLabel *label_new (int y, int x, const char *text);
  20. void label_set_text (WLabel * label, const char *text);
  21. void label_set_textv (WLabel * label, const char *format, ...);
  22. /*** inline functions ****************************************************************************/
  23. #endif /* MC__WIDGET_LABEL_H */