Home
last modified time | relevance | path

Searched refs:menu (Results 1 – 25 of 764) sorted by relevance

12345678910>>...31

/third_party/toybox/kconfig/
Dmenu.c12 struct menu rootmenu;
13 static struct menu **last_entry_ptr;
18 static void menu_warn(struct menu *menu, const char *fmt, ...) in menu_warn() argument
22 fprintf(stderr, "%s:%d:warning: ", menu->file->name, menu->lineno); in menu_warn()
46 struct menu *menu; in menu_add_entry() local
48 menu = malloc(sizeof(*menu)); in menu_add_entry()
49 memset(menu, 0, sizeof(*menu)); in menu_add_entry()
50 menu->sym = sym; in menu_add_entry()
51 menu->parent = current_menu; in menu_add_entry()
52 menu->file = current_file; in menu_add_entry()
[all …]
Dmconf.c278 static struct menu *current_menu;
282 static void conf(struct menu *menu);
283 static void conf_choice(struct menu *menu);
284 static void conf_string(struct menu *menu);
289 static void show_help(struct menu *menu);
329 struct menu *submenu[8], *menu; in get_prompt_str() local
332 str_printf(r, " Defined at %s:%d\n", prop->menu->file->name, in get_prompt_str()
333 prop->menu->lineno); in get_prompt_str()
339 menu = prop->menu->parent; in get_prompt_str()
340 for (i = 0; menu != &rootmenu && i < 8; menu = menu->parent) in get_prompt_str()
[all …]
Dconf.c17 static void conf(struct menu *menu);
18 static void check_conf(struct menu *menu);
36 static struct menu *rootEntry;
171 int conf_string(struct menu *menu) in conf_string() argument
173 struct symbol *sym = menu->sym; in conf_string()
177 printf("%*s%s ", indent - 1, "", menu->prompt->text); in conf_string()
190 if (menu->sym->help) in conf_string()
191 help = menu->sym->help; in conf_string()
192 printf("\n%s\n", menu->sym->help); in conf_string()
205 static int conf_sym(struct menu *menu) in conf_sym() argument
[all …]
Dlkc_proto.h10 P(rootmenu,struct menu,);
12 P(menu_is_visible,bool,(struct menu *menu));
13 P(menu_get_prompt,const char *,(struct menu *menu));
14 P(menu_get_root_menu,struct menu *,(struct menu *menu));
15 P(menu_get_parent_menu,struct menu *,(struct menu *menu));
Dconfdata.c382 struct menu *next_menu(struct menu *menu) in next_menu() argument
384 if (menu->list) return menu->list; in next_menu()
386 if (menu->next) { in next_menu()
387 menu = menu->next; in next_menu()
390 } while ((menu = menu->parent)); in next_menu()
392 return menu; in next_menu()
401 struct menu *menu; in conf_write() local
465 for (menu = rootmenu.list; menu; menu = next_menu(menu)) in conf_write()
466 if (menu->sym) menu->sym->flags |= SYMBOL_FORCEWRITE; in conf_write()
474 menu = rootmenu.list; in conf_write()
[all …]
/third_party/ltp/testcases/kernel/device-drivers/v4l/user_space/
Dtest_VIDIOC_QUERYMENU.c34 struct v4l2_querymenu *menu) in do_check_menu() argument
43 menu->id, menu->index, menu->name, menu->reserved); in do_check_menu()
45 CU_ASSERT_EQUAL(menu->id, id); in do_check_menu()
46 CU_ASSERT_EQUAL(menu->index, index); in do_check_menu()
48 CU_ASSERT(0 < strlen((char *)menu->name)); in do_check_menu()
49 CU_ASSERT(valid_string((char *)menu->name, sizeof(menu->name))); in do_check_menu()
51 CU_ASSERT_EQUAL(menu->reserved, 0); in do_check_menu()
61 strncpy((char *)menu2.name, (char *)menu->name, in do_check_menu()
63 CU_ASSERT_EQUAL(memcmp(menu, &menu2, sizeof(*menu)), 0); in do_check_menu()
72 CU_ASSERT(memcmp(&menu, &menu2, sizeof(menu))); in do_check_menu()
[all …]
/third_party/glib/gio/
Dgmenuexporter.c124 GMenuExporterMenu *menu; member
129 g_menu_exporter_menu_free (GMenuExporterMenu *menu) in g_menu_exporter_menu_free() argument
131 g_menu_exporter_group_remove_menu (menu->group, menu->id); in g_menu_exporter_menu_free()
133 if (menu->handler_id != 0) in g_menu_exporter_menu_free()
134 g_signal_handler_disconnect (menu->model, menu->handler_id); in g_menu_exporter_menu_free()
136 if (menu->item_links != NULL) in g_menu_exporter_menu_free()
137 g_sequence_free (menu->item_links); in g_menu_exporter_menu_free()
139 g_object_unref (menu->model); in g_menu_exporter_menu_free()
141 g_slice_free (GMenuExporterMenu, menu); in g_menu_exporter_menu_free()
154 g_menu_exporter_menu_free (tmp->menu); in g_menu_exporter_link_free()
[all …]
Dgmenu.c96 GMenu *menu = G_MENU (model); in g_menu_is_mutable() local
98 return menu->mutable; in g_menu_is_mutable()
104 GMenu *menu = G_MENU (model); in g_menu_get_n_items() local
106 return menu->items->len; in g_menu_get_n_items()
114 GMenu *menu = G_MENU (model); in g_menu_get_item_attributes() local
116 *table = g_hash_table_ref (g_array_index (menu->items, struct item, position).attributes); in g_menu_get_item_attributes()
124 GMenu *menu = G_MENU (model); in g_menu_get_item_links() local
126 *table = g_hash_table_ref (g_array_index (menu->items, struct item, position).links); in g_menu_get_item_links()
156 g_menu_insert_item (GMenu *menu, in g_menu_insert_item() argument
162 g_return_if_fail (G_IS_MENU (menu)); in g_menu_insert_item()
[all …]
Dgmenu.h48 void g_menu_freeze (GMenu *menu);
51 void g_menu_insert_item (GMenu *menu,
55 void g_menu_prepend_item (GMenu *menu,
58 void g_menu_append_item (GMenu *menu,
61 void g_menu_remove (GMenu *menu,
65 void g_menu_remove_all (GMenu *menu);
68 void g_menu_insert (GMenu *menu,
73 void g_menu_prepend (GMenu *menu,
77 void g_menu_append (GMenu *menu,
82 void g_menu_insert_section (GMenu *menu,
[all …]
/third_party/glib/gio/tests/
Dgmenumodel.c111 GMenuModel *menu = g_menu_link_iter_get_value (link_iter); in g_menu_markup_print_string() local
122 g_menu_markup_print_string (contents, menu, indent + 2 * tabstop, tabstop); in g_menu_markup_print_string()
126 g_object_unref (menu); in g_menu_markup_print_string()
216 RandomMenu *menu = (RandomMenu *) model; in random_menu_get_n_items() local
218 return g_sequence_get_length (menu->items); in random_menu_get_n_items()
226 RandomMenu *menu = (RandomMenu *) model; in random_menu_get_item_attributes() local
229 item = g_sequence_get (g_sequence_get_iter_at_pos (menu->items, position)); in random_menu_get_item_attributes()
238 RandomMenu *menu = (RandomMenu *) model; in random_menu_get_item_links() local
241 item = g_sequence_get (g_sequence_get_iter_at_pos (menu->items, position)); in random_menu_get_item_links()
248 RandomMenu *menu = (RandomMenu *) object; in random_menu_finalize() local
[all …]
/third_party/alsa-utils/alsamixer/
Dmenu_widget.c11 int menu_widget_handle_key(MENU *menu, int key) in menu_widget_handle_key() argument
27 switch (menu_driver(menu, KEY_MOUSE)) { in menu_widget_handle_key()
35 key = wgetch(menu_win(menu)); in menu_widget_handle_key()
40 menu_driver(menu, REQ_UP_ITEM); in menu_widget_handle_key()
43 menu_driver(menu, REQ_DOWN_ITEM); in menu_widget_handle_key()
58 menu_driver(menu, key + KEY_MAX); in menu_widget_handle_key()
65 void menu_widget_create(struct widget *widget, MENU *menu, const char *title) in menu_widget_create() argument
69 if (menu) in menu_widget_create()
70 unpost_menu(menu); in menu_widget_create()
77 scale_menu(menu, &rows, &columns); in menu_widget_create()
[all …]
Dproc_files.c36 static MENU *menu; variable
42 switch (menu_widget_handle_key(menu, key)) { in on_handle_key()
44 item = current_item(menu); in on_handle_key()
56 menu_widget_create(&proc_widget, menu, _("Select File")); in create()
63 unpost_menu(menu); in on_close()
64 free_menu(menu); in on_close()
98 menu = new_menu(items); in create_proc_files_list()
99 if (!menu) in create_proc_files_list()
101 set_menu_fore(menu, attrs.menu_selected); in create_proc_files_list()
102 set_menu_back(menu, attrs.menu); in create_proc_files_list()
[all …]
Dcard_select.c46 static MENU *menu; variable
51 ITEM *item = current_item(menu); in on_key_enter()
65 switch (menu_widget_handle_key(menu, key)) { in on_handle_key()
77 menu_widget_create(&list_widget, menu, _("Sound Card")); in create()
85 unpost_menu(menu); in close_card_select_list()
86 free_menu(menu); in close_card_select_list()
189 menu = new_menu(items); in create_card_select_list()
190 if (!menu) in create_card_select_list()
192 set_menu_fore(menu, attrs.menu_selected); in create_card_select_list()
193 set_menu_back(menu, attrs.menu); in create_card_select_list()
[all …]
/third_party/gettext/gettext-tools/examples/hello-objc-gnustep/
Dmain.m11 /* Create the application's menu. */
15 NSMenu *menu;
23 menu = [[NSMenu alloc] initWithTitle: APP_NAME];
24 [menu addItemWithTitle: @"Info"
27 [menu addItemWithTitle: @"Edit"
30 [menu addItemWithTitle: @"Hello..."
33 [menu addItemWithTitle: @"Windows"
36 [menu addItemWithTitle: @"Services"
39 [menu addItemWithTitle: @"Hide"
42 [menu addItemWithTitle: @"Quit"
[all …]
/third_party/cef/patch/patches/
Dviews_1749_2102.patch21 + // Called when the user moves the mouse outside the menu and over the owning
26 + // true if the menu is displaying a right-to-left language.
30 + // Override the text/background color of a given menu item dependent on the
42 // Called when the menu is about to be shown.
240 diff --git ui/views/controls/menu/menu_controller.cc ui/views/controls/menu/menu_controller.cc
242 --- ui/views/controls/menu/menu_controller.cc
243 +++ ui/views/controls/menu/menu_controller.cc
271 diff --git ui/views/controls/menu/menu_delegate.h ui/views/controls/menu/menu_delegate.h
273 --- ui/views/controls/menu/menu_delegate.h
274 +++ ui/views/controls/menu/menu_delegate.h
[all …]
/third_party/python/Lib/idlelib/
Dmacosx.py183 root.configure(menu=menubar)
186 menudict['window'] = menu = Menu(menubar, name='window', tearoff=0)
187 menubar.add_cascade(label='Window', menu=menu, underline=0)
189 def postwindowsmenu(menu=menu): argument
190 end = menu.index('end')
195 menu.delete(0, end)
196 window.add_windows_to_menu(menu)
236 menudict['application'] = menu = Menu(menubar, name='apple',
238 menubar.add_cascade(label='IDLE', menu=menu)
Dscrolledlist.py69 menu = None variable in ScrolledList
72 if not self.menu:
74 menu = self.menu
78 menu.tk_popup(event.x_root, event.y_root)
82 menu = Menu(self.listbox, tearoff=0)
83 self.menu = menu
136 def fill_menu(self): self.menu.add_command(label="right click")
Dextend.txt4 An IDLE extension can define new key bindings and menu entries for IDLE
14 actions that are invoked by event bindings or menu entries. Class (or
15 instance) variables define the bindings and menu additions; these are
36 as menu entries.)
38 An extension can define menu entries. This is done with a class or instance
40 menu name (lowercase) and a list of menu entries. Each menu entry is either
42 virtual_event). Here, menu_label is the label of the menu entry, and
44 An underscore in the menu label is removed; the character following the
53 Extensions are not required to define menu entries for all the events they
/third_party/flutter/flutter/packages/flutter/lib/src/material/
Dpopup_menu.dart41 /// A base class for entries in a material design popup menu.
43 /// The popup menu widget uses this interface to interact with the menu items.
44 /// To show a popup menu, use the [showMenu] function. To create a button that
45 /// shows a popup menu, consider using [PopupMenuButton].
48 /// entries in a given menu must represent values with consistent types.
51 /// several icons, or a single entry, for example a menu item with an icon (see
56 /// * [PopupMenuItem], a popup menu entry for a single value.
57 /// * [PopupMenuDivider], a popup menu entry that is just a horizontal line.
58 /// * [CheckedPopupMenuItem], a popup menu item with a checkmark.
59 /// * [showMenu], a method to dynamically show a popup menu at a given location.
[all …]
/third_party/toybox/kconfig/lxdialog/
Dmenubox.c105 do_print_item(menu, item_str(), choice, selected, !item_is_tag(':')); \
189 WINDOW *dialog, *menu; in dialog_menu() local
232 menu = subwin(dialog, menu_height, menu_width, in dialog_menu()
234 keypad(menu, TRUE); in dialog_menu()
271 wnoutrefresh(menu); in dialog_menu()
277 wmove(menu, choice, item_x + 1); in dialog_menu()
278 wrefresh(menu); in dialog_menu()
281 key = wgetch(menu); in dialog_menu()
314 do_scroll(menu, &scroll, -1); in dialog_menu()
326 do_scroll(menu, &scroll, 1); in dialog_menu()
[all …]
/third_party/gstreamer/gstreamer/docs/random/wtay/
DDVDplayer15 - first the src will read the DVD menu. this will contain mpeg2 data
16 and spu/nav info. after the menu is sent down the pipeline
20 - somehow a button is pressed on the menu: a method is triggered in
26 - update the menu
27 - keep the menu
28 - hide the menu
29 - show the menu
31 - pressing the hotkey to bring up the menu triggers a method in dvdnav
32 which will send down nav info downstream to bring up the menu.
/third_party/cef/libcef/browser/native/
Dmenu_runner_mac.mm23 // Create a menu controller based on the model.
29 // Keep the menu controller alive (by adding an additional retain) until after
30 // the menu has been dismissed. Otherwise it will crash if the browser is
31 // destroyed (and consequently the menu controller is destroyed) while the
32 // menu is still pending.
36 // Make sure events can be pumped while the menu is up.
46 // Show the menu. Blocks until the menu is dismissed.
48 // Don't show the menu unless a native window handle exists.
55 [[menu_controller_ menu] popUpMenuPositioningItem:nil
80 [NSMenu popUpContextMenu:[menu_controller_ menu]
/third_party/flutter/flutter/examples/flutter_gallery/lib/demo/material/
Dmenu_demo.dart12 static const String routeName = '/material/menu';
74 value: 'Toolbar menu',
75 child: Text('Toolbar menu'),
93 // a simple menu with one disabled item. Typically the contents
94 // of this "contextual menu" would reflect the app's state.
96 title: const Text('An item with a context menu button'),
103 child: const Text('Context menu item one'),
107 child: Text('A disabled menu item'),
111 child: const Text('Context menu item three'),
117 // a menu whose items have text labels and icons and a divider
[all …]
/third_party/python/Lib/turtledemo/
D__main__.py156 self.mBar.add_cascade(menu=self.makeLoadDemoMenu(self.mBar),
158 self.mBar.add_cascade(menu=self.makeFontMenu(self.mBar),
160 self.mBar.add_cascade(menu=self.makeHelpMenu(self.mBar),
291 menu = Menu(master)
296 menu.add_command(label=entry, underline=0,
298 return menu
301 menu = Menu(master)
302 menu.add_command(label="Decrease (C-'-')", command=self.decrease_size,
304 menu.add_command(label="Increase (C-'+')", command=self.increase_size,
306 menu.add_separator()
[all …]
/third_party/flutter/flutter/examples/catalog/lib/
Dcustom_semantics.dart7 /// A [ListTile] containing a dropdown menu that exposes itself as an
12 /// keys (on Android) to switch between the values in the dropdown menu.
13 /// Depending on what the values in the dropdown menu are this can be a more
15 /// drop down menu as a screen overlay from which the user can select.
17 /// Users that do not use a screen reader will just see a regular dropdown menu.
133 Summary: A dropdown menu that exposes itself as an "Adjustable" to screen
137 This app presents a dropdown menu to the user that exposes itself as an
140 menu by swiping up or down on the screen with one finger (on iOS) or by using
145 When the screen reader is turned off, the dropdown menu behaves like any
146 dropdown menu would.

12345678910>>...31