staticline.h 944 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef __RTGUI_STATICLINE__H__
  2. #define __RTGUI_STATICLINE__H__
  3. #include <rtgui/rtgui.h>
  4. /*
  5. * the static line widget
  6. */
  7. /** Gets the type of a sline */
  8. #define RTGUI_STATICLINE_TYPE (rtgui_staticline_type_get())
  9. /** Casts the object to an rtgui_staticline_t */
  10. #define RTGUI_STATICLINE(obj) (RTGUI_OBJECT_CAST((obj), RTGUI_STATICLINE_TYPE, rtgui_staticline_t))
  11. /** Checks if the object is an rtgui_staticline_t */
  12. #define RTGUI_IS_STATICLINE(obj) (RTGUI_OBJECT_CHECK_TYPE((obj), RTGUI_STATICLINE_TYPE))
  13. struct rtgui_staticline
  14. {
  15. /* inherit from widget */
  16. rtgui_widget_t parent;
  17. int orient;
  18. };
  19. typedef struct rtgui_staticline rtgui_staticline_t;
  20. rtgui_staticline_t *rtgui_staticline_create(PVOID wdt,int left,int top,int w,int len,int orient);
  21. void rtgui_staticline_destroy(rtgui_staticline_t* sline);
  22. rt_bool_t rtgui_staticline_event_handler(PVOID wdt, rtgui_event_t* event);
  23. #endif