staticline.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef __RTGUI_STATICLINE__H__
  2. #define __RTGUI_STATICLINE__H__
  3. #include <rtgui/rtgui.h>
  4. #include <rtgui/widgets/widget.h>
  5. /*
  6. * the static line widget
  7. */
  8. DECLARE_CLASS_TYPE(staticline);
  9. /** Gets the type of a staticline */
  10. #define RTGUI_STATICLINE_TYPE (RTGUI_TYPE(staticline))
  11. /** Casts the object to an rtgui_staticline */
  12. #define RTGUI_STATICLINE(obj) (RTGUI_OBJECT_CAST((obj), RTGUI_STATICLINE_TYPE, rtgui_staticline_t))
  13. /** Checks if the object is an rtgui_staticline */
  14. #define RTGUI_IS_STATICLINE(obj) (RTGUI_OBJECT_CHECK_TYPE((obj), RTGUI_STATICLINE_TYPE))
  15. struct rtgui_staticline
  16. {
  17. /* inherit from widget */
  18. struct rtgui_widget parent;
  19. int orient;
  20. };
  21. typedef struct rtgui_staticline rtgui_staticline_t;
  22. rtgui_staticline_t *rtgui_staticline_create(int orientation);
  23. void rtgui_staticline_destroy(rtgui_staticline_t *staticline);
  24. rt_bool_t rtgui_staticline_event_handler(struct rtgui_object *object, struct rtgui_event *event);
  25. void rtgui_staticline_set_orientation(rtgui_staticline_t *staticline, int orientation);
  26. #endif