| 12345678910111213141516171819202122232425262728293031323334 |
- #ifndef __RTGUI_STATICLINE__H__
- #define __RTGUI_STATICLINE__H__
- #include <rtgui/rtgui.h>
- #include <rtgui/widgets/widget.h>
- /*
- * the static line widget
- */
- /** Gets the type of a staticline */
- #define RTGUI_STATICLINE_TYPE (rtgui_staticline_type_get())
- /** Casts the object to an rtgui_staticline */
- #define RTGUI_STATICLINE(obj) (RTGUI_OBJECT_CAST((obj), RTGUI_STATICLINE_TYPE, rtgui_staticline_t))
- /** Checks if the object is an rtgui_staticline */
- #define RTGUI_IS_STATICLINE(obj) (RTGUI_OBJECT_CHECK_TYPE((obj), RTGUI_STATICLINE_TYPE))
- struct rtgui_staticline
- {
- /* inherit from widget */
- struct rtgui_widget parent;
- int orient;
- };
- typedef struct rtgui_staticline rtgui_staticline_t;
- rtgui_staticline_t *rtgui_staticline_create(int orientation);
- void rtgui_staticline_destroy(rtgui_staticline_t* staticline);
- rt_bool_t rtgui_staticline_event_handler(struct rtgui_widget* widget, struct rtgui_event* event);
- void rtgui_staticline_set_orientation(rtgui_staticline_t* staticline, int orientation);
- #endif
|