mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-01 19:49:11 +08:00
rework typecheck
This commit is contained in:
parent
e0a92f07ab
commit
8fa037f34c
@ -99,7 +99,7 @@ struct _widget_vtable_t {
|
|||||||
/**
|
/**
|
||||||
* parent class vtable
|
* parent class vtable
|
||||||
*/
|
*/
|
||||||
struct _widget_vtable_t* parent;
|
const struct _widget_vtable_t* parent;
|
||||||
|
|
||||||
widget_create_t create;
|
widget_create_t create;
|
||||||
widget_get_prop_t get_prop;
|
widget_get_prop_t get_prop;
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
|
|
||||||
#include "tkc/mem.h"
|
#include "tkc/mem.h"
|
||||||
#include "widgets/app_bar.h"
|
#include "widgets/app_bar.h"
|
||||||
|
#include "base/widget_vtable.h"
|
||||||
|
|
||||||
TK_DECL_VTABLE(app_bar) = {.size = sizeof(app_bar_t),
|
TK_DECL_VTABLE(app_bar) = {.size = sizeof(app_bar_t),
|
||||||
.type = WIDGET_TYPE_APP_BAR,
|
.type = WIDGET_TYPE_APP_BAR,
|
||||||
|
Loading…
Reference in New Issue
Block a user