mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-21 10:36:04 +08:00
update notebook control; fix rtgui_widget_hide issue.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1226 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
#define __RTGUI_NOTEBOOK_H__
|
||||
|
||||
#include <rtgui/rtgui.h>
|
||||
#include <rtgui/widgets/widget.h>
|
||||
#include <rtgui/widgets/container.h>
|
||||
|
||||
/** Gets the type of a notebook */
|
||||
#define RTGUI_NOTEBOOK_TYPE (rtgui_notebook_type_get())
|
||||
@@ -11,6 +11,10 @@
|
||||
/** Checks if the object is a notebook control */
|
||||
#define RTGUI_IS_NOTEBOOK(obj) (RTGUI_OBJECT_CHECK_TYPE((obj), RTGUI_NOTEBOOK_TYPE))
|
||||
|
||||
#define RTGUI_NOTEBOOK_TOP 0x00
|
||||
#define RTGUI_NOTEBOOK_BOTTOM 0x01
|
||||
#define RTGUI_NOTEBOOK_NOTAB 0x02
|
||||
|
||||
struct rtgui_notebook_tab
|
||||
{
|
||||
char* title;
|
||||
@@ -20,7 +24,9 @@ typedef struct rtgui_notebook_tab rtgui_notebook_tab_t;
|
||||
|
||||
struct rtgui_notebook
|
||||
{
|
||||
struct rtgui_widget parent;
|
||||
struct rtgui_container parent;
|
||||
|
||||
rt_uint8_t flag;
|
||||
|
||||
/* widget private data */
|
||||
rtgui_notebook_tab_t* childs;
|
||||
@@ -31,7 +37,7 @@ typedef struct rtgui_notebook rtgui_notebook_t;
|
||||
|
||||
rtgui_type_t *rtgui_notebook_type_get(void);
|
||||
|
||||
rtgui_notebook_t* rtgui_notebook_create(const rtgui_rect_t* rect);
|
||||
rtgui_notebook_t* rtgui_notebook_create(const rtgui_rect_t* rect, rt_uint8_t style);
|
||||
void rtgui_notebook_destroy(rtgui_notebook_t* notebook);
|
||||
|
||||
void rtgui_notebook_add(rtgui_notebook_t* notebook, const char* label, rtgui_widget_t* child);
|
||||
|
||||
@@ -157,6 +157,8 @@ void rtgui_widget_set_miniwidth(rtgui_widget_t* widget, int width);
|
||||
void rtgui_widget_set_miniheight(rtgui_widget_t* widget, int height);
|
||||
#endif
|
||||
|
||||
void rtgui_widget_set_parent(rtgui_widget_t* widget, rtgui_widget_t* parent);
|
||||
|
||||
/* get the physical position of a logic point on widget */
|
||||
void rtgui_widget_point_to_device(rtgui_widget_t * widget, rtgui_point_t * point);
|
||||
/* get the physical position of a logic rect on widget */
|
||||
|
||||
Reference in New Issue
Block a user