label.h 1.0 KB

1234567891011121314151617181920212223242526272829303132
  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. /*** enums ***************************************************************************************/
  8. /*** structures declarations (and typedefs of structures)*****************************************/
  9. typedef struct
  10. {
  11. Widget widget;
  12. gboolean auto_adjust_cols; /* compute widget.cols from strlen(text)? */
  13. char *text;
  14. gboolean transparent; /* Paint in the default color fg/bg */
  15. } WLabel;
  16. /*** global variables defined in .c file *********************************************************/
  17. /*** declarations of public functions ************************************************************/
  18. WLabel *label_new (int y, int x, const char *text);
  19. void label_set_text (WLabel * label, const char *text);
  20. /*** inline functions ****************************************************************************/
  21. #endif /* MC__WIDGET_LABEL_H */