hline.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /** \file hline.h
  2. * \brief Header: WHLine widget
  3. */
  4. #ifndef MC__WIDGET_HLINE_H
  5. #define MC__WIDGET_HLINE_H
  6. /*** typedefs(not structures) and defined constants **********************************************/
  7. #define HLINE(x) ((WHLine *)(x))
  8. /*** enums ***************************************************************************************/
  9. /*** structures declarations (and typedefs of structures)*****************************************/
  10. typedef struct
  11. {
  12. Widget widget;
  13. char *text;
  14. gboolean auto_adjust_cols; /* Compute widget.cols from parent width? */
  15. gboolean transparent; /* Paint in the default color fg/bg */
  16. } WHLine;
  17. /*** global variables defined in .c file *********************************************************/
  18. /*** declarations of public functions ************************************************************/
  19. WHLine *hline_new (int y, int x, int width);
  20. void hline_set_text (WHLine * l, const char *text);
  21. /* *INDENT-OFF* */
  22. void hline_set_textv (WHLine * l, const char *format, ...) G_GNUC_PRINTF (2, 3);
  23. /* *INDENT-ON* */
  24. /*** inline functions ****************************************************************************/
  25. #endif /* MC__WIDGET_HLINE_H */