wlmaker
Toggle main menu visibility
Loading...
Searching...
No Matches
src
action_item.h
Go to the documentation of this file.
1
/* ========================================================================= */
21
#ifndef __WLMAKER_ACTION_ITEM_H__
22
#define __WLMAKER_ACTION_ITEM_H__
23
24
#include <libbase/libbase.h>
25
#include <stdbool.h>
26
#include <stddef.h>
27
29
typedef
struct
_wlmaker_action_item_t
wlmaker_action_item_t
;
30
31
#include "
action.h
"
32
#include "
server.h
"
33
#include "
toolkit/toolkit.h
"
34
35
#ifdef __cplusplus
36
extern
"C"
{
37
#endif
// __cplusplus
38
40
typedef
struct
{
42
const
char
*
text_ptr
;
44
wlmaker_action_t
action
;
46
char
*
action_arg_ptr
;
51
size_t
destination_ofs
;
52
}
wlmaker_action_item_desc_t
;
53
65
wlmaker_action_item_t
*
wlmaker_action_item_create
(
66
const
char
*text_ptr,
67
wlmtk_menu_style_ref_t
*style_ref_ptr,
68
wlmaker_action_t
action,
69
const
char
*action_arg_ptr,
70
wlmaker_server_t
*server_ptr);
71
82
wlmaker_action_item_t
*
wlmaker_action_item_create_from_desc
(
83
const
wlmaker_action_item_desc_t
*desc_ptr,
84
void
*dest_ptr,
85
wlmtk_menu_style_ref_t
*style_ref_ptr,
86
wlmaker_server_t
*server_ptr);
87
89
wlmtk_menu_item_t
*
wlmaker_action_item_menu_item
(
90
wlmaker_action_item_t
*action_item_ptr);
91
102
bool
wlmaker_menu_item_bind_action
(
103
wlmtk_menu_item_t
* menu_item_ptr,
104
wlmaker_action_t
action,
105
const
char
*action_arg_ptr,
106
wlmaker_server_t
*server_ptr);
107
109
extern
const
bs_test_set_t
wlmaker_action_item_test_set
;
110
111
#ifdef __cplusplus
112
}
// extern "C"
113
#endif
// __cplusplus
114
115
#endif
/* __WLMAKER_ACTION_ITEM_H__ */
116
/* == End of action_item.h ================================================= */
action.h
wlmaker_action_t
wlmaker_action_t
Definition
action.h:35
wlmaker_action_item_test_set
const bs_test_set_t wlmaker_action_item_test_set
Definition
action_item.c:240
wlmaker_menu_item_bind_action
bool wlmaker_menu_item_bind_action(wlmtk_menu_item_t *menu_item_ptr, wlmaker_action_t action, const char *action_arg_ptr, wlmaker_server_t *server_ptr)
Definition
action_item.c:135
wlmaker_action_item_create_from_desc
wlmaker_action_item_t * wlmaker_action_item_create_from_desc(const wlmaker_action_item_desc_t *desc_ptr, void *dest_ptr, wlmtk_menu_style_ref_t *style_ref_ptr, wlmaker_server_t *server_ptr)
Definition
action_item.c:108
wlmaker_action_item_t
struct _wlmaker_action_item_t wlmaker_action_item_t
Definition
action_item.h:29
wlmaker_action_item_create
wlmaker_action_item_t * wlmaker_action_item_create(const char *text_ptr, wlmtk_menu_style_ref_t *style_ref_ptr, wlmaker_action_t action, const char *action_arg_ptr, wlmaker_server_t *server_ptr)
Definition
action_item.c:65
wlmaker_action_item_menu_item
wlmtk_menu_item_t * wlmaker_action_item_menu_item(wlmaker_action_item_t *action_item_ptr)
Definition
action_item.c:128
wlmtk_menu_style_ref_t
struct _wlmtk_menu_style_ref_t wlmtk_menu_style_ref_t
Definition
menu.h:28
wlmtk_menu_item_t
struct _wlmtk_menu_item_t wlmtk_menu_item_t
Definition
menu_item.h:34
server.h
wlmaker_server_t
struct _wlmaker_server_t wlmaker_server_t
Definition
server.h:40
_wlmaker_action_item_t
Definition
action_item.c:35
wlmaker_action_item_desc_t
Definition
action_item.h:40
wlmaker_action_item_desc_t::destination_ofs
size_t destination_ofs
Definition
action_item.h:51
wlmaker_action_item_desc_t::action_arg_ptr
char * action_arg_ptr
Definition
action_item.h:46
wlmaker_action_item_desc_t::text_ptr
const char * text_ptr
Definition
action_item.h:42
wlmaker_action_item_desc_t::action
wlmaker_action_t action
Definition
action_item.h:44
toolkit.h
Generated by
1.17.0