21#define VIEW_NONE 0xFFFFFFFF
24#define VIEW_IGNORE 0xFFFFFFFE
27 ViewOrientationHorizontal,
28 ViewOrientationHorizontalFlip,
29 ViewOrientationVertical,
30 ViewOrientationVerticalFlip,
216#define with_view_model_cpp(view, type, var, code, update) \
218 type var = static_cast<type>(view_get_model(view)); \
220 view_commit_model(view, update); \
231#define with_view_model(view, type, code, update) \
233 type = view_get_model(view); \
235 view_commit_model(view, update); \
Canvas structure.
Definition canvas_i.h:40
Definition icon_animation_i.h:12
void view_set_orientation(View *view, ViewOrientation orientation)
Set View Orientation.
Definition view.c:65
void view_set_context(View *view, void *context)
Set View Draw callback.
Definition view.c:60
void(* ViewDrawCallback)(Canvas *canvas, void *model)
View Draw callback.
Definition view.h:41
void view_commit_model(View *view, bool update)
Commit view model.
Definition view.c:110
void view_set_draw_callback(View *view, ViewDrawCallback callback)
Set View Draw callback.
Definition view.c:20
void view_set_previous_callback(View *view, ViewNavigationCallback callback)
Set Navigation Previous callback.
Definition view.c:35
void view_set_update_callback_context(View *view, void *context)
Set View Draw callback.
Definition view.c:55
void(* ViewCallback)(void *context)
View callback.
Definition view.h:69
bool(* ViewCustomCallback)(uint32_t event, void *context)
View Custom callback.
Definition view.h:56
bool(* ViewInputCallback)(InputEvent *event, void *context)
View Input callback.
Definition view.h:49
void view_allocate_model(View *view, ViewModelType type, size_t size)
Allocate view model.
Definition view.c:70
void view_free_model(View *view)
Free view model data memory.
Definition view.c:87
void view_set_enter_callback(View *view, ViewCallback callback)
Set Enter callback.
Definition view.c:40
void view_set_exit_callback(View *view, ViewCallback callback)
Set Exit callback.
Definition view.c:45
void(* ViewUpdateCallback)(View *view, void *context)
View Update Callback Called upon model change, need to be propagated to GUI throw ViewPort update.
Definition view.h:77
void * view_get_model(View *view)
Get view model data.
Definition view.c:100
uint32_t(* ViewNavigationCallback)(void *context)
View navigation callback.
Definition view.h:63
void view_set_custom_callback(View *view, ViewCustomCallback callback)
Set View Custom callback.
Definition view.c:30
View * view_alloc(void)
Allocate and init View.
Definition view.c:3
void view_free(View *view)
Free View.
Definition view.c:9
void view_set_update_callback(View *view, ViewUpdateCallback callback)
Set Update callback.
Definition view.c:50
void view_set_input_callback(View *view, ViewInputCallback callback)
Set View Input callback.
Definition view.c:25
void view_tie_icon_animation(View *view, IconAnimation *icon_animation)
Tie IconAnimation with View.
Definition view.c:15
ViewModelType
View model types.
Definition view.h:80
@ ViewModelTypeNone
Model is not allocated.
Definition view.h:82
@ ViewModelTypeLockFree
Model consist of atomic types and/or partial update is not critical for rendering.
Definition view.h:86
@ ViewModelTypeLocking
Model access is guarded with mutex.
Definition view.h:90