mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-30 02:24:06 +08:00
The full log is at https://github.com/RTGUI/RTGUI/commits/merge_1 and it's difficult to merge the new tree commit by commit. I also converted all the file into unix eol so there are many fake diff. Big changes are noted in rtgui/doc/road_map.txt and rtgui/doc/attention.txt. Keep an eye on them if you want to migrate your old code. Note that the work is still in progress and the bsp is not prepared in trunk so far. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2092 bbd45198-f89e-11dd-88c7-29a3b14d5316
36 lines
1.0 KiB
C
36 lines
1.0 KiB
C
#ifndef __RTGUI_STATICLINE__H__
|
|
#define __RTGUI_STATICLINE__H__
|
|
|
|
#include <rtgui/rtgui.h>
|
|
#include <rtgui/widgets/widget.h>
|
|
|
|
/*
|
|
* the static line widget
|
|
*/
|
|
|
|
DECLARE_CLASS_TYPE(staticline);
|
|
/** Gets the type of a staticline */
|
|
#define RTGUI_STATICLINE_TYPE (RTGUI_TYPE(staticline))
|
|
/** 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_object* object, struct rtgui_event* event);
|
|
void rtgui_staticline_set_orientation(rtgui_staticline_t* staticline, int orientation);
|
|
|
|
#endif
|
|
|