Home
last modified time | relevance | path

Searched refs:widget_ptr (Results 1 – 25 of 85) sorted by relevance

1234

/dports/games/frogatto/frogatto-1.3.1/src/
H A Dwidget_factory.cpp31 using gui::widget_ptr;
47 return widget_ptr(new gui::button(v,e)); in create()
49 return widget_ptr(new gui::checkbox(v,e)); in create()
51 return widget_ptr(new gui::dialog(v,e)); in create()
54 return widget_ptr(new gui::drag_widget(v,e)); in create()
59 return widget_ptr(new gui::grid(v,e)); in create()
61 return widget_ptr(new gui::image_widget(v,e)); in create()
65 return widget_ptr(new gui::key_button(v,e)); in create()
67 return widget_ptr(new gui::label(v,e)); in create()
75 return widget_ptr(new gui::slider(v,e)); in create()
[all …]
H A Dsegment_editor_dialog.cpp37 …add_widget(widget_ptr(new label(formatter() << "Difficulty: " << start_value, graphics::color_whit… in init()
40 …buttons_grid->add_col(widget_ptr(new button(widget_ptr(new label("-10", graphics::color_white())),… in init()
41 …buttons_grid->add_col(widget_ptr(new button(widget_ptr(new label("-1", graphics::color_white())), … in init()
42 …buttons_grid->add_col(widget_ptr(new button(widget_ptr(new label("+1", graphics::color_white())), … in init()
43 …buttons_grid->add_col(widget_ptr(new button(widget_ptr(new label("+10", graphics::color_white())),… in init()
44 add_widget(widget_ptr(buttons_grid)); in init()
H A Dcontrols_dialog.cpp52 widget_ptr b1(key_buttons[CONTROL_UP]); in show_controls_dialog()
53 widget_ptr b2(key_buttons[CONTROL_DOWN]); in show_controls_dialog()
54 widget_ptr b3(key_buttons[CONTROL_LEFT]); in show_controls_dialog()
55 widget_ptr b4(key_buttons[CONTROL_RIGHT]); in show_controls_dialog()
56 widget_ptr t2(new graphical_font_label(_("Jump"), "door_label", 2)); in show_controls_dialog()
57 widget_ptr b5(key_buttons[CONTROL_JUMP]); in show_controls_dialog()
58 widget_ptr t3(new graphical_font_label(_("Tongue"), "door_label", 2)); in show_controls_dialog()
59 widget_ptr b6(key_buttons[CONTROL_TONGUE]); in show_controls_dialog()
60 widget_ptr t4(new graphical_font_label(_("Attack"), "door_label", 2)); in show_controls_dialog()
61 widget_ptr b7(key_buttons[CONTROL_ATTACK]); in show_controls_dialog()
[all …]
H A Dpause_game_dialog.cpp53 widget_ptr t1(new graphical_font_label(_("Music Volume:"), "door_label", 2)); in show_pause_game_dialog()
54widget_ptr s1(new slider(200, boost::bind(sound::set_music_volume, _1), sound::get_music_volume())… in show_pause_game_dialog()
55 widget_ptr t2(new graphical_font_label(_("Sound Volume:"), "door_label", 2)); in show_pause_game_dialog()
56widget_ptr s2(new slider(200, boost::bind(sound::set_sound_volume, _1), sound::get_sound_volume())… in show_pause_game_dialog()
73widget_ptr b1(new button(widget_ptr(new graphical_font_label(_("Resume"), "door_label", 2)), boost… in show_pause_game_dialog()
74widget_ptr b2(new button(widget_ptr(new graphical_font_label(_("Controls..."), "door_label", 2)), … in show_pause_game_dialog()
75widget_ptr b3(new button(widget_ptr(new graphical_font_label(_("Return to Titlescreen"), "door_lab… in show_pause_game_dialog()
76widget_ptr b4(new button(widget_ptr(new graphical_font_label(_("Exit Game"), "door_label", 2)), bo… in show_pause_game_dialog()
77widget_ptr b5(new checkbox(_("Reverse A and B"), preferences::reverse_ab(), boost::bind(preference… in show_pause_game_dialog()
79widget_ptr b6(new button(widget_ptr(new graphical_font_label(_("OpenFeint"), "door_label", 2)), of… in show_pause_game_dialog()
H A Deditor_level_properties_dialog.cpp90 g->add_col(widget_ptr(new label("Change Title", graphics::color_white(), 36))) in init()
91 .add_col(widget_ptr(change_title_entry)); in init()
100 g->add_col(widget_ptr(new label("Background", graphics::color_white()))) in init()
101 ….add_col(widget_ptr(new button(widget_ptr(new label(background_id, graphics::color_white())), boos… in init()
106 g->add_col(widget_ptr(new label("Next Level", graphics::color_white()))); in init()
108 …g->add_col(widget_ptr(new button(widget_ptr(new label("Set", graphics::color_white())), boost::bin… in init()
110 g->add_col(widget_ptr(new label("Previous Level", graphics::color_white()))); in init()
112 …g->add_col(widget_ptr(new button(widget_ptr(new label("Set", graphics::color_white())), boost::bin… in init()
116 widget_ptr hz_checkbox(hz_segmented_checkbox); in init()
120 widget_ptr vt_checkbox(vt_segmented_checkbox); in init()
[all …]
H A Deditor_module_properties_dialog.cpp86 .add_col(widget_ptr(change_id_entry)); in init()
90 .add_col(widget_ptr(new label(mod_.name_, graphics::color_white(), 36))); in init()
100 g->add_col(widget_ptr(new label("Name:", graphics::color_white(), 36))) in init()
101 .add_col(widget_ptr(change_name_entry)); in init()
110 g->add_col(widget_ptr(new label("Prefix:", graphics::color_white(), 36))) in init()
111 .add_col(widget_ptr(change_abbrev_entry)); in init()
115 g->add_col(widget_ptr(new label("Modules ", graphics::color_white(), 36))) in init()
116 ….add_col(widget_ptr(new button(widget_ptr(new label("Add", graphics::color_white())), boost::bind(… in init()
120 g->add_col(widget_ptr(new label(s, graphics::color_white(), 36))) in init()
121 ….add_col(widget_ptr(new button(widget_ptr(new label("Remove", graphics::color_white())), boost::bi… in init()
[all …]
H A Dproperty_editor_dialog.cpp107 .add_col(widget_ptr(e)); in init()
158 add_widget(widget_ptr(e)); in init()
192 add_widget(widget_ptr(lb)); in init()
212 text_grid->add_col(widget_ptr(e)); in init()
214 add_widget(widget_ptr(text_grid)); in init()
234 add_widget(widget_ptr(enum_grid)); in init()
242 add_widget(widget_ptr(new button( in init()
252 add_widget(widget_ptr(new button( in init()
259 …add_widget(widget_ptr(new checkbox(widget_ptr(new label(info.variable_name(), graphics::color_whit… in init()
293 text_grid->add_col(widget_ptr(e)); in init()
[all …]
H A Dcharacter_editor_dialog.cpp43 find_grid->add_col(widget_ptr(new label("Search: ", graphics::color_white()))); in init()
44 find_grid->add_col(widget_ptr(find_edit_)); in init()
50 widget_ptr(new label(editor_.face_right() ? "right" : "left", graphics::color_white())), in init()
54 add_widget(widget_ptr(facing_button)); in init()
59 add_widget(widget_ptr(category_button)); in init()
63 …add_widget(widget_ptr(facing_button), category_button->x() + category_button->width() + 10, catego… in init()
67 gui::widget_ptr character_editor_dialog::generate_grid(const std::string& category) in generate_grid()
71 widget_ptr& result = grids_[category]; in generate_grid()
105 grid->add_col(gui::widget_ptr(borders.back())); in generate_grid()
160 grid->add_col(widget_ptr(preview)) in show_category_menu()
[all …]
H A Ddialog.hpp30 typedef std::vector<widget_ptr>::const_iterator child_iterator;
39 dialog& add_widget(widget_ptr w, MOVE_DIRECTION dir=MOVE_DOWN);
40 dialog& add_widget(widget_ptr w, int x, int y,
42 void remove_widget(widget_ptr w);
43 void replace_widget(widget_ptr w_old, widget_ptr w_new);
67 virtual widget_ptr get_widget_by_id(const std::string& id);
84 std::vector<widget_ptr> widgets_;
H A Ddialog.cpp101 widget_ptr w = widget_factory::create(child, e); in dialog()
134 foreach(widget_ptr w, widgets_) { in handle_process()
145 dialog& dialog::add_widget(widget_ptr w, int x, int y, in add_widget()
165 void dialog::remove_widget(widget_ptr w) in remove_widget()
173 foreach(widget_ptr w, widgets_) { in clear()
179 void dialog::replace_widget(widget_ptr w_old, widget_ptr w_new) in replace_widget()
246 foreach(const widget_ptr& w, widgets_) { in handle_draw_children()
333 foreach(widget_ptr w, widgets_) { in has_focus()
344 foreach(widget_ptr w, widgets_) { in get_widget_by_id()
345 widget_ptr wx = w->get_widget_by_id(id); in get_widget_by_id()
[all …]
H A Dgrid_widget.hpp42 void add_row(const std::vector<widget_ptr>& widgets);
44 grid& add_col(const widget_ptr& widget=widget_ptr());
70 virtual widget_ptr get_widget_by_id(const std::string& id);
84 std::vector<widget_ptr> cells_;
85 std::vector<widget_ptr> visible_cells_;
100 std::vector<widget_ptr> new_row_;
H A Dcheckbox.cpp12 widget_ptr create_checkbox_widget(widget_ptr label, bool checked, BUTTON_RESOLUTION resolution) { in create_checkbox_widget()
15 …g->add_col(widget_ptr(new gui_section_widget(checked ? "checkbox_ticked" : "checkbox_unticked", -1… in create_checkbox_widget()
22 widget_ptr create_checkbox_widget(const std::string& text, bool checked, BUTTON_RESOLUTION resoluti… in create_checkbox_widget()
23 …return create_checkbox_widget(widget_ptr(new graphical_font_label(text, "door_label", 2)), checked… in create_checkbox_widget()
33 checkbox::checkbox(widget_ptr label, bool checked, boost::function<void(bool)> onclick, BUTTON_RESO… in checkbox()
H A Dborder_widget.hpp14 border_widget(widget_ptr child, graphics::color col, int border_size=2);
15 border_widget(widget_ptr child, const SDL_Color& color, int border_size=2);
18 virtual widget_ptr get_widget_by_id(const std::string& id);
25 widget_ptr child_;
H A Dfile_chooser_dialog.cpp128 add_widget(widget_ptr(lp), 30, current_height); in init()
132 add_widget(widget_ptr(lp), 30, current_height); in init()
148 …g->add_col(widget_ptr(new button(widget_ptr(new label("Up", graphics::color_white())), boost::bind… in init()
149 …g->add_col(widget_ptr(new button(widget_ptr(new label("Home", graphics::color_white())), boost::bi… in init()
150 …g->add_col(widget_ptr(new button(widget_ptr(new label("Add", graphics::color_white())), boost::bin… in init()
169 g->add_col(widget_ptr(new label(dir, graphics::color_white()))); in init()
185 g->add_col(widget_ptr(new label(file, graphics::color_white()))); in init()
212 …g->add_col(widget_ptr(new button(widget_ptr(new label("OK", graphics::color_white())), boost::bind… in init()
213 …g->add_col(widget_ptr(new button(widget_ptr(new label("Cancel", graphics::color_white())), boost::… in init()
H A Dtileset_editor_dialog.cpp61 …button* category_button = new button(widget_ptr(new label(category_, graphics::color_white())), bo… in init()
62 add_widget(widget_ptr(category_button), 10, 10); in init()
74 …button_ptr tileset_button(new button(widget_ptr(preview), boost::bind(&tileset_editor_dialog::set_… in init()
76 …grid->add_col(gui::widget_ptr(new gui::border_widget(tileset_button, index == editor_.get_tileset(… in init()
122 grid->add_col(widget_ptr(preview)) in show_category_menu()
123 .add_col(widget_ptr(new label(t.category, graphics::color_white()))); in show_category_menu()
157 gui::widget_ptr ptr = context_menu_; in handle_event()
H A Dcustom_object_dialog.cpp69 widget_ptr context_menu_;
220 g->add_col(widget_ptr(new label("id: ", graphics::color_white(), 14))) in init()
221 .add_col(widget_ptr(change_entry)); in init()
233 std::vector<widget_ptr> widget_list = get_widget_for_attribute(attr); in init()
234 foreach(const widget_ptr& w, widget_list) { in init()
244 foreach(const widget_ptr& w, widget_list) { in init()
361 g->add_col(attr_label).add_col(widget_ptr(change_entry)).add_col(slide); in get_widget_for_attribute()
367 return std::vector<gui::widget_ptr>(1, g); in get_widget_for_attribute()
398 std::vector<gui::widget_ptr> rows; in get_widget_for_attribute()
433 return std::vector<gui::widget_ptr>(); in get_widget_for_attribute()
[all …]
H A Dbutton.hpp33 …button(widget_ptr label, boost::function<void ()> onclick, BUTTON_STYLE button_style = BUTTON_STYL…
35 virtual widget_ptr get_widget_by_id(const std::string& id);
38 void set_label(widget_ptr label);
52 widget_ptr label_;
H A Dgrid_widget.cpp158 foreach(widget_ptr w, cells_) { in handle_process()
167 foreach(const widget_ptr& widget, widgets) { in add_row()
184 grid& grid::add_col(const widget_ptr& widget) { in add_col()
297 widget_ptr widget = cells_[n*ncols_ + m]; in recalculate_dimensions()
349 foreach(const widget_ptr& widget, visible_cells_) { in handle_draw()
365 std::vector<widget_ptr> cells = visible_cells_; in handle_event()
366 reverse_foreach(widget_ptr widget, cells) { in handle_event()
445 foreach(const widget_ptr& w, cells_) { in has_focus()
482 foreach(widget_ptr w, cells_) { in get_widget_by_id()
483 widget_ptr wx = w->get_widget_by_id(id); in get_widget_by_id()
[all …]
H A Dhex_tileset_editor_dialog.cpp66 …button* category_button = new button(widget_ptr(new label(category_, graphics::color_white())), bo… in init()
67 add_widget(widget_ptr(category_button), 10, 10); in init()
80 …button_ptr tileset_button(new button(widget_ptr(preview), boost::bind(&hex_tileset_editor_dialog::… in init()
83 …grid->add_col(gui::widget_ptr(new gui::border_widget(tileset_button, index == editor_.get_hex_tile… in init()
128 grid->add_col(widget_ptr(preview)) in show_category_menu()
129 .add_col(widget_ptr(new label(t->get_editor_info().group, graphics::color_white()))); in show_category_menu()
163 gui::widget_ptr ptr = context_menu_; in handle_event()
H A Dtree_view_widget.hpp41 widget_ptr get_widget_by_id(const std::string& id);
85 std::vector<widget_ptr> widgets_;
101 …void set_editor_handler(variant::TYPE vt, widget_ptr editor, boost::function<void(variant*,boost::… in set_editor_handler()
120 widget_ptr context_menu_;
121 widget_ptr edit_menu_;
133 std::map<variant::TYPE, widget_ptr> ex_editor_map_;
H A Deditor_layers_dialog.cpp40 g->add_col(widget_ptr(section)); in init()
41 g->add_col(widget_ptr(new label(formatter() << layer, graphics::color_white()))); in init()
45 g->add_col(widget_ptr(section)); in init()
46 g->add_col(widget_ptr(new label("lock", graphics::color_white()))); in init()
61 g->add_col(widget_ptr(section)); in init()
62 g->add_col(widget_ptr(new label(classification, graphics::color_white()))); in init()
/dports/games/netwalk/netwalk-cb6b089/
H A Dwidget.h44 typedef struct widget_s *widget_ptr; typedef
46 void widget_init(widget_ptr wid);
47 void widget_computexy(widget_ptr wid);
49 void widget_put_handler(widget_ptr p, void (* f)(widget_ptr, void *), int sig);
50 void widget_put_handler_data(widget_ptr p,
52 void widget_fill(widget_ptr w, int c);
55 void widget_raise_signal(widget_ptr w, int sig);
57 int in_widget(widget_ptr wid, int x, int y);
58 void widget_raised_border(widget_ptr rect);
59 void widget_raised_background(widget_ptr rect);
[all …]
H A Dwidget.c24 void widget_computexy(widget_ptr wid) in widget_computexy()
34 void widget_init(widget_ptr wid) in widget_init()
57 void widget_put_handler(widget_ptr p, void (* f)(widget_ptr, void *), int sig) in widget_put_handler() argument
62 void widget_put_handler_data(widget_ptr p, in widget_put_handler_data()
69 void widget_fill(widget_ptr w, int c) in widget_fill()
93 widget_ptr wid = (widget_ptr) p; in widget_blit()
112 ((widget_ptr) p)->update(p); in widget_update()
115 int in_widget(widget_ptr wid, int x, int y) in in_widget()
132 void widget_raised_border(widget_ptr rect) in widget_raised_border()
147 void widget_raised_background(widget_ptr rect) in widget_raised_background()
[all …]
H A Dmain.c225 widget_init((widget_ptr) m); in menu_init()
399 void label_update(widget_ptr p) in label_update()
1195 ((widget_ptr) root)->computexy((widget_ptr) root); in resize()
1196 ((widget_ptr) about_window)->computexy((widget_ptr) about_window); in resize()
1197 ((widget_ptr) hs_window)->computexy((widget_ptr) hs_window); in resize()
1198 ((widget_ptr) enter_name_window)->computexy((widget_ptr) enter_name_window); in resize()
1286 widget_ptr wid; in handle_click()
1296 wid = (widget_ptr) root; in handle_click()
1472 widget_ptr wid; in window_update()
1493 widget_ptr wid; in window_handle_click()
[all …]
/dports/graphics/gimp-app/gimp-2.10.30/libgimpwidgets/
H A Dgimpoldwidgets.c87 GtkWidget **widget_ptr; in gimp_option_menu_new() local
136 if (widget_ptr) in gimp_option_menu_new()
137 *widget_ptr = menuitem; in gimp_option_menu_new()
199 GtkWidget **widget_ptr; in gimp_option_menu_new2() local
216 widget_ptr = va_arg (args, GtkWidget **); in gimp_option_menu_new2()
244 if (widget_ptr) in gimp_option_menu_new2()
245 *widget_ptr = menuitem; in gimp_option_menu_new2()
312 GtkWidget **widget_ptr; in gimp_int_option_menu_new() local
329 widget_ptr = va_arg (args, GtkWidget **); in gimp_int_option_menu_new()
359 if (widget_ptr) in gimp_int_option_menu_new()
[all …]

1234