|
wlmaker
|
#include <libbase/libbase.h>#include <libbase/plist.h>#include <stdbool.h>

Go to the source code of this file.
Functions | |
| void | wlmtool_item_destroy (struct wlmtool_item *item_ptr) |
| bspl_array_t * | wlmtool_item_create_array (struct wlmtool_item *item_ptr) |
| struct wlmtool_menu * | wlmtool_menu_create (const char *title_ptr) |
| struct wlmtool_item * | wlmtool_item_from_menu (struct wlmtool_menu *menu_ptr) |
| bool | wlmtool_menu_add_item (struct wlmtool_menu *menu_ptr, struct wlmtool_item *item_ptr) |
| struct wlmtool_menu * | wlmtool_menu_get_or_create_submenu (struct wlmtool_menu *menu_ptr, const void *key_ptr) |
| struct wlmtool_item * | wlmtool_file_action_create (const char *title_ptr, const char *action_ptr, const char *resolved_path_ptr) |
| struct wlmtool_item * | wlmtool_entry_create (const char *key_ptr, const char **args_ptr) |
Variables | |
| const bs_test_set_t | wlmtool_item_test_set |
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
| struct wlmtool_item * wlmtool_entry_create | ( | const char * | key_ptr, |
| const char ** | args_ptr | ||
| ) |
Adds a menu entry.
| key_ptr | Key that is expected unique within the submenu. |
| args_ptr | NULL-terminted array to build the entry from. |
| struct wlmtool_item * wlmtool_file_action_create | ( | const char * | title_ptr, |
| const char * | action_ptr, | ||
| const char * | resolved_path_ptr | ||
| ) |
Creates a "file action" menu item.
| title_ptr | Title to use for the menu entry. |
| action_ptr | Action command to use. |
| resolved_path_ptr | Fully resolved path to the file to act on. |
| bspl_array_t * wlmtool_item_create_array | ( | struct wlmtool_item * | item_ptr | ) |
Returns a plist array representing the item (or menu).
| void wlmtool_item_destroy | ( | struct wlmtool_item * | item_ptr | ) |
Destroys the item.
| struct wlmtool_item * wlmtool_item_from_menu | ( | struct wlmtool_menu * | menu_ptr | ) |
| bool wlmtool_menu_add_item | ( | struct wlmtool_menu * | menu_ptr, |
| struct wlmtool_item * | item_ptr | ||
| ) |
Adds an item to this menu.
| menu_ptr | |
| item_ptr | The item to add. The menu will take ownership. |
Adds an item to the menu.
| struct wlmtool_menu * wlmtool_menu_create | ( | const char * | title_ptr | ) |
Creates a menu.
| title_ptr |
| struct wlmtool_menu * wlmtool_menu_get_or_create_submenu | ( | struct wlmtool_menu * | menu_ptr, |
| const void * | key_ptr | ||
| ) |
Obtain (or create) the submenu with the provided key within a menu.
| menu_ptr | |
| key_ptr |
Returns a submenu for key, if it exists. If not, create it.
|
extern |
Unit tests for the menu item classes.