From 597c6a909d6af56004e3dcdb77a33149293b936d Mon Sep 17 00:00:00 2001 From: Mzying2001 Date: Mon, 22 Jan 2024 00:59:23 +0800 Subject: [PATCH] doxygen --- docs/_alignment_8h_source.html | 135 + docs/_app_8h_source.html | 164 + docs/_button_8h_source.html | 143 + docs/_button_base_8h_source.html | 146 + docs/_canvas_8h_source.html | 147 + docs/_canvas_layout_8h_source.html | 155 + docs/_check_box_8h_source.html | 134 + docs/_checkable_button_8h_source.html | 147 + docs/_color_8h_source.html | 299 ++ docs/_combo_box_8h_source.html | 187 ++ docs/_context_menu_8h_source.html | 143 + docs/_control_8h_source.html | 140 + docs/_cursor_8h_source.html | 161 + docs/_dictionary_8h_source.html | 271 ++ docs/_dip_8h_source.html | 151 + docs/_dock_layout_8h_source.html | 149 + docs/_dock_panel_8h_source.html | 152 + docs/_fill_layout_8h_source.html | 134 + docs/_font_8h_source.html | 291 ++ docs/_grid_8h_source.html | 169 + docs/_grid_layout_8h_source.html | 300 ++ docs/_group_box_8h_source.html | 129 + docs/_hit_test_result_8h_source.html | 147 + docs/_i_layout_8h_source.html | 151 + docs/_i_tag_8h_source.html | 132 + docs/_icon_8h_source.html | 152 + docs/_items_control_8h_source.html | 218 ++ docs/_keys_8h_source.html | 366 +++ docs/_label_8h_source.html | 173 + docs/_layer_8h_source.html | 256 ++ docs/_layout_host_8h_source.html | 163 + docs/_list_8h_source.html | 330 ++ docs/_list_box_8h_source.html | 196 ++ docs/_list_view_8h_source.html | 295 ++ docs/_menu_8h_source.html | 140 + docs/_menu_base_8h_source.html | 229 ++ docs/_menu_item_8h_source.html | 166 + docs/_msg_box_8h_source.html | 177 + docs/_panel_8h_source.html | 153 + docs/_panel_base_8h_source.html | 152 + docs/_password_box_8h_source.html | 134 + docs/_path_8h_source.html | 148 + docs/_point_8h_source.html | 151 + docs/_proc_msg_8h_source.html | 139 + docs/_progress_bar_8h_source.html | 165 + docs/_property_8h_source.html | 267 ++ docs/_radio_button_8h_source.html | 129 + docs/_rect_8h_source.html | 170 + docs/_routed_event_8h_source.html | 208 ++ docs/_routed_event_args_8h_source.html | 372 +++ docs/_screen_8h_source.html | 139 + docs/_scroll_enums_8h_source.html | 141 + docs/_simple_window_8h_source.html | 194 ++ docs/_size_8h_source.html | 151 + docs/_slider_8h_source.html | 160 + docs/_stack_layout_8h_source.html | 140 + docs/_stack_layout_h_8h_source.html | 134 + docs/_stack_layout_v_8h_source.html | 134 + docs/_stack_panel_8h_source.html | 144 + docs/_static_control_8h_source.html | 129 + docs/_tab_control_8h_source.html | 189 ++ docs/_text_box_8h_source.html | 146 + docs/_text_box_base_8h_source.html | 188 ++ docs/_thickness_8h_source.html | 162 + docs/_u_i_element_8h_source.html | 554 ++++ docs/_uniform_grid_8h_source.html | 150 + docs/_uniform_grid_layout_8h_source.html | 143 + docs/_utils_8h_source.html | 228 ++ docs/_window_8h_source.html | 283 ++ docs/_wnd_base_8h_source.html | 492 +++ docs/_wnd_msg_8h_source.html | 125 + docs/_wrap_layout_8h_source.html | 140 + docs/_wrap_layout_h_8h_source.html | 134 + docs/_wrap_layout_v_8h_source.html | 134 + docs/_wrap_panel_8h_source.html | 144 + docs/annotated.html | 212 ++ docs/annotated_dup.js | 106 + docs/bc_s.png | Bin 0 -> 676 bytes docs/bc_sd.png | Bin 0 -> 635 bytes docs/classes.html | 160 + docs/classsw_1_1_app-members.html | 116 + docs/classsw_1_1_app.html | 216 ++ docs/classsw_1_1_button-members.html | 294 ++ docs/classsw_1_1_button.html | 946 ++++++ docs/classsw_1_1_button.js | 8 + docs/classsw_1_1_button.png | Bin 0 -> 1964 bytes docs/classsw_1_1_button_base-members.html | 293 ++ docs/classsw_1_1_button_base.html | 836 +++++ docs/classsw_1_1_button_base.js | 9 + docs/classsw_1_1_button_base.png | Bin 0 -> 2855 bytes docs/classsw_1_1_canvas-members.html | 325 ++ docs/classsw_1_1_canvas.html | 965 ++++++ docs/classsw_1_1_canvas.js | 5 + docs/classsw_1_1_canvas.png | Bin 0 -> 3295 bytes docs/classsw_1_1_canvas_layout-members.html | 119 + docs/classsw_1_1_canvas_layout.html | 224 ++ docs/classsw_1_1_canvas_layout.js | 5 + docs/classsw_1_1_canvas_layout.png | Bin 0 -> 748 bytes docs/classsw_1_1_check_box-members.html | 299 ++ docs/classsw_1_1_check_box.html | 827 +++++ docs/classsw_1_1_check_box.js | 5 + docs/classsw_1_1_check_box.png | Bin 0 -> 2612 bytes .../classsw_1_1_checkable_button-members.html | 297 ++ docs/classsw_1_1_checkable_button.html | 821 +++++ docs/classsw_1_1_checkable_button.js | 7 + docs/classsw_1_1_checkable_button.png | Bin 0 -> 2764 bytes docs/classsw_1_1_combo_box-members.html | 310 ++ docs/classsw_1_1_combo_box.html | 1315 ++++++++ docs/classsw_1_1_combo_box.js | 21 + docs/classsw_1_1_combo_box.png | Bin 0 -> 2326 bytes docs/classsw_1_1_context_menu-members.html | 136 + docs/classsw_1_1_context_menu.html | 345 ++ docs/classsw_1_1_context_menu.js | 7 + docs/classsw_1_1_context_menu.png | Bin 0 -> 539 bytes docs/classsw_1_1_control-members.html | 288 ++ docs/classsw_1_1_control.html | 782 +++++ docs/classsw_1_1_control.js | 7 + docs/classsw_1_1_control.png | Bin 0 -> 5236 bytes docs/classsw_1_1_cursor_helper-members.html | 113 + docs/classsw_1_1_cursor_helper.html | 283 ++ docs/classsw_1_1_dictionary-members.html | 125 + docs/classsw_1_1_dictionary.html | 296 ++ docs/classsw_1_1_dictionary.js | 19 + docs/classsw_1_1_dip-members.html | 116 + docs/classsw_1_1_dip.html | 156 + docs/classsw_1_1_dock_layout-members.html | 125 + docs/classsw_1_1_dock_layout.html | 243 ++ docs/classsw_1_1_dock_layout.js | 12 + docs/classsw_1_1_dock_layout.png | Bin 0 -> 709 bytes docs/classsw_1_1_dock_panel-members.html | 326 ++ docs/classsw_1_1_dock_panel.html | 970 ++++++ docs/classsw_1_1_dock_panel.js | 6 + docs/classsw_1_1_dock_panel.png | Bin 0 -> 3290 bytes docs/classsw_1_1_fill_layout-members.html | 119 + docs/classsw_1_1_fill_layout.html | 224 ++ docs/classsw_1_1_fill_layout.js | 5 + docs/classsw_1_1_fill_layout.png | Bin 0 -> 691 bytes docs/classsw_1_1_font-members.html | 131 + docs/classsw_1_1_font.html | 263 ++ docs/classsw_1_1_font.js | 18 + docs/classsw_1_1_grid-members.html | 331 ++ docs/classsw_1_1_grid.html | 989 ++++++ docs/classsw_1_1_grid.js | 11 + docs/classsw_1_1_grid.png | Bin 0 -> 3282 bytes docs/classsw_1_1_grid_layout-members.html | 125 + docs/classsw_1_1_grid_layout.html | 236 ++ docs/classsw_1_1_grid_layout.js | 7 + docs/classsw_1_1_grid_layout.png | Bin 0 -> 706 bytes docs/classsw_1_1_group_box-members.html | 321 ++ docs/classsw_1_1_group_box.html | 907 ++++++ docs/classsw_1_1_group_box.js | 4 + docs/classsw_1_1_group_box.png | Bin 0 -> 2908 bytes docs/classsw_1_1_i_layout-members.html | 116 + docs/classsw_1_1_i_layout.html | 382 +++ docs/classsw_1_1_i_layout.js | 10 + docs/classsw_1_1_i_layout.png | Bin 0 -> 5658 bytes docs/classsw_1_1_i_tag-members.html | 111 + docs/classsw_1_1_i_tag.html | 212 ++ docs/classsw_1_1_i_tag.js | 5 + docs/classsw_1_1_i_tag.png | Bin 0 -> 6594 bytes docs/classsw_1_1_icon_helper-members.html | 113 + docs/classsw_1_1_icon_helper.html | 283 ++ docs/classsw_1_1_items_control-members.html | 303 ++ docs/classsw_1_1_items_control.html | 1218 +++++++ docs/classsw_1_1_items_control.js | 18 + docs/classsw_1_1_items_control.png | Bin 0 -> 2454 bytes docs/classsw_1_1_label-members.html | 295 ++ docs/classsw_1_1_label.html | 910 ++++++ docs/classsw_1_1_label.js | 12 + docs/classsw_1_1_label.png | Bin 0 -> 2024 bytes docs/classsw_1_1_layer-members.html | 314 ++ docs/classsw_1_1_layer.html | 1287 ++++++++ docs/classsw_1_1_layer.js | 37 + docs/classsw_1_1_layer.png | Bin 0 -> 3861 bytes docs/classsw_1_1_layout_host-members.html | 119 + docs/classsw_1_1_layout_host.html | 471 +++ docs/classsw_1_1_layout_host.js | 13 + docs/classsw_1_1_layout_host.png | Bin 0 -> 3924 bytes docs/classsw_1_1_list-members.html | 131 + docs/classsw_1_1_list.html | 356 ++ docs/classsw_1_1_list.js | 25 + docs/classsw_1_1_list_box-members.html | 315 ++ docs/classsw_1_1_list_box.html | 1399 ++++++++ docs/classsw_1_1_list_box.js | 24 + docs/classsw_1_1_list_box.png | Bin 0 -> 2308 bytes docs/classsw_1_1_list_view-members.html | 331 ++ docs/classsw_1_1_list_view.html | 1766 ++++++++++ docs/classsw_1_1_list_view.js | 45 + docs/classsw_1_1_list_view.png | Bin 0 -> 2351 bytes docs/classsw_1_1_menu-members.html | 135 + docs/classsw_1_1_menu.html | 304 ++ docs/classsw_1_1_menu.js | 7 + docs/classsw_1_1_menu.png | Bin 0 -> 490 bytes docs/classsw_1_1_menu_base-members.html | 133 + docs/classsw_1_1_menu_base.html | 700 ++++ docs/classsw_1_1_menu_base.js | 27 + docs/classsw_1_1_menu_base.png | Bin 0 -> 747 bytes docs/classsw_1_1_menu_item-members.html | 120 + docs/classsw_1_1_menu_item.html | 321 ++ docs/classsw_1_1_menu_item.js | 14 + docs/classsw_1_1_menu_item.png | Bin 0 -> 437 bytes docs/classsw_1_1_msg_box-members.html | 124 + docs/classsw_1_1_msg_box.html | 177 + docs/classsw_1_1_panel-members.html | 322 ++ docs/classsw_1_1_panel.html | 992 ++++++ docs/classsw_1_1_panel.js | 7 + docs/classsw_1_1_panel.png | Bin 0 -> 3987 bytes docs/classsw_1_1_panel_base-members.html | 320 ++ docs/classsw_1_1_panel_base.html | 1065 ++++++ docs/classsw_1_1_panel_base.js | 9 + docs/classsw_1_1_panel_base.png | Bin 0 -> 4360 bytes docs/classsw_1_1_password_box-members.html | 302 ++ docs/classsw_1_1_password_box.html | 834 +++++ docs/classsw_1_1_password_box.js | 5 + docs/classsw_1_1_password_box.png | Bin 0 -> 2086 bytes docs/classsw_1_1_path-members.html | 115 + docs/classsw_1_1_path.html | 347 ++ docs/classsw_1_1_progress_bar-members.html | 294 ++ docs/classsw_1_1_progress_bar.html | 800 +++++ docs/classsw_1_1_progress_bar.js | 9 + docs/classsw_1_1_progress_bar.png | Bin 0 -> 1710 bytes docs/classsw_1_1_property-members.html | 117 + docs/classsw_1_1_property.html | 177 + docs/classsw_1_1_property.js | 6 + docs/classsw_1_1_property.png | Bin 0 -> 1009 bytes docs/classsw_1_1_radio_button-members.html | 298 ++ docs/classsw_1_1_radio_button.html | 819 +++++ docs/classsw_1_1_radio_button.js | 4 + docs/classsw_1_1_radio_button.png | Bin 0 -> 2625 bytes ...lasssw_1_1_read_only_property-members.html | 115 + docs/classsw_1_1_read_only_property.html | 189 ++ docs/classsw_1_1_read_only_property.js | 8 + docs/classsw_1_1_read_only_property.png | Bin 0 -> 14846 bytes docs/classsw_1_1_screen-members.html | 112 + docs/classsw_1_1_screen.html | 136 + docs/classsw_1_1_slider-members.html | 296 ++ docs/classsw_1_1_slider.html | 895 +++++ docs/classsw_1_1_slider.js | 13 + docs/classsw_1_1_slider.png | Bin 0 -> 1610 bytes docs/classsw_1_1_stack_layout-members.html | 120 + docs/classsw_1_1_stack_layout.html | 236 ++ docs/classsw_1_1_stack_layout.js | 6 + docs/classsw_1_1_stack_layout.png | Bin 0 -> 1579 bytes docs/classsw_1_1_stack_layout_h-members.html | 119 + docs/classsw_1_1_stack_layout_h.html | 229 ++ docs/classsw_1_1_stack_layout_h.js | 5 + docs/classsw_1_1_stack_layout_h.png | Bin 0 -> 1096 bytes docs/classsw_1_1_stack_layout_v-members.html | 119 + docs/classsw_1_1_stack_layout_v.html | 229 ++ docs/classsw_1_1_stack_layout_v.js | 5 + docs/classsw_1_1_stack_layout_v.png | Bin 0 -> 1096 bytes docs/classsw_1_1_stack_panel-members.html | 324 ++ docs/classsw_1_1_stack_panel.html | 961 ++++++ docs/classsw_1_1_stack_panel.js | 6 + docs/classsw_1_1_stack_panel.png | Bin 0 -> 3366 bytes docs/classsw_1_1_static_control-members.html | 289 ++ docs/classsw_1_1_static_control.html | 777 +++++ docs/classsw_1_1_static_control.js | 4 + docs/classsw_1_1_static_control.png | Bin 0 -> 2023 bytes docs/classsw_1_1_tab_control-members.html | 297 ++ docs/classsw_1_1_tab_control.html | 975 ++++++ docs/classsw_1_1_tab_control.js | 16 + docs/classsw_1_1_tab_control.png | Bin 0 -> 1654 bytes docs/classsw_1_1_text_box-members.html | 305 ++ docs/classsw_1_1_text_box.html | 846 +++++ docs/classsw_1_1_text_box.js | 8 + docs/classsw_1_1_text_box.png | Bin 0 -> 2049 bytes docs/classsw_1_1_text_box_base-members.html | 300 ++ docs/classsw_1_1_text_box_base.html | 1055 ++++++ docs/classsw_1_1_text_box_base.js | 20 + docs/classsw_1_1_text_box_base.png | Bin 0 -> 2238 bytes docs/classsw_1_1_u_i_element-members.html | 284 ++ docs/classsw_1_1_u_i_element.html | 2893 ++++++++++++++++ docs/classsw_1_1_u_i_element.js | 101 + docs/classsw_1_1_u_i_element.png | Bin 0 -> 6581 bytes docs/classsw_1_1_uniform_grid-members.html | 326 ++ docs/classsw_1_1_uniform_grid.html | 969 ++++++ docs/classsw_1_1_uniform_grid.js | 8 + docs/classsw_1_1_uniform_grid.png | Bin 0 -> 3399 bytes ...asssw_1_1_uniform_grid_layout-members.html | 122 + docs/classsw_1_1_uniform_grid_layout.html | 240 ++ docs/classsw_1_1_uniform_grid_layout.js | 8 + docs/classsw_1_1_uniform_grid_layout.png | Bin 0 -> 835 bytes docs/classsw_1_1_utils-members.html | 118 + docs/classsw_1_1_utils.html | 377 +++ docs/classsw_1_1_window-members.html | 340 ++ docs/classsw_1_1_window.html | 1274 ++++++++ docs/classsw_1_1_window.js | 34 + docs/classsw_1_1_window.png | Bin 0 -> 1611 bytes docs/classsw_1_1_wnd_base-members.html | 215 ++ docs/classsw_1_1_wnd_base.html | 2656 +++++++++++++++ docs/classsw_1_1_wnd_base.js | 104 + docs/classsw_1_1_wnd_base.png | Bin 0 -> 6256 bytes docs/classsw_1_1_wrap_layout-members.html | 120 + docs/classsw_1_1_wrap_layout.html | 236 ++ docs/classsw_1_1_wrap_layout.js | 6 + docs/classsw_1_1_wrap_layout.png | Bin 0 -> 1557 bytes docs/classsw_1_1_wrap_layout_h-members.html | 119 + docs/classsw_1_1_wrap_layout_h.html | 229 ++ docs/classsw_1_1_wrap_layout_h.js | 5 + docs/classsw_1_1_wrap_layout_h.png | Bin 0 -> 1073 bytes docs/classsw_1_1_wrap_layout_v-members.html | 119 + docs/classsw_1_1_wrap_layout_v.html | 229 ++ docs/classsw_1_1_wrap_layout_v.js | 5 + docs/classsw_1_1_wrap_layout_v.png | Bin 0 -> 1079 bytes docs/classsw_1_1_wrap_panel-members.html | 324 ++ docs/classsw_1_1_wrap_panel.html | 961 ++++++ docs/classsw_1_1_wrap_panel.js | 6 + docs/classsw_1_1_wrap_panel.png | Bin 0 -> 3336 bytes ...asssw_1_1_write_only_property-members.html | 113 + docs/classsw_1_1_write_only_property.html | 181 ++ docs/classsw_1_1_write_only_property.js | 6 + docs/classsw_1_1_write_only_property.png | Bin 0 -> 14836 bytes docs/clipboard.js | 61 + docs/closed.png | Bin 0 -> 132 bytes docs/cookie.js | 58 + .../dir_01fcd3835fb4e7d9331b722d86291b65.html | 113 + docs/dir_01fcd3835fb4e7d9331b722d86291b65.js | 4 + .../dir_ed5f6ece24ffcc4307a76d27c2494db3.html | 261 ++ docs/dir_ed5f6ece24ffcc4307a76d27c2494db3.js | 78 + docs/doc.svg | 12 + docs/docd.svg | 12 + docs/doxygen.css | 2225 +++++++++++++ docs/doxygen.svg | 28 + docs/doxygen_crawl.html | 364 +++ docs/dynsections.js | 194 ++ docs/files.html | 187 ++ docs/files_dup.js | 4 + docs/folderclosed.svg | 11 + docs/folderclosedd.svg | 11 + docs/folderopen.svg | 17 + docs/folderopend.svg | 12 + docs/functions.html | 124 + docs/functions_b.html | 115 + docs/functions_c.html | 148 + docs/functions_d.html | 115 + docs/functions_dup.js | 27 + docs/functions_e.html | 115 + docs/functions_enum.html | 106 + docs/functions_f.html | 121 + docs/functions_func.html | 118 + docs/functions_func.js | 25 + docs/functions_func_b.html | 111 + docs/functions_func_c.html | 128 + docs/functions_func_d.html | 114 + docs/functions_func_e.html | 109 + docs/functions_func_f.html | 112 + docs/functions_func_g.html | 166 + docs/functions_func_h.html | 109 + docs/functions_func_i.html | 127 + docs/functions_func_l.html | 112 + docs/functions_func_m.html | 117 + docs/functions_func_n.html | 109 + docs/functions_func_o.html | 178 + docs/functions_func_p.html | 117 + docs/functions_func_q.html | 108 + docs/functions_func_r.html | 124 + docs/functions_func_s.html | 158 + docs/functions_func_t.html | 115 + docs/functions_func_u.html | 121 + docs/functions_func_v.html | 108 + docs/functions_func_w.html | 112 + docs/functions_func_~.html | 116 + docs/functions_g.html | 168 + docs/functions_h.html | 123 + docs/functions_i.html | 135 + docs/functions_l.html | 119 + docs/functions_m.html | 128 + docs/functions_n.html | 110 + docs/functions_o.html | 186 ++ docs/functions_p.html | 120 + docs/functions_q.html | 110 + docs/functions_r.html | 133 + docs/functions_rela.html | 108 + docs/functions_s.html | 169 + docs/functions_t.html | 130 + docs/functions_u.html | 123 + docs/functions_v.html | 117 + docs/functions_vars.html | 346 ++ docs/functions_w.html | 119 + docs/functions_x.html | 108 + docs/functions_y.html | 108 + docs/functions_~.html | 116 + docs/hierarchy.html | 355 ++ docs/hierarchy.js | 289 ++ docs/index.html | 107 + docs/jquery.js | 34 + docs/menu.js | 134 + docs/menudata.js | 106 + docs/minus.svg | 8 + docs/minusd.svg | 8 + docs/nav_f.png | Bin 0 -> 153 bytes docs/nav_fd.png | Bin 0 -> 169 bytes docs/nav_g.png | Bin 0 -> 95 bytes docs/nav_h.png | Bin 0 -> 98 bytes docs/nav_hd.png | Bin 0 -> 114 bytes docs/navtree.css | 149 + docs/navtree.js | 482 +++ docs/navtreedata.js | 55 + docs/navtreeindex0.js | 253 ++ docs/navtreeindex1.js | 253 ++ docs/navtreeindex2.js | 253 ++ docs/navtreeindex3.js | 186 ++ docs/open.png | Bin 0 -> 123 bytes docs/plus.svg | 9 + docs/plusd.svg | 9 + docs/resize.js | 109 + docs/search/all_0.js | 6 + docs/search/all_1.js | 21 + docs/search/all_10.js | 6 + docs/search/all_11.js | 78 + docs/search/all_12.js | 73 + docs/search/all_13.js | 27 + docs/search/all_14.js | 21 + docs/search/all_15.js | 13 + docs/search/all_16.js | 45 + docs/search/all_17.js | 4 + docs/search/all_18.js | 4 + docs/search/all_19.js | 12 + docs/search/all_2.js | 11 + docs/search/all_3.js | 46 + docs/search/all_4.js | 13 + docs/search/all_5.js | 11 + docs/search/all_6.js | 18 + docs/search/all_7.js | 66 + docs/search/all_8.js | 17 + docs/search/all_9.js | 35 + docs/search/all_a.js | 6 + docs/search/all_b.js | 22 + docs/search/all_c.js | 29 + docs/search/all_d.js | 6 + docs/search/all_e.js | 80 + docs/search/all_f.js | 48 + docs/search/classes_0.js | 6 + docs/search/classes_1.js | 6 + docs/search/classes_10.js | 39 + docs/search/classes_2.js | 5 + docs/search/classes_3.js | 13 + docs/search/classes_4.js | 7 + docs/search/classes_5.js | 9 + docs/search/classes_6.js | 10 + docs/search/classes_7.js | 8 + docs/search/classes_8.js | 6 + docs/search/classes_9.js | 15 + docs/search/classes_a.js | 11 + docs/search/classes_b.js | 40 + docs/search/classes_c.js | 57 + docs/search/classes_d.js | 14 + docs/search/classes_e.js | 7 + docs/search/classes_f.js | 7 + docs/search/close.svg | 18 + docs/search/enums_0.js | 4 + docs/search/functions_0.js | 14 + docs/search/functions_1.js | 7 + docs/search/functions_10.js | 54 + docs/search/functions_11.js | 11 + docs/search/functions_12.js | 17 + docs/search/functions_13.js | 4 + docs/search/functions_14.js | 8 + docs/search/functions_15.js | 12 + docs/search/functions_2.js | 24 + docs/search/functions_3.js | 10 + docs/search/functions_4.js | 5 + docs/search/functions_5.js | 8 + docs/search/functions_6.js | 62 + docs/search/functions_7.js | 5 + docs/search/functions_8.js | 23 + docs/search/functions_9.js | 8 + docs/search/functions_a.js | 13 + docs/search/functions_b.js | 5 + docs/search/functions_c.js | 74 + docs/search/functions_d.js | 13 + docs/search/functions_e.js | 4 + docs/search/functions_f.js | 20 + docs/search/mag.svg | 24 + docs/search/mag_d.svg | 24 + docs/search/mag_sel.svg | 31 + docs/search/mag_seld.svg | 31 + docs/search/related_0.js | 6 + docs/search/search.css | 291 ++ docs/search/search.js | 694 ++++ docs/search/searchdata.js | 30 + docs/search/variables_0.js | 9 + docs/search/variables_1.js | 7 + docs/search/variables_10.js | 18 + docs/search/variables_11.js | 5 + docs/search/variables_12.js | 12 + docs/search/variables_13.js | 8 + docs/search/variables_14.js | 4 + docs/search/variables_15.js | 4 + docs/search/variables_2.js | 23 + docs/search/variables_3.js | 9 + docs/search/variables_4.js | 12 + docs/search/variables_5.js | 5 + docs/search/variables_6.js | 15 + docs/search/variables_7.js | 11 + docs/search/variables_8.js | 10 + docs/search/variables_9.js | 15 + docs/search/variables_a.js | 4 + docs/search/variables_b.js | 6 + docs/search/variables_c.js | 6 + docs/search/variables_d.js | 5 + docs/search/variables_e.js | 11 + docs/search/variables_f.js | 14 + docs/splitbar.png | Bin 0 -> 314 bytes docs/splitbard.png | Bin 0 -> 282 bytes docs/structsw_1_1___has_event_type.html | 127 + docs/structsw_1_1___has_event_type.png | Bin 0 -> 1226 bytes ..._01_t_01_4_07_08_8_event_type_08_08_4.html | 124 + ...3_01_t_01_4_07_08_8_event_type_08_08_4.png | Bin 0 -> 1121 bytes ...ctsw_1_1___is_typed_routed_event_args.html | 127 + ...uctsw_1_1___is_typed_routed_event_args.png | Bin 0 -> 1154 bytes ...tsw_1_1_auto_size_grid_column-members.html | 115 + docs/structsw_1_1_auto_size_grid_column.html | 162 + docs/structsw_1_1_auto_size_grid_column.js | 4 + docs/structsw_1_1_auto_size_grid_column.png | Bin 0 -> 644 bytes ...ructsw_1_1_auto_size_grid_row-members.html | 115 + docs/structsw_1_1_auto_size_grid_row.html | 162 + docs/structsw_1_1_auto_size_grid_row.js | 4 + docs/structsw_1_1_auto_size_grid_row.png | Bin 0 -> 579 bytes ...tructsw_1_1_canvas_layout_tag-members.html | 115 + docs/structsw_1_1_canvas_layout_tag.html | 152 + docs/structsw_1_1_canvas_layout_tag.js | 9 + docs/structsw_1_1_color-members.html | 260 ++ docs/structsw_1_1_color.html | 344 ++ docs/structsw_1_1_color.js | 6 + ...w_1_1_fill_remain_grid_column-members.html | 115 + .../structsw_1_1_fill_remain_grid_column.html | 162 + docs/structsw_1_1_fill_remain_grid_column.js | 4 + docs/structsw_1_1_fill_remain_grid_column.png | Bin 0 -> 643 bytes ...ctsw_1_1_fill_remain_grid_row-members.html | 115 + docs/structsw_1_1_fill_remain_grid_row.html | 162 + docs/structsw_1_1_fill_remain_grid_row.js | 4 + docs/structsw_1_1_fill_remain_grid_row.png | Bin 0 -> 614 bytes ...ctsw_1_1_fix_size_grid_column-members.html | 115 + docs/structsw_1_1_fix_size_grid_column.html | 162 + docs/structsw_1_1_fix_size_grid_column.js | 4 + docs/structsw_1_1_fix_size_grid_column.png | Bin 0 -> 627 bytes ...tructsw_1_1_fix_size_grid_row-members.html | 115 + docs/structsw_1_1_fix_size_grid_row.html | 162 + docs/structsw_1_1_fix_size_grid_row.js | 4 + docs/structsw_1_1_fix_size_grid_row.png | Bin 0 -> 574 bytes ...uctsw_1_1_got_char_event_args-members.html | 117 + docs/structsw_1_1_got_char_event_args.html | 173 + docs/structsw_1_1_got_char_event_args.png | Bin 0 -> 1515 bytes docs/structsw_1_1_grid_column-members.html | 114 + docs/structsw_1_1_grid_column.html | 159 + docs/structsw_1_1_grid_column.js | 8 + docs/structsw_1_1_grid_column.png | Bin 0 -> 1148 bytes .../structsw_1_1_grid_layout_tag-members.html | 118 + docs/structsw_1_1_grid_layout_tag.html | 164 + docs/structsw_1_1_grid_layout_tag.js | 12 + docs/structsw_1_1_grid_row-members.html | 114 + docs/structsw_1_1_grid_row.html | 159 + docs/structsw_1_1_grid_row.js | 8 + docs/structsw_1_1_grid_row.png | Bin 0 -> 1131 bytes ...uctsw_1_1_key_down_event_args-members.html | 117 + docs/structsw_1_1_key_down_event_args.html | 173 + docs/structsw_1_1_key_down_event_args.png | Bin 0 -> 1549 bytes docs/structsw_1_1_key_flags-members.html | 116 + docs/structsw_1_1_key_flags.html | 149 + ...tructsw_1_1_key_up_event_args-members.html | 117 + docs/structsw_1_1_key_up_event_args.html | 173 + docs/structsw_1_1_key_up_event_args.png | Bin 0 -> 1507 bytes ...heck_state_changed_event_args-members.html | 116 + ...t_view_check_state_changed_event_args.html | 170 + ...st_view_check_state_changed_event_args.png | Bin 0 -> 1792 bytes ...structsw_1_1_list_view_column-members.html | 116 + docs/structsw_1_1_list_view_column.html | 152 + docs/structsw_1_1_list_view_column.js | 6 + ...iew_header_clicked_event_args-members.html | 115 + ...1_list_view_header_clicked_event_args.html | 161 + ..._1_list_view_header_clicked_event_args.png | Bin 0 -> 839 bytes ..._view_item_clicked_event_args-members.html | 116 + ...1_1_list_view_item_clicked_event_args.html | 164 + ..._1_1_list_view_item_clicked_event_args.png | Bin 0 -> 819 bytes ..._mouse_button_down_event_args-members.html | 118 + ...ctsw_1_1_mouse_button_down_event_args.html | 176 + ...uctsw_1_1_mouse_button_down_event_args.png | Bin 0 -> 1655 bytes ..._1_mouse_button_up_event_args-members.html | 118 + ...ructsw_1_1_mouse_button_up_event_args.html | 176 + ...tructsw_1_1_mouse_button_up_event_args.png | Bin 0 -> 1619 bytes ...tsw_1_1_mouse_move_event_args-members.html | 117 + docs/structsw_1_1_mouse_move_event_args.html | 173 + docs/structsw_1_1_mouse_move_event_args.png | Bin 0 -> 1556 bytes ...sw_1_1_mouse_wheel_event_args-members.html | 118 + docs/structsw_1_1_mouse_wheel_event_args.html | 176 + docs/structsw_1_1_mouse_wheel_event_args.png | Bin 0 -> 1568 bytes docs/structsw_1_1_point-members.html | 118 + docs/structsw_1_1_point.html | 158 + docs/structsw_1_1_point.js | 5 + ...1_position_changed_event_args-members.html | 116 + ...uctsw_1_1_position_changed_event_args.html | 170 + ...ructsw_1_1_position_changed_event_args.png | Bin 0 -> 1659 bytes docs/structsw_1_1_proc_msg-members.html | 115 + docs/structsw_1_1_proc_msg.html | 147 + docs/structsw_1_1_proc_msg.js | 7 + docs/structsw_1_1_rect-members.html | 122 + docs/structsw_1_1_rect.html | 172 + docs/structsw_1_1_rect.js | 7 + ...tructsw_1_1_routed_event_args-members.html | 113 + docs/structsw_1_1_routed_event_args.html | 168 + docs/structsw_1_1_routed_event_args.js | 7 + docs/structsw_1_1_routed_event_args.png | Bin 0 -> 13864 bytes ...1_1_routed_event_args_of_type-members.html | 115 + ...tructsw_1_1_routed_event_args_of_type.html | 165 + ...structsw_1_1_routed_event_args_of_type.png | Bin 0 -> 863 bytes ...ctsw_1_1_scrolling_event_args-members.html | 119 + docs/structsw_1_1_scrolling_event_args.html | 179 + docs/structsw_1_1_scrolling_event_args.png | Bin 0 -> 1513 bytes ..._show_context_menu_event_args-members.html | 118 + ...ctsw_1_1_show_context_menu_event_args.html | 176 + ...uctsw_1_1_show_context_menu_event_args.png | Bin 0 -> 1672 bytes docs/structsw_1_1_size-members.html | 118 + docs/structsw_1_1_size.html | 158 + docs/structsw_1_1_size.js | 5 + ...w_1_1_size_changed_event_args-members.html | 116 + .../structsw_1_1_size_changed_event_args.html | 170 + docs/structsw_1_1_size_changed_event_args.png | Bin 0 -> 1605 bytes docs/structsw_1_1_thickness-members.html | 120 + docs/structsw_1_1_thickness.html | 166 + docs/structsw_1_1_thickness.js | 7 + ...1_1_window_closing_event_args-members.html | 115 + ...tructsw_1_1_window_closing_event_args.html | 163 + ...structsw_1_1_window_closing_event_args.png | Bin 0 -> 1528 bytes docs/sync_off.png | Bin 0 -> 853 bytes docs/sync_on.png | Bin 0 -> 845 bytes docs/tab_a.png | Bin 0 -> 142 bytes docs/tab_ad.png | Bin 0 -> 135 bytes docs/tab_b.png | Bin 0 -> 169 bytes docs/tab_bd.png | Bin 0 -> 173 bytes docs/tab_h.png | Bin 0 -> 177 bytes docs/tab_hd.png | Bin 0 -> 180 bytes docs/tab_s.png | Bin 0 -> 184 bytes docs/tab_sd.png | Bin 0 -> 188 bytes docs/tabs.css | 1 + doxygen/Doxyfile | 2894 +++++++++++++++++ 637 files changed, 101175 insertions(+) create mode 100644 docs/_alignment_8h_source.html create mode 100644 docs/_app_8h_source.html create mode 100644 docs/_button_8h_source.html create mode 100644 docs/_button_base_8h_source.html create mode 100644 docs/_canvas_8h_source.html create mode 100644 docs/_canvas_layout_8h_source.html create mode 100644 docs/_check_box_8h_source.html create mode 100644 docs/_checkable_button_8h_source.html create mode 100644 docs/_color_8h_source.html create mode 100644 docs/_combo_box_8h_source.html create mode 100644 docs/_context_menu_8h_source.html create mode 100644 docs/_control_8h_source.html create mode 100644 docs/_cursor_8h_source.html create mode 100644 docs/_dictionary_8h_source.html create mode 100644 docs/_dip_8h_source.html create mode 100644 docs/_dock_layout_8h_source.html create mode 100644 docs/_dock_panel_8h_source.html create mode 100644 docs/_fill_layout_8h_source.html create mode 100644 docs/_font_8h_source.html create mode 100644 docs/_grid_8h_source.html create mode 100644 docs/_grid_layout_8h_source.html create mode 100644 docs/_group_box_8h_source.html create mode 100644 docs/_hit_test_result_8h_source.html create mode 100644 docs/_i_layout_8h_source.html create mode 100644 docs/_i_tag_8h_source.html create mode 100644 docs/_icon_8h_source.html create mode 100644 docs/_items_control_8h_source.html create mode 100644 docs/_keys_8h_source.html create mode 100644 docs/_label_8h_source.html create mode 100644 docs/_layer_8h_source.html create mode 100644 docs/_layout_host_8h_source.html create mode 100644 docs/_list_8h_source.html create mode 100644 docs/_list_box_8h_source.html create mode 100644 docs/_list_view_8h_source.html create mode 100644 docs/_menu_8h_source.html create mode 100644 docs/_menu_base_8h_source.html create mode 100644 docs/_menu_item_8h_source.html create mode 100644 docs/_msg_box_8h_source.html create mode 100644 docs/_panel_8h_source.html create mode 100644 docs/_panel_base_8h_source.html create mode 100644 docs/_password_box_8h_source.html create mode 100644 docs/_path_8h_source.html create mode 100644 docs/_point_8h_source.html create mode 100644 docs/_proc_msg_8h_source.html create mode 100644 docs/_progress_bar_8h_source.html create mode 100644 docs/_property_8h_source.html create mode 100644 docs/_radio_button_8h_source.html create mode 100644 docs/_rect_8h_source.html create mode 100644 docs/_routed_event_8h_source.html create mode 100644 docs/_routed_event_args_8h_source.html create mode 100644 docs/_screen_8h_source.html create mode 100644 docs/_scroll_enums_8h_source.html create mode 100644 docs/_simple_window_8h_source.html create mode 100644 docs/_size_8h_source.html create mode 100644 docs/_slider_8h_source.html create mode 100644 docs/_stack_layout_8h_source.html create mode 100644 docs/_stack_layout_h_8h_source.html create mode 100644 docs/_stack_layout_v_8h_source.html create mode 100644 docs/_stack_panel_8h_source.html create mode 100644 docs/_static_control_8h_source.html create mode 100644 docs/_tab_control_8h_source.html create mode 100644 docs/_text_box_8h_source.html create mode 100644 docs/_text_box_base_8h_source.html create mode 100644 docs/_thickness_8h_source.html create mode 100644 docs/_u_i_element_8h_source.html create mode 100644 docs/_uniform_grid_8h_source.html create mode 100644 docs/_uniform_grid_layout_8h_source.html create mode 100644 docs/_utils_8h_source.html create mode 100644 docs/_window_8h_source.html create mode 100644 docs/_wnd_base_8h_source.html create mode 100644 docs/_wnd_msg_8h_source.html create mode 100644 docs/_wrap_layout_8h_source.html create mode 100644 docs/_wrap_layout_h_8h_source.html create mode 100644 docs/_wrap_layout_v_8h_source.html create mode 100644 docs/_wrap_panel_8h_source.html create mode 100644 docs/annotated.html create mode 100644 docs/annotated_dup.js create mode 100644 docs/bc_s.png create mode 100644 docs/bc_sd.png create mode 100644 docs/classes.html create mode 100644 docs/classsw_1_1_app-members.html create mode 100644 docs/classsw_1_1_app.html create mode 100644 docs/classsw_1_1_button-members.html create mode 100644 docs/classsw_1_1_button.html create mode 100644 docs/classsw_1_1_button.js create mode 100644 docs/classsw_1_1_button.png create mode 100644 docs/classsw_1_1_button_base-members.html create mode 100644 docs/classsw_1_1_button_base.html create mode 100644 docs/classsw_1_1_button_base.js create mode 100644 docs/classsw_1_1_button_base.png create mode 100644 docs/classsw_1_1_canvas-members.html create mode 100644 docs/classsw_1_1_canvas.html create mode 100644 docs/classsw_1_1_canvas.js create mode 100644 docs/classsw_1_1_canvas.png create mode 100644 docs/classsw_1_1_canvas_layout-members.html create mode 100644 docs/classsw_1_1_canvas_layout.html create mode 100644 docs/classsw_1_1_canvas_layout.js create mode 100644 docs/classsw_1_1_canvas_layout.png create mode 100644 docs/classsw_1_1_check_box-members.html create mode 100644 docs/classsw_1_1_check_box.html create mode 100644 docs/classsw_1_1_check_box.js create mode 100644 docs/classsw_1_1_check_box.png create mode 100644 docs/classsw_1_1_checkable_button-members.html create mode 100644 docs/classsw_1_1_checkable_button.html create mode 100644 docs/classsw_1_1_checkable_button.js create mode 100644 docs/classsw_1_1_checkable_button.png create mode 100644 docs/classsw_1_1_combo_box-members.html create mode 100644 docs/classsw_1_1_combo_box.html create mode 100644 docs/classsw_1_1_combo_box.js create mode 100644 docs/classsw_1_1_combo_box.png create mode 100644 docs/classsw_1_1_context_menu-members.html create mode 100644 docs/classsw_1_1_context_menu.html create mode 100644 docs/classsw_1_1_context_menu.js create mode 100644 docs/classsw_1_1_context_menu.png create mode 100644 docs/classsw_1_1_control-members.html create mode 100644 docs/classsw_1_1_control.html create mode 100644 docs/classsw_1_1_control.js create mode 100644 docs/classsw_1_1_control.png create mode 100644 docs/classsw_1_1_cursor_helper-members.html create mode 100644 docs/classsw_1_1_cursor_helper.html create mode 100644 docs/classsw_1_1_dictionary-members.html create mode 100644 docs/classsw_1_1_dictionary.html create mode 100644 docs/classsw_1_1_dictionary.js create mode 100644 docs/classsw_1_1_dip-members.html create mode 100644 docs/classsw_1_1_dip.html create mode 100644 docs/classsw_1_1_dock_layout-members.html create mode 100644 docs/classsw_1_1_dock_layout.html create mode 100644 docs/classsw_1_1_dock_layout.js create mode 100644 docs/classsw_1_1_dock_layout.png create mode 100644 docs/classsw_1_1_dock_panel-members.html create mode 100644 docs/classsw_1_1_dock_panel.html create mode 100644 docs/classsw_1_1_dock_panel.js create mode 100644 docs/classsw_1_1_dock_panel.png create mode 100644 docs/classsw_1_1_fill_layout-members.html create mode 100644 docs/classsw_1_1_fill_layout.html create mode 100644 docs/classsw_1_1_fill_layout.js create mode 100644 docs/classsw_1_1_fill_layout.png create mode 100644 docs/classsw_1_1_font-members.html create mode 100644 docs/classsw_1_1_font.html create mode 100644 docs/classsw_1_1_font.js create mode 100644 docs/classsw_1_1_grid-members.html create mode 100644 docs/classsw_1_1_grid.html create mode 100644 docs/classsw_1_1_grid.js create mode 100644 docs/classsw_1_1_grid.png create mode 100644 docs/classsw_1_1_grid_layout-members.html create mode 100644 docs/classsw_1_1_grid_layout.html create mode 100644 docs/classsw_1_1_grid_layout.js create mode 100644 docs/classsw_1_1_grid_layout.png create mode 100644 docs/classsw_1_1_group_box-members.html create mode 100644 docs/classsw_1_1_group_box.html create mode 100644 docs/classsw_1_1_group_box.js create mode 100644 docs/classsw_1_1_group_box.png create mode 100644 docs/classsw_1_1_i_layout-members.html create mode 100644 docs/classsw_1_1_i_layout.html create mode 100644 docs/classsw_1_1_i_layout.js create mode 100644 docs/classsw_1_1_i_layout.png create mode 100644 docs/classsw_1_1_i_tag-members.html create mode 100644 docs/classsw_1_1_i_tag.html create mode 100644 docs/classsw_1_1_i_tag.js create mode 100644 docs/classsw_1_1_i_tag.png create mode 100644 docs/classsw_1_1_icon_helper-members.html create mode 100644 docs/classsw_1_1_icon_helper.html create mode 100644 docs/classsw_1_1_items_control-members.html create mode 100644 docs/classsw_1_1_items_control.html create mode 100644 docs/classsw_1_1_items_control.js create mode 100644 docs/classsw_1_1_items_control.png create mode 100644 docs/classsw_1_1_label-members.html create mode 100644 docs/classsw_1_1_label.html create mode 100644 docs/classsw_1_1_label.js create mode 100644 docs/classsw_1_1_label.png create mode 100644 docs/classsw_1_1_layer-members.html create mode 100644 docs/classsw_1_1_layer.html create mode 100644 docs/classsw_1_1_layer.js create mode 100644 docs/classsw_1_1_layer.png create mode 100644 docs/classsw_1_1_layout_host-members.html create mode 100644 docs/classsw_1_1_layout_host.html create mode 100644 docs/classsw_1_1_layout_host.js create mode 100644 docs/classsw_1_1_layout_host.png create mode 100644 docs/classsw_1_1_list-members.html create mode 100644 docs/classsw_1_1_list.html create mode 100644 docs/classsw_1_1_list.js create mode 100644 docs/classsw_1_1_list_box-members.html create mode 100644 docs/classsw_1_1_list_box.html create mode 100644 docs/classsw_1_1_list_box.js create mode 100644 docs/classsw_1_1_list_box.png create mode 100644 docs/classsw_1_1_list_view-members.html create mode 100644 docs/classsw_1_1_list_view.html create mode 100644 docs/classsw_1_1_list_view.js create mode 100644 docs/classsw_1_1_list_view.png create mode 100644 docs/classsw_1_1_menu-members.html create mode 100644 docs/classsw_1_1_menu.html create mode 100644 docs/classsw_1_1_menu.js create mode 100644 docs/classsw_1_1_menu.png create mode 100644 docs/classsw_1_1_menu_base-members.html create mode 100644 docs/classsw_1_1_menu_base.html create mode 100644 docs/classsw_1_1_menu_base.js create mode 100644 docs/classsw_1_1_menu_base.png create mode 100644 docs/classsw_1_1_menu_item-members.html create mode 100644 docs/classsw_1_1_menu_item.html create mode 100644 docs/classsw_1_1_menu_item.js create mode 100644 docs/classsw_1_1_menu_item.png create mode 100644 docs/classsw_1_1_msg_box-members.html create mode 100644 docs/classsw_1_1_msg_box.html create mode 100644 docs/classsw_1_1_panel-members.html create mode 100644 docs/classsw_1_1_panel.html create mode 100644 docs/classsw_1_1_panel.js create mode 100644 docs/classsw_1_1_panel.png create mode 100644 docs/classsw_1_1_panel_base-members.html create mode 100644 docs/classsw_1_1_panel_base.html create mode 100644 docs/classsw_1_1_panel_base.js create mode 100644 docs/classsw_1_1_panel_base.png create mode 100644 docs/classsw_1_1_password_box-members.html create mode 100644 docs/classsw_1_1_password_box.html create mode 100644 docs/classsw_1_1_password_box.js create mode 100644 docs/classsw_1_1_password_box.png create mode 100644 docs/classsw_1_1_path-members.html create mode 100644 docs/classsw_1_1_path.html create mode 100644 docs/classsw_1_1_progress_bar-members.html create mode 100644 docs/classsw_1_1_progress_bar.html create mode 100644 docs/classsw_1_1_progress_bar.js create mode 100644 docs/classsw_1_1_progress_bar.png create mode 100644 docs/classsw_1_1_property-members.html create mode 100644 docs/classsw_1_1_property.html create mode 100644 docs/classsw_1_1_property.js create mode 100644 docs/classsw_1_1_property.png create mode 100644 docs/classsw_1_1_radio_button-members.html create mode 100644 docs/classsw_1_1_radio_button.html create mode 100644 docs/classsw_1_1_radio_button.js create mode 100644 docs/classsw_1_1_radio_button.png create mode 100644 docs/classsw_1_1_read_only_property-members.html create mode 100644 docs/classsw_1_1_read_only_property.html create mode 100644 docs/classsw_1_1_read_only_property.js create mode 100644 docs/classsw_1_1_read_only_property.png create mode 100644 docs/classsw_1_1_screen-members.html create mode 100644 docs/classsw_1_1_screen.html create mode 100644 docs/classsw_1_1_slider-members.html create mode 100644 docs/classsw_1_1_slider.html create mode 100644 docs/classsw_1_1_slider.js create mode 100644 docs/classsw_1_1_slider.png create mode 100644 docs/classsw_1_1_stack_layout-members.html create mode 100644 docs/classsw_1_1_stack_layout.html create mode 100644 docs/classsw_1_1_stack_layout.js create mode 100644 docs/classsw_1_1_stack_layout.png create mode 100644 docs/classsw_1_1_stack_layout_h-members.html create mode 100644 docs/classsw_1_1_stack_layout_h.html create mode 100644 docs/classsw_1_1_stack_layout_h.js create mode 100644 docs/classsw_1_1_stack_layout_h.png create mode 100644 docs/classsw_1_1_stack_layout_v-members.html create mode 100644 docs/classsw_1_1_stack_layout_v.html create mode 100644 docs/classsw_1_1_stack_layout_v.js create mode 100644 docs/classsw_1_1_stack_layout_v.png create mode 100644 docs/classsw_1_1_stack_panel-members.html create mode 100644 docs/classsw_1_1_stack_panel.html create mode 100644 docs/classsw_1_1_stack_panel.js create mode 100644 docs/classsw_1_1_stack_panel.png create mode 100644 docs/classsw_1_1_static_control-members.html create mode 100644 docs/classsw_1_1_static_control.html create mode 100644 docs/classsw_1_1_static_control.js create mode 100644 docs/classsw_1_1_static_control.png create mode 100644 docs/classsw_1_1_tab_control-members.html create mode 100644 docs/classsw_1_1_tab_control.html create mode 100644 docs/classsw_1_1_tab_control.js create mode 100644 docs/classsw_1_1_tab_control.png create mode 100644 docs/classsw_1_1_text_box-members.html create mode 100644 docs/classsw_1_1_text_box.html create mode 100644 docs/classsw_1_1_text_box.js create mode 100644 docs/classsw_1_1_text_box.png create mode 100644 docs/classsw_1_1_text_box_base-members.html create mode 100644 docs/classsw_1_1_text_box_base.html create mode 100644 docs/classsw_1_1_text_box_base.js create mode 100644 docs/classsw_1_1_text_box_base.png create mode 100644 docs/classsw_1_1_u_i_element-members.html create mode 100644 docs/classsw_1_1_u_i_element.html create mode 100644 docs/classsw_1_1_u_i_element.js create mode 100644 docs/classsw_1_1_u_i_element.png create mode 100644 docs/classsw_1_1_uniform_grid-members.html create mode 100644 docs/classsw_1_1_uniform_grid.html create mode 100644 docs/classsw_1_1_uniform_grid.js create mode 100644 docs/classsw_1_1_uniform_grid.png create mode 100644 docs/classsw_1_1_uniform_grid_layout-members.html create mode 100644 docs/classsw_1_1_uniform_grid_layout.html create mode 100644 docs/classsw_1_1_uniform_grid_layout.js create mode 100644 docs/classsw_1_1_uniform_grid_layout.png create mode 100644 docs/classsw_1_1_utils-members.html create mode 100644 docs/classsw_1_1_utils.html create mode 100644 docs/classsw_1_1_window-members.html create mode 100644 docs/classsw_1_1_window.html create mode 100644 docs/classsw_1_1_window.js create mode 100644 docs/classsw_1_1_window.png create mode 100644 docs/classsw_1_1_wnd_base-members.html create mode 100644 docs/classsw_1_1_wnd_base.html create mode 100644 docs/classsw_1_1_wnd_base.js create mode 100644 docs/classsw_1_1_wnd_base.png create mode 100644 docs/classsw_1_1_wrap_layout-members.html create mode 100644 docs/classsw_1_1_wrap_layout.html create mode 100644 docs/classsw_1_1_wrap_layout.js create mode 100644 docs/classsw_1_1_wrap_layout.png create mode 100644 docs/classsw_1_1_wrap_layout_h-members.html create mode 100644 docs/classsw_1_1_wrap_layout_h.html create mode 100644 docs/classsw_1_1_wrap_layout_h.js create mode 100644 docs/classsw_1_1_wrap_layout_h.png create mode 100644 docs/classsw_1_1_wrap_layout_v-members.html create mode 100644 docs/classsw_1_1_wrap_layout_v.html create mode 100644 docs/classsw_1_1_wrap_layout_v.js create mode 100644 docs/classsw_1_1_wrap_layout_v.png create mode 100644 docs/classsw_1_1_wrap_panel-members.html create mode 100644 docs/classsw_1_1_wrap_panel.html create mode 100644 docs/classsw_1_1_wrap_panel.js create mode 100644 docs/classsw_1_1_wrap_panel.png create mode 100644 docs/classsw_1_1_write_only_property-members.html create mode 100644 docs/classsw_1_1_write_only_property.html create mode 100644 docs/classsw_1_1_write_only_property.js create mode 100644 docs/classsw_1_1_write_only_property.png create mode 100644 docs/clipboard.js create mode 100644 docs/closed.png create mode 100644 docs/cookie.js create mode 100644 docs/dir_01fcd3835fb4e7d9331b722d86291b65.html create mode 100644 docs/dir_01fcd3835fb4e7d9331b722d86291b65.js create mode 100644 docs/dir_ed5f6ece24ffcc4307a76d27c2494db3.html create mode 100644 docs/dir_ed5f6ece24ffcc4307a76d27c2494db3.js create mode 100644 docs/doc.svg create mode 100644 docs/docd.svg create mode 100644 docs/doxygen.css create mode 100644 docs/doxygen.svg create mode 100644 docs/doxygen_crawl.html create mode 100644 docs/dynsections.js create mode 100644 docs/files.html create mode 100644 docs/files_dup.js create mode 100644 docs/folderclosed.svg create mode 100644 docs/folderclosedd.svg create mode 100644 docs/folderopen.svg create mode 100644 docs/folderopend.svg create mode 100644 docs/functions.html create mode 100644 docs/functions_b.html create mode 100644 docs/functions_c.html create mode 100644 docs/functions_d.html create mode 100644 docs/functions_dup.js create mode 100644 docs/functions_e.html create mode 100644 docs/functions_enum.html create mode 100644 docs/functions_f.html create mode 100644 docs/functions_func.html create mode 100644 docs/functions_func.js create mode 100644 docs/functions_func_b.html create mode 100644 docs/functions_func_c.html create mode 100644 docs/functions_func_d.html create mode 100644 docs/functions_func_e.html create mode 100644 docs/functions_func_f.html create mode 100644 docs/functions_func_g.html create mode 100644 docs/functions_func_h.html create mode 100644 docs/functions_func_i.html create mode 100644 docs/functions_func_l.html create mode 100644 docs/functions_func_m.html create mode 100644 docs/functions_func_n.html create mode 100644 docs/functions_func_o.html create mode 100644 docs/functions_func_p.html create mode 100644 docs/functions_func_q.html create mode 100644 docs/functions_func_r.html create mode 100644 docs/functions_func_s.html create mode 100644 docs/functions_func_t.html create mode 100644 docs/functions_func_u.html create mode 100644 docs/functions_func_v.html create mode 100644 docs/functions_func_w.html create mode 100644 docs/functions_func_~.html create mode 100644 docs/functions_g.html create mode 100644 docs/functions_h.html create mode 100644 docs/functions_i.html create mode 100644 docs/functions_l.html create mode 100644 docs/functions_m.html create mode 100644 docs/functions_n.html create mode 100644 docs/functions_o.html create mode 100644 docs/functions_p.html create mode 100644 docs/functions_q.html create mode 100644 docs/functions_r.html create mode 100644 docs/functions_rela.html create mode 100644 docs/functions_s.html create mode 100644 docs/functions_t.html create mode 100644 docs/functions_u.html create mode 100644 docs/functions_v.html create mode 100644 docs/functions_vars.html create mode 100644 docs/functions_w.html create mode 100644 docs/functions_x.html create mode 100644 docs/functions_y.html create mode 100644 docs/functions_~.html create mode 100644 docs/hierarchy.html create mode 100644 docs/hierarchy.js create mode 100644 docs/index.html create mode 100644 docs/jquery.js create mode 100644 docs/menu.js create mode 100644 docs/menudata.js create mode 100644 docs/minus.svg create mode 100644 docs/minusd.svg create mode 100644 docs/nav_f.png create mode 100644 docs/nav_fd.png create mode 100644 docs/nav_g.png create mode 100644 docs/nav_h.png create mode 100644 docs/nav_hd.png create mode 100644 docs/navtree.css create mode 100644 docs/navtree.js create mode 100644 docs/navtreedata.js create mode 100644 docs/navtreeindex0.js create mode 100644 docs/navtreeindex1.js create mode 100644 docs/navtreeindex2.js create mode 100644 docs/navtreeindex3.js create mode 100644 docs/open.png create mode 100644 docs/plus.svg create mode 100644 docs/plusd.svg create mode 100644 docs/resize.js create mode 100644 docs/search/all_0.js create mode 100644 docs/search/all_1.js create mode 100644 docs/search/all_10.js create mode 100644 docs/search/all_11.js create mode 100644 docs/search/all_12.js create mode 100644 docs/search/all_13.js create mode 100644 docs/search/all_14.js create mode 100644 docs/search/all_15.js create mode 100644 docs/search/all_16.js create mode 100644 docs/search/all_17.js create mode 100644 docs/search/all_18.js create mode 100644 docs/search/all_19.js create mode 100644 docs/search/all_2.js create mode 100644 docs/search/all_3.js create mode 100644 docs/search/all_4.js create mode 100644 docs/search/all_5.js create mode 100644 docs/search/all_6.js create mode 100644 docs/search/all_7.js create mode 100644 docs/search/all_8.js create mode 100644 docs/search/all_9.js create mode 100644 docs/search/all_a.js create mode 100644 docs/search/all_b.js create mode 100644 docs/search/all_c.js create mode 100644 docs/search/all_d.js create mode 100644 docs/search/all_e.js create mode 100644 docs/search/all_f.js create mode 100644 docs/search/classes_0.js create mode 100644 docs/search/classes_1.js create mode 100644 docs/search/classes_10.js create mode 100644 docs/search/classes_2.js create mode 100644 docs/search/classes_3.js create mode 100644 docs/search/classes_4.js create mode 100644 docs/search/classes_5.js create mode 100644 docs/search/classes_6.js create mode 100644 docs/search/classes_7.js create mode 100644 docs/search/classes_8.js create mode 100644 docs/search/classes_9.js create mode 100644 docs/search/classes_a.js create mode 100644 docs/search/classes_b.js create mode 100644 docs/search/classes_c.js create mode 100644 docs/search/classes_d.js create mode 100644 docs/search/classes_e.js create mode 100644 docs/search/classes_f.js create mode 100644 docs/search/close.svg create mode 100644 docs/search/enums_0.js create mode 100644 docs/search/functions_0.js create mode 100644 docs/search/functions_1.js create mode 100644 docs/search/functions_10.js create mode 100644 docs/search/functions_11.js create mode 100644 docs/search/functions_12.js create mode 100644 docs/search/functions_13.js create mode 100644 docs/search/functions_14.js create mode 100644 docs/search/functions_15.js create mode 100644 docs/search/functions_2.js create mode 100644 docs/search/functions_3.js create mode 100644 docs/search/functions_4.js create mode 100644 docs/search/functions_5.js create mode 100644 docs/search/functions_6.js create mode 100644 docs/search/functions_7.js create mode 100644 docs/search/functions_8.js create mode 100644 docs/search/functions_9.js create mode 100644 docs/search/functions_a.js create mode 100644 docs/search/functions_b.js create mode 100644 docs/search/functions_c.js create mode 100644 docs/search/functions_d.js create mode 100644 docs/search/functions_e.js create mode 100644 docs/search/functions_f.js create mode 100644 docs/search/mag.svg create mode 100644 docs/search/mag_d.svg create mode 100644 docs/search/mag_sel.svg create mode 100644 docs/search/mag_seld.svg create mode 100644 docs/search/related_0.js create mode 100644 docs/search/search.css create mode 100644 docs/search/search.js create mode 100644 docs/search/searchdata.js create mode 100644 docs/search/variables_0.js create mode 100644 docs/search/variables_1.js create mode 100644 docs/search/variables_10.js create mode 100644 docs/search/variables_11.js create mode 100644 docs/search/variables_12.js create mode 100644 docs/search/variables_13.js create mode 100644 docs/search/variables_14.js create mode 100644 docs/search/variables_15.js create mode 100644 docs/search/variables_2.js create mode 100644 docs/search/variables_3.js create mode 100644 docs/search/variables_4.js create mode 100644 docs/search/variables_5.js create mode 100644 docs/search/variables_6.js create mode 100644 docs/search/variables_7.js create mode 100644 docs/search/variables_8.js create mode 100644 docs/search/variables_9.js create mode 100644 docs/search/variables_a.js create mode 100644 docs/search/variables_b.js create mode 100644 docs/search/variables_c.js create mode 100644 docs/search/variables_d.js create mode 100644 docs/search/variables_e.js create mode 100644 docs/search/variables_f.js create mode 100644 docs/splitbar.png create mode 100644 docs/splitbard.png create mode 100644 docs/structsw_1_1___has_event_type.html create mode 100644 docs/structsw_1_1___has_event_type.png create mode 100644 docs/structsw_1_1___has_event_type_3_01_t_00_01decltype_07void_07std_1_1declval_3_01_t_01_4_07_08_8_event_type_08_08_4.html create mode 100644 docs/structsw_1_1___has_event_type_3_01_t_00_01decltype_07void_07std_1_1declval_3_01_t_01_4_07_08_8_event_type_08_08_4.png create mode 100644 docs/structsw_1_1___is_typed_routed_event_args.html create mode 100644 docs/structsw_1_1___is_typed_routed_event_args.png create mode 100644 docs/structsw_1_1_auto_size_grid_column-members.html create mode 100644 docs/structsw_1_1_auto_size_grid_column.html create mode 100644 docs/structsw_1_1_auto_size_grid_column.js create mode 100644 docs/structsw_1_1_auto_size_grid_column.png create mode 100644 docs/structsw_1_1_auto_size_grid_row-members.html create mode 100644 docs/structsw_1_1_auto_size_grid_row.html create mode 100644 docs/structsw_1_1_auto_size_grid_row.js create mode 100644 docs/structsw_1_1_auto_size_grid_row.png create mode 100644 docs/structsw_1_1_canvas_layout_tag-members.html create mode 100644 docs/structsw_1_1_canvas_layout_tag.html create mode 100644 docs/structsw_1_1_canvas_layout_tag.js create mode 100644 docs/structsw_1_1_color-members.html create mode 100644 docs/structsw_1_1_color.html create mode 100644 docs/structsw_1_1_color.js create mode 100644 docs/structsw_1_1_fill_remain_grid_column-members.html create mode 100644 docs/structsw_1_1_fill_remain_grid_column.html create mode 100644 docs/structsw_1_1_fill_remain_grid_column.js create mode 100644 docs/structsw_1_1_fill_remain_grid_column.png create mode 100644 docs/structsw_1_1_fill_remain_grid_row-members.html create mode 100644 docs/structsw_1_1_fill_remain_grid_row.html create mode 100644 docs/structsw_1_1_fill_remain_grid_row.js create mode 100644 docs/structsw_1_1_fill_remain_grid_row.png create mode 100644 docs/structsw_1_1_fix_size_grid_column-members.html create mode 100644 docs/structsw_1_1_fix_size_grid_column.html create mode 100644 docs/structsw_1_1_fix_size_grid_column.js create mode 100644 docs/structsw_1_1_fix_size_grid_column.png create mode 100644 docs/structsw_1_1_fix_size_grid_row-members.html create mode 100644 docs/structsw_1_1_fix_size_grid_row.html create mode 100644 docs/structsw_1_1_fix_size_grid_row.js create mode 100644 docs/structsw_1_1_fix_size_grid_row.png create mode 100644 docs/structsw_1_1_got_char_event_args-members.html create mode 100644 docs/structsw_1_1_got_char_event_args.html create mode 100644 docs/structsw_1_1_got_char_event_args.png create mode 100644 docs/structsw_1_1_grid_column-members.html create mode 100644 docs/structsw_1_1_grid_column.html create mode 100644 docs/structsw_1_1_grid_column.js create mode 100644 docs/structsw_1_1_grid_column.png create mode 100644 docs/structsw_1_1_grid_layout_tag-members.html create mode 100644 docs/structsw_1_1_grid_layout_tag.html create mode 100644 docs/structsw_1_1_grid_layout_tag.js create mode 100644 docs/structsw_1_1_grid_row-members.html create mode 100644 docs/structsw_1_1_grid_row.html create mode 100644 docs/structsw_1_1_grid_row.js create mode 100644 docs/structsw_1_1_grid_row.png create mode 100644 docs/structsw_1_1_key_down_event_args-members.html create mode 100644 docs/structsw_1_1_key_down_event_args.html create mode 100644 docs/structsw_1_1_key_down_event_args.png create mode 100644 docs/structsw_1_1_key_flags-members.html create mode 100644 docs/structsw_1_1_key_flags.html create mode 100644 docs/structsw_1_1_key_up_event_args-members.html create mode 100644 docs/structsw_1_1_key_up_event_args.html create mode 100644 docs/structsw_1_1_key_up_event_args.png create mode 100644 docs/structsw_1_1_list_view_check_state_changed_event_args-members.html create mode 100644 docs/structsw_1_1_list_view_check_state_changed_event_args.html create mode 100644 docs/structsw_1_1_list_view_check_state_changed_event_args.png create mode 100644 docs/structsw_1_1_list_view_column-members.html create mode 100644 docs/structsw_1_1_list_view_column.html create mode 100644 docs/structsw_1_1_list_view_column.js create mode 100644 docs/structsw_1_1_list_view_header_clicked_event_args-members.html create mode 100644 docs/structsw_1_1_list_view_header_clicked_event_args.html create mode 100644 docs/structsw_1_1_list_view_header_clicked_event_args.png create mode 100644 docs/structsw_1_1_list_view_item_clicked_event_args-members.html create mode 100644 docs/structsw_1_1_list_view_item_clicked_event_args.html create mode 100644 docs/structsw_1_1_list_view_item_clicked_event_args.png create mode 100644 docs/structsw_1_1_mouse_button_down_event_args-members.html create mode 100644 docs/structsw_1_1_mouse_button_down_event_args.html create mode 100644 docs/structsw_1_1_mouse_button_down_event_args.png create mode 100644 docs/structsw_1_1_mouse_button_up_event_args-members.html create mode 100644 docs/structsw_1_1_mouse_button_up_event_args.html create mode 100644 docs/structsw_1_1_mouse_button_up_event_args.png create mode 100644 docs/structsw_1_1_mouse_move_event_args-members.html create mode 100644 docs/structsw_1_1_mouse_move_event_args.html create mode 100644 docs/structsw_1_1_mouse_move_event_args.png create mode 100644 docs/structsw_1_1_mouse_wheel_event_args-members.html create mode 100644 docs/structsw_1_1_mouse_wheel_event_args.html create mode 100644 docs/structsw_1_1_mouse_wheel_event_args.png create mode 100644 docs/structsw_1_1_point-members.html create mode 100644 docs/structsw_1_1_point.html create mode 100644 docs/structsw_1_1_point.js create mode 100644 docs/structsw_1_1_position_changed_event_args-members.html create mode 100644 docs/structsw_1_1_position_changed_event_args.html create mode 100644 docs/structsw_1_1_position_changed_event_args.png create mode 100644 docs/structsw_1_1_proc_msg-members.html create mode 100644 docs/structsw_1_1_proc_msg.html create mode 100644 docs/structsw_1_1_proc_msg.js create mode 100644 docs/structsw_1_1_rect-members.html create mode 100644 docs/structsw_1_1_rect.html create mode 100644 docs/structsw_1_1_rect.js create mode 100644 docs/structsw_1_1_routed_event_args-members.html create mode 100644 docs/structsw_1_1_routed_event_args.html create mode 100644 docs/structsw_1_1_routed_event_args.js create mode 100644 docs/structsw_1_1_routed_event_args.png create mode 100644 docs/structsw_1_1_routed_event_args_of_type-members.html create mode 100644 docs/structsw_1_1_routed_event_args_of_type.html create mode 100644 docs/structsw_1_1_routed_event_args_of_type.png create mode 100644 docs/structsw_1_1_scrolling_event_args-members.html create mode 100644 docs/structsw_1_1_scrolling_event_args.html create mode 100644 docs/structsw_1_1_scrolling_event_args.png create mode 100644 docs/structsw_1_1_show_context_menu_event_args-members.html create mode 100644 docs/structsw_1_1_show_context_menu_event_args.html create mode 100644 docs/structsw_1_1_show_context_menu_event_args.png create mode 100644 docs/structsw_1_1_size-members.html create mode 100644 docs/structsw_1_1_size.html create mode 100644 docs/structsw_1_1_size.js create mode 100644 docs/structsw_1_1_size_changed_event_args-members.html create mode 100644 docs/structsw_1_1_size_changed_event_args.html create mode 100644 docs/structsw_1_1_size_changed_event_args.png create mode 100644 docs/structsw_1_1_thickness-members.html create mode 100644 docs/structsw_1_1_thickness.html create mode 100644 docs/structsw_1_1_thickness.js create mode 100644 docs/structsw_1_1_window_closing_event_args-members.html create mode 100644 docs/structsw_1_1_window_closing_event_args.html create mode 100644 docs/structsw_1_1_window_closing_event_args.png create mode 100644 docs/sync_off.png create mode 100644 docs/sync_on.png create mode 100644 docs/tab_a.png create mode 100644 docs/tab_ad.png create mode 100644 docs/tab_b.png create mode 100644 docs/tab_bd.png create mode 100644 docs/tab_h.png create mode 100644 docs/tab_hd.png create mode 100644 docs/tab_s.png create mode 100644 docs/tab_sd.png create mode 100644 docs/tabs.css create mode 100644 doxygen/Doxyfile diff --git a/docs/_alignment_8h_source.html b/docs/_alignment_8h_source.html new file mode 100644 index 00000000..8f3a9a9c --- /dev/null +++ b/docs/_alignment_8h_source.html @@ -0,0 +1,135 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/Alignment.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Alignment.h
+
+
+
1#pragma once
+
2
+
3namespace sw
+
4{
+
8 enum class HorizontalAlignment {
+
9 Center, // 中心
+
10 Stretch, // 拉伸
+
11 Left, // 左对齐
+
12 Right, // 右对齐
+
13 };
+
14
+
18 enum class VerticalAlignment {
+
19 Center, // 中心
+
20 Stretch, // 拉伸
+
21 Top, // 顶部对齐
+
22 Bottom, // 底部对齐
+
23 };
+
24
+
28 enum class Orientation {
+
29 Horizontal, // 水平排列
+
30 Vertical, // 垂直排列
+
31 };
+
32}
+
+
+ + + + diff --git a/docs/_app_8h_source.html b/docs/_app_8h_source.html new file mode 100644 index 00000000..f9f903e4 --- /dev/null +++ b/docs/_app_8h_source.html @@ -0,0 +1,164 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/App.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
App.h
+
+
+
1#pragma once
+
2
+
3#include "Property.h"
+
4#include <Windows.h>
+
5#include <memory>
+
6#include <string>
+
7
+
8namespace sw
+
9{
+
13 enum class AppQuitMode {
+
14 Auto, // 当所有窗口都销毁时自动退出消息循环
+
15 Manual, // 需手动调用QuitMsgLoop以退出消息循环
+
16 };
+
17
+
+
21 class App
+
22 {
+
23 private:
+
24 App() = delete;
+
25
+
26 public:
+ +
31
+ +
36
+ +
41
+ +
46
+ +
51
+
56 static int MsgLoop();
+
57
+
62 static void QuitMsgLoop(int exitCode = 0);
+
63
+
64 private:
+
68 static std::wstring _GetExePath();
+
69
+
73 static std::wstring _GetCurrentDirectory();
+
74 };
+
+
75}
+
App类
Definition App.h:22
+
static int MsgLoop()
消息循环
+
static const Property< AppQuitMode > QuitMode
程序退出消息循环的方式
Definition App.h:50
+
static const ReadOnlyProperty< HINSTANCE > Instance
应用程序的当前实例的句柄
Definition App.h:30
+
static const ReadOnlyProperty< std::wstring > ExePath
当前exe的文件路径
Definition App.h:35
+
static void QuitMsgLoop(int exitCode=0)
退出当前消息循环
+
static const Property< std::wstring > CurrentDirectory
当前工作路径
Definition App.h:45
+
static const ReadOnlyProperty< std::wstring > ExeDirectory
当前exe所在的文件夹路径
Definition App.h:40
+
属性
Definition Property.h:127
+
只读属性
Definition Property.h:16
+
+
+ + + + diff --git a/docs/_button_8h_source.html b/docs/_button_8h_source.html new file mode 100644 index 00000000..a93668eb --- /dev/null +++ b/docs/_button_8h_source.html @@ -0,0 +1,143 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/Button.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Button.h
+
+
+
1#pragma once
+
2
+
3#include "ButtonBase.h"
+
4
+
5namespace sw
+
6{
+
+
10 class Button : public ButtonBase
+
11 {
+
12 public:
+ +
17
+
18 protected:
+
22 virtual void OnDrawFocusRect() override;
+
23
+
29 virtual bool OnSetFocus(HWND hPreFocus) override;
+
30
+
36 virtual bool OnKillFocus(HWND hNextFocus) override;
+
37
+
44 virtual bool OnKeyDown(VirtualKey key, KeyFlags flags) override;
+
45 };
+
+
46}
+
窗口类名为BUTTON的控件类型的基类
Definition ButtonBase.h:11
+
按钮
Definition Button.h:11
+
virtual bool OnKillFocus(HWND hNextFocus) override
接收到WM_KILLFOCUS时调用该函数
+
virtual void OnDrawFocusRect() override
绘制虚线框时调用该函数
+
virtual bool OnKeyDown(VirtualKey key, KeyFlags flags) override
接收到WM_KEYDOWN时调用该函数
+
virtual bool OnSetFocus(HWND hPreFocus) override
接收到WM_SETFOCUS时调用该函数
+
Button()
初始化按钮
+
https://learn.microsoft.com/en-us/windows/win32/inputdev/about-keyboard-input#keystroke-message-flags
Definition Keys.h:11
+
+
+ + + + diff --git a/docs/_button_base_8h_source.html b/docs/_button_base_8h_source.html new file mode 100644 index 00000000..515f93fc --- /dev/null +++ b/docs/_button_base_8h_source.html @@ -0,0 +1,146 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/ButtonBase.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
ButtonBase.h
+
+
+
1#pragma once
+
2
+
3#include "Control.h"
+
4
+
5namespace sw
+
6{
+
+
10 class ButtonBase : public Control
+
11 {
+
12 protected:
+ +
17
+
18 public:
+
22 virtual ~ButtonBase() = 0;
+
23
+
24 protected:
+
28 void InitButtonBase(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle);
+
29
+
34 virtual void OnCommand(int code) override;
+
35
+
39 virtual void OnClicked();
+
40
+
44 virtual void OnDoubleClicked();
+
45 };
+
+
46}
+
窗口类名为BUTTON的控件类型的基类
Definition ButtonBase.h:11
+
virtual ~ButtonBase()=0
析构函数,这里用纯虚函数使该类成为抽象类
+
virtual void OnClicked()
被单击时调用该函数
+
void InitButtonBase(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
初始化控件
+
virtual void OnDoubleClicked()
被双击时调用该函数
+
virtual void OnCommand(int code) override
当父窗口接收到控件的WM_COMMAND时调用该函数
+
ButtonBase()
初始化ButtonBase
+
控件
Definition Control.h:11
+
+
+ + + + diff --git a/docs/_canvas_8h_source.html b/docs/_canvas_8h_source.html new file mode 100644 index 00000000..3c823e8a --- /dev/null +++ b/docs/_canvas_8h_source.html @@ -0,0 +1,147 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/Canvas.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Canvas.h
+
+
+
1#pragma once
+
2
+
3#include "CanvasLayout.h"
+
4#include "Panel.h"
+
5
+
6namespace sw
+
7{
+
+
11 class Canvas : public Panel
+
12 {
+
13 private:
+
17 CanvasLayout _canvasLayout = CanvasLayout();
+
18
+
19 public:
+ +
24
+ +
29
+
33 static void SetCanvasLayoutTag(UIElement &element, const CanvasLayoutTag &tag);
+
34
+
35 protected:
+
39 virtual LayoutHost *GetDefaultLayout() override;
+
40 };
+
+
41}
+
一种可以为子元素设置绝对位置的面板,与普通Panel不同的是Canvas支持自动滚动条
Definition Canvas.h:12
+
virtual LayoutHost * GetDefaultLayout() override
获取默认布局对象
+
static void SetCanvasLayoutTag(UIElement &element, const CanvasLayoutTag &tag)
给指定元素设置布局标记
+
Canvas()
初始化Canvas
+
static CanvasLayoutTag GetCanvasLayoutTag(UIElement &element)
获取指定元素的布局标记
+
绝对位置布局方式
Definition CanvasLayout.h:46
+
用于托管元素的布局方式的对象类型,是所有布局方式类型的基类
Definition LayoutHost.h:11
+
面板
Definition Panel.h:22
+
表示界面中的元素
Definition UIElement.h:24
+
绝对位置布局方式的布局标记
Definition CanvasLayout.h:10
+
+
+ + + + diff --git a/docs/_canvas_layout_8h_source.html b/docs/_canvas_layout_8h_source.html new file mode 100644 index 00000000..8e2ff6da --- /dev/null +++ b/docs/_canvas_layout_8h_source.html @@ -0,0 +1,155 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/CanvasLayout.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
CanvasLayout.h
+
+
+
1#pragma once
+
2
+
3#include "LayoutHost.h"
+
4
+
5namespace sw
+
6{
+
+ +
14 float left;
+
15
+
19 float top;
+
20
+ +
25
+
29 CanvasLayoutTag(float left, float top);
+
30
+
34 CanvasLayoutTag(uint64_t layoutTag);
+
35
+
39 operator uint64_t() const;
+
40 };
+
+
41
+
+
45 class CanvasLayout : public LayoutHost
+
46 {
+
47 public:
+
51 virtual void MeasureOverride(Size &availableSize) override;
+
52
+
56 virtual void ArrangeOverride(Size &finalSize) override;
+
57 };
+
+
58}
+
绝对位置布局方式
Definition CanvasLayout.h:46
+
virtual void MeasureOverride(Size &availableSize) override
计算所需尺寸
+
virtual void ArrangeOverride(Size &finalSize) override
安排控件
+
用于托管元素的布局方式的对象类型,是所有布局方式类型的基类
Definition LayoutHost.h:11
+
绝对位置布局方式的布局标记
Definition CanvasLayout.h:10
+
CanvasLayoutTag(uint64_t layoutTag)
从LayoutTag创建
+
float left
左边
Definition CanvasLayout.h:14
+
CanvasLayoutTag()
左边顶边均为0
+
CanvasLayoutTag(float left, float top)
指定左边和顶边
+
float top
顶边
Definition CanvasLayout.h:19
+
尺寸
Definition Size.h:11
+
+
+ + + + diff --git a/docs/_check_box_8h_source.html b/docs/_check_box_8h_source.html new file mode 100644 index 00000000..613ab9b7 --- /dev/null +++ b/docs/_check_box_8h_source.html @@ -0,0 +1,134 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/CheckBox.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
CheckBox.h
+
+
+
1#pragma once
+
2
+
3#include "CheckableButton.h"
+
4
+
5namespace sw
+
6{
+
+ +
11 {
+
12 public:
+ +
17
+
18 public:
+ +
23 };
+
+
24}
+
复选框
Definition CheckBox.h:11
+
CheckBox()
初始化复选框
+
const Property< bool > ThreeState
是否为三态复选框
Definition CheckBox.h:16
+
表示可选中的按钮类型(单选框、复选框等)
Definition CheckableButton.h:20
+
属性
Definition Property.h:127
+
+
+ + + + diff --git a/docs/_checkable_button_8h_source.html b/docs/_checkable_button_8h_source.html new file mode 100644 index 00000000..bdaef8b5 --- /dev/null +++ b/docs/_checkable_button_8h_source.html @@ -0,0 +1,147 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/CheckableButton.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
CheckableButton.h
+
+
+
1#pragma once
+
2
+
3#include "ButtonBase.h"
+
4
+
5namespace sw
+
6{
+
10 enum class CheckState {
+
11 Unchecked = BST_UNCHECKED, // 未选中
+
12 Checked = BST_CHECKED, // 已选中
+
13 Indeterminate = BST_INDETERMINATE, // 不确定状态
+
14 };
+
15
+
+ +
20 {
+
21 public:
+ +
26
+ +
31
+
32 protected:
+ +
37
+
38 public:
+
42 virtual ~CheckableButton() = 0;
+
43 };
+
+
44}
+
窗口类名为BUTTON的控件类型的基类
Definition ButtonBase.h:11
+
表示可选中的按钮类型(单选框、复选框等)
Definition CheckableButton.h:20
+
CheckableButton()
初始化CheckableButton
+
virtual ~CheckableButton()=0
析构函数,这里用纯虚函数使该类成为抽象类
+
const Property< bool > IsChecked
是否选中
Definition CheckableButton.h:30
+
const Property< sw::CheckState > CheckState
选中状态
Definition CheckableButton.h:25
+
属性
Definition Property.h:127
+
+
+ + + + diff --git a/docs/_color_8h_source.html b/docs/_color_8h_source.html new file mode 100644 index 00000000..ed0ccd60 --- /dev/null +++ b/docs/_color_8h_source.html @@ -0,0 +1,299 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/Color.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Color.h
+
+
+
1#pragma once
+
2
+
3#include <Windows.h>
+
4#include <cstdint>
+
5#include <iostream>
+
6
+
7namespace sw
+
8{
+
+
12 struct Color {
+
16 uint8_t r;
+
17
+
21 uint8_t g;
+
22
+
26 uint8_t b;
+
27
+
28 Color();
+
29 Color(uint8_t r, uint8_t g, uint8_t b);
+
30 Color(COLORREF color);
+
31 operator COLORREF() const;
+
32
+
33 friend bool operator==(const Color &left, const Color &right)
+
34 {
+
35 return (left.r == right.r) && (left.g == right.g) && (left.b == right.b);
+
36 }
+
37
+
38 friend bool operator!=(const Color &left, const Color &right)
+
39 {
+
40 return (left.r != right.r) || (left.g != right.g) || (left.b != right.b);
+
41 }
+
42
+
43 friend std::wostream &operator<<(std::wostream &wos, const Color &color)
+
44 {
+
45 return wos << L"Color{r=" << (int)color.r << L", g=" << (int)color.g << L", b=" << (int)color.b << L"}";
+
46 }
+
47
+
48 /*==================================================*/
+
49
+
50 enum SolidColors : COLORREF {
+
51 AliceBlue = RGB(240, 248, 255), // 爱丽丝蓝
+
52 AntiqueWhite = RGB(250, 235, 215), // 古董白
+
53 Aqua = RGB(0, 255, 255), // 青色
+
54 Aquamarine = RGB(127, 255, 212), // 碧绿色
+
55 Azure = RGB(240, 255, 255), // 蔚蓝色
+
56 Beige = RGB(245, 245, 220), // 米色
+
57 Bisque = RGB(255, 228, 196), // 橘黄色
+
58 Black = RGB(0, 0, 0), // 黑色
+
59 BlanchedAlmond = RGB(255, 235, 205), // 杏白色
+
60 Blue = RGB(0, 0, 255), // 蓝色
+
61 BlueViolet = RGB(138, 43, 226), // 蓝紫色
+
62 Brown = RGB(165, 42, 42), // 棕色
+
63 BurlyWood = RGB(222, 184, 135), // 实木色
+
64 CadetBlue = RGB(95, 158, 160), // 军服蓝
+
65 Chartreuse = RGB(127, 255, 0), // 查特酒绿
+
66 Chocolate = RGB(210, 105, 30), // 巧克力色
+
67 Coral = RGB(255, 127, 80), // 珊瑚红
+
68 CornflowerBlue = RGB(100, 149, 237), // 矢车菊蓝
+
69 Cornsilk = RGB(255, 248, 220), // 玉米丝色
+
70 Crimson = RGB(220, 20, 60), // 深红色
+
71 Cyan = RGB(0, 255, 255), // 青色
+
72 DarkBlue = RGB(0, 0, 139), // 深蓝色
+
73 DarkCyan = RGB(0, 139, 139), // 深青色
+
74 DarkGoldenrod = RGB(184, 134, 11), // 深金黄色
+
75 DarkGray = RGB(169, 169, 169), // 深灰色
+
76 DarkGreen = RGB(0, 100, 0), // 深绿色
+
77 DarkKhaki = RGB(189, 183, 107), // 深卡其色
+
78 DarkMagenta = RGB(139, 0, 139), // 深洋红色
+
79 DarkOliveGreen = RGB(85, 107, 47), // 深橄榄绿
+
80 DarkOrange = RGB(255, 140, 0), // 深橙色
+
81 DarkOrchid = RGB(153, 50, 204), // 深兰花紫
+
82 DarkRed = RGB(139, 0, 0), // 深红色
+
83 DarkSalmon = RGB(233, 150, 122), // 深橙红
+
84 DarkSeaGreen = RGB(143, 188, 143), // 深海绿色
+
85 DarkSlateBlue = RGB(72, 61, 139), // 深石板蓝
+
86 DarkSlateGray = RGB(47, 79, 79), // 深石板灰
+
87 DarkTurquoise = RGB(0, 206, 209), // 深青绿色
+
88 DarkViolet = RGB(148, 0, 211), // 深紫罗兰色
+
89 DeepPink = RGB(255, 20, 147), // 深粉红色
+
90 DeepSkyBlue = RGB(0, 191, 255), // 深天蓝色
+
91 DimGray = RGB(105, 105, 105), // 昏灰色
+
92 DodgerBlue = RGB(30, 144, 255), // 道奇蓝
+
93 Firebrick = RGB(178, 34, 34), // 火砖色
+
94 FloralWhite = RGB(255, 250, 240), // 花白色
+
95 ForestGreen = RGB(34, 139, 34), // 森林绿
+
96 Fuchsia = RGB(255, 0, 255), // 紫红色
+
97 Gainsboro = RGB(220, 220, 220), // 淡灰色
+
98 GhostWhite = RGB(248, 248, 255), // 幽灵白
+
99 Gold = RGB(255, 215, 0), // 金色
+
100 Goldenrod = RGB(218, 165, 32), // 金麒麟色
+
101 Gray = RGB(128, 128, 128), // 灰色
+
102 Green = RGB(0, 128, 0), // 绿色
+
103 GreenYellow = RGB(173, 255, 47), // 绿黄色
+
104 Honeydew = RGB(240, 255, 240), // 蜜瓜色
+
105 HotPink = RGB(255, 105, 180), // 热情粉红色
+
106 IndianRed = RGB(205, 92, 92), // 印度红
+
107 Indigo = RGB(75, 0, 130), // 靛青色
+
108 Ivory = RGB(255, 255, 240), // 象牙色
+
109 Khaki = RGB(240, 230, 140), // 卡其色
+
110 Lavender = RGB(230, 230, 250), // 薰衣草淡紫色
+
111 LavenderBlush = RGB(255, 240, 245), // 淡紫红色
+
112 LawnGreen = RGB(124, 252, 0), // 草坪绿
+
113 LemonChiffon = RGB(255, 250, 205), // 柠檬绸色
+
114 LightBlue = RGB(173, 216, 230), // 淡蓝色
+
115 LightCoral = RGB(240, 128, 128), // 浅珊瑚色
+
116 LightCyan = RGB(224, 255, 255), // 淡青色
+
117 LightGoldenrodYellow = RGB(250, 250, 210), // 浅金菊黄色
+
118 LightGray = RGB(211, 211, 211), // 浅灰色
+
119 LightGreen = RGB(144, 238, 144), // 浅绿色
+
120 LightPink = RGB(255, 182, 193), // 浅粉红色
+
121 LightSalmon = RGB(255, 160, 122), // 浅鲑鱼肉色
+
122 LightSeaGreen = RGB(32, 178, 170), // 浅海洋绿色
+
123 LightSkyBlue = RGB(135, 206, 250), // 浅天蓝色
+
124 LightSlateGray = RGB(119, 136, 153), // 浅石板灰
+
125 LightSteelBlue = RGB(176, 196, 222), // 浅钢蓝色
+
126 LightYellow = RGB(255, 255, 224), // 浅黄色
+
127 Lime = RGB(0, 255, 0), // 酸橙色
+
128 LimeGreen = RGB(50, 205, 50), // 酸橙绿色
+
129 Linen = RGB(250, 240, 230), // 亚麻色
+
130 Magenta = RGB(255, 0, 255), // 洋红色
+
131 Maroon = RGB(128, 0, 0), // 栗色
+
132 MediumAquamarine = RGB(102, 205, 170), // 中绿宝石色
+
133 MediumBlue = RGB(0, 0, 205), // 中蓝色
+
134 MediumOrchid = RGB(186, 85, 211), // 中兰花紫
+
135 MediumPurple = RGB(147, 112, 219), // 中紫色
+
136 MediumSeaGreen = RGB(60, 179, 113), // 中海洋绿色
+
137 MediumSlateBlue = RGB(123, 104, 238), // 中石板蓝色
+
138 MediumSpringGreen = RGB(0, 250, 154), // 中春绿色
+
139 MediumTurquoise = RGB(72, 209, 204), // 中绿宝石色
+
140 MediumVioletRed = RGB(199, 21, 133), // 中紫罗兰色
+
141 MidnightBlue = RGB(25, 25, 112), // 午夜蓝
+
142 MintCream = RGB(245, 255, 250), // 薄荷奶油色
+
143 MistyRose = RGB(255, 228, 225), // 浅玫瑰色
+
144 Moccasin = RGB(255, 228, 181), // 鹿皮色
+
145 NavajoWhite = RGB(255, 222, 173), // 纳瓦白
+
146 Navy = RGB(0, 0, 128), // 海军蓝
+
147 OldLace = RGB(253, 245, 230), // 老花色
+
148 Olive = RGB(128, 128, 0), // 橄榄色
+
149 OliveDrab = RGB(107, 142, 35), // 橄榄褐色
+
150 Orange = RGB(255, 165, 0), // 橙色
+
151 OrangeRed = RGB(255, 69, 0), // 橙红色
+
152 Orchid = RGB(218, 112, 214), // 兰花紫
+
153 PaleGoldenrod = RGB(238, 232, 170), // 苍麒麟色
+
154 PaleGreen = RGB(152, 251, 152), // 苍绿色
+
155 PaleTurquoise = RGB(175, 238, 238), // 苍宝石绿
+
156 PaleVioletRed = RGB(219, 112, 147), // 苍紫罗兰色
+
157 PapayaWhip = RGB(255, 239, 213), // 番木色
+
158 PeachPuff = RGB(255, 218, 185), // 桃色
+
159 Peru = RGB(205, 133, 63), // 秘鲁色
+
160 Pink = RGB(255, 192, 203), // 粉红色
+
161 Plum = RGB(221, 160, 221), // 李子色
+
162 PowderBlue = RGB(176, 224, 230), // 粉蓝色
+
163 Purple = RGB(128, 0, 128), // 紫色
+
164 Red = RGB(255, 0, 0), // 红色
+
165 RosyBrown = RGB(188, 143, 143), // 玫瑰褐色
+
166 RoyalBlue = RGB(65, 105, 225), // 皇家蓝
+
167 SaddleBrown = RGB(139, 69, 19), // 鞍褐色
+
168 Salmon = RGB(250, 128, 114), // 鲜肉色
+
169 SandyBrown = RGB(244, 164, 96), // 沙褐色
+
170 SeaGreen = RGB(46, 139, 87), // 海洋绿色
+
171 SeaShell = RGB(255, 245, 238), // 海贝壳色
+
172 Sienna = RGB(160, 82, 45), // 黄土赭色
+
173 Silver = RGB(192, 192, 192), // 银色
+
174 SkyBlue = RGB(135, 206, 235), // 天蓝色
+
175 SlateBlue = RGB(106, 90, 205), // 石板蓝色
+
176 SlateGray = RGB(112, 128, 144), // 石板灰
+
177 Snow = RGB(255, 250, 250), // 雪白色
+
178 SpringGreen = RGB(0, 255, 127), // 春绿色
+
179 SteelBlue = RGB(70, 130, 180), // 钢蓝色
+
180 Tan = RGB(210, 180, 140), // 茶色
+
181 Teal = RGB(0, 128, 128), // 水鸭色
+
182 Thistle = RGB(216, 191, 216), // 蓟色
+
183 Tomato = RGB(255, 99, 71), // 番茄色
+
184 Turquoise = RGB(64, 224, 208), // 绿宝石色
+
185 Violet = RGB(238, 130, 238), // 紫罗兰色
+
186 Wheat = RGB(245, 222, 179), // 浅黄色
+
187 White = RGB(255, 255, 255), // 白色
+
188 WhiteSmoke = RGB(245, 245, 245), // 烟白色
+
189 Yellow = RGB(255, 255, 0), // 黄色
+
190 YellowGreen = RGB(154, 205, 50), // 黄绿色
+
191 };
+
192 };
+
+
193}
+
颜色
Definition Color.h:12
+
uint8_t g
G分量
Definition Color.h:21
+
uint8_t r
R分量
Definition Color.h:16
+
uint8_t b
B分量
Definition Color.h:26
+
+
+ + + + diff --git a/docs/_combo_box_8h_source.html b/docs/_combo_box_8h_source.html new file mode 100644 index 00000000..cc6b0f5f --- /dev/null +++ b/docs/_combo_box_8h_source.html @@ -0,0 +1,187 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/ComboBox.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
ComboBox.h
+
+
+
1#pragma once
+
2
+
3#include "ItemsControl.h"
+
4
+
5namespace sw
+
6{
+
+ +
11 {
+
12 private:
+
16 bool _isTextChanged = false;
+
17
+
18 public:
+ +
23
+
24 public:
+ +
29
+
30 protected:
+
34 virtual int GetItemsCount() override;
+
35
+
39 virtual int GetSelectedIndex() override;
+
40
+
44 virtual void SetSelectedIndex(int index) override;
+
45
+
49 virtual std::wstring GetSelectedItem() override;
+
50
+
54 virtual std::wstring &GetText() override;
+
55
+
60 virtual void SetText(const std::wstring &value) override;
+
61
+
66 virtual void OnCommand(int code) override;
+
67
+
71 virtual void OnSelectionChanged() override;
+
72
+
73 public:
+
77 virtual void Clear() override;
+
78
+
83 virtual std::wstring GetItemAt(int index) override;
+
84
+
90 virtual bool AddItem(const std::wstring &item) override;
+
91
+
98 virtual bool InsertItem(int index, const std::wstring &item) override;
+
99
+
106 virtual bool UpdateItem(int index, const std::wstring &newValue) override;
+
107
+
113 virtual bool RemoveItemAt(int index) override;
+
114
+ +
119
+ +
124 };
+
+
125}
+
组合框
Definition ComboBox.h:11
+
virtual void SetSelectedIndex(int index) override
设置选中项索引
+
virtual int GetSelectedIndex() override
选中项的索引,当无选中项时为-1
+
virtual bool AddItem(const std::wstring &item) override
添加新的子项
+
void CloseDropDown()
关闭下拉列表
+
virtual void SetText(const std::wstring &value) override
设置Text属性时调用该函数
+
void ShowDropDown()
显示下拉列表
+
virtual void OnCommand(int code) override
当父窗口接收到控件的WM_COMMAND时调用该函数
+
virtual bool UpdateItem(int index, const std::wstring &newValue) override
更新指定位置的子项
+
virtual std::wstring GetItemAt(int index) override
获取指定索引处子项的值
+
const Property< bool > IsEditable
组合框内容是否可编辑,更新该属性会导致已添加的子项被清空
Definition ComboBox.h:22
+
virtual std::wstring & GetText() override
获取可编辑状态下的编辑框文本内容
+
virtual void OnSelectionChanged() override
选中项改变时调用该函数
+
virtual bool InsertItem(int index, const std::wstring &item) override
添加子项到指定索引
+
ComboBox()
初始化组合框
+
virtual std::wstring GetSelectedItem() override
获取选中项
+
virtual bool RemoveItemAt(int index) override
移除指定索引处的子项
+
virtual void Clear() override
清空所有子项
+
virtual int GetItemsCount() override
获取子项数
+
表示可用于呈现一组项的控件
Definition ItemsControl.h:20
+
属性
Definition Property.h:127
+
+
+ + + + diff --git a/docs/_context_menu_8h_source.html b/docs/_context_menu_8h_source.html new file mode 100644 index 00000000..00475a7e --- /dev/null +++ b/docs/_context_menu_8h_source.html @@ -0,0 +1,143 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/ContextMenu.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
ContextMenu.h
+
+
+
1#pragma once
+
2
+
3#include "MenuBase.h"
+
4
+
5namespace sw
+
6{
+
+
10 class ContextMenu : public MenuBase
+
11 {
+
12 public:
+ +
17
+
21 ContextMenu(std::initializer_list<MenuItem> items);
+
22
+
28 static bool IsContextMenuID(int id);
+
29
+
30 protected:
+
36 virtual int IndexToID(int index) override;
+
37
+
43 virtual int IDToIndex(int id) override;
+
44 };
+
+
45}
+
上下文菜单
Definition ContextMenu.h:11
+
ContextMenu(std::initializer_list< MenuItem > items)
初始化上下文菜单并设置菜单项
+
virtual int IDToIndex(int id) override
根据ID获取索引
+
static bool IsContextMenuID(int id)
判断ID是否为上下文菜单项的ID
+
ContextMenu()
初始化上下文菜单
+
virtual int IndexToID(int index) override
根据索引获取ID
+
菜单类型的基类
Definition MenuBase.h:17
+
std::vector< std::shared_ptr< MenuItem > > items
菜单项集合
Definition MenuBase.h:53
+
+
+ + + + diff --git a/docs/_control_8h_source.html b/docs/_control_8h_source.html new file mode 100644 index 00000000..4bb04671 --- /dev/null +++ b/docs/_control_8h_source.html @@ -0,0 +1,140 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/Control.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Control.h
+
+
+
1#pragma once
+
2
+
3#include "UIElement.h"
+
4
+
5namespace sw
+
6{
+
+
10 class Control : virtual public UIElement
+
11 {
+
12 protected:
+ +
17
+
18 public:
+
22 virtual ~Control() = 0;
+
23
+
24 protected:
+ +
29
+
33 virtual void HandleChenged();
+
34 };
+
+
35}
+
控件
Definition Control.h:11
+
virtual ~Control()=0
析构函数,这里用纯虚函数使该类成为抽象类
+
void ResetHandle()
销毁控件句柄并重新初始化,该操作会创建新的句柄并设置样式、文本、字体等
+
virtual void HandleChenged()
控件句柄发生改变时调用该函数
+
Control()
初始化控件
+
表示界面中的元素
Definition UIElement.h:24
+
+
+ + + + diff --git a/docs/_cursor_8h_source.html b/docs/_cursor_8h_source.html new file mode 100644 index 00000000..7493d796 --- /dev/null +++ b/docs/_cursor_8h_source.html @@ -0,0 +1,161 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/Cursor.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Cursor.h
+
+
+
1#pragma once
+
2
+
3#include <Windows.h>
+
4#include <string>
+
5
+
6namespace sw
+
7{
+
12 enum class StandardCursor {
+
13 Arrow = 32512, // Normal select
+
14 IBeam = 32513, // Text select
+
15 Wait = 32514, // Busy
+
16 Cross = 32515, // Precision select
+
17 UpArrow = 32516, // Alternate select
+
18 Handwriting = 32631, // Handwriting
+
19 SizeNWSE = 32642, // Diagonal resize 1
+
20 SizeNESW = 32643, // Diagonal resize 2
+
21 SizeWE = 32644, // Horizontal resize
+
22 SizeNS = 32645, // Vertical resize
+
23 SizeAll = 32646, // Move
+
24 No = 32648, // Unavailable
+
25 Hand = 32649, // Link select
+
26 AppStarting = 32650, // Working in background
+
27 Help = 32651, // Help select
+
28 Pin = 32671, // Location select
+
29 Person = 32672, // Person select
+
30 };
+
31
+
+ +
36 {
+
37 private:
+
38 CursorHelper() = delete;
+
39
+
40 public:
+
46 static HCURSOR GetCursorHandle(StandardCursor cursor);
+
47
+
54 static HCURSOR GetCursorHandle(HINSTANCE hInstance, int resourceId);
+
55
+
62 static HCURSOR GetCursorHandle(HINSTANCE hInstance, const std::wstring &cursorName);
+
63
+
69 static HCURSOR GetCursorHandle(const std::wstring &fileName);
+
70 };
+
+
71}
+
用于获取鼠标句柄的工具类
Definition Cursor.h:36
+
static HCURSOR GetCursorHandle(HINSTANCE hInstance, int resourceId)
从指定模块中获取鼠标句柄
+
static HCURSOR GetCursorHandle(HINSTANCE hInstance, const std::wstring &cursorName)
从指定模块中获取鼠标句柄
+
static HCURSOR GetCursorHandle(const std::wstring &fileName)
从文件加载鼠标句柄
+
static HCURSOR GetCursorHandle(StandardCursor cursor)
获取系统标准鼠标样式句柄
+
+
+ + + + diff --git a/docs/_dictionary_8h_source.html b/docs/_dictionary_8h_source.html new file mode 100644 index 00000000..ff82d5c9 --- /dev/null +++ b/docs/_dictionary_8h_source.html @@ -0,0 +1,271 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/Dictionary.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Dictionary.h
+
+
+
1#pragma once
+
2
+
3#include "Utils.h"
+
4#include <map>
+
5#include <memory>
+
6#include <string>
+
7
+
8namespace sw
+
9{
+
10 template <typename TKey, typename TVal>
+
11 class Dictionary; // 向前声明
+
12
+
16 template <typename TVal>
+
17 using StrDictionary = Dictionary<std::wstring, TVal>;
+
18
+
22 template <typename TKey, typename TVal>
+
+ +
24 {
+
25 private:
+
29 std::shared_ptr<std::map<TKey, TVal>> _pMap;
+
30
+
31 public:
+
+ +
36 : _pMap(new std::map<TKey, TVal>)
+
37 {
+
38 }
+
+
39
+
+
43 Dictionary(std::initializer_list<std::pair<const TKey, TVal>> list)
+
44 : Dictionary()
+
45 {
+
46 this->_pMap->insert(list);
+
47 }
+
+
48
+
+
52 auto begin() const
+
53 {
+
54 return this->_pMap->begin();
+
55 }
+
+
56
+
+
60 auto end() const
+
61 {
+
62 return this->_pMap->end();
+
63 }
+
+
64
+
+
68 auto rbegin() const
+
69 {
+
70 return this->_pMap->rbegin();
+
71 }
+
+
72
+
+
76 auto rend() const
+
77 {
+
78 return this->_pMap->rend();
+
79 }
+
+
80
+
+
85 auto &operator[](const TKey &key) const
+
86 {
+
87 return this->_pMap->operator[](key);
+
88 }
+
+
89
+
+
93 friend bool operator==(const Dictionary &left, const Dictionary &right)
+
94 {
+
95 return left._pMap == right._pMap;
+
96 }
+
+
97
+
+
101 friend bool operator!=(const Dictionary &left, const Dictionary &right)
+
102 {
+
103 return left._pMap != right._pMap;
+
104 }
+
+
105
+
+
109 friend std::wostream &operator<<(std::wostream &wos, const Dictionary &dic)
+
110 {
+
111 wos << Utils::BuildStr(*dic._pMap);
+
112 return wos;
+
113 }
+
+
114
+
+
118 int Count() const
+
119 {
+
120 return (int)this->_pMap->size();
+
121 }
+
+
122
+
+
126 bool IsEmpty() const
+
127 {
+
128 return this->_pMap->empty();
+
129 }
+
+
130
+
+
135 bool ContainsKey(const TKey &key) const
+
136 {
+
137 return this->_pMap->count(key);
+
138 }
+
+
139
+
+
144 void Remove(const TKey &key) const
+
145 {
+
146 this->_pMap->erase(key);
+
147 }
+
+
148
+
+
152 void Clear() const
+
153 {
+
154 this->_pMap->clear();
+
155 }
+
+
156
+
+ +
161 {
+ +
163 dic._pMap->insert(this->_pMap->begin(), this->_pMap->end());
+
164 return dic;
+
165 }
+
+
166 };
+
+
167}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
void Clear() const
清空字典
Definition Dictionary.h:152
+
friend std::wostream & operator<<(std::wostream &wos, const Dictionary &dic)
支持Utils::BuildStr
Definition Dictionary.h:109
+
bool IsEmpty() const
字典是否为空
Definition Dictionary.h:126
+
Dictionary(std::initializer_list< std::pair< const TKey, TVal > > list)
使用初始化列表
Definition Dictionary.h:43
+
auto & operator[](const TKey &key) const
获取或设置值
Definition Dictionary.h:85
+
bool ContainsKey(const TKey &key) const
是否存在某个键值
Definition Dictionary.h:135
+
Dictionary()
初始化字典
Definition Dictionary.h:35
+
int Count() const
获取键值对个数
Definition Dictionary.h:118
+
auto end() const
正向迭代器结束
Definition Dictionary.h:60
+
friend bool operator!=(const Dictionary &left, const Dictionary &right)
判断是否不是同一个字典
Definition Dictionary.h:101
+
auto begin() const
正向迭代器开始
Definition Dictionary.h:52
+
friend bool operator==(const Dictionary &left, const Dictionary &right)
判断是否为同一个字典
Definition Dictionary.h:93
+
auto rbegin() const
反向迭代器开始
Definition Dictionary.h:68
+
auto rend() const
反向迭代器结束
Definition Dictionary.h:76
+
Dictionary Copy() const
复制当前字典
Definition Dictionary.h:160
+
void Remove(const TKey &key) const
移除指定键值对
Definition Dictionary.h:144
+
static std::wstring BuildStr(const Args &...args)
拼接字符串,也可使用此函数将其他类型转为wstring
Definition Utils.h:69
+
+
+ + + + diff --git a/docs/_dip_8h_source.html b/docs/_dip_8h_source.html new file mode 100644 index 00000000..2f8f6157 --- /dev/null +++ b/docs/_dip_8h_source.html @@ -0,0 +1,151 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/Dip.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Dip.h
+
+
+
1#pragma once
+
2
+
3#include "Property.h"
+
4#include <Windows.h>
+
5
+
6namespace sw
+
7{
+
+
11 class Dip
+
12 {
+
13 private:
+
14 Dip() = delete;
+
15
+
16 public:
+ +
21
+ +
26
+
30 static void Update(int dpiX, int dpiY);
+
31
+
35 static double PxToDipX(int px);
+
36
+
40 static double PxToDipY(int px);
+
41
+
45 static int DipToPxX(double dip);
+
46
+
50 static int DipToPxY(double dip);
+
51 };
+
+
52}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
用于处理设备独立像素(dip)与屏幕像素之间的转换
Definition Dip.h:12
+
static void Update(int dpiX, int dpiY)
dpi改变时调用该函数更新缩放比例
+
static double PxToDipY(int px)
像素转dip(垂直方向)
+
static const ReadOnlyProperty< double > ScaleX
水平缩放比例
Definition Dip.h:20
+
static int DipToPxX(double dip)
dip转像素(水平方向)
+
static const ReadOnlyProperty< double > ScaleY
垂直缩放比例
Definition Dip.h:25
+
static double PxToDipX(int px)
像素转dip(水平方向)
+
static int DipToPxY(double dip)
dip转像素(垂直方向)
+
+
+ + + + diff --git a/docs/_dock_layout_8h_source.html b/docs/_dock_layout_8h_source.html new file mode 100644 index 00000000..8f490ccf --- /dev/null +++ b/docs/_dock_layout_8h_source.html @@ -0,0 +1,149 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/DockLayout.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
DockLayout.h
+
+
+
1#pragma once
+
2
+
3#include "LayoutHost.h"
+
4#include <cstdint>
+
5
+
6namespace sw
+
7{
+
+
11 class DockLayout : public LayoutHost
+
12 {
+
13 public:
+
+ +
18 Left, // 左边
+
19 Top, // 顶边
+
20 Right, // 右边
+
21 Bottom, // 底边
+
22 };
+
+
23
+
24 public:
+
28 bool lastChildFill = true;
+
29
+
33 virtual void MeasureOverride(Size &availableSize) override;
+
34
+
38 virtual void ArrangeOverride(Size &finalSize) override;
+
39 };
+
+
40}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
停靠布局
Definition DockLayout.h:12
+
virtual void ArrangeOverride(Size &finalSize) override
安排控件
+
DockLayoutTag
Dock布局标记
Definition DockLayout.h:17
+
virtual void MeasureOverride(Size &availableSize) override
计算所需尺寸
+
bool lastChildFill
最后一个子元素是否填充剩余空间
Definition DockLayout.h:28
+
用于托管元素的布局方式的对象类型,是所有布局方式类型的基类
Definition LayoutHost.h:11
+
尺寸
Definition Size.h:11
+
+
+ + + + diff --git a/docs/_dock_panel_8h_source.html b/docs/_dock_panel_8h_source.html new file mode 100644 index 00000000..7ef3fe75 --- /dev/null +++ b/docs/_dock_panel_8h_source.html @@ -0,0 +1,152 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/DockPanel.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
DockPanel.h
+
+
+
1#pragma once
+
2
+
3#include "DockLayout.h"
+
4#include "Panel.h"
+
5
+
6namespace sw
+
7{
+
+
11 class DockPanel : public Panel
+
12 {
+
13 private:
+
17 DockLayout _dockLayout = DockLayout();
+
18
+
19 public:
+ +
24
+
25 public:
+ +
30
+ +
35
+ +
40
+
41 protected:
+
45 virtual LayoutHost *GetDefaultLayout() override;
+
46 };
+
+
47}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
停靠布局
Definition DockLayout.h:12
+
DockLayoutTag
Dock布局标记
Definition DockLayout.h:17
+
停靠面板
Definition DockPanel.h:12
+
static DockLayout::DockLayoutTag GetDock(UIElement &element)
获取指定元素的Dock
+
DockPanel()
初始化DockPanel
+
static void SetDock(UIElement &element, DockLayout::DockLayoutTag dock)
设置指定元素的Dock
+
const Property< bool > LastChildFill
最后一个子元素是否填充剩余空间
Definition DockPanel.h:23
+
virtual LayoutHost * GetDefaultLayout() override
获取默认布局对象
+
用于托管元素的布局方式的对象类型,是所有布局方式类型的基类
Definition LayoutHost.h:11
+
面板
Definition Panel.h:22
+
表示界面中的元素
Definition UIElement.h:24
+
+
+ + + + diff --git a/docs/_fill_layout_8h_source.html b/docs/_fill_layout_8h_source.html new file mode 100644 index 00000000..0323bd60 --- /dev/null +++ b/docs/_fill_layout_8h_source.html @@ -0,0 +1,134 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/FillLayout.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
FillLayout.h
+
+
+
1#pragma once
+
2
+
3#include "LayoutHost.h"
+
4
+
5namespace sw
+
6{
+
+
10 class FillLayout : public LayoutHost
+
11 {
+
12 public:
+
16 virtual void MeasureOverride(Size &availableSize) override;
+
17
+
21 virtual void ArrangeOverride(Size &finalSize) override;
+
22 };
+
+
23}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
一种将全部元素都铺满的布局,一般用于在只有一个子元素的时候将该元素铺满整个可用区域
Definition FillLayout.h:11
+
virtual void MeasureOverride(Size &availableSize) override
计算所需尺寸
+
virtual void ArrangeOverride(Size &finalSize) override
安排控件
+
用于托管元素的布局方式的对象类型,是所有布局方式类型的基类
Definition LayoutHost.h:11
+
尺寸
Definition Size.h:11
+
+
+ + + + diff --git a/docs/_font_8h_source.html b/docs/_font_8h_source.html new file mode 100644 index 00000000..c5bbb99f --- /dev/null +++ b/docs/_font_8h_source.html @@ -0,0 +1,291 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/Font.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Font.h
+
+
+
1#pragma once
+
2
+
3#include <Windows.h>
+
4#include <cstdint>
+
5#include <string>
+
6
+
7namespace sw
+
8{
+
12 enum class FontWeight : int {
+
13 DontCare = 0,
+
14 Thin = 100,
+
15 ExtraLight = 200,
+
16 UltraLight = 200,
+
17 Light = 300,
+
18 Normal = 400,
+
19 Regular = 400,
+
20 Medium = 500,
+
21 SemiBold = 600,
+
22 DemiBold = 600,
+
23 Bold = 700,
+
24 ExtraBold = 800,
+
25 UltraBold = 800,
+
26 Heavy = 900,
+
27 Black = 900,
+
28 };
+
29
+
33 enum class FontCharSet : uint8_t {
+
34 ANSI = ANSI_CHARSET,
+
35 Baltic = BALTIC_CHARSET,
+
36 CheneseBig5 = CHINESEBIG5_CHARSET,
+
37 Default = DEFAULT_CHARSET,
+
38 EastEurope = EASTEUROPE_CHARSET,
+
39 GB2312 = GB2312_CHARSET,
+
40 Greek = GREEK_CHARSET,
+
41 Hangul = HANGUL_CHARSET,
+
42 Mac = MAC_CHARSET,
+
43 Oem = OEM_CHARSET,
+
44 Russian = RUSSIAN_CHARSET,
+
45 ShiftJIS = SHIFTJIS_CHARSET,
+
46 Symbol = SYMBOL_CHARSET,
+
47 Turkish = TURKISH_CHARSET,
+
48 Vietnamese = VIETNAMESE_CHARSET,
+
49
+
50 // Windows 的朝鲜语版本:
+
51 Johab = JOHAB_CHARSET,
+
52
+
53 // Windows 中东语言版本:
+
54 Arabic = ARABIC_CHARSET,
+
55 Hebrew = HEBREW_CHARSET,
+
56
+
57 // Windows 的泰语版本:
+
58 Thai = THAI_CHARSET,
+
59 };
+
60
+
64 enum class FontOutPrecision : uint8_t {
+
65 Character = OUT_CHARACTER_PRECIS, // 未使用。
+
66 Default = OUT_DEFAULT_PRECIS, // 指定默认字体映射器行为。
+
67 Device = OUT_DEVICE_PRECIS, // 当系统包含多个同名字体时,指示字体映射器选择设备字体。
+
68 Outline = OUT_OUTLINE_PRECIS, // 此值指示字体映射器从 TrueType 和其他基于大纲的字体中进行选择。
+
69 PostScriptOnly = OUT_PS_ONLY_PRECIS, // 指示字体映射器仅从 PostScript 字体中进行选择。 如果系统中没有安装 PostScript 字体,字体映射器将返回到默认行为。
+
70 Raster = OUT_RASTER_PRECIS, // 当系统包含多个同名字体时,指示字体映射器选择光栅字体。
+
71 String = OUT_STRING_PRECIS, // 字体映射器不使用此值,但在枚举光栅字体时会返回此值。
+
72 Stroke = OUT_STROKE_PRECIS, // 字体映射器不使用此值,但在枚举 TrueType、其他基于轮廓的字体和矢量字体时返回此值。
+
73 TrueTypeOnly = OUT_TT_ONLY_PRECIS, // 指示字体映射器仅从 TrueType 字体中进行选择。 如果系统中没有安装 TrueType 字体,字体映射器将返回到默认行为。
+
74 TrueType = OUT_TT_PRECIS, // 当系统包含多个同名字体时,指示字体映射器选择 TrueType 字体。
+
75 };
+
76
+
80 enum class FontClipPrecision : uint8_t {
+
81 CharacterPrecis = CLIP_CHARACTER_PRECIS, // 未使用。
+
82 DefaultPrecis = CLIP_DEFAULT_PRECIS, // 指定默认剪辑行为。
+
83
+
84#if defined(CLIP_DFA_DISABLE)
+
85 DFA_Disable = CLIP_DFA_DISABLE, // Windows XP SP1: 关闭字体的字体关联。 请注意,此标志不保证在 Windows Server 2003 之后对任何平台产生任何影响。
+
86#endif
+
87
+
88 Embedded = CLIP_EMBEDDED, // 必须指定此标志才能使用嵌入的只读字体。
+
89 LH_Angles = CLIP_LH_ANGLES, // 使用此值时,所有字体的旋转取决于坐标系的方向是左手还是右手。如果未使用,设备字体始终逆时针旋转,但其他字体的旋转取决于坐标系的方向。
+
90 Mask = CLIP_MASK, // 未使用。
+
91
+
92#if defined(CLIP_DFA_OVERRIDE)
+
93 DFA_Override = CLIP_DFA_OVERRIDE, // 关闭字体的字体关联。 这与CLIP_DFA_DISABLE相同,但在某些情况下可能会有问题:建议使用的标志是CLIP_DFA_DISABLE。
+
94#endif
+
95
+
96 StrokePrecis = CLIP_STROKE_PRECIS, // 字体映射器不使用,但在枚举光栅、矢量或 TrueType 字体时返回。 为了兼容,枚举字体时始终返回此值。
+
97 TT_Always = CLIP_TT_ALWAYS, // 未使用。
+
98 };
+
99
+
103 enum class FontQuality : uint8_t {
+
104 AntiAliased = ANTIALIASED_QUALITY, // 如果字体支持该字体,并且字体大小不是太小或太大,则字体始终为抗锯齿。
+
105 ClearType = CLEARTYPE_QUALITY, // 如果设置,则尽可能使用 ClearType 抗锯齿方法呈现文本。
+
106 Default = DEFAULT_QUALITY, // 字体的外观并不重要。
+
107 Draft = DRAFT_QUALITY, // 字体的外观不如使用PROOF_QUALITY时重要。 对于 GDI 光栅字体,会启用缩放,这意味着可以使用更多字号,但质量可能较低。 如有必要,将合成粗体、斜体、下划线和删除线字体。
+
108 NoAntiAliased = NONANTIALIASED_QUALITY, // 字体永远不会抗锯齿。
+
109 Proof = PROOF_QUALITY, // 字体的字符质量比逻辑字体属性的精确匹配更重要。 对于 GDI 光栅字体,将禁用缩放,并选择大小最接近的字体。 虽然在使用PROOF_QUALITY时可能无法精确映射所选字号,但字体质量较高,外观不会失真。 如有必要,将合成粗体、斜体、下划线和删除线字体。
+
110 };
+
111
+
115 enum class FontPitch : uint8_t {
+
116 Default = DEFAULT_PITCH,
+
117 Fixed = FIXED_PITCH,
+
118 Variable = VARIABLE_PITCH,
+
119 };
+
120
+
124 enum class FontFamily : uint8_t {
+
125 Decorative = FF_DECORATIVE, // 新奇字体。 例如 Old English。
+
126 DontCare = FF_DONTCARE, // 使用默认字体。
+
127 Modern = FF_MODERN, // 具有固定笔划宽度的字体 (带衬线或无衬线) 的空白字体。 Monospace 字体通常是新式字体。 例如,Pica、Elite 和 CourierNew。
+
128 Roman = FF_ROMAN, // 笔划宽度可变的字体 (比例) 和衬线。 例如 MS Serif。
+
129 Script = FF_SCRIPT, // 设计为类似于手写的字体。 例如 Script 和 Cursive。
+
130 Swiss = FF_SWISS, // 笔划宽度可变的字体 (成比例) 且不带衬线。 例如 MS Sans Serif。
+
131 };
+
132
+
+
136 class Font
+
137 {
+
138 public:
+
142 std::wstring name = L"";
+
143
+
147 double size = 12;
+
148
+
152 int escapement = 0;
+
153
+
157 int orientation = 0;
+
158
+
162 FontWeight weight = FontWeight::DontCare;
+
163
+
167 bool italic = false;
+
168
+
172 bool underline = false;
+
173
+
177 bool strikeOut = false;
+
178
+
182 FontCharSet charSet = FontCharSet::Default;
+
183
+
187 FontOutPrecision outPrecision = FontOutPrecision::Default;
+
188
+
192 FontClipPrecision clipPrecision = FontClipPrecision::DefaultPrecis;
+
193
+
197 FontQuality quality = FontQuality::Default;
+
198
+
202 /*uint8_t pitchAndFamily;*/
+
203
+
207 FontPitch pitch = FontPitch::Default;
+
208
+
212 FontFamily family = FontFamily::DontCare;
+
213
+
214 public:
+
215 Font();
+
216 Font(const std::wstring &name, FontCharSet charSet);
+
217 Font(const std::wstring &name, double size = 12, FontWeight weight = FontWeight::DontCare);
+
218 Font(const LOGFONTW &logFont);
+
219 operator LOGFONTW() const;
+
220
+ +
225
+ +
230
+
236 static Font &GetDefaultFont(bool update = false);
+
237 };
+
+
238}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
字体类
Definition Font.h:137
+
FontFamily family
字体系列
Definition Font.h:212
+
bool strikeOut
是否有删除线
Definition Font.h:177
+
std::wstring name
字体的字体名称,此字符串的长度不能超过 32
Definition Font.h:142
+
FontClipPrecision clipPrecision
裁剪精度
Definition Font.h:192
+
static Font GetFont(HFONT hFont)
通过HFONT获取字体信息
+
bool underline
是否有下划线
Definition Font.h:172
+
int escapement
转义向量与设备的 x 轴之间的角度(以十分之一度为单位)
Definition Font.h:152
+
FontQuality quality
输出质量
Definition Font.h:197
+
FontOutPrecision outPrecision
输出精度
Definition Font.h:187
+
FontWeight weight
字体的粗细,范围为 0 到 1000
Definition Font.h:162
+
bool italic
是否为斜体
Definition Font.h:167
+
double size
字体大小,以dip为单位
Definition Font.h:147
+
FontCharSet charSet
字符集
Definition Font.h:182
+
static Font & GetDefaultFont(bool update=false)
获取默认字体,可修改返回的引用来更改控件的默认字体,当首次调用或参数update为true时会获取系统默认字体(已创建的控件字体不会因此改变)
+
HFONT CreateHandle()
创建HFONT句柄
+
FontPitch pitch
字体的间距和系列
Definition Font.h:207
+
int orientation
每个字符的基线和设备 x 轴之间的角度(以十分之一度为单位)
Definition Font.h:157
+
+
+ + + + diff --git a/docs/_grid_8h_source.html b/docs/_grid_8h_source.html new file mode 100644 index 00000000..38e7e5bd --- /dev/null +++ b/docs/_grid_8h_source.html @@ -0,0 +1,169 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/Grid.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Grid.h
+
+
+
1#pragma once
+
2
+
3#include "GridLayout.h"
+
4#include "Panel.h"
+
5#include <initializer_list>
+
6
+
7namespace sw
+
8{
+
+
12 class Grid : public Panel
+
13 {
+
14 private:
+
18 GridLayout _gridLayout = GridLayout();
+
19
+
20 public:
+ +
25
+
29 void AddRow(const GridRow &row);
+
30
+
34 void SetRows(std::initializer_list<GridRow> rows);
+
35
+
39 void AddColumn(const GridColumn &col);
+
40
+
44 void SetColumns(std::initializer_list<GridColumn> cols);
+
45
+
49 void ClearRows();
+
50
+ +
55
+ +
60
+ +
65
+
66 protected:
+
70 virtual LayoutHost *GetDefaultLayout() override;
+
71 };
+
+
72}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
由列和行组成的灵活的网格区域
Definition Grid.h:13
+
void AddRow(const GridRow &row)
添加行
+
void SetRows(std::initializer_list< GridRow > rows)
设置行信息
+
void ClearColumns()
清空列
+
static void SetGridLayoutTag(UIElement &element, const GridLayoutTag &tag)
给指定元素设置网格布局标记
+
virtual LayoutHost * GetDefaultLayout() override
获取默认布局对象
+
void AddColumn(const GridColumn &col)
添加列
+
void SetColumns(std::initializer_list< GridColumn > cols)
设置列信息
+
static GridLayoutTag GetGridLayoutTag(UIElement &element)
获取指定元素的网格布局标记
+
Grid()
初始化Grid
+
void ClearRows()
清空行
+
网格布局方式
Definition GridLayout.h:191
+
用于托管元素的布局方式的对象类型,是所有布局方式类型的基类
Definition LayoutHost.h:11
+
面板
Definition Panel.h:22
+
表示界面中的元素
Definition UIElement.h:24
+
网格中的列信息
Definition GridLayout.h:130
+
网格布局方式的布局标记
Definition GridLayout.h:11
+
网格中的行信息
Definition GridLayout.h:70
+
+
+ + + + diff --git a/docs/_grid_layout_8h_source.html b/docs/_grid_layout_8h_source.html new file mode 100644 index 00000000..da14b869 --- /dev/null +++ b/docs/_grid_layout_8h_source.html @@ -0,0 +1,300 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/GridLayout.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
GridLayout.h
+
+
+
1#pragma once
+
2
+
3#include "LayoutHost.h"
+
4#include "List.h"
+
5
+
6namespace sw
+
7{
+ +
57
+
61 enum class GridRCType {
+
62 FixSize, // 固定大小
+
63 AutoSize, // 自动大小
+
64 FillRemain, // 填充剩余空间
+
65 };
+
66
+
+
70 struct GridRow {
+
74 GridRCType type;
+
75
+
79 double height;
+
80
+ +
85
+
89 GridRow(GridRCType type, double height);
+
90
+
94 GridRow(double height);
+
95 };
+
+
96
+
+
100 struct FixSizeGridRow : public GridRow {
+ +
105 };
+
+
106
+
+
110 struct AutoSizeGridRow : public GridRow {
+ +
115 };
+
+
116
+
+
120 struct FillRemainGridRow : public GridRow {
+
124 FillRemainGridRow(double proportion = 1);
+
125 };
+
+
126
+
+
130 struct GridColumn {
+
134 GridRCType type;
+
135
+
139 double width;
+
140
+ +
145
+
149 GridColumn(GridRCType type, double width);
+
150
+ +
155 };
+
+
156
+
+ + +
165 };
+
+
166
+
+ + +
175 };
+
+
176
+
+ +
184 FillRemainGridColumn(double proportion = 1);
+
185 };
+
+
186
+
+
190 class GridLayout : public LayoutHost
+
191 {
+
192 private:
+
196 struct _ChildInfo {
+
197 ILayout *instance; // 子元素对象
+
198 GridLayoutTag layoutTag; // 布局标记
+
199 GridRCType rowMeasureType; // 元素measure行时的类型
+
200 GridRCType colMeasureType; // 元素measure列时的类型
+
201 };
+
202
+
206 struct _RowInfo {
+
207 GridRow row; // 行
+
208 double size = 0; // 所需空间大小
+
209 double proportion = 0; // 类型为FillRemain时该字段保存该行的高度占比,范围为0~1
+
210 };
+
211
+
215 struct _ColInfo {
+
216 GridColumn col; // 列
+
217 double size = 0; // 所需空间大小
+
218 double proportion = 0; // 类型为FillRemain时该字段保存该列的宽度占比,范围为0~1
+
219 };
+
220
+
224 struct {
+
225 std::vector<_RowInfo> rowsInfo; // 行信息
+
226 std::vector<_ColInfo> colsInfo; // 列信息
+
227 std::vector<_ChildInfo> childrenInfo; // 子元素信息
+
228 std::vector<Rect> cells; // 保存格信息
+
229 } _internalData;
+
230
+
231 public:
+ +
236
+ +
241
+
245 virtual void MeasureOverride(Size &availableSize) override;
+
246
+
250 virtual void ArrangeOverride(Size &finalSize) override;
+
251
+
252 private:
+
256 void _UpdateInternalData();
+
257
+
261 Rect &_GetCell(int row, int col);
+
262 };
+
+
263}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
网格布局方式
Definition GridLayout.h:191
+
List< GridColumn > columns
列定义
Definition GridLayout.h:240
+
List< GridRow > rows
行定义
Definition GridLayout.h:235
+
virtual void ArrangeOverride(Size &finalSize) override
安排控件
+
virtual void MeasureOverride(Size &availableSize) override
计算所需尺寸
+
布局接口
Definition ILayout.h:13
+
用于托管元素的布局方式的对象类型,是所有布局方式类型的基类
Definition LayoutHost.h:11
+
自动宽度的列
Definition GridLayout.h:170
+
AutoSizeGridColumn()
初始化AutoSizeGridColumn
+
自动高度的行
Definition GridLayout.h:110
+
AutoSizeGridRow()
初始化AutoSizeGridRow
+
填充剩余宽度的列
Definition GridLayout.h:180
+
FillRemainGridColumn(double proportion=1)
初始化FillRemainGridColumn
+
填充剩余高度的行
Definition GridLayout.h:120
+
FillRemainGridRow(double proportion=1)
初始化FillRemainGridRow
+
固定宽度的列
Definition GridLayout.h:160
+
FixSizeGridColumn(double width)
初始化FixSizeGridColumn
+
固定高度的行
Definition GridLayout.h:100
+
FixSizeGridRow(double height)
初始化FixSizeGridRow
+
网格中的列信息
Definition GridLayout.h:130
+
GridColumn(double width)
固定大小的列
+
GridRCType type
类型
Definition GridLayout.h:134
+
GridColumn(GridRCType type, double width)
初始化GridColumn
+
GridColumn()
创建一个FillRemain的GridColumn
+
double width
宽度
Definition GridLayout.h:139
+
网格布局方式的布局标记
Definition GridLayout.h:11
+
GridLayoutTag()
GridLayoutTag默认值
+
uint16_t rowSpan
所跨行数
Definition GridLayout.h:25
+
uint16_t row
所在行
Definition GridLayout.h:15
+
GridLayoutTag(uint16_t row, uint16_t column)
初始化GridLayoutTag
+
uint16_t column
所在列
Definition GridLayout.h:20
+
uint16_t columnSpan
所跨列数
Definition GridLayout.h:30
+
GridLayoutTag(uint64_t layoutTag)
从LayoutTag创建
+
GridLayoutTag(uint16_t row, uint16_t column, uint16_t rowSpan, uint16_t columnSpan)
初始化GridLayoutTag
+
网格中的行信息
Definition GridLayout.h:70
+
GridRow(GridRCType type, double height)
初始化GridRow
+
GridRow()
创建一个FillRemain的GridRow
+
GridRow(double height)
固定大小的行
+
GridRCType type
类型
Definition GridLayout.h:74
+
double height
高度
Definition GridLayout.h:79
+
表示一个矩形区域
Definition Rect.h:13
+
尺寸
Definition Size.h:11
+
+
+ + + + diff --git a/docs/_group_box_8h_source.html b/docs/_group_box_8h_source.html new file mode 100644 index 00000000..99602de3 --- /dev/null +++ b/docs/_group_box_8h_source.html @@ -0,0 +1,129 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/GroupBox.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
GroupBox.h
+
+
+
1#pragma once
+
2
+
3#include "PanelBase.h"
+
4
+
5namespace sw
+
6{
+
+
10 class GroupBox : public PanelBase
+
11 {
+
12 public:
+ +
17 };
+
+
18}
+
组合框
Definition GroupBox.h:11
+
GroupBox()
初始化组合框
+
面板类型的基类
Definition PanelBase.h:12
+
+
+ + + + diff --git a/docs/_hit_test_result_8h_source.html b/docs/_hit_test_result_8h_source.html new file mode 100644 index 00000000..8fc92725 --- /dev/null +++ b/docs/_hit_test_result_8h_source.html @@ -0,0 +1,147 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/HitTestResult.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
HitTestResult.h
+
+
+
1#pragma once
+
2
+
3#include <Windows.h>
+
4
+
5namespace sw
+
6{
+
10 enum class HitTestResult {
+
11 HitBorder = HTBORDER, // 在没有大小边界的窗口边框中。
+
12 HitBottom = HTBOTTOM, // 在可调整大小的窗口的下水平边框中(用户可以单击鼠标以垂直调整窗口大小)。
+
13 HitBottomLeft = HTBOTTOMLEFT, // 在可调整大小的窗口的边框左下角(用户可以单击鼠标以对角线调整窗口大小)。
+
14 HitBottomRight = HTBOTTOMRIGHT, // 在可调整大小的窗口的边框右下角(用户可以单击鼠标以对角线调整窗口大小)。
+
15 HitCaption = HTCAPTION, // 在标题栏中。
+
16 HitClient = HTCLIENT, // 在客户端区中。
+
17 HitClose = HTCLOSE, // 在关闭按钮中。
+
18 HitError = HTERROR, // 在屏幕背景上或窗口之间的分割线上(与 HTNOWHERE 相同,只是 DefWindowProc 函数会生成系统蜂鸣音以指示错误)。
+
19 HitGrowBox = HTGROWBOX, // 在大小框中(与 HTSIZE 相同)。
+
20 HitHelp = HTHELP, // 在帮助按钮中。
+
21 HitHScroll = HTHSCROLL, // 在水平滚动条中。
+
22 HitLeft = HTLEFT, // 在可调整大小的窗口的左边框中(用户可以单击鼠标以水平调整窗口大小)。
+
23 HitMenu = HTMENU, // 在菜单中。
+
24 HitMaxButton = HTMAXBUTTON, // 在最大化按钮中。
+
25 HitMinButton = HTMINBUTTON, // 在最小化按钮中。
+
26 HitNoWhere = HTNOWHERE, // 在屏幕背景上,或在窗口之间的分隔线上。
+
27 HitReduce = HTREDUCE, // 在最小化按钮中。
+
28 HitRight = HTRIGHT, // 在可调整大小的窗口的右左边框中(用户可以单击鼠标以水平调整窗口大小)。
+
29 HitSize = HTSIZE, // 在大小框中(与 HTGROWBOX 相同)。
+
30 HitSysMenu = HTSYSMENU, // 在窗口菜单或子窗口的关闭按钮中。
+
31 HitTop = HTTOP, // 在窗口的上水平边框中。
+
32 HitTopLeft = HTTOPLEFT, // 在窗口边框的左上角。
+
33 HitTopRight = HTTOPRIGHT, // 在窗口边框的右上角。
+
34 HitTransparent = HTTRANSPARENT, // 在同一线程当前由另一个窗口覆盖的窗口中(消息将发送到同一线程中的基础窗口,直到其中一个窗口返回不是 HTTRANSPARENT 的代码)。
+
35 HitVScroll = HTVSCROLL, // 在垂直滚动条中。
+
36 HitZoom = HTZOOM, // 在最大化按钮中。
+
37 };
+
38}
+
+
+ + + + diff --git a/docs/_i_layout_8h_source.html b/docs/_i_layout_8h_source.html new file mode 100644 index 00000000..0a993623 --- /dev/null +++ b/docs/_i_layout_8h_source.html @@ -0,0 +1,151 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/ILayout.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
ILayout.h
+
+
+
1#pragma once
+
2
+
3#include "Rect.h"
+
4#include "Size.h"
+
5#include <cstdint>
+
6
+
7namespace sw
+
8{
+
+
12 class ILayout
+
13 {
+
14 public:
+
18 virtual uint64_t GetLayoutTag() = 0;
+
19
+
23 virtual int GetChildLayoutCount() = 0;
+
24
+
28 virtual ILayout &GetChildLayoutAt(int index) = 0;
+
29
+
33 virtual Size GetDesireSize() = 0;
+
34
+
38 virtual void SetDesireSize(const Size &size) = 0;
+
39
+
44 virtual void Measure(const Size &availableSize) = 0;
+
45
+
50 virtual void Arrange(const Rect &finalPosition) = 0;
+
51 };
+
+
52}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
布局接口
Definition ILayout.h:13
+
virtual Size GetDesireSize()=0
获取控件所需尺寸
+
virtual void Arrange(const Rect &finalPosition)=0
安排控件位置
+
virtual uint64_t GetLayoutTag()=0
获取布局标记
+
virtual int GetChildLayoutCount()=0
获取子控件的数量
+
virtual void SetDesireSize(const Size &size)=0
设置当前控件所需的尺寸
+
virtual ILayout & GetChildLayoutAt(int index)=0
获取对应索引处的子控件
+
virtual void Measure(const Size &availableSize)=0
测量控件所需尺寸
+
表示一个矩形区域
Definition Rect.h:13
+
尺寸
Definition Size.h:11
+
+
+ + + + diff --git a/docs/_i_tag_8h_source.html b/docs/_i_tag_8h_source.html new file mode 100644 index 00000000..fe4cbac3 --- /dev/null +++ b/docs/_i_tag_8h_source.html @@ -0,0 +1,132 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/ITag.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
ITag.h
+
+
+
1#pragma once
+
2
+
3#include <cstdint>
+
4
+
5namespace sw
+
6{
+
+
10 class ITag
+
11 {
+
12 public:
+
16 virtual uint64_t GetTag() = 0;
+
17
+
21 virtual void SetTag(uint64_t tag) = 0;
+
22 };
+
+
23}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
Tag接口
Definition ITag.h:11
+
virtual void SetTag(uint64_t tag)=0
设置Tag
+
virtual uint64_t GetTag()=0
获取Tag
+
+
+ + + + diff --git a/docs/_icon_8h_source.html b/docs/_icon_8h_source.html new file mode 100644 index 00000000..7d144f22 --- /dev/null +++ b/docs/_icon_8h_source.html @@ -0,0 +1,152 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/Icon.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Icon.h
+
+
+
1#pragma once
+
2
+
3#include <Windows.h>
+
4#include <string>
+
5
+
6namespace sw
+
7{
+
12 enum class StandardIcon {
+
13 Application = 32512, // Default application icon
+
14 Error = 32513, // Error icon
+
15 Question = 32514, // Question mark icon
+
16 Warning = 32515, // Warning icon
+
17 Information = 32516, // Information icon
+
18 WinLogo = 32517, // Windows logo icon
+
19 Shield = 32518, // Security shield icon
+
20 };
+
21
+
+ +
26 {
+
27 private:
+
28 IconHelper() = delete;
+
29
+
30 public:
+
36 static HICON GetIconHandle(StandardIcon icon);
+
37
+ +
45
+
52 static HICON GetIconHandle(HINSTANCE hInstance, const std::wstring &iconName);
+
53
+
59 static HICON GetIconHandle(const std::wstring &fileName);
+
60 };
+
+
61}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
用于获取图标句柄的工具类
Definition Icon.h:26
+
static HICON GetIconHandle(StandardIcon icon)
获取系统标准图标句柄
+
static HICON GetIconHandle(const std::wstring &fileName)
从文件加载图标句柄
+
static HICON GetIconHandle(HINSTANCE hInstance, const std::wstring &iconName)
从指定模块中获取图标句柄
+
static HICON GetIconHandle(HINSTANCE hInstance, int resourceId)
从指定模块中获取图标句柄
+
+
+ + + + diff --git a/docs/_items_control_8h_source.html b/docs/_items_control_8h_source.html new file mode 100644 index 00000000..209de5ea --- /dev/null +++ b/docs/_items_control_8h_source.html @@ -0,0 +1,218 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/ItemsControl.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
ItemsControl.h
+
+
+
1#pragma once
+
2
+
3#include "Control.h"
+
4
+
5namespace sw
+
6{
+
7 template <typename TItem>
+
8 class ItemsControl; // 向前声明
+
9
+
13 typedef ItemsControl<std::wstring> StrItemsControl;
+
14
+
18 template <typename TItem>
+
+
19 class ItemsControl : public Control
+
20 {
+
21 public:
+ +
26
+ +
31
+ +
36
+
37 protected:
+
+ +
42 : ItemsCount(
+
43 // get
+
44 [&]() -> const int & {
+
45 static int result;
+
46 result = this->GetItemsCount();
+
47 return result;
+
48 }),
+
49
+ +
51 // get
+
52 [&]() -> const int & {
+
53 static int result;
+
54 result = this->GetSelectedIndex();
+
55 return result;
+
56 },
+
57 // set
+
58 [&](const int &value) {
+
59 this->SetSelectedIndex(value);
+
60 }),
+
61
+ +
63 // get
+
64 [&]() -> const TItem & {
+
65 static TItem result;
+
66 result = this->GetSelectedItem();
+
67 return result;
+
68 })
+
69 {
+
70 }
+
+
71
+
+
75 virtual void OnSelectionChanged()
+
76 {
+
77 this->RaiseRoutedEvent(ItemsControl_SelectionChanged);
+
78 }
+
+
79
+
80 protected:
+
84 virtual int GetItemsCount() = 0;
+
85
+
89 virtual int GetSelectedIndex() = 0;
+
90
+
94 virtual void SetSelectedIndex(int index) = 0;
+
95
+
99 virtual TItem GetSelectedItem() = 0;
+
100
+
101 public:
+
105 virtual void Clear() = 0;
+
106
+
111 virtual TItem GetItemAt(int index) = 0;
+
112
+
118 virtual bool AddItem(const TItem &item) = 0;
+
119
+
126 virtual bool InsertItem(int index, const TItem &item) = 0;
+
127
+
134 virtual bool UpdateItem(int index, const TItem &newValue) = 0;
+
135
+
141 virtual bool RemoveItemAt(int index) = 0;
+
142 };
+
+
143}
+
控件
Definition Control.h:11
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
表示可用于呈现一组项的控件
Definition ItemsControl.h:20
+
virtual int GetItemsCount()=0
获取子项数
+
virtual TItem GetItemAt(int index)=0
获取指定索引处子项的值
+
ItemsControl()
初始化ItemsControl
Definition ItemsControl.h:41
+
virtual void Clear()=0
清空所有子项
+
virtual bool AddItem(const TItem &item)=0
添加新的子项
+
const ReadOnlyProperty< int > ItemsCount
项数
Definition ItemsControl.h:25
+
const ReadOnlyProperty< TItem > SelectedItem
选中项
Definition ItemsControl.h:35
+
virtual TItem GetSelectedItem()=0
获取选中项
+
virtual bool RemoveItemAt(int index)=0
移除指定索引处的子项
+
virtual void SetSelectedIndex(int index)=0
设置选中项索引
+
virtual void OnSelectionChanged()
选中项改变时调用该函数
Definition ItemsControl.h:75
+
virtual bool InsertItem(int index, const TItem &item)=0
添加子项到指定索引
+
virtual int GetSelectedIndex()=0
选中项的索引,当无选中项时为-1
+
const Property< int > SelectedIndex
选中项的索引,当无选中项时为-1
Definition ItemsControl.h:30
+
virtual bool UpdateItem(int index, const TItem &newValue)=0
更新指定位置的子项
+
void RaiseRoutedEvent(RoutedEventType eventType)
触发路由事件
+
+
+ + + + diff --git a/docs/_keys_8h_source.html b/docs/_keys_8h_source.html new file mode 100644 index 00000000..5c3dd1d9 --- /dev/null +++ b/docs/_keys_8h_source.html @@ -0,0 +1,366 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/Keys.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Keys.h
+
+
+
1#pragma once
+
2
+
3#include <Windows.h>
+
4#include <cstdint>
+
5
+
6namespace sw
+
7{
+
+
11 struct KeyFlags {
+
12 uint16_t repeatCount; // repeat count, > 0 if several keydown messages was combined into one message
+
13 uint8_t scanCode; // scan code
+
14 bool isExtendedKey; // extended-key flag, 1 if scancode has 0xE0 prefix
+
15 bool contextCode; // indicates whether the ALT key was down
+
16 bool previousKeyState; // indicates whether the key that generated the keystroke message was previously up or down
+
17 bool transitionState; // transition-state flag, 1 on keyup
+
18 KeyFlags(LPARAM lParam);
+
19 };
+
+
20
+
24 enum class VirtualKey {
+
25 MouseLeft = 0x01, // Left mouse button
+
26 MouseRight = 0x02, // Right mouse button
+
27 Cancel = 0x03, // Control-break processing
+
28 MouseMiddle = 0x04, // Middle mouse button (three-button mouse)
+
29 MouseX1 = 0x05, // X1 mouse button
+
30 MouseX2 = 0x06, // X2 mouse button
+
31
+
32 //- 0x07 Undefined
+
33
+
34 Backspace = 0x08, // BACKSPACE key
+
35 Tab = 0x09, // TAB key
+
36
+
37 //- 0x0A-0B Reserved
+
38
+
39 Clear = 0x0C, // CLEAR key
+
40 Enter = 0x0D, // ENTER key
+
41
+
42 //- 0x0E-0F Undefined
+
43
+
44 Shift = 0x10, // SHIFT key
+
45 Ctrl = 0x11, // CTRL key
+
46 Alt = 0x12, // ALT key
+
47 Pause = 0x13, // PAUSE key
+
48 CapsLock = 0x14, // CAPS LOCK key
+
49 Kana = 0x15, // IME Kana mode
+
50 Hanguel = 0x15, // IME Hanguel mode (maintained for compatibility; use VK_HANGUL)
+
51 Hangul = 0x15, // IME Hangul mode
+
52 IME_On = 0x16, // IME On
+
53 Junja = 0x17, // IME Junja mode
+
54 Final = 0x18, // IME final mode
+
55 Hanja = 0x19, // IME Hanja mode
+
56 KANJI = 0x19, // IME Kanji mode
+
57 IME_Off = 0x1A, // IME Off
+
58 Esc = 0x1B, // ESC key
+
59 Convert = 0x1C, // IME convert
+
60 Nonconvert = 0x1D, // IME nonconvert
+
61 Accept = 0x1E, // IME accept
+
62 ModeChange = 0x1F, // IME mode change request
+
63 Space = 0x20, // SPACEBAR
+
64 PageUp = 0x21, // PAGE UP key
+
65 PageDown = 0x22, // PAGE DOWN key
+
66 End = 0x23, // END key
+
67 Home = 0x24, // HOME key
+
68 Left = 0x25, // LEFT ARROW key
+
69 Up = 0x26, // UP ARROW key
+
70 Right = 0x27, // RIGHT ARROW key
+
71 Down = 0x28, // DOWN ARROW key
+
72 Select = 0x29, // SELECT key
+
73 Print = 0x2A, // PRINT key
+
74 Execute = 0x2B, // EXECUTE key
+
75 Snapshot = 0x2C, // PRINT SCREEN key
+
76 Insert = 0x2D, // INS key
+
77 Delete = 0x2E, // DEL key
+
78 Help = 0x2F, // HELP key
+
79
+
80 Zero = 0x30, // 0 key
+
81 One = 0x31, // 1 key
+
82 Two = 0x32, // 2 key
+
83 Three = 0x33, // 3 key
+
84 Four = 0x34, // 4 key
+
85 Five = 0x35, // 5 key
+
86 Six = 0x36, // 6 key
+
87 Seven = 0x37, // 7 key
+
88 Eight = 0x38, // 8 key
+
89 Nine = 0x39, // 9 key
+
90
+
91 //- 0x3A-40 Undefined
+
92
+
93 A = 0x41, // A key
+
94 B = 0x42, // B key
+
95 C = 0x43, // C key
+
96 D = 0x44, // D key
+
97 E = 0x45, // E key
+
98 F = 0x46, // F key
+
99 G = 0x47, // G key
+
100 H = 0x48, // H key
+
101 I = 0x49, // I key
+
102 J = 0x4A, // J key
+
103 K = 0x4B, // K key
+
104 L = 0x4C, // L key
+
105 M = 0x4D, // M key
+
106 N = 0x4E, // N key
+
107 O = 0x4F, // O key
+
108 P = 0x50, // P key
+
109 Q = 0x51, // Q key
+
110 R = 0x52, // R key
+
111 S = 0x53, // S key
+
112 T = 0x54, // T key
+
113 U = 0x55, // U key
+
114 V = 0x56, // V key
+
115 W = 0x57, // W key
+
116 X = 0x58, // X key
+
117 Y = 0x59, // Y key
+
118 Z = 0x5A, // Z key
+
119
+
120 LeftWindows = 0x5B, // Left Windows key (Natural keyboard)
+
121 RightWindows = 0x5C, // Right Windows key (Natural keyboard)
+
122 Applications = 0x5D, // Applications key (Natural keyboard)
+
123
+
124 //- 0x5E Reserved
+
125
+
126 Sleep = 0x5F, // Computer Sleep key
+
127 NumPad0 = 0x60, // Numeric keypad 0 key
+
128 NumPad1 = 0x61, // Numeric keypad 1 key
+
129 NumPad2 = 0x62, // Numeric keypad 2 key
+
130 NumPad3 = 0x63, // Numeric keypad 3 key
+
131 NumPad4 = 0x64, // Numeric keypad 4 key
+
132 NumPad5 = 0x65, // Numeric keypad 5 key
+
133 NumPad6 = 0x66, // Numeric keypad 6 key
+
134 NumPad7 = 0x67, // Numeric keypad 7 key
+
135 NumPad8 = 0x68, // Numeric keypad 8 key
+
136 NumPad9 = 0x69, // Numeric keypad 9 key
+
137 Multipy = 0x6A, // Multiply key
+
138 Add = 0x6B, // Add key
+
139 Separator = 0x6C, // Separator key
+
140 Subtract = 0x6D, // Subtract key
+
141 Decimal = 0x6E, // Decimal key
+
142 Divide = 0x6F, // Divide key
+
143 F1 = 0x70, // F1 key
+
144 F2 = 0x71, // F2 key
+
145 F3 = 0x72, // F3 key
+
146 F4 = 0x73, // F4 key
+
147 F5 = 0x74, // F5 key
+
148 F6 = 0x75, // F6 key
+
149 F7 = 0x76, // F7 key
+
150 F8 = 0x77, // F8 key
+
151 F9 = 0x78, // F9 key
+
152 F10 = 0x79, // F10 key
+
153 F11 = 0x7A, // F11 key
+
154 F12 = 0x7B, // F12 key
+
155 F13 = 0x7C, // F13 key
+
156 F14 = 0x7D, // F14 key
+
157 F15 = 0x7E, // F15 key
+
158 F16 = 0x7F, // F16 key
+
159 F17 = 0x80, // F17 key
+
160 F18 = 0x81, // F18 key
+
161 F19 = 0x82, // F19 key
+
162 F20 = 0x83, // F20 key
+
163 F21 = 0x84, // F21 key
+
164 F22 = 0x85, // F22 key
+
165 F23 = 0x86, // F23 key
+
166 F24 = 0x87, // F24 key
+
167
+
168 //- 0x88-8F Unassigned
+
169
+
170 NumLock = 0x90, // NUM LOCK key
+
171 ScrollLock = 0x91, // SCROLL LOCK key
+
172
+
173 // 0x92-96 OEM specific
+
174 //- 0x97-9F Unassigned
+
175
+
176 LeftShift = 0xA0, // Left SHIFT key
+
177 RightShift = 0xA1, // Right SHIFT key
+
178 LeftCtrl = 0xA2, // Left CONTROL key
+
179 RightCtrl = 0xA3, // Right CONTROL key
+
180 LeftAlt = 0xA4, // Left ALT key
+
181 RightAlt = 0xA5, // Right ALT key
+
182 BrowserBack = 0xA6, // Browser Back key
+
183 BrowserForward = 0xA7, // Browser Forward key
+
184 BrowserRefresh = 0xA8, // Browser Refresh key
+
185 BrowserStop = 0xA9, // Browser Stop key
+
186 BrowserSearch = 0xAA, // Browser Search key
+
187 BrowserFavorites = 0xAB, // Browser Favorites key
+
188 BrowserHome = 0xAC, // Browser Start and Home key
+
189 VolumeMute = 0xAD, // Volume Mute key
+
190 VolumeDown = 0xAE, // Volume Down key
+
191 VolumeUp = 0xAF, // Volume Up key
+
192 MediaNextTrack = 0xB0, // Next Track key
+
193 MediaPreviousTrack = 0xB1, // Previous Track key
+
194 MediaStop = 0xB2, // Stop Media key
+
195 MediaPlayPause = 0xB3, // Play/Pause Media key
+
196 LaunchMail = 0xB4, // Start Mail key
+
197 LaunchMediaSelect = 0xB5, // Select Media key
+
198 LaunchApplication1 = 0xB6, // Start Application 1 key
+
199 LaunchApplication2 = 0xB7, // Start Application 2 key
+
200
+
201 //- 0xB8-B9 Reserved
+
202
+
203 OEM_1 = 0xBA, // Used for miscellaneous characters; it can vary by keyboard. For the US standard keyboard, the ';:' key
+
204 OEM_Plus = 0xBB, // For any country/region, the '+' key
+
205 OEM_Comma = 0xBC, // For any country/region, the ',' key
+
206 OEM_Minus = 0xBD, // For any country/region, the '-' key
+
207 OEM_Period = 0xBE, // For any country/region, the '.' key
+
208 OEM_2 = 0xBF, // Used for miscellaneous characters; it can vary by keyboard. For the US standard keyboard, the '/?' key
+
209 OEM_3 = 0xC0, // Used for miscellaneous characters; it can vary by keyboard. For the US standard keyboard, the '`~' key
+
210
+
211 //- 0xC1-D7 Reserved
+
212 //- 0xD8-DA Unassigned
+
213
+
214 OEM_4 = 0xDB, // Used for miscellaneous characters; it can vary by keyboard. For the US standard keyboard, the '[{' key
+
215 OEM_5 = 0xDC, // Used for miscellaneous characters; it can vary by keyboard. For the US standard keyboard, the '\|' key
+
216 OEM_6 = 0xDD, // Used for miscellaneous characters; it can vary by keyboard. For the US standard keyboard, the ']}' key
+
217 OEM_7 = 0xDE, // Used for miscellaneous characters; it can vary by keyboard. For the US standard keyboard, the 'single-quote/double-quote' key
+
218 OEM_8 = 0xDF, // Used for miscellaneous characters; it can vary by keyboard.
+
219
+
220 //- 0xE0 Reserved
+
221 // 0xE1 OEM specific
+
222
+
223 OEM_102 = 0xE2, // The <> keys on the US standard keyboard, or the \\| key on the non-US 102-key keyboard
+
224
+
225 // 0xE3-E4 OEM specific
+
226
+
227 ProcessKey = 0xE5, // IME PROCESS key
+
228
+
229 // 0xE6 OEM specific
+
230
+
231 Packet = 0xE7, // Used to pass Unicode characters as if they were keystrokes. The VK_PACKET key is the low word of a 32-bit Virtual Key value used for non-keyboard input methods. For more information, see Remark in KEYBDINPUT, SendInput, WM_KEYDOWN, and WM_KEYUP
+
232
+
233 //- 0xE8 Unassigned
+
234 // 0xE9-F5 OEM specific
+
235
+
236 Attn = 0xF6, // Attn key
+
237 CrSel = 0xF7, // CrSel key
+
238 ExSel = 0xF8, // ExSel key
+
239 EraseEOF = 0xF9, // Erase EOF key
+
240 Play = 0xFA, // Play key
+
241 Zoom = 0xFB, // Zoom key
+
242 NONAME = 0xFC, // Reserved
+
243 PA1 = 0xFD, // PA1 key
+
244 OEM_Clear = 0xFE, // Clear key
+
245 };
+
246
+
250 enum class MouseKey {
+
251 Ctrl = MK_CONTROL, // The CTRL key is down.
+
252 MouseLeft = MK_LBUTTON, // The left mouse button is down.
+
253 MouseMiddle = MK_MBUTTON, // The middle mouse button is down.
+
254 MouseRight = MK_RBUTTON, // The right mouse button is down.
+
255 Shift = MK_SHIFT, // The SHIFT key is down.
+
256 MouseX1 = MK_XBUTTON1, // The first X button is down.
+
257 MouseX2 = MK_XBUTTON2, // The second X button is down.
+
258 };
+
259}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
https://learn.microsoft.com/en-us/windows/win32/inputdev/about-keyboard-input#keystroke-message-flags
Definition Keys.h:11
+
+
+ + + + diff --git a/docs/_label_8h_source.html b/docs/_label_8h_source.html new file mode 100644 index 00000000..fa92951d --- /dev/null +++ b/docs/_label_8h_source.html @@ -0,0 +1,173 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/Label.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Label.h
+
+
+
1#pragma once
+
2
+
3#include "StaticControl.h"
+
4
+
5namespace sw
+
6{
+
10 enum class TextTrimming {
+
11 None, // 不处理
+
12 EndEllipsis, // 按字符截断并显示“...”
+
13 WordEllipsis, // 按单词截断并显示“...”
+
14 };
+
15
+
+
19 class Label : public StaticControl
+
20 {
+
21 private:
+
25 Size _textSize;
+
26
+
30 bool _autoSize = true;
+
31
+
32 public:
+ +
37
+ +
42
+ +
47
+ +
52
+ +
57
+
58 public:
+ +
63
+
64 private:
+
68 void _UpdateTextSize();
+
69
+
73 void _ResizeToTextSize();
+
74
+
75 protected:
+
79 virtual void OnTextChanged() override;
+
80
+
85 virtual void FontChanged(HFONT hfont) override;
+
86
+
91 virtual void Measure(const Size &availableSize) override;
+
92 };
+
+
93}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
标签
Definition Label.h:20
+
const Property< bool > AutoSize
是否根据文本自动调整尺寸
Definition Label.h:56
+
const Property< sw::HorizontalAlignment > HorizontalContentAlignment
文本的水平对齐方式,可设为左对齐、中心对齐、右对齐
Definition Label.h:36
+
const Property< sw::TextTrimming > TextTrimming
文本过长时末尾的处理方式,当使用截断时水平对齐和自动换行将失效
Definition Label.h:46
+
virtual void Measure(const Size &availableSize) override
测量控件所需尺寸
+
const Property< sw::VerticalAlignment > VerticalContentAlignment
文本的垂直对齐方式,仅支持顶部对齐和中心对齐,当使用中心对齐时会使自动换行失效
Definition Label.h:41
+
Label()
初始化标签
+
virtual void FontChanged(HFONT hfont) override
字体改变时调用该函数
+
virtual void OnTextChanged() override
Text属性更改时调用此函数
+
const Property< bool > AutoWrap
是否自动换行
Definition Label.h:51
+
静态控件
Definition StaticControl.h:11
+
尺寸
Definition Size.h:11
+
+
+ + + + diff --git a/docs/_layer_8h_source.html b/docs/_layer_8h_source.html new file mode 100644 index 00000000..484ae7df --- /dev/null +++ b/docs/_layer_8h_source.html @@ -0,0 +1,256 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/Layer.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Layer.h
+
+
+
1#pragma once
+
2
+
3#include "LayoutHost.h"
+
4#include "ScrollEnums.h"
+
5#include "UIElement.h"
+
6
+
7namespace sw
+
8{
+
+
12 class Layer : virtual public UIElement
+
13 {
+
14 private:
+
18 bool _layoutDisabled = false;
+
19
+
23 bool _autoSize = true;
+
24
+
28 LayoutHost *_customLayout = nullptr;
+
29
+
33 bool _horizontalScrollDisabled = true;
+
34
+
38 bool _verticalScrollDisabled = true;
+
39
+
40 public:
+ +
45
+ +
50
+ +
55
+ +
60
+ +
65
+ +
70
+ +
75
+ +
80
+
81 protected:
+ +
86
+
87 public:
+
91 virtual ~Layer() = 0;
+
92
+
93 private:
+
97 LayoutHost *_GetLayout();
+
98
+
102 void _MeasureAndArrangeWithoutLayout();
+
103
+
107 void _MeasureAndArrangeWithoutResize();
+
108
+
109 protected:
+ +
114
+ +
119
+
126 virtual void OnScroll(ScrollOrientation scrollbar, ScrollEvent event, double pos);
+
127
+
134 virtual bool OnVerticalScroll(int event, int pos) override;
+
135
+
142 virtual bool OnHorizontalScroll(int event, int pos) override;
+
143
+
144 public:
+
149 virtual void Measure(const Size &availableSize) override;
+
150
+
155 virtual void Arrange(const sw::Rect &finalPosition) override;
+
156
+ +
161
+ +
166
+
172 void GetHorizontalScrollRange(double &refMin, double &refMax);
+
173
+
179 void GetVerticalScrollRange(double &refMin, double &refMax);
+
180
+
186 void SetHorizontalScrollRange(double min, double max);
+
187
+
193 void SetVerticalScrollRange(double min, double max);
+
194
+ +
199
+ +
204
+ +
209
+ +
214
+ +
219
+ +
224
+ +
229
+ +
234
+ +
239
+ +
245
+
250 void ScrollVertical(double offset);
+
251 };
+
+
252}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
表示可以设置布局方式的元素类型,如窗口、面板等
Definition Layer.h:13
+
virtual void Measure(const Size &availableSize) override
测量控件所需尺寸
+
void GetVerticalScrollRange(double &refMin, double &refMax)
获取纵向滚动条的范围
+
virtual void Arrange(const sw::Rect &finalPosition) override
安排控件位置
+
double GetHorizontalScrollPageSize()
获取水平滚动条滚动页面大小
+
const Property< bool > HorizontalScrollBar
是否显示横向滚动条
Definition Layer.h:54
+
void DisableLayout()
禁用布局
+
void SetVerticalScrollRange(double min, double max)
设置纵向滚动条的范围
+
virtual LayoutHost * GetDefaultLayout()
获取默认布局对象
+
void EnableLayout()
启用布局
+
const ReadOnlyProperty< double > HorizontalScrollLimit
横向滚动条可设置的最大位置
Definition Layer.h:74
+
Layer()
初始化Layer
+
void GetHorizontalScrollRange(double &refMin, double &refMax)
获取横向滚动条的范围
+
void ScrollVertical(double offset)
垂直滚动
+
void ScrollToBottom()
将垂直滚动条移动到底部
+
void SetVerticalScrollPageSize(double pageSize)
设置垂直滚动条滚动页面大小
+
void UpdateLayout()
更新布局
+
void ScrollHorizontal(double offset)
水平滚动
+
virtual ~Layer()=0
析构函数,这里用纯虚函数使该类成为抽象类
+
void ScrollToLeft()
将水平滚动条移动到最左
+
void SetHorizontalScrollRange(double min, double max)
设置横向滚动条的范围
+
virtual bool OnHorizontalScroll(int event, int pos) override
接收到WM_HSCROLL时调用目标控件的该函数
+
void UpdateScrollRange()
根据子元素更新滚动条范围,未设定布局方式时该函数无效
+
virtual bool OnVerticalScroll(int event, int pos) override
接收到WM_VSCROLL时调用目标控件的该函数
+
void ScrollToTop()
将垂直滚动条移动到顶部
+
const Property< LayoutHost * > Layout
自定义的布局方式,赋值后将自动与所指向的布局关联,每个布局只能关联一个对象,设为nullptr可恢复默认布局
Definition Layer.h:44
+
const Property< bool > AutoSize
是否按照布局方式与子元素自动调整尺寸,该属性仅在当前元素已设置布局方式并且非顶级元素时有效
Definition Layer.h:49
+
const Property< double > VerticalScrollPos
纵向滚动条位置
Definition Layer.h:69
+
const Property< double > HorizontalScrollPos
横向滚动条位置
Definition Layer.h:64
+
const ReadOnlyProperty< double > VerticalScrollLimit
纵向滚动条可设置的最大位置
Definition Layer.h:79
+
void SetHorizontalScrollPageSize(double pageSize)
设置水平滚动条滚动页面大小
+
const Property< bool > VerticalScrollBar
是否显示纵向滚动条
Definition Layer.h:59
+
void ScrollToRight()
将水平滚动条移动到最右
+
virtual void OnScroll(ScrollOrientation scrollbar, ScrollEvent event, double pos)
触发滚动条相关事件时调用该函数
+
double GetVerticalScrollPageSize()
获取垂直滚动条滚动页面大小
+
用于托管元素的布局方式的对象类型,是所有布局方式类型的基类
Definition LayoutHost.h:11
+
表示界面中的元素
Definition UIElement.h:24
+
表示一个矩形区域
Definition Rect.h:13
+
尺寸
Definition Size.h:11
+
+
+ + + + diff --git a/docs/_layout_host_8h_source.html b/docs/_layout_host_8h_source.html new file mode 100644 index 00000000..1dde0c8e --- /dev/null +++ b/docs/_layout_host_8h_source.html @@ -0,0 +1,163 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/LayoutHost.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
LayoutHost.h
+
+
+
1#pragma once
+
2
+
3#include "ILayout.h"
+
4
+
5namespace sw
+
6{
+
+
10 class LayoutHost : public ILayout
+
11 {
+
12 private:
+
16 ILayout *_associatedObj = nullptr;
+
17
+
18 public:
+ +
24
+
25 public:
+
29 virtual uint64_t GetLayoutTag() override;
+
30
+
34 virtual int GetChildLayoutCount() override;
+
35
+
39 virtual ILayout &GetChildLayoutAt(int index) override;
+
40
+
44 virtual Size GetDesireSize() override;
+
45
+
49 virtual void SetDesireSize(const Size &size) override;
+
50
+
55 virtual void Measure(const Size &availableSize) override;
+
56
+
61 virtual void Arrange(const Rect &finalPosition) override;
+
62
+ +
67
+
71 virtual void ArrangeOverride(Size &finalSize) = 0;
+
72 };
+
+
73}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
布局接口
Definition ILayout.h:13
+
用于托管元素的布局方式的对象类型,是所有布局方式类型的基类
Definition LayoutHost.h:11
+
virtual void SetDesireSize(const Size &size) override
设置关联对象所需的尺寸
+
virtual int GetChildLayoutCount() override
获取关联对象子控件的数量
+
virtual void MeasureOverride(Size &availableSize)=0
重写此函数计算所需尺寸
+
virtual void Arrange(const Rect &finalPosition) override
安排控件位置
+
virtual Size GetDesireSize() override
获取关联对象所需尺寸
+
virtual void Measure(const Size &availableSize) override
测量控件所需尺寸
+
virtual uint64_t GetLayoutTag() override
获取布局标记
+
virtual ILayout & GetChildLayoutAt(int index) override
获取关联对象对应索引处的子控件
+
virtual void ArrangeOverride(Size &finalSize)=0
重写此函数安排控件
+
void Associate(ILayout *obj)
设置关联的对象,每个LayoutHost只能关联一个对象
+
表示一个矩形区域
Definition Rect.h:13
+
尺寸
Definition Size.h:11
+
+
+ + + + diff --git a/docs/_list_8h_source.html b/docs/_list_8h_source.html new file mode 100644 index 00000000..564b9340 --- /dev/null +++ b/docs/_list_8h_source.html @@ -0,0 +1,330 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/List.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
List.h
+
+
+
1#pragma once
+
2
+
3#include "Utils.h"
+
4#include <algorithm>
+
5#include <memory>
+
6#include <string>
+
7#include <vector>
+
8
+
9namespace sw
+
10{
+
11 template <typename T>
+
12 class List; // 向前声明
+
13
+
17 using StrList = List<std::wstring>;
+
18
+
22 template <typename T>
+
+
23 class List
+
24 {
+
25 private:
+
29 std::shared_ptr<std::vector<T>> _pVec;
+
30
+
31 public:
+
+ +
36 : _pVec(new std::vector<T>)
+
37 {
+
38 }
+
+
39
+
+
43 List(std::initializer_list<T> list)
+
44 : _pVec(new std::vector<T>(list))
+
45 {
+
46 }
+
+
47
+
+ +
52 : List()
+
53 {
+
54 this->_pVec->reserve(capacity);
+
55 }
+
+
56
+
+
60 auto begin() const
+
61 {
+
62 return this->_pVec->begin();
+
63 }
+
+
64
+
+
68 auto end() const
+
69 {
+
70 return this->_pVec->end();
+
71 }
+
+
72
+
+
76 auto rbegin() const
+
77 {
+
78 return this->_pVec->rbegin();
+
79 }
+
+
80
+
+
84 auto rend() const
+
85 {
+
86 return this->_pVec->rend();
+
87 }
+
+
88
+
+
92 auto &operator[](int index) const
+
93 {
+
94 return this->_pVec->operator[](index);
+
95 }
+
+
96
+
+
100 friend bool operator==(const List &left, const List &right)
+
101 {
+
102 return left._pVec == right._pVec;
+
103 }
+
+
104
+
+
108 friend bool operator!=(const List &left, const List &right)
+
109 {
+
110 return left._pVec != right._pVec;
+
111 }
+
+
112
+
+
116 friend std::wostream &operator<<(std::wostream &wos, const List &list)
+
117 {
+
118 wos << Utils::BuildStr(*list._pVec);
+
119 return wos;
+
120 }
+
+
121
+
+
125 int Capacity() const
+
126 {
+
127 return (int)this->_pVec->capacity();
+
128 }
+
+
129
+
+
133 int Count() const
+
134 {
+
135 return (int)this->_pVec->size();
+
136 }
+
+
137
+
+
141 bool IsEmpty() const
+
142 {
+
143 return this->_pVec->empty();
+
144 }
+
+
145
+
+
149 auto &Append(const T &value) const
+
150 {
+
151 this->_pVec->push_back(value);
+
152 return *this;
+
153 }
+
+
154
+
+
158 void Insert(int index, const T &value) const
+
159 {
+
160 this->_pVec->insert(this->_pVec->begin() + index, value);
+
161 }
+
+
162
+
+
167 bool Contains(const T &value) const
+
168 {
+
169 return std::find(this->_pVec->begin(), this->_pVec->end(), value) != this->_pVec->end();
+
170 }
+
+
171
+
+
177 int IndexOf(const T &value) const
+
178 {
+
179 auto it = std::find(this->_pVec->begin(), this->_pVec->end(), value);
+
180 return it == this->_pVec->end() ? -1 : int(it - this->_pVec->begin());
+
181 }
+
+
182
+
+
188 bool Remove(const T &value) const
+
189 {
+
190 auto it = std::find(this->_pVec->begin(), this->_pVec->end(), value);
+
191 if (it == this->_pVec->end())
+
192 return false;
+
193 this->_pVec->erase(it);
+
194 return true;
+
195 }
+
+
196
+
+
201 void RemoveAt(int index) const
+
202 {
+
203 this->_pVec->erase(this->_pVec->begin() + index);
+
204 }
+
+
205
+
+
209 void Clear() const
+
210 {
+
211 this->_pVec->clear();
+
212 }
+
+
213
+
+
217 List Copy() const
+
218 {
+
219 List list((int)this->_pVec->capacity());
+
220 list._pVec->assign(this->_pVec->begin(), this->_pVec->end());
+
221 return list;
+
222 }
+
+
223 };
+
+
224}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
auto end() const
正向迭代器结束
Definition Dictionary.h:60
+
auto begin() const
正向迭代器开始
Definition Dictionary.h:52
+
auto rbegin() const
反向迭代器开始
Definition Dictionary.h:68
+
auto rend() const
反向迭代器结束
Definition Dictionary.h:76
+
列表类,内部维护了一个指向std::vector的智能指针
Definition List.h:24
+
auto begin() const
正向迭代器开始
Definition List.h:60
+
bool Contains(const T &value) const
列表是否包含某个值
Definition List.h:167
+
List(int capacity)
初始化列表并指定容量
Definition List.h:51
+
int IndexOf(const T &value) const
查找值在列表中的索引
Definition List.h:177
+
auto & operator[](int index) const
获取或设置列表中指定位置的值
Definition List.h:92
+
auto rbegin() const
反向迭代器开始
Definition List.h:76
+
void RemoveAt(int index) const
移除指定索引处的值
Definition List.h:201
+
void Insert(int index, const T &value) const
在指定位置插入值
Definition List.h:158
+
int Capacity() const
列表当前的容量
Definition List.h:125
+
friend bool operator==(const List &left, const List &right)
判断是否为同一个列表
Definition List.h:100
+
List Copy() const
复制当前列表
Definition List.h:217
+
auto rend() const
反向迭代器结束
Definition List.h:84
+
auto end() const
正向迭代器结束
Definition List.h:68
+
void Clear() const
清空列表
Definition List.h:209
+
auto & Append(const T &value) const
添加一个值到列表末尾
Definition List.h:149
+
friend bool operator!=(const List &left, const List &right)
判断是否不是同一个列表
Definition List.h:108
+
friend std::wostream & operator<<(std::wostream &wos, const List &list)
支持Utils::BuildStr
Definition List.h:116
+
List(std::initializer_list< T > list)
使用初始化列表
Definition List.h:43
+
int Count() const
获取元素个数
Definition List.h:133
+
List()
初始化列表
Definition List.h:35
+
bool Remove(const T &value) const
移除列表中第一个指定的值
Definition List.h:188
+
bool IsEmpty() const
列表是否为空
Definition List.h:141
+
static std::wstring BuildStr(const Args &...args)
拼接字符串,也可使用此函数将其他类型转为wstring
Definition Utils.h:69
+
+
+ + + + diff --git a/docs/_list_box_8h_source.html b/docs/_list_box_8h_source.html new file mode 100644 index 00000000..6eaea83e --- /dev/null +++ b/docs/_list_box_8h_source.html @@ -0,0 +1,196 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/ListBox.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
ListBox.h
+
+
+
1#pragma once
+
2
+
3#include "ItemsControl.h"
+
4#include "List.h"
+
5
+
6namespace sw
+
7{
+
+
11 class ListBox : public StrItemsControl
+
12 {
+
13 public:
+ +
18
+ +
23
+ +
28
+
29 public:
+ +
34
+
35 protected:
+
39 virtual int GetItemsCount() override;
+
40
+
44 virtual int GetSelectedIndex() override;
+
45
+
49 virtual void SetSelectedIndex(int index) override;
+
50
+
54 virtual std::wstring GetSelectedItem() override;
+
55
+
62 virtual bool OnContextMenu(bool isKeyboardMsg, Point mousePosition) override;
+
63
+
68 virtual void OnCommand(int code) override;
+
69
+
70 public:
+
74 virtual void Clear() override;
+
75
+
80 virtual std::wstring GetItemAt(int index) override;
+
81
+
87 virtual bool AddItem(const std::wstring &item) override;
+
88
+
95 virtual bool InsertItem(int index, const std::wstring &item) override;
+
96
+
103 virtual bool UpdateItem(int index, const std::wstring &newValue) override;
+
104
+
110 virtual bool RemoveItemAt(int index) override;
+
111
+ +
117
+ +
123
+ +
129
+
135 bool GetItemSelectionState(int index);
+
136
+
142 void SetItemSelectionState(int index, bool value);
+
143 };
+
+
144}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
表示可用于呈现一组项的控件
Definition ItemsControl.h:20
+
列表框
Definition ListBox.h:12
+
virtual int GetSelectedIndex() override
选中项的索引,当无选中项时为-1
+
virtual void OnCommand(int code) override
当父窗口接收到控件的WM_COMMAND时调用该函数
+
virtual int GetItemsCount() override
获取子项数
+
virtual bool OnContextMenu(bool isKeyboardMsg, Point mousePosition) override
接收到WM_CONTEXTMENU后调用目标控件的该函数
+
void SetItemSelectionState(int index, bool value)
多选状态下设置指定索引处子项的选中状态
+
List< int > GetSelectedIndices()
多选状态下可通过该函数获取所有选中项的索引
+
virtual std::wstring GetItemAt(int index) override
获取指定索引处子项的值
+
const Property< int > TopIndex
当前列表框页面第一个子项的索引
Definition ListBox.h:17
+
ListBox()
初始化列表框
+
virtual bool UpdateItem(int index, const std::wstring &newValue) override
更新指定位置的子项
+
const ReadOnlyProperty< int > SelectedCount
多选状态下可通过该属性获取选中项的个数
Definition ListBox.h:27
+
virtual bool RemoveItemAt(int index) override
移除指定索引处的子项
+
StrList GetSelectedItems()
多选状态下可通过该函数获取所有选中项的内容
+
virtual std::wstring GetSelectedItem() override
获取选中项
+
int GetItemIndexFromPoint(const Point &point)
获取指定点处子项的索引
+
bool GetItemSelectionState(int index)
获取指定索引处子项的选中状态
+
virtual void SetSelectedIndex(int index) override
设置选中项索引
+
virtual bool InsertItem(int index, const std::wstring &item) override
添加子项到指定索引
+
virtual bool AddItem(const std::wstring &item) override
添加新的子项
+
const Property< bool > MultiSelect
是否允许多选,更新该属性会导致已添加的子项被清空
Definition ListBox.h:22
+
virtual void Clear() override
清空所有子项
+
列表类,内部维护了一个指向std::vector的智能指针
Definition List.h:24
+
表示相对于左上角的点坐标
Definition Point.h:11
+
+
+ + + + diff --git a/docs/_list_view_8h_source.html b/docs/_list_view_8h_source.html new file mode 100644 index 00000000..1c7cd756 --- /dev/null +++ b/docs/_list_view_8h_source.html @@ -0,0 +1,295 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/ListView.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
ListView.h
+
+
+
1#pragma once
+
2
+
3#include "ItemsControl.h"
+
4#include "List.h"
+
5#include <CommCtrl.h>
+
6
+
7namespace sw
+
8{
+
12 enum class ListViewColumnAlignment {
+
13 Left = LVCFMT_LEFT, // 左对齐
+
14 Right = LVCFMT_RIGHT, // 右对齐
+
15 Center = LVCFMT_CENTER, // 居中
+
16 };
+
17
+
+ +
25 std::wstring header;
+
26
+
30 double width;
+
31
+
35 ListViewColumnAlignment alignment = ListViewColumnAlignment::Left;
+
36
+
37 ListViewColumn(const std::wstring &header);
+
38 ListViewColumn(const std::wstring &header, double width);
+ +
40 operator LVCOLUMNW() const;
+
41 };
+
+
42
+
+
46 class ListView : public ItemsControl<StrList>
+
47 {
+
48 public:
+ +
53
+ +
58
+ +
63
+ +
68
+ +
73
+ +
78
+
79 public:
+ +
84
+
85 protected:
+
89 virtual int GetItemsCount() override;
+
90
+
94 virtual int GetSelectedIndex() override;
+
95
+
99 virtual void SetSelectedIndex(int index) override;
+
100
+
104 virtual StrList GetSelectedItem() override;
+
105
+
111 virtual void SetBackColor(Color color, bool redraw) override;
+
112
+
118 virtual void SetTextColor(Color color, bool redraw) override;
+
119
+
125 virtual bool OnNotify(NMHDR *pNMHDR) override;
+
126
+
130 virtual void OnNotified(NMHDR *pNMHDR) override;
+
131
+ +
136
+
141 virtual void OnCheckStateChanged(int index);
+
142
+ +
147
+ +
152
+ +
157
+ +
162
+
163 public:
+
167 virtual void Clear() override;
+
168
+
173 virtual StrList GetItemAt(int index) override;
+
174
+
180 virtual bool AddItem(const StrList &item) override;
+
181
+
188 virtual bool InsertItem(int index, const StrList &item) override;
+
189
+
196 virtual bool UpdateItem(int index, const StrList &newValue) override;
+
197
+
203 virtual bool RemoveItemAt(int index) override;
+
204
+
211 std::wstring GetItemAt(int row, int col);
+
212
+
220 bool UpdateItem(int row, int col, const std::wstring &newValue);
+
221
+
227 bool AddColumn(const ListViewColumn &column);
+
228
+
234 bool AddColumn(const std::wstring &header);
+
235
+
242 bool InsertColumn(int index, const ListViewColumn &column);
+
243
+
250 bool InsertColumn(int index, const std::wstring &header);
+
251
+
257 bool SetColumnHeader(int index, const std::wstring &header);
+
258
+
264 double GetColumnWidth(int index);
+
265
+
272 bool SetColumnWidth(int index, double width);
+
273
+
279 bool RemoveColumnAt(int index);
+
280
+ +
285
+ +
290
+
294 bool GetItemCheckState(int index);
+
295
+
299 void SetItemCheckState(int index, bool value);
+
300
+ +
306
+
307 private:
+
311 int _GetRowCount();
+
312
+
316 int _GetColCount();
+
317
+
321 DWORD _GetExtendedListViewStyle();
+
322
+
327 DWORD _SetExtendedListViewStyle(DWORD style);
+
328 };
+
+
329};
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
表示可用于呈现一组项的控件
Definition ItemsControl.h:20
+
列表类,内部维护了一个指向std::vector的智能指针
Definition List.h:24
+
列表视图
Definition ListView.h:47
+
const Property< bool > MultiSelect
是否允许多选
Definition ListView.h:62
+
bool InsertColumn(int index, const std::wstring &header)
添加新的列到指定索引
+
const ReadOnlyProperty< int > ColumnsCount
列数
Definition ListView.h:52
+
virtual void SetSelectedIndex(int index) override
设置选中项索引
+
virtual void OnHeaderItemDoubleClicked(NMHEADERW *pNMH)
鼠标左键双击列标题时调用该函数
+
virtual bool InsertItem(int index, const StrList &item) override
添加子项到指定索引
+
double GetColumnWidth(int index)
获取指定列的宽度
+
virtual StrList GetItemAt(int index) override
获取指定索引处子项的值
+
virtual bool OnNotify(NMHDR *pNMHDR) override
接收到WM_NOTIFY后调用该函数
+
const ReadOnlyProperty< int > TopIndex
当前列表框页面第一个子项的索引
Definition ListView.h:77
+
bool AddColumn(const std::wstring &header)
添加新的列
+
List< int > GetSelectedIndices()
获取所有选中项的索引
+
virtual void SetBackColor(Color color, bool redraw) override
设置背景颜色
+
virtual void OnCheckStateChanged(int index)
复选框选中状态发生改变
+
virtual bool AddItem(const StrList &item) override
添加新的子项
+
virtual int GetItemsCount() override
获取子项数
+
virtual void OnItemClicked(NMITEMACTIVATE *pNMIA)
鼠标左键单击某一项时调用该函数
+
virtual int GetSelectedIndex() override
选中项的索引,当无选中项时为-1
+
const Property< bool > CheckBoxes
是否在第一列显示复选框
Definition ListView.h:72
+
ListView()
初始化ListView
+
bool SetColumnWidth(int index, double width)
设置指定列的宽度
+
bool RemoveColumnAt(int index)
移除指定列
+
bool SetColumnHeader(int index, const std::wstring &header)
设置指定列的标题
+
virtual StrList GetSelectedItem() override
获取选中项
+
bool InsertColumn(int index, const ListViewColumn &column)
添加新的列到指定索引
+
virtual void OnItemChanged(NMLISTVIEW *pNMLV)
列表项某些属性发生变化时调用该函数
+
virtual bool RemoveItemAt(int index) override
移除指定索引处的子项
+
int GetItemIndexFromPoint(const Point &point)
获取指定点处子项的索引
+
virtual void OnNotified(NMHDR *pNMHDR) override
父窗口接收到WM_NOTIFY后调用发出通知控件的该函数
+
virtual void OnItemDoubleClicked(NMITEMACTIVATE *pNMIA)
鼠标左键双击某一项调用该函数
+
const Property< bool > GridLines
是否显示网格线
Definition ListView.h:57
+
virtual bool UpdateItem(int index, const StrList &newValue) override
更新指定位置的子项
+
std::wstring GetItemAt(int row, int col)
获取指定位置处文本
+
virtual void Clear() override
清空所有子项
+
bool AddColumn(const ListViewColumn &column)
添加新的列
+
bool GetItemCheckState(int index)
获取指定索引项的复选框是否选中
+
List< int > GetCheckedIndices()
获取所有复选框选中的项的索引
+
virtual void SetTextColor(Color color, bool redraw) override
设置文本颜色
+
bool UpdateItem(int row, int col, const std::wstring &newValue)
更新指定位置处文本
+
const ReadOnlyProperty< int > SelectedCount
多选状态下可通过该属性获取选中项的个数
Definition ListView.h:67
+
virtual void OnHeaderItemClicked(NMHEADERW *pNMH)
鼠标左键单击列标题时调用该函数
+
void SetItemCheckState(int index, bool value)
设置指定索引项复选框的选中状态
+
颜色
Definition Color.h:12
+
列表视图的列信息
Definition ListView.h:21
+
ListViewColumnAlignment alignment
对齐方式
Definition ListView.h:35
+
std::wstring header
列标题
Definition ListView.h:25
+
double width
列宽度
Definition ListView.h:30
+
表示相对于左上角的点坐标
Definition Point.h:11
+
+
+ + + + diff --git a/docs/_menu_8h_source.html b/docs/_menu_8h_source.html new file mode 100644 index 00000000..98b2cad8 --- /dev/null +++ b/docs/_menu_8h_source.html @@ -0,0 +1,140 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/Menu.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Menu.h
+
+
+
1#pragma once
+
2
+
3#include "MenuBase.h"
+
4
+
5namespace sw
+
6{
+
+
10 class Menu : public MenuBase
+
11 {
+
12 public:
+ +
17
+
21 Menu(std::initializer_list<MenuItem> items);
+
22
+
23 protected:
+
29 virtual int IndexToID(int index) override;
+
30
+
36 virtual int IDToIndex(int id) override;
+
37 };
+
+
38}
+
菜单类型的基类
Definition MenuBase.h:17
+
std::vector< std::shared_ptr< MenuItem > > items
菜单项集合
Definition MenuBase.h:53
+
菜单
Definition Menu.h:11
+
virtual int IndexToID(int index) override
根据索引获取ID
+
virtual int IDToIndex(int id) override
根据ID获取索引
+
Menu()
初始化菜单
+
Menu(std::initializer_list< MenuItem > items)
初始化菜单并设置菜单项
+
+
+ + + + diff --git a/docs/_menu_base_8h_source.html b/docs/_menu_base_8h_source.html new file mode 100644 index 00000000..73809d84 --- /dev/null +++ b/docs/_menu_base_8h_source.html @@ -0,0 +1,229 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/MenuBase.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
MenuBase.h
+
+
+
1#pragma once
+
2
+
3#include "MenuItem.h"
+
4#include <Windows.h>
+
5#include <initializer_list>
+
6#include <map>
+
7#include <memory>
+
8#include <tuple>
+
9#include <vector>
+
10
+
11namespace sw
+
12{
+
+ +
17 {
+
18 private:
+
22 struct _MenuItemDependencyInfo {
+
23 HMENU hParent; // 所在菜单的句柄
+
24 HMENU hSelf; // 若本身含有子项,则此项为本身的菜单句柄,否则为NULL
+
25 int index; // 所在菜单中的索引
+
26 };
+
27
+
28 private:
+
32 HMENU _hMenu = NULL;
+
33
+
37 std::vector<std::tuple<std::shared_ptr<MenuItem>, HMENU>> _popupMenus;
+
38
+
42 std::vector<std::shared_ptr<MenuItem>> _leaves;
+
43
+
47 std::map<MenuItem *, _MenuItemDependencyInfo> _dependencyInfoMap;
+
48
+
49 public:
+
53 std::vector<std::shared_ptr<MenuItem>> items;
+
54
+ +
59
+ +
64
+ +
69
+ +
74
+ +
79
+
83 void Update();
+
84
+
88 void SetItems(std::initializer_list<MenuItem> items);
+
89
+
96 bool SetSubItems(MenuItem &item, std::initializer_list<MenuItem> subItems);
+
97
+
102 void AddItem(const MenuItem &item);
+
103
+ +
111
+ +
118
+ +
125
+
131 MenuItem *GetMenuItem(std::initializer_list<int> path);
+
132
+
138 MenuItem *GetMenuItem(std::initializer_list<std::wstring> path);
+
139
+ +
146
+ +
154
+ +
162
+ +
170
+ +
178
+
185 bool SetText(MenuItem &item, const std::wstring &value);
+
186
+
187 private:
+
191 void _ClearAddedItems();
+
192
+
199 void _AppendMenuItem(HMENU hMenu, std::shared_ptr<MenuItem> pItem, int index);
+
200
+
206 _MenuItemDependencyInfo *_GetMenuItemDependencyInfo(MenuItem &item);
+
207
+
208 protected:
+ +
214
+
220 virtual int IndexToID(int index) = 0;
+
221
+
227 virtual int IDToIndex(int id) = 0;
+
228 };
+
+
229}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
菜单类型的基类
Definition MenuBase.h:17
+
MenuItem * GetMenuItem(std::initializer_list< std::wstring > path)
通过菜单项的text来获取菜单项
+
bool SetChecked(MenuItem &item, bool value)
设置菜单项是否选中
+
void SetItems(std::initializer_list< MenuItem > items)
初始化菜单并添加菜单项
+
MenuItem * GetParent(MenuItem &item)
获取当前菜单中指定菜单项的直接父菜单项
+
MenuItem * GetMenuItem(std::initializer_list< int > path)
通过索引来获取菜单项
+
bool GetChecked(MenuItem &item, bool &out)
获取一个值,表示菜单项是否选中
+
bool SetSubItems(MenuItem &item, std::initializer_list< MenuItem > subItems)
重新设置当前菜单中某个菜单项的子项
+
void AddItem(const MenuItem &item)
添加新的菜单项到菜单
+
MenuItem * GetMenuItem(int id)
通过id获取菜单项
+
MenuBase(const MenuBase &menu)
重载拷贝构造
+
bool SetEnabled(MenuItem &item, bool value)
设置菜单项是否可用
+
std::vector< std::shared_ptr< MenuItem > > items
菜单项集合
Definition MenuBase.h:53
+
MenuBase & operator=(const MenuBase &menu)
重载拷贝赋值运算
+
bool RemoveItem(MenuItem &item)
移除当前菜单中的某个子项
+
HMENU GetHandle()
获取菜单句柄
+
virtual int IDToIndex(int id)=0
根据ID获取索引
+
virtual int IndexToID(int index)=0
根据索引获取ID
+
bool SetText(MenuItem &item, const std::wstring &value)
设置菜单项文本
+
void InitMenuBase(HMENU hMenu)
设置菜单句柄
+
bool AddSubItem(MenuItem &item, const MenuItem &subItem)
像当前菜单中的某个菜单项添加新的子项
+
void Update()
更新菜单
+
MenuBase()
初始化菜单
+
bool GetEnabled(MenuItem &item, bool &out)
获取一个值,表示菜单项是否可用
+
~MenuBase()
释放资源
+
菜单项
Definition MenuItem.h:17
+
+
+ + + + diff --git a/docs/_menu_item_8h_source.html b/docs/_menu_item_8h_source.html new file mode 100644 index 00000000..c661440b --- /dev/null +++ b/docs/_menu_item_8h_source.html @@ -0,0 +1,166 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/MenuItem.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
MenuItem.h
+
+
+
1#pragma once
+
2
+
3#include "ITag.h"
+
4#include <Windows.h>
+
5#include <functional>
+
6#include <initializer_list>
+
7#include <memory>
+
8#include <string>
+
9#include <vector>
+
10
+
11namespace sw
+
12{
+
+
16 class MenuItem : public ITag
+
17 {
+
18 public:
+ +
23
+
27 std::wstring text;
+
28
+
32 std::vector<std::shared_ptr<MenuItem>> subItems;
+
33
+
37 std::function<void(MenuItem &)> command;
+
38
+
43 MenuItem(const std::wstring &text);
+
44
+
50 MenuItem(const std::wstring &text, std::initializer_list<MenuItem> subItems);
+
51
+
57 MenuItem(const std::wstring &text, const decltype(command) &command);
+
58
+
62 bool IsSeparator() const;
+
63
+ +
68
+
72 virtual uint64_t GetTag() override;
+
73
+
77 virtual void SetTag(uint64_t tag) override;
+
78 };
+
+
79}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
Tag接口
Definition ITag.h:11
+
菜单项
Definition MenuItem.h:17
+
std::wstring text
菜单项的文本,当值为“-”时表示当前项为分隔条
Definition MenuItem.h:27
+
virtual uint64_t GetTag() override
获取Tag
+
bool IsSeparator() const
获取一个值,表示当前菜单项是否为分隔条
+
void CallCommand()
调用command
+
MenuItem(const std::wstring &text)
构造一个MenuItem,并设置文本
+
uint64_t tag
储存用户自定义信息
Definition MenuItem.h:22
+
std::function< void(MenuItem &) command)
菜单项被单击时调用的函数
Definition MenuItem.h:37
+
MenuItem(const std::wstring &text, const decltype(command) &command)
构造一个MenuItem,并设置其回调函数
+
virtual void SetTag(uint64_t tag) override
设置Tag
+
std::vector< std::shared_ptr< MenuItem > > subItems
子项
Definition MenuItem.h:32
+
MenuItem(const std::wstring &text, std::initializer_list< MenuItem > subItems)
构造一个MenuItem,并设置其子项
+
+
+ + + + diff --git a/docs/_msg_box_8h_source.html b/docs/_msg_box_8h_source.html new file mode 100644 index 00000000..e2ea5672 --- /dev/null +++ b/docs/_msg_box_8h_source.html @@ -0,0 +1,177 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/MsgBox.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
MsgBox.h
+
+
+
1#pragma once
+
2
+
3#include "WndBase.h"
+
4#include <Windows.h>
+
5#include <functional>
+
6#include <string>
+
7
+
8namespace sw
+
9{
+
13 typedef std::function<void()> MsgBoxCallback;
+
14
+
18 enum class MsgBoxButton {
+
19 Ok = MB_OK,
+
20 OkCancel = MB_OKCANCEL,
+
21 YesNoCancel = MB_YESNOCANCEL,
+
22 YesNo = MB_YESNO,
+
23 };
+
24
+
28 enum class MsgBoxResult {
+
29 Ok = IDOK,
+
30 Cancel = IDCANCEL,
+
31 Yes = IDYES,
+
32 No = IDNO,
+
33 };
+
34
+
+
38 class MsgBox
+
39 {
+
40 public:
+
41 MsgBoxResult result;
+
42
+
43 private:
+
44 MsgBox() = delete;
+
45 MsgBox(MsgBoxResult result);
+
46
+
47 public:
+
48 static MsgBox Show(const WndBase *owner, const std::wstring &text = L"", const std::wstring &caption = L"", MsgBoxButton button = MsgBoxButton::Ok);
+
49 static MsgBox Show(const WndBase &owner, const std::wstring &text = L"", const std::wstring &caption = L"", MsgBoxButton button = MsgBoxButton::Ok);
+
50
+
51 static MsgBox ShowInfo(const WndBase *owner, const std::wstring &text = L"", const std::wstring &caption = L"", MsgBoxButton button = MsgBoxButton::Ok);
+
52 static MsgBox ShowInfo(const WndBase &owner, const std::wstring &text = L"", const std::wstring &caption = L"", MsgBoxButton button = MsgBoxButton::Ok);
+
53
+
54 static MsgBox ShowError(const WndBase *owner, const std::wstring &text = L"", const std::wstring &caption = L"", MsgBoxButton button = MsgBoxButton::Ok);
+
55 static MsgBox ShowError(const WndBase &owner, const std::wstring &text = L"", const std::wstring &caption = L"", MsgBoxButton button = MsgBoxButton::Ok);
+
56
+
57 static MsgBox ShowWarning(const WndBase *owner, const std::wstring &text = L"", const std::wstring &caption = L"", MsgBoxButton button = MsgBoxButton::Ok);
+
58 static MsgBox ShowWarning(const WndBase &owner, const std::wstring &text = L"", const std::wstring &caption = L"", MsgBoxButton button = MsgBoxButton::Ok);
+
59
+
60 static MsgBox ShowQuestion(const WndBase *owner, const std::wstring &text = L"", const std::wstring &caption = L"", MsgBoxButton button = MsgBoxButton::YesNo);
+
61 static MsgBox ShowQuestion(const WndBase &owner, const std::wstring &text = L"", const std::wstring &caption = L"", MsgBoxButton button = MsgBoxButton::YesNo);
+
62
+
63 private:
+
64 const MsgBox &_On(MsgBoxResult result, const MsgBoxCallback &callback) const;
+
65
+
66 public:
+
67 const MsgBox &OnOk(const MsgBoxCallback &callback) const;
+
68 const MsgBox &OnYes(const MsgBoxCallback &callback) const;
+
69 const MsgBox &OnNo(const MsgBoxCallback &callback) const;
+
70 const MsgBox &OnCancel(const MsgBoxCallback &callback) const;
+
71 };
+
+
72}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
消息框类
Definition MsgBox.h:39
+
表示一个Windows窗口,是所有窗口和控件的基类
Definition WndBase.h:26
+
+
+ + + + diff --git a/docs/_panel_8h_source.html b/docs/_panel_8h_source.html new file mode 100644 index 00000000..a93b03fe --- /dev/null +++ b/docs/_panel_8h_source.html @@ -0,0 +1,153 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/Panel.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Panel.h
+
+
+
1#pragma once
+
2
+
3#include "PanelBase.h"
+
4
+
5namespace sw
+
6{
+
10 enum class BorderStyle {
+
11 None = 0, // 无边框
+
12 Bump = EDGE_BUMP, // 突出的凸起边框
+
13 Etched = EDGE_ETCHED, // 刻痕式边框
+
14 Raised = EDGE_RAISED, // 凸起边框
+
15 Sunked = EDGE_SUNKEN, // 凹陷边框
+
16 };
+
17
+
+
21 class Panel : public PanelBase
+
22 {
+
23 private:
+
27 BorderStyle _borderStyle = sw::BorderStyle::None;
+
28
+
29 public:
+ +
34
+
35 public:
+ +
40
+
41 protected:
+
46 virtual bool OnPaint() override;
+
47
+
53 virtual bool OnSize(Size newClientSize) override;
+
54 };
+
+
55}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
面板类型的基类
Definition PanelBase.h:12
+
面板
Definition Panel.h:22
+
virtual bool OnSize(Size newClientSize) override
接收到WM_SIZE时调用该函数
+
Panel()
初始化面板
+
const Property< sw::BorderStyle > BorderStyle
边框样式
Definition Panel.h:33
+
virtual bool OnPaint() override
接收到WM_PAINT时调用该函数
+
尺寸
Definition Size.h:11
+
+
+ + + + diff --git a/docs/_panel_base_8h_source.html b/docs/_panel_base_8h_source.html new file mode 100644 index 00000000..3453d1af --- /dev/null +++ b/docs/_panel_base_8h_source.html @@ -0,0 +1,152 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/PanelBase.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
PanelBase.h
+
+
+
1#pragma once
+
2
+
3#include "Control.h"
+
4#include "Layer.h"
+
5
+
6namespace sw
+
7{
+
+
11 class PanelBase : public Control, public Layer
+
12 {
+
13 protected:
+ +
18
+
19 public:
+
23 virtual ~PanelBase() = 0;
+
24
+
25 protected:
+
32 virtual bool OnVerticalScroll(int event, int pos) override;
+
33
+
40 virtual bool OnHorizontalScroll(int event, int pos) override;
+
41
+
42 public:
+
47 virtual void Measure(const Size &availableSize) override;
+
48
+
53 virtual void Arrange(const sw::Rect &finalPosition) override;
+
54 };
+
+
55}
+
控件
Definition Control.h:11
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
表示可以设置布局方式的元素类型,如窗口、面板等
Definition Layer.h:13
+
面板类型的基类
Definition PanelBase.h:12
+
virtual ~PanelBase()=0
析构函数,这里用纯虚函数使该类成为抽象类
+
virtual void Measure(const Size &availableSize) override
测量控件所需尺寸
+
virtual bool OnHorizontalScroll(int event, int pos) override
接收到WM_HSCROLL时调用目标控件的该函数
+
virtual void Arrange(const sw::Rect &finalPosition) override
安排控件位置
+
PanelBase()
初始化PanelBase
+
virtual bool OnVerticalScroll(int event, int pos) override
接收到WM_VSCROLL时调用目标控件的该函数
+
表示一个矩形区域
Definition Rect.h:13
+
尺寸
Definition Size.h:11
+
+
+ + + + diff --git a/docs/_password_box_8h_source.html b/docs/_password_box_8h_source.html new file mode 100644 index 00000000..3c489b9a --- /dev/null +++ b/docs/_password_box_8h_source.html @@ -0,0 +1,134 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/PasswordBox.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
PasswordBox.h
+
+
+
1#pragma once
+
2
+
3#include "TextBoxBase.h"
+
4
+
5namespace sw
+
6{
+
+
10 class PasswordBox : public TextBoxBase
+
11 {
+
12 public:
+ +
17
+
18 public:
+ +
23 };
+
+
24}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
密码框
Definition PasswordBox.h:11
+
PasswordBox()
初始化密码框
+
const Property< wchar_t > PasswordChar
密码框显示的字符
Definition PasswordBox.h:16
+
窗口类名为EDIT的控件类型的基类
Definition TextBoxBase.h:11
+
+
+ + + + diff --git a/docs/_path_8h_source.html b/docs/_path_8h_source.html new file mode 100644 index 00000000..758dc449 --- /dev/null +++ b/docs/_path_8h_source.html @@ -0,0 +1,148 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/Path.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Path.h
+
+
+
1#pragma once
+
2
+
3#include <initializer_list>
+
4#include <string>
+
5
+
6namespace sw
+
7{
+
+
11 class Path
+
12 {
+
13 private:
+
14 Path() = delete;
+
15
+
16 public:
+
22 static std::wstring GetFileName(const std::wstring &path);
+
23
+
29 static std::wstring GetFileNameWithoutExt(const std::wstring &path);
+
30
+
36 static std::wstring GetExtension(const std::wstring &path);
+
37
+
43 static std::wstring GetDirectory(const std::wstring &path);
+
44
+
50 static std::wstring Combine(std::initializer_list<std::wstring> paths);
+
51
+
57 static std::wstring GetAbsolutePath(const std::wstring &path);
+
58 };
+
+
59}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
用于处理文件路径的工具类
Definition Path.h:12
+
static std::wstring GetExtension(const std::wstring &path)
获取扩展名
+
static std::wstring GetAbsolutePath(const std::wstring &path)
获取路径所对应的绝对路径
+
static std::wstring GetFileNameWithoutExt(const std::wstring &path)
获取文件名
+
static std::wstring Combine(std::initializer_list< std::wstring > paths)
对路径进行拼接
+
static std::wstring GetDirectory(const std::wstring &path)
获取文件所在路径
+
static std::wstring GetFileName(const std::wstring &path)
获取文件名
+
+
+ + + + diff --git a/docs/_point_8h_source.html b/docs/_point_8h_source.html new file mode 100644 index 00000000..26e3fc9b --- /dev/null +++ b/docs/_point_8h_source.html @@ -0,0 +1,151 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/Point.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Point.h
+
+
+
1#pragma once
+
2
+
3#include <Windows.h>
+
4#include <iostream>
+
5
+
6namespace sw
+
7{
+
+
11 struct Point {
+
15 double x;
+
16
+
20 double y;
+
21
+
22 Point();
+
23 Point(double x, double y);
+
24 Point(const POINT &point);
+
25 operator POINT() const;
+
26
+
27 friend bool operator==(const Point &left, const Point &right)
+
28 {
+
29 return (left.x == right.x) && (left.y == right.y);
+
30 }
+
31
+
32 friend bool operator!=(const Point &left, const Point &right)
+
33 {
+
34 return (left.x != right.x) || (left.y != right.y);
+
35 }
+
36
+
37 friend std::wostream &operator<<(std::wostream &wos, const Point &point)
+
38 {
+
39 return wos << L"(" << point.x << L", " << point.y << L")";
+
40 }
+
41 };
+
+
42}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
表示相对于左上角的点坐标
Definition Point.h:11
+
double y
纵坐标
Definition Point.h:20
+
double x
横坐标
Definition Point.h:15
+
+
+ + + + diff --git a/docs/_proc_msg_8h_source.html b/docs/_proc_msg_8h_source.html new file mode 100644 index 00000000..463691c8 --- /dev/null +++ b/docs/_proc_msg_8h_source.html @@ -0,0 +1,139 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/ProcMsg.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
ProcMsg.h
+
+
+
1#pragma once
+
2
+
3#include <Windows.h>
+
4
+
5namespace sw
+
6{
+
+
10 struct ProcMsg {
+ +
15
+ +
20
+ +
25
+ +
30
+
31 ProcMsg();
+
32 ProcMsg(const HWND &hwnd, const UINT &uMsg, const WPARAM &wParam, const LPARAM &lParam);
+
33 };
+
+
34}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
对Windows窗口消息的封装
Definition ProcMsg.h:10
+
WPARAM wParam
消息的附加信息
Definition ProcMsg.h:24
+
UINT uMsg
消息类型
Definition ProcMsg.h:19
+
HWND hwnd
接收到消息的窗口句柄
Definition ProcMsg.h:14
+
LPARAM lParam
消息的附加信息
Definition ProcMsg.h:29
+
+
+ + + + diff --git a/docs/_progress_bar_8h_source.html b/docs/_progress_bar_8h_source.html new file mode 100644 index 00000000..d7b4de1e --- /dev/null +++ b/docs/_progress_bar_8h_source.html @@ -0,0 +1,165 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/ProgressBar.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
ProgressBar.h
+
+
+
1#pragma once
+
2
+
3#include "Control.h"
+
4#include <CommCtrl.h>
+
5
+
6#if !defined(PBST_NORMAL) // g++
+
7#define PBST_NORMAL 0x0001
+
8#endif
+
9
+
10#if !defined(PBST_ERROR) // g++
+
11#define PBST_ERROR 0x0002
+
12#endif
+
13
+
14#if !defined(PBST_PAUSED) // g++
+
15#define PBST_PAUSED 0x0003
+
16#endif
+
17
+
18namespace sw
+
19{
+
23 enum class ProgressBarState {
+
24 Normal = PBST_NORMAL, // 正常
+
25 Error = PBST_ERROR, // 错误
+
26 Paused = PBST_PAUSED, // 暂停
+
27 };
+
28
+
+
32 class ProgressBar : public Control
+
33 {
+
34 public:
+ +
39
+ +
44
+ +
49
+ +
54
+ +
59
+
60 public:
+ +
65 };
+
+
66}
+
控件
Definition Control.h:11
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
进度条控件
Definition ProgressBar.h:33
+
const Property< uint16_t > Maximum
进度范围的上限
Definition ProgressBar.h:43
+
const Property< bool > Vertical
是否显示为垂直进度条
Definition ProgressBar.h:58
+
ProgressBar()
初始化进度条
+
const Property< ProgressBarState > State
进度条状态
Definition ProgressBar.h:53
+
const Property< uint16_t > Value
当前进度值
Definition ProgressBar.h:48
+
const Property< uint16_t > Minimum
进度范围的下限
Definition ProgressBar.h:38
+
+
+ + + + diff --git a/docs/_property_8h_source.html b/docs/_property_8h_source.html new file mode 100644 index 00000000..a3828b94 --- /dev/null +++ b/docs/_property_8h_source.html @@ -0,0 +1,267 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/Property.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Property.h
+
+
+
1#pragma once
+
2
+
3#include <functional>
+
4#include <iostream>
+
5
+
6namespace sw
+
7{
+
8 template <typename T>
+
9 class Property; // 向前声明
+
10
+
14 template <typename T>
+
+ +
16 {
+
17 // 添加Property类为友元类
+
18 friend class Property<T>;
+
19
+
20 // 删除拷贝构造函数
+
21 ReadOnlyProperty(const ReadOnlyProperty &) = delete;
+
22
+
23 // 删除拷贝赋值运算符
+
24 ReadOnlyProperty &operator=(const ReadOnlyProperty &) = delete;
+
25
+
26 private:
+
30 std::function<const T &()> _funcGet;
+
31
+
32 public:
+
+
36 ReadOnlyProperty(const std::function<const T &()> &funcGet)
+
37 : _funcGet(funcGet)
+
38 {
+
39 }
+
+
40
+
+
44 const T &Get() const
+
45 {
+
46 return this->_funcGet();
+
47 }
+
+
48
+
+
52 operator const T &() const
+
53 {
+
54 return this->_funcGet();
+
55 }
+
+
56
+
+
60 const T *operator->() const
+
61 {
+
62 return &this->_funcGet();
+
63 }
+
+
64
+
+
68 friend std::wostream &operator<<(std::wostream &wos, const ReadOnlyProperty &prop)
+
69 {
+
70 return wos << prop._funcGet();
+
71 }
+
+
72 };
+
+
73
+
77 template <typename T>
+
+ +
79 {
+
80 // 添加Property类为友元类
+
81 friend class Property<T>;
+
82
+
83 // 删除拷贝构造函数
+
84 WriteOnlyProperty(const WriteOnlyProperty &) = delete;
+
85
+
86 // 删除拷贝赋值运算符
+
87 WriteOnlyProperty &operator=(const WriteOnlyProperty &) = delete;
+
88
+
89 private:
+
93 std::function<void(const T &)> _funcSet;
+
94
+
95 public:
+
+
99 WriteOnlyProperty(const std::function<void(const T &)> &funcSet)
+
100 : _funcSet(funcSet)
+
101 {
+
102 }
+
+
103
+
+
107 void Set(const T &value) const
+
108 {
+
109 this->_funcSet(value);
+
110 }
+
+
111
+
+
115 const WriteOnlyProperty &operator=(const T &value) const
+
116 {
+
117 this->_funcSet(value);
+
118 return *this;
+
119 }
+
+
120 };
+
+
121
+
125 template <typename T>
+
+
126 class Property : public ReadOnlyProperty<T>, public WriteOnlyProperty<T>
+
127 {
+
128 // 删除拷贝构造函数
+
129 Property(const Property &) = delete;
+
130
+
131 // 删除拷贝赋值运算符
+
132 Property &operator=(const Property &) = delete;
+
133
+
134 public:
+
+
138 Property(const std::function<const T &()> &funcGet, const std::function<void(const T &)> &funcSet)
+ +
140 {
+
141 }
+
+
142
+
+
146 const Property &operator=(const T &value) const
+
147 {
+
148 this->_funcSet(value);
+
149 return *this;
+
150 }
+
+
151
+
+
155 T *operator->() const
+
156 {
+
157 const T &value = this->_funcGet();
+
158 return const_cast<T *>(&value);
+
159 }
+
+
160 };
+
+
161}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
属性
Definition Property.h:127
+
const Property & operator=(const T &value) const
写属性
Definition Property.h:146
+
Property(const std::function< const T &()> &funcGet, const std::function< void(const T &)> &funcSet)
初始化Property
Definition Property.h:138
+
T * operator->() const
取属性成员
Definition Property.h:155
+
只读属性
Definition Property.h:16
+
friend std::wostream & operator<<(std::wostream &wos, const ReadOnlyProperty &prop)
支持Utils::BuildStr
Definition Property.h:68
+
ReadOnlyProperty(const std::function< const T &()> &funcGet)
初始化ReadOnlyProperty
Definition Property.h:36
+
const T & Get() const
读属性
Definition Property.h:44
+
const T * operator->() const
取属性成员
Definition Property.h:60
+
只写属性
Definition Property.h:79
+
WriteOnlyProperty(const std::function< void(const T &)> &funcSet)
初始化WriteOnlyProperty
Definition Property.h:99
+
const WriteOnlyProperty & operator=(const T &value) const
写属性
Definition Property.h:115
+
void Set(const T &value) const
写属性
Definition Property.h:107
+
+
+ + + + diff --git a/docs/_radio_button_8h_source.html b/docs/_radio_button_8h_source.html new file mode 100644 index 00000000..3e70b447 --- /dev/null +++ b/docs/_radio_button_8h_source.html @@ -0,0 +1,129 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/RadioButton.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
RadioButton.h
+
+
+
1#pragma once
+
2
+
3#include "CheckableButton.h"
+
4
+
5namespace sw
+
6{
+
+ +
11 {
+
12 public:
+ +
17 };
+
+
18}
+
表示可选中的按钮类型(单选框、复选框等)
Definition CheckableButton.h:20
+
单选框
Definition RadioButton.h:11
+
RadioButton()
初始化单选框
+
+
+ + + + diff --git a/docs/_rect_8h_source.html b/docs/_rect_8h_source.html new file mode 100644 index 00000000..728f75d6 --- /dev/null +++ b/docs/_rect_8h_source.html @@ -0,0 +1,170 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/Rect.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Rect.h
+
+
+
1#pragma once
+
2
+
3#include "Point.h"
+
4#include "Size.h"
+
5#include <Windows.h>
+
6#include <iostream>
+
7
+
8namespace sw
+
9{
+
+
13 struct Rect {
+
17 double left;
+
18
+
22 double top;
+
23
+
27 double width;
+
28
+
32 double height;
+
33
+
34 Rect();
+
35 Rect(double left, double top, double width, double height);
+
36 Rect(const RECT &rect);
+
37 operator RECT() const;
+
38
+
39 Point GetPos() const;
+
40 Size GetSize() const;
+
41
+
42 friend bool operator==(const Rect& left, const Rect& right)
+
43 {
+
44 return (left.left == right.left) &&
+
45 (left.top == right.top) &&
+
46 (left.width == right.width) &&
+
47 (left.height == right.height);
+
48 }
+
49
+
50 friend bool operator!=(const Rect& left, const Rect& right)
+
51 {
+
52 return (left.left != right.left) ||
+
53 (left.top != right.top) ||
+
54 (left.width != right.width) ||
+
55 (left.height != right.height);
+
56 }
+
57
+
58 friend std::wostream& operator<<(std::wostream& wos, const Rect& rect)
+
59 {
+
60 return wos << L"Rect{left=" << rect.left << L", top=" << rect.top << L", width=" << rect.width << L", height=" << rect.height << L"}";
+
61 }
+
62 };
+
+
63}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
表示相对于左上角的点坐标
Definition Point.h:11
+
表示一个矩形区域
Definition Rect.h:13
+
double width
宽度
Definition Rect.h:27
+
double top
顶边
Definition Rect.h:22
+
double left
左边
Definition Rect.h:17
+
double height
高度
Definition Rect.h:32
+
尺寸
Definition Size.h:11
+
+
+ + + + diff --git a/docs/_routed_event_8h_source.html b/docs/_routed_event_8h_source.html new file mode 100644 index 00000000..0c2295ca --- /dev/null +++ b/docs/_routed_event_8h_source.html @@ -0,0 +1,208 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/RoutedEvent.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
RoutedEvent.h
+
+
+
1#pragma once
+
2
+
3#include <cstdint>
+
4#include <functional>
+
5
+
6namespace sw
+
7{
+
11 enum RoutedEventType : uint32_t {
+
12 UserEventBegin = 0,
+
13 UserEventEnd = 0x80000000,
+
14
+
18 UIElement_SizeChanged,
+
19
+
23 UIElement_PositionChanged,
+
24
+
28 UIElement_TextChanged,
+
29
+
33 UIElement_GotFocus,
+
34
+
38 UIElement_LostFocus,
+
39
+
43 UIElement_GotChar,
+
44
+
48 UIElement_KeyDown,
+
49
+
53 UIElement_KeyUp,
+
54
+
58 UIElement_MouseMove,
+
59
+
63 UIElement_MouseLeave,
+
64
+
68 UIElement_MouseWheel,
+
69
+
73 UIElement_MouseButtonDown,
+
74
+
78 UIElement_MouseButtonUp,
+
79
+
83 UIElement_ShowContextMenu,
+
84
+
88 Window_Closing,
+
89
+
93 Window_Closed,
+
94
+
98 Window_Actived,
+
99
+
103 Window_Inactived,
+
104
+
108 ButtonBase_Clicked,
+
109
+
113 ButtonBase_DoubleClicked,
+
114
+
118 ItemsControl_SelectionChanged,
+
119
+
123 ListView_CheckStateChanged,
+
124
+
128 ListView_HeaderClicked,
+
129
+
133 ListView_HeaderDoubleClicked,
+
134
+
138 ListView_ItemClicked,
+
139
+
143 ListView_ItemDoubleClicked,
+
144
+
148 Slider_ValueChanged,
+
149
+
153 Slider_EndTrack,
+
154
+
158 Layer_Scrolling,
+
159
+
163 TabControl_SelectedIndexChanged,
+
164 };
+
165
+
166 /*================================================================================*/
+
167
+
+ +
175 RoutedEventType eventType;
+
176
+
180 bool handled = false;
+
181
+
185 bool handledMsg = false;
+
186
+
190 RoutedEventArgs(RoutedEventType eventType);
+
191 };
+
+
192
+
193 class UIElement; // UIElement.h
+
197 typedef std::function<void(UIElement &, RoutedEventArgs &)> RoutedEvent;
+
198}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
表示界面中的元素
Definition UIElement.h:24
+
路由事件的参数
Definition RoutedEvent.h:171
+
RoutedEventType eventType
事件类型
Definition RoutedEvent.h:175
+
bool handled
事件是否已被处理,若将此字段设为true,则事件不会继续往上传递
Definition RoutedEvent.h:180
+
bool handledMsg
表示是否已处理事件所对应的Windows消息,对于部分消息将字段设为true可取消对DefaultWndProc的调用,若当前事件无对应消息则该字段无意义
Definition RoutedEvent.h:185
+
RoutedEventArgs(RoutedEventType eventType)
RoutedEventArgs构造函数
+
+
+ + + + diff --git a/docs/_routed_event_args_8h_source.html b/docs/_routed_event_args_8h_source.html new file mode 100644 index 00000000..b2f1d62a --- /dev/null +++ b/docs/_routed_event_args_8h_source.html @@ -0,0 +1,372 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/RoutedEventArgs.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
RoutedEventArgs.h
+
+
+
1#pragma once
+
2
+
3#include "Keys.h"
+
4#include "Point.h"
+
5#include "RoutedEvent.h"
+
6#include "ScrollEnums.h"
+
7#include "Size.h"
+
8#include <type_traits>
+
9
+
10namespace sw
+
11{
+
12 struct RoutedEventArgs; // RoutedEvent.h
+
13
+
18 template <RoutedEventType TYPE>
+
+ +
20
+
24 static constexpr RoutedEventType EventType = TYPE;
+
25
+ + +
28 {
+
29 }
+
30 };
+
+
31
+
35 template <typename T, typename = void>
+
+
36 struct _HasEventType : std::false_type {
+
37 };
+
+
38
+
42 template <typename T>
+
+
43 struct _HasEventType<T, decltype(void(std::declval<T>().EventType))> : std::true_type {
+
44 };
+
+
45
+
49 template <typename T>
+
+ +
51 };
+
+
52
+
+
56 struct SizeChangedEventArgs : RoutedEventArgsOfType<UIElement_SizeChanged> {
+
57
+
58 Size newClientSize; // 用户区的新尺寸
+
59
+
60 SizeChangedEventArgs(Size newClientSize)
+
61 : newClientSize(newClientSize)
+
62 {
+
63 }
+
64 };
+
+
65
+
+
69 struct PositionChangedEventArgs : RoutedEventArgsOfType<UIElement_PositionChanged> {
+
70
+
71 Point newClientPosition; // 移动后用户区左上角的位置
+
72
+
73 PositionChangedEventArgs(Point newClientPosition)
+
74 : newClientPosition(newClientPosition)
+
75 {
+
76 }
+
77 };
+
+
78
+
+
82 struct GotCharEventArgs : RoutedEventArgsOfType<UIElement_GotChar> {
+
83
+
84 wchar_t ch; // 输入的字符
+
85 KeyFlags flags; // 附加信息
+
86
+
87 GotCharEventArgs(wchar_t ch, KeyFlags flags)
+
88 : ch(ch), flags(flags)
+
89 {
+
90 }
+
91 };
+
+
92
+
+
96 struct KeyDownEventArgs : RoutedEventArgsOfType<UIElement_KeyDown> {
+
97
+
98 VirtualKey key; // 虚拟按键
+
99 KeyFlags flags; // 附加信息
+
100
+
101 KeyDownEventArgs(VirtualKey key, KeyFlags flags)
+
102 : key(key), flags(flags)
+
103 {
+
104 }
+
105 };
+
+
106
+
+
110 struct KeyUpEventArgs : RoutedEventArgsOfType<UIElement_KeyUp> {
+
111
+
112 VirtualKey key; // 虚拟按键
+
113 KeyFlags flags; // 附加信息
+
114
+
115 KeyUpEventArgs(VirtualKey key, KeyFlags flags)
+
116 : key(key), flags(flags)
+
117 {
+
118 }
+
119 };
+
+
120
+
+
124 struct MouseMoveEventArgs : RoutedEventArgsOfType<UIElement_MouseMove> {
+
125
+
126 Point mousePosition; // 鼠标位置
+
127 MouseKey keyState; // 按键状态
+
128
+
129 MouseMoveEventArgs(Point mousePosition, MouseKey keyState)
+
130 : mousePosition(mousePosition), keyState(keyState)
+
131 {
+
132 }
+
133 };
+
+
134
+
+
138 struct MouseWheelEventArgs : RoutedEventArgsOfType<UIElement_MouseWheel> {
+
139
+
140 int wheelDelta; // 滚轮滚动的距离,为120的倍数
+
141 Point mousePosition; // 鼠标位置
+
142 MouseKey keyState; // 按键状态
+
143
+
144 MouseWheelEventArgs(int wheelDelta, Point mousePosition, MouseKey keyState)
+
145 : wheelDelta(wheelDelta), mousePosition(mousePosition), keyState(keyState)
+
146 {
+
147 }
+
148 };
+
+
149
+
+
153 struct MouseButtonDownEventArgs : RoutedEventArgsOfType<UIElement_MouseButtonDown> {
+
154
+
155 MouseKey key; // 按下的按键(左键、中间、右键)
+
156 Point mousePosition; // 鼠标位置
+
157 MouseKey keyState; // 按键状态
+
158
+
159 MouseButtonDownEventArgs(MouseKey key, Point mousePosition, MouseKey keyState)
+
160 : key(key), mousePosition(mousePosition), keyState(keyState)
+
161 {
+
162 }
+
163 };
+
+
164
+
+
168 struct MouseButtonUpEventArgs : RoutedEventArgsOfType<UIElement_MouseButtonUp> {
+
169
+
170 MouseKey key; // 抬起的按键(左键、中间、右键)
+
171 Point mousePosition; // 鼠标位置
+
172 MouseKey keyState; // 按键状态
+
173
+
174 MouseButtonUpEventArgs(MouseKey key, Point mousePosition, MouseKey keyState)
+
175 : key(key), mousePosition(mousePosition), keyState(keyState)
+
176 {
+
177 }
+
178 };
+
+
179
+
+
183 struct ShowContextMenuEventArgs : RoutedEventArgsOfType<UIElement_ShowContextMenu> {
+
184
+
185 bool cancel = false; // 是否取消显示上下文菜单
+
186 bool isKeyboardMsg; // 消息是否由按下快捷键(Shift+F10、VK_APPS)产生
+
187 Point mousePosition; // 鼠标在屏幕中的位置
+
188
+
189 ShowContextMenuEventArgs(bool isKeyboardMsg, Point mousePosition)
+
190 : isKeyboardMsg(isKeyboardMsg), mousePosition(mousePosition)
+
191 {
+
192 }
+
193 };
+
+
194
+
+ +
199 bool cancel = false; // 是否取消本次关闭
+
200 };
+
+
201
+
+
205 struct ScrollingEventArgs : RoutedEventArgsOfType<Layer_Scrolling> {
+
206
+
207 bool cancel = false; // 是否取消滚动条默认行为
+
208 ScrollOrientation scrollbar; // 滚动条类型
+
209 ScrollEvent event; // 滚动条事件
+
210 double pos; // 当event为ThumbPosition或ThubmTrack时表示当前滚动条位置,其他情况固定为0
+
211
+
212 ScrollingEventArgs(ScrollOrientation scrollbar, ScrollEvent event, double pos)
+
213 : scrollbar(scrollbar), event(event), pos(pos)
+
214 {
+
215 }
+
216 };
+
+
217
+
+
221 struct ListViewCheckStateChangedEventArgs : RoutedEventArgsOfType<ListView_CheckStateChanged> {
+
222
+
223 int index; // 改变项的索引
+
224
+ +
226 : index(index)
+
227 {
+
228 }
+
229 };
+
+
230
+
+ +
235
+
236 int index; // 被点击列标题的索引
+
237
+
238 ListViewHeaderClickedEventArgs(RoutedEventType eventType, int index)
+
239 : RoutedEventArgs(eventType), index(index)
+
240 {
+
241 }
+
242 };
+
+
243
+
+ +
248
+
249 int row; // 被点击的行
+
250 int col; // 被点击的列
+
251
+
252 ListViewItemClickedEventArgs(RoutedEventType eventType, int row, int col)
+
253 : RoutedEventArgs(eventType), row(row), col(col)
+
254 {
+
255 }
+
256 };
+
+
257}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
结构体模板,用于检测类型T是否含有名为EventType的静态字段
Definition RoutedEventArgs.h:36
+
结构体模板,用于检测类型T是否包含事件类型信息
Definition RoutedEventArgs.h:50
+
输入字符事件类型参数
Definition RoutedEventArgs.h:82
+
键盘按键按下事件参数类型
Definition RoutedEventArgs.h:96
+
https://learn.microsoft.com/en-us/windows/win32/inputdev/about-keyboard-input#keystroke-message-flags
Definition Keys.h:11
+
键盘按键抬起事件参数类型
Definition RoutedEventArgs.h:110
+
列表视图某个复选框选中状态改变的事件参数类型
Definition RoutedEventArgs.h:221
+
列表视图的列标题单击与双击事件参数类型
Definition RoutedEventArgs.h:234
+
列表视图项单击与双击事件参数类型
Definition RoutedEventArgs.h:247
+
鼠标按键按下事件参数类型
Definition RoutedEventArgs.h:153
+
鼠标按键抬起事件参数类型
Definition RoutedEventArgs.h:168
+
鼠标移动事件参数类型
Definition RoutedEventArgs.h:124
+
鼠标滚轮滚动事件参数类型
Definition RoutedEventArgs.h:138
+
表示相对于左上角的点坐标
Definition Point.h:11
+
位置改变事件参数类型
Definition RoutedEventArgs.h:69
+
路由事件的参数
Definition RoutedEvent.h:171
+
RoutedEventType eventType
事件类型
Definition RoutedEvent.h:175
+
RoutedEventArgs(RoutedEventType eventType)
RoutedEventArgs构造函数
+
表示特定类型路由事件的事件参数类型,继承自该类的事件参数可以用于RegisterRoutedEvent模板函数
Definition RoutedEventArgs.h:19
+
static constexpr RoutedEventType EventType
路由事件的类型,RegisterRoutedEvent模板函数使用此字段注册事件
Definition RoutedEventArgs.h:24
+
窗口/面板滚动条滚动事件参数类型
Definition RoutedEventArgs.h:205
+
显示用户自定义上下文菜单的事件参数类型
Definition RoutedEventArgs.h:183
+
尺寸改变事件参数类型
Definition RoutedEventArgs.h:56
+
尺寸
Definition Size.h:11
+
窗口正在关闭事件参数类型
Definition RoutedEventArgs.h:198
+
+
+ + + + diff --git a/docs/_screen_8h_source.html b/docs/_screen_8h_source.html new file mode 100644 index 00000000..4f2a1784 --- /dev/null +++ b/docs/_screen_8h_source.html @@ -0,0 +1,139 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/Screen.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Screen.h
+
+
+
1#pragma once
+
2
+
3#include "Point.h"
+
4#include "Property.h"
+
5
+
6namespace sw
+
7{
+
+
11 class Screen
+
12 {
+
13 private:
+
14 Screen() = delete;
+
15
+
16 public:
+ +
21
+ +
26
+ +
31 };
+
+
32}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
屏幕相关
Definition Screen.h:12
+
static const ReadOnlyProperty< Point > CursorPosition
鼠标在屏幕中的位置
Definition Screen.h:30
+
static const ReadOnlyProperty< double > Width
屏幕宽度
Definition Screen.h:20
+
static const ReadOnlyProperty< double > Height
屏幕高度
Definition Screen.h:25
+
+
+ + + + diff --git a/docs/_scroll_enums_8h_source.html b/docs/_scroll_enums_8h_source.html new file mode 100644 index 00000000..df57ace3 --- /dev/null +++ b/docs/_scroll_enums_8h_source.html @@ -0,0 +1,141 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/ScrollEnums.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
ScrollEnums.h
+
+
+
1#pragma once
+
2
+
3#include <Windows.h>
+
4
+
5namespace sw
+
6{
+
10 enum class ScrollOrientation {
+
11 Horizontal, // 水平滚动条
+
12 Vertical, // 垂直滚动条
+
13 };
+
14
+
18 enum class ScrollEvent {
+
19 LineUp = SB_LINEUP, // Scrolls one line up.
+
20 LineLeft = SB_LINELEFT, // Scrolls left by one unit.
+
21 LineDown = SB_LINEDOWN, // Scrolls one line down.
+
22 LineRight = SB_LINERIGHT, // Scrolls right by one unit.
+
23 PageUp = SB_PAGEUP, // Scrolls one page up.
+
24 PageLeft = SB_PAGELEFT, // Scrolls left by the width of the window.
+
25 PageDown = SB_PAGEDOWN, // Scrolls one page down.
+
26 PageRight = SB_PAGERIGHT, // Scrolls right by the width of the window.
+
27 ThumbPosition = SB_THUMBPOSITION, // The user has dragged the scroll box (thumb) and released the mouse button. The HIWORD indicates the position of the scroll box at the end of the drag operation.
+
28 ThubmTrack = SB_THUMBTRACK, // The user is dragging the scroll box. This message is sent repeatedly until the user releases the mouse button. The HIWORD indicates the position that the scroll box has been dragged to.
+
29 Top = SB_TOP, // Scrolls to the upper left.
+
30 Left = SB_LEFT, // Scrolls to the upper left.
+
31 Bottom = SB_BOTTOM, // Scrolls to the lower right.
+
32 Right = SB_RIGHT, // Scrolls to the lower right.
+
33 EndScroll = SB_ENDSCROLL, // Ends scroll.
+
34 };
+
35}
+
+
+ + + + diff --git a/docs/_simple_window_8h_source.html b/docs/_simple_window_8h_source.html new file mode 100644 index 00000000..518ce12f --- /dev/null +++ b/docs/_simple_window_8h_source.html @@ -0,0 +1,194 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/SimpleWindow.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
SimpleWindow.h
+
+
+
1#pragma once
+
2
+
3// 包含SimpleWindow所有头文件
+
4#include "Alignment.h"
+
5#include "App.h"
+
6#include "Button.h"
+
7#include "ButtonBase.h"
+
8#include "Canvas.h"
+
9#include "CanvasLayout.h"
+
10#include "CheckBox.h"
+
11#include "CheckableButton.h"
+
12#include "Color.h"
+
13#include "ComboBox.h"
+
14#include "ContextMenu.h"
+
15#include "Control.h"
+
16#include "Cursor.h"
+
17#include "Dictionary.h"
+
18#include "Dip.h"
+
19#include "DockLayout.h"
+
20#include "DockPanel.h"
+
21#include "FillLayout.h"
+
22#include "Font.h"
+
23#include "Grid.h"
+
24#include "GridLayout.h"
+
25#include "GroupBox.h"
+
26#include "HitTestResult.h"
+
27#include "ILayout.h"
+
28#include "ITag.h"
+
29#include "Icon.h"
+
30#include "ItemsControl.h"
+
31#include "Keys.h"
+
32#include "Label.h"
+
33#include "Layer.h"
+
34#include "LayoutHost.h"
+
35#include "List.h"
+
36#include "ListBox.h"
+
37#include "ListView.h"
+
38#include "Menu.h"
+
39#include "MenuBase.h"
+
40#include "MenuItem.h"
+
41#include "MsgBox.h"
+
42#include "Panel.h"
+
43#include "PanelBase.h"
+
44#include "PasswordBox.h"
+
45#include "Path.h"
+
46#include "Point.h"
+
47#include "ProcMsg.h"
+
48#include "ProgressBar.h"
+
49#include "Property.h"
+
50#include "RadioButton.h"
+
51#include "Rect.h"
+
52#include "RoutedEvent.h"
+
53#include "RoutedEventArgs.h"
+
54#include "Screen.h"
+
55#include "ScrollEnums.h"
+
56#include "Size.h"
+
57#include "Slider.h"
+
58#include "StackLayout.h"
+
59#include "StackLayoutH.h"
+
60#include "StackLayoutV.h"
+
61#include "StackPanel.h"
+
62#include "StaticControl.h"
+
63#include "TabControl.h"
+
64#include "TextBox.h"
+
65#include "TextBoxBase.h"
+
66#include "Thickness.h"
+
67#include "UIElement.h"
+
68#include "UniformGrid.h"
+
69#include "UniformGridLayout.h"
+
70#include "Utils.h"
+
71#include "Window.h"
+
72#include "WndBase.h"
+
73#include "WndMsg.h"
+
74#include "WrapLayout.h"
+
75#include "WrapLayoutH.h"
+
76#include "WrapLayoutV.h"
+
77#include "WrapPanel.h"
+
78
+
79// 启用视觉样式
+
80#pragma comment(linker, "\"/manifestdependency:type='win32' \
+
81name='Microsoft.Windows.Common-Controls' version='6.0.0.0' \
+
82processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
+
+
+ + + + diff --git a/docs/_size_8h_source.html b/docs/_size_8h_source.html new file mode 100644 index 00000000..1308f0d5 --- /dev/null +++ b/docs/_size_8h_source.html @@ -0,0 +1,151 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/Size.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Size.h
+
+
+
1#pragma once
+
2
+
3#include <Windows.h>
+
4#include <iostream>
+
5
+
6namespace sw
+
7{
+
+
11 struct Size {
+
15 double width;
+
16
+
20 double height;
+
21
+
22 Size();
+
23 Size(double width, double height);
+
24 Size(const SIZE &size);
+
25 operator SIZE() const;
+
26
+
27 friend bool operator==(const Size &left, const Size &right)
+
28 {
+
29 return (left.width == right.width) && (left.height == right.height);
+
30 }
+
31
+
32 friend bool operator!=(const Size &left, const Size &right)
+
33 {
+
34 return (left.width != right.width) || (left.height != right.height);
+
35 }
+
36
+
37 friend std::wostream &operator<<(std::wostream &wos, const Size &size)
+
38 {
+
39 return wos << L"Size{width=" << size.width << L", height=" << size.height << L"}";
+
40 }
+
41 };
+
+
42}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
尺寸
Definition Size.h:11
+
double height
高度
Definition Size.h:20
+
double width
宽度
Definition Size.h:15
+
+
+ + + + diff --git a/docs/_slider_8h_source.html b/docs/_slider_8h_source.html new file mode 100644 index 00000000..cce09baf --- /dev/null +++ b/docs/_slider_8h_source.html @@ -0,0 +1,160 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/Slider.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Slider.h
+
+
+
1#pragma once
+
2
+
3#include "Control.h"
+
4#include <CommCtrl.h>
+
5
+
6namespace sw
+
7{
+
+
11 class Slider : public Control
+
12 {
+
13 public:
+ +
18
+ +
23
+ +
28
+ +
33
+ +
38
+
39 public:
+ +
44
+
45 protected:
+
52 virtual bool OnVerticalScroll(int event, int pos) override;
+
53
+
60 virtual bool OnHorizontalScroll(int event, int pos) override;
+
61
+
65 virtual void OnValueChanged();
+
66
+
70 virtual void OnEndTrack();
+
71 };
+
+
72}
+
控件
Definition Control.h:11
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
滑块控件
Definition Slider.h:12
+
virtual bool OnHorizontalScroll(int event, int pos) override
接收到WM_HSCROLL时调用目标控件的该函数
+
virtual bool OnVerticalScroll(int event, int pos) override
接收到WM_VSCROLL时调用目标控件的该函数
+
const Property< bool > Vertical
是否显示为垂直滑块
Definition Slider.h:32
+
Slider()
初始化滑块控件
+
virtual void OnEndTrack()
释放滑块时调用该函数
+
const Property< bool > ValueTooltips
是否在滑动时显示数值提示
Definition Slider.h:37
+
const Property< int > Maximum
最大值
Definition Slider.h:22
+
const Property< int > Value
当前滑块的值
Definition Slider.h:27
+
virtual void OnValueChanged()
滑块的值改变时调用该函数
+
const Property< int > Minimum
最小值
Definition Slider.h:17
+
+
+ + + + diff --git a/docs/_stack_layout_8h_source.html b/docs/_stack_layout_8h_source.html new file mode 100644 index 00000000..5b4170a4 --- /dev/null +++ b/docs/_stack_layout_8h_source.html @@ -0,0 +1,140 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/StackLayout.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
StackLayout.h
+
+
+
1#pragma once
+
2
+
3#include "Alignment.h"
+
4#include "StackLayoutH.h"
+
5#include "StackLayoutV.h"
+
6
+
7namespace sw
+
8{
+
+
12 class StackLayout : public StackLayoutH, public StackLayoutV
+
13 {
+
14 public:
+
18 Orientation orientation = Orientation::Vertical;
+
19
+
23 virtual void MeasureOverride(Size &availableSize) override;
+
24
+
28 virtual void ArrangeOverride(Size &finalSize) override;
+
29 };
+
+
30}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
横向堆叠布局
Definition StackLayoutH.h:11
+
堆叠布局
Definition StackLayout.h:13
+
virtual void ArrangeOverride(Size &finalSize) override
安排控件
+
Orientation orientation
排列方式
Definition StackLayout.h:18
+
virtual void MeasureOverride(Size &availableSize) override
计算所需尺寸
+
纵向堆叠布局
Definition StackLayoutV.h:11
+
尺寸
Definition Size.h:11
+
+
+ + + + diff --git a/docs/_stack_layout_h_8h_source.html b/docs/_stack_layout_h_8h_source.html new file mode 100644 index 00000000..05ba4781 --- /dev/null +++ b/docs/_stack_layout_h_8h_source.html @@ -0,0 +1,134 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/StackLayoutH.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
StackLayoutH.h
+
+
+
1#pragma once
+
2
+
3#include "LayoutHost.h"
+
4
+
5namespace sw
+
6{
+
+
10 class StackLayoutH : virtual public LayoutHost
+
11 {
+
12 public:
+
16 virtual void MeasureOverride(Size &availableSize) override;
+
17
+
21 virtual void ArrangeOverride(Size &finalSize) override;
+
22 };
+
+
23}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
用于托管元素的布局方式的对象类型,是所有布局方式类型的基类
Definition LayoutHost.h:11
+
横向堆叠布局
Definition StackLayoutH.h:11
+
virtual void ArrangeOverride(Size &finalSize) override
安排控件
+
virtual void MeasureOverride(Size &availableSize) override
计算所需尺寸
+
尺寸
Definition Size.h:11
+
+
+ + + + diff --git a/docs/_stack_layout_v_8h_source.html b/docs/_stack_layout_v_8h_source.html new file mode 100644 index 00000000..bcd238e8 --- /dev/null +++ b/docs/_stack_layout_v_8h_source.html @@ -0,0 +1,134 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/StackLayoutV.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
StackLayoutV.h
+
+
+
1#pragma once
+
2
+
3#include "LayoutHost.h"
+
4
+
5namespace sw
+
6{
+
+
10 class StackLayoutV : virtual public LayoutHost
+
11 {
+
12 public:
+
16 virtual void MeasureOverride(Size &availableSize) override;
+
17
+
21 virtual void ArrangeOverride(Size &finalSize) override;
+
22 };
+
+
23}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
用于托管元素的布局方式的对象类型,是所有布局方式类型的基类
Definition LayoutHost.h:11
+
纵向堆叠布局
Definition StackLayoutV.h:11
+
virtual void MeasureOverride(Size &availableSize) override
计算所需尺寸
+
virtual void ArrangeOverride(Size &finalSize) override
安排控件
+
尺寸
Definition Size.h:11
+
+
+ + + + diff --git a/docs/_stack_panel_8h_source.html b/docs/_stack_panel_8h_source.html new file mode 100644 index 00000000..325add1f --- /dev/null +++ b/docs/_stack_panel_8h_source.html @@ -0,0 +1,144 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/StackPanel.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
StackPanel.h
+
+
+
1#pragma once
+
2
+
3#include "Panel.h"
+
4#include "StackLayout.h"
+
5
+
6namespace sw
+
7{
+
+
11 class StackPanel : public Panel
+
12 {
+
13 private:
+
17 StackLayout _stackLayout = StackLayout();
+
18
+
19 public:
+ +
24
+
25 public:
+ +
30
+
31 protected:
+
35 virtual LayoutHost *GetDefaultLayout() override;
+
36 };
+
+
37}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
用于托管元素的布局方式的对象类型,是所有布局方式类型的基类
Definition LayoutHost.h:11
+
面板
Definition Panel.h:22
+
堆叠布局
Definition StackLayout.h:13
+
堆叠面板
Definition StackPanel.h:12
+
virtual LayoutHost * GetDefaultLayout() override
获取默认布局对象
+
StackPanel()
初始化StackPanel
+
const Property< sw::Orientation > Orientation
排列方式
Definition StackPanel.h:23
+
+
+ + + + diff --git a/docs/_static_control_8h_source.html b/docs/_static_control_8h_source.html new file mode 100644 index 00000000..b6e5c3b6 --- /dev/null +++ b/docs/_static_control_8h_source.html @@ -0,0 +1,129 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/StaticControl.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
StaticControl.h
+
+
+
1#pragma once
+
2
+
3#include "Control.h"
+
4
+
5namespace sw
+
6{
+
+
10 class StaticControl : public Control
+
11 {
+
12 public:
+ +
17 };
+
+
18}
+
控件
Definition Control.h:11
+
静态控件
Definition StaticControl.h:11
+
StaticControl()
初始化静态控件
+
+
+ + + + diff --git a/docs/_tab_control_8h_source.html b/docs/_tab_control_8h_source.html new file mode 100644 index 00000000..635302e4 --- /dev/null +++ b/docs/_tab_control_8h_source.html @@ -0,0 +1,189 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/TabControl.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
TabControl.h
+
+
+
1#pragma once
+
2
+
3#include "Control.h"
+
4#include <CommCtrl.h>
+
5
+
6namespace sw
+
7{
+
11 enum class TabAlignment {
+
12 Top, // 顶部
+
13 Bottom, // 底部
+
14 Left, // 左边
+
15 Right // 右边
+
16 };
+
17
+
+
21 class TabControl : public Control
+
22 {
+
23 public:
+ +
28
+ +
33
+ +
38
+ +
43
+
44 public:
+ +
49
+ +
54
+
58 void UpdateTab();
+
59
+
64 void UpdateTabText(int index);
+
65
+
70 virtual void Arrange(const sw::Rect &finalPosition) override;
+
71
+
72 protected:
+
77 virtual void OnAddedChild(UIElement &element) override;
+
78
+
83 virtual void OnRemovedChild(UIElement &element) override;
+
84
+
88 virtual void OnNotified(NMHDR *pNMHDR) override;
+
89
+
93 virtual void OnSelectedIndexChanged();
+
94
+
95 private:
+
99 void _UpdateChildVisible();
+
100
+
104 int _InsertItem(int index, TCITEMW &item);
+
105
+
109 bool _SetItem(int index, TCITEMW &item);
+
110
+
114 bool _DeleteItem(int index);
+
115
+
119 bool _DeleteAllItems();
+
120 };
+
+
121}
+
控件
Definition Control.h:11
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
标签页控件
Definition TabControl.h:22
+
const Property< TabAlignment > Alignment
标签的位置
Definition TabControl.h:37
+
const ReadOnlyProperty< sw::Rect > ContentRect
内容区域位置与尺寸
Definition TabControl.h:27
+
virtual void OnRemovedChild(UIElement &element) override
移除子元素后调用该函数
+
virtual void Arrange(const sw::Rect &finalPosition) override
安排控件位置
+
TabControl()
初始化标签页控件
+
const Property< int > SelectedIndex
当前页面的索引
Definition TabControl.h:32
+
virtual void OnSelectedIndexChanged()
SelectedIndex属性更改时调用该函数
+
virtual void OnAddedChild(UIElement &element) override
添加子元素后调用该函数
+
void UpdateTabText(int index)
更新指定索引处页面项的文本
+
virtual void OnNotified(NMHDR *pNMHDR) override
父窗口接收到WM_NOTIFY后调用发出通知控件的该函数
+
int GetTabCount()
获取标签项的数量
+
void UpdateTab()
更新标签项信息
+
const Property< bool > MultiLine
是否开启多行标签
Definition TabControl.h:42
+
表示界面中的元素
Definition UIElement.h:24
+
表示一个矩形区域
Definition Rect.h:13
+
+
+ + + + diff --git a/docs/_text_box_8h_source.html b/docs/_text_box_8h_source.html new file mode 100644 index 00000000..05a2081e --- /dev/null +++ b/docs/_text_box_8h_source.html @@ -0,0 +1,146 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/TextBox.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
TextBox.h
+
+
+
1#pragma once
+
2
+
3#include "TextBoxBase.h"
+
4
+
5namespace sw
+
6{
+
+
10 class TextBox : public TextBoxBase
+
11 {
+
12 private:
+
16 bool _autoWrap = false;
+
17
+
18 public:
+ +
23
+ +
28
+ +
33
+ +
38
+
39 public:
+ +
44 };
+
+
45}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
窗口类名为EDIT的控件类型的基类
Definition TextBoxBase.h:11
+
编辑框
Definition TextBox.h:11
+
const Property< bool > HorizontalScrollBar
是否显示横向滚动条
Definition TextBox.h:32
+
const Property< bool > MultiLine
是否允许多行文本
Definition TextBox.h:27
+
const Property< bool > VerticalScrollBar
是否显示纵向滚动条
Definition TextBox.h:37
+
const Property< bool > AutoWrap
是否自动换行,仅在MultiLine属性为true时有效
Definition TextBox.h:22
+
TextBox()
初始化编辑框
+
+
+ + + + diff --git a/docs/_text_box_base_8h_source.html b/docs/_text_box_base_8h_source.html new file mode 100644 index 00000000..df95625b --- /dev/null +++ b/docs/_text_box_base_8h_source.html @@ -0,0 +1,188 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/TextBoxBase.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
TextBoxBase.h
+
+
+
1#pragma once
+
2
+
3#include "Control.h"
+
4
+
5namespace sw
+
6{
+
+
10 class TextBoxBase : public Control
+
11 {
+
12 private:
+
16 bool _isTextChanged = false;
+
17
+
21 bool _acceptTab = false;
+
22
+
23 public:
+ +
28
+ +
33
+ +
38
+ +
43
+
44 protected:
+ +
49
+
50 public:
+
54 virtual ~TextBoxBase() = 0;
+
55
+
56 protected:
+ +
61
+
66 virtual std::wstring &GetText() override;
+
67
+
72 virtual void OnCommand(int code) override;
+
73
+
80 virtual bool OnChar(wchar_t ch, KeyFlags flags) override;
+
81
+
88 virtual bool OnKeyDown(VirtualKey key, KeyFlags flags) override;
+
89
+
93 virtual void OnDrawFocusRect() override;
+
94
+
95 public:
+
101 void Select(int start, int length);
+
102
+
106 void SelectAll();
+
107
+ +
112
+
117 bool Undo();
+
118
+
122 void Clear();
+
123 };
+
+
124}
+
控件
Definition Control.h:11
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
窗口类名为EDIT的控件类型的基类
Definition TextBoxBase.h:11
+
virtual void OnCommand(int code) override
当父窗口接收到控件的WM_COMMAND时调用该函数
+
void ScrollToCaret()
将控件内容滚动到当前插入符号位置
+
virtual ~TextBoxBase()=0
析构函数,这里用纯虚函数使该类成为抽象类
+
virtual std::wstring & GetText() override
获取窗口文本
+
void InitTextBoxBase(DWORD dwStyle, DWORD dwExStyle)
初始化控件
+
const ReadOnlyProperty< bool > CanUndo
是否可以撤销
Definition TextBoxBase.h:37
+
TextBoxBase()
初始化TextBoxBase
+
const Property< bool > ReadOnly
是否只读
Definition TextBoxBase.h:27
+
bool Undo()
撤销
+
virtual bool OnKeyDown(VirtualKey key, KeyFlags flags) override
接收到WM_KEYDOWN时调用该函数
+
virtual void OnDrawFocusRect() override
绘制虚线框时调用该函数
+
void Clear()
清空内容
+
const Property< bool > AcceptTab
是否允许输入制表符
Definition TextBoxBase.h:42
+
void SelectAll()
选中所有文本
+
void Select(int start, int length)
选择指定文本内容
+
virtual bool OnChar(wchar_t ch, KeyFlags flags) override
接收到WM_CHAR时调用该函数
+
const Property< sw::HorizontalAlignment > HorizontalContentAlignment
文本的水平对齐方式,可设为左对齐、中心对齐、右对齐
Definition TextBoxBase.h:32
+
https://learn.microsoft.com/en-us/windows/win32/inputdev/about-keyboard-input#keystroke-message-flags
Definition Keys.h:11
+
+
+ + + + diff --git a/docs/_thickness_8h_source.html b/docs/_thickness_8h_source.html new file mode 100644 index 00000000..13643a57 --- /dev/null +++ b/docs/_thickness_8h_source.html @@ -0,0 +1,162 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/Thickness.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Thickness.h
+
+
+
1#pragma once
+
2
+
3#include <iostream>
+
4
+
5namespace sw
+
6{
+
+
10 struct Thickness {
+
14 double left;
+
15
+
19 double top;
+
20
+
24 double right;
+
25
+
29 double bottom;
+
30
+
31 Thickness();
+
32 Thickness(double thickness);
+
33 Thickness(double horizontal, double vertical);
+
34 Thickness(double left, double top, double right, double bottom);
+
35
+
36 friend bool operator==(const Thickness &left, const Thickness &right)
+
37 {
+
38 return (left.left == right.left) &&
+
39 (left.top == right.top) &&
+
40 (left.right == right.right) &&
+
41 (left.bottom == right.bottom);
+
42 }
+
43
+
44 friend bool operator!=(const Thickness &left, const Thickness &right)
+
45 {
+
46 return (left.left != right.left) ||
+
47 (left.top != right.top) ||
+
48 (left.right != right.right) ||
+
49 (left.bottom != right.bottom);
+
50 }
+
51
+
52 friend std::wostream &operator<<(std::wostream &wos, const Thickness &thickness)
+
53 {
+
54 return wos << L"Thickness{left=" << thickness.left << L", top=" << thickness.top << L", right=" << thickness.right << L", bottom=" << thickness.bottom << L"}";
+
55 }
+
56 };
+
+
57}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
表示矩形区域周围边框的厚度
Definition Thickness.h:10
+
double right
右边
Definition Thickness.h:24
+
double top
顶边
Definition Thickness.h:19
+
double bottom
底边
Definition Thickness.h:29
+
double left
左边
Definition Thickness.h:14
+
+
+ + + + diff --git a/docs/_u_i_element_8h_source.html b/docs/_u_i_element_8h_source.html new file mode 100644 index 00000000..358b11c7 --- /dev/null +++ b/docs/_u_i_element_8h_source.html @@ -0,0 +1,554 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/UIElement.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
UIElement.h
+
+
+
1#pragma once
+
2
+
3#include "Alignment.h"
+
4#include "Color.h"
+
5#include "ContextMenu.h"
+
6#include "ILayout.h"
+
7#include "ITag.h"
+
8#include "RoutedEvent.h"
+
9#include "RoutedEventArgs.h"
+
10#include "Thickness.h"
+
11#include "WndBase.h"
+
12#include "WndMsg.h"
+
13#include <cstdint>
+
14#include <map>
+
15#include <string>
+
16#include <vector>
+
17
+
18namespace sw
+
19{
+
+
23 class UIElement : public WndBase, public ILayout, public ITag
+
24 {
+
25 private:
+
29 bool _arranging = false;
+
30
+
34 bool _collapseWhenHide = true;
+
35
+
39 Size _desireSize = Size();
+
40
+
44 Size _origionalSize = Size();
+
45
+
49 Thickness _margin = Thickness();
+
50
+
54 HorizontalAlignment _horizontalAlignment = HorizontalAlignment::Center;
+
55
+
59 VerticalAlignment _verticalAlignment = VerticalAlignment::Center;
+
60
+
64 UIElement *_parent = nullptr;
+
65
+
69 std::vector<UIElement *> _children{};
+
70
+
74 std::vector<UIElement *> _childrenNotCollapsed{};
+
75
+
79 std::map<RoutedEventType, RoutedEvent> _eventMap{};
+
80
+
84 uint64_t _tag = 0;
+
85
+
89 uint64_t _layoutTag = 0;
+
90
+
94 sw::ContextMenu *_contextMenu = nullptr;
+
95
+
99 double _arrangeOffsetX = 0;
+
100
+
104 double _arrangeOffsetY = 0;
+
105
+
109 double _childRightmost = 0;
+
110
+
114 double _childBottommost = 0;
+
115
+
119 bool _float = false;
+
120
+
124 bool _tabStop = false;
+
125
+
129 bool _drawFocusRect = false;
+
130
+
134 Color _backColor = Color::White;
+
135
+
139 Color _textColor = Color::Black;
+
140
+
144 bool _transparent = false;
+
145
+
149 bool _inheritTextColor = false;
+
150
+
154 bool _useDefaultCursor = true;
+
155
+
159 HCURSOR _hCursor = NULL;
+
160
+
161 public:
+ +
166
+ +
171
+ +
176
+ +
181
+ +
186
+ +
191
+ +
196
+ +
201
+ +
206
+ +
211
+ +
216
+ +
221
+ +
226
+ +
231
+ +
236
+
237 protected:
+ +
242
+
243 public:
+
247 virtual ~UIElement() = 0;
+
248
+
254 void RegisterRoutedEvent(RoutedEventType eventType, const RoutedEvent &handler);
+
255
+
263 template <typename T>
+
+
264 void RegisterRoutedEvent(RoutedEventType eventType, T &obj, void (T::*handler)(UIElement &, RoutedEventArgs &))
+
265 {
+
266 if (handler == nullptr) {
+
267 this->UnregisterRoutedEvent(eventType);
+
268 return;
+
269 }
+
270 T *p = &obj;
+ +
272 (p->*handler)(sender, e);
+
273 });
+
274 }
+
+
275
+
281 template <
+
282 typename TEventArgs,
+
283 typename std::enable_if<std::is_base_of<RoutedEventArgs, TEventArgs>::value, int>::type = 0,
+
284 typename std::enable_if<sw::_IsTypedRoutedEventArgs<TEventArgs>::value, int>::type = 0>
+
+
285 void RegisterRoutedEvent(std::function<void(UIElement &, TEventArgs &)> handler)
+
286 {
+
287 if (!handler) {
+
288 this->UnregisterRoutedEvent(TEventArgs::EventType);
+
289 return;
+
290 }
+
291 this->RegisterRoutedEvent(TEventArgs::EventType, [handler](UIElement &sender, RoutedEventArgs &e) {
+
292 handler(sender, static_cast<TEventArgs &>(e));
+
293 });
+
294 }
+
+
295
+
303 template <
+
304 typename TEventArgs,
+
305 typename THandleObj,
+
306 typename std::enable_if<std::is_base_of<RoutedEventArgs, TEventArgs>::value, int>::type = 0,
+
307 typename std::enable_if<sw::_IsTypedRoutedEventArgs<TEventArgs>::value, int>::type = 0>
+
+ +
309 {
+
310 if (handler == nullptr) {
+
311 this->UnregisterRoutedEvent(TEventArgs::EventType);
+
312 return;
+
313 }
+
314 THandleObj *p = &obj;
+
315 this->RegisterRoutedEvent(TEventArgs::EventType, [p, handler](UIElement &sender, RoutedEventArgs &e) {
+
316 (p->*handler)(sender, static_cast<TEventArgs &>(e));
+
317 });
+
318 }
+
+
319
+
324 void UnregisterRoutedEvent(RoutedEventType eventType);
+
325
+
330 bool IsRoutedEventRegistered(RoutedEventType eventType);
+
331
+ +
337
+ +
343
+ +
349
+ +
355
+
361 bool RemoveChildAt(int index);
+
362
+ +
368
+ +
374
+ +
379
+ +
386
+ +
393
+
397 UIElement &operator[](int index) const;
+
398
+ +
404
+
408 void MoveToTop();
+
409
+ +
414
+ +
419
+ +
424
+ +
429
+ +
434
+ +
439
+ +
444
+ +
450
+
455 void SetCursor(StandardCursor cursor);
+
456
+ +
461
+
467 void SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert);
+
468
+
472 virtual uint64_t GetTag() override;
+
473
+
477 virtual void SetTag(uint64_t tag) override;
+
478
+
482 virtual uint64_t GetLayoutTag() override;
+
483
+
487 virtual int GetChildLayoutCount() override;
+
488
+
492 virtual ILayout &GetChildLayoutAt(int index) override;
+
493
+
497 virtual Size GetDesireSize() override;
+
498
+
502 virtual void SetDesireSize(const Size &size) override;
+
503
+
508 virtual void Measure(const Size &availableSize) override;
+
509
+
514 virtual void Arrange(const sw::Rect &finalPosition) override;
+
515
+
516 protected:
+
521 void RaiseRoutedEvent(RoutedEventType eventType);
+
522
+ +
528
+ +
533
+ +
538
+ +
543
+ +
550
+ +
557
+ +
562
+ +
567
+ +
572
+
578 virtual void SetBackColor(Color color, bool redraw);
+
579
+
585 virtual void SetTextColor(Color color, bool redraw);
+
586
+ +
592
+ +
598
+
602 virtual void OnTabStop();
+
603
+
607 virtual void OnDrawFocusRect();
+
608
+
613 virtual bool SetParent(WndBase *parent) override;
+
614
+
619 virtual void ParentChanged(WndBase *newParent) override;
+
620
+
624 virtual void OnEndPaint() override;
+
625
+
630 virtual bool OnClose() override;
+
631
+
637 virtual bool OnMove(Point newClientPosition) override;
+
638
+
644 virtual bool OnSize(Size newClientSize) override;
+
645
+
649 virtual void OnTextChanged() override;
+
650
+
654 virtual void VisibleChanged(bool newVisible) override;
+
655
+
661 virtual bool OnSetFocus(HWND hPrevFocus) override;
+
662
+
668 virtual bool OnKillFocus(HWND hNextFocus) override;
+
669
+
676 virtual bool OnChar(wchar_t ch, KeyFlags flags) override;
+
677
+
684 virtual bool OnKeyDown(VirtualKey key, KeyFlags flags) override;
+
685
+
692 virtual bool OnKeyUp(VirtualKey key, KeyFlags flags) override;
+
693
+
700 virtual bool OnMouseMove(Point mousePosition, MouseKey keyState) override;
+
701
+
706 virtual bool OnMouseLeave() override;
+
707
+
715 virtual bool OnMouseWheel(int wheelDelta, Point mousePosition, MouseKey keyState) override;
+
716
+
723 virtual bool OnMouseLeftButtonDown(Point mousePosition, MouseKey keyState) override;
+
724
+
731 virtual bool OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState) override;
+
732
+
739 virtual bool OnMouseRightButtonDown(Point mousePosition, MouseKey keyState) override;
+
740
+
747 virtual bool OnMouseRightButtonUp(Point mousePosition, MouseKey keyState) override;
+
748
+
755 virtual bool OnMouseMiddleButtonDown(Point mousePosition, MouseKey keyState) override;
+
756
+
763 virtual bool OnMouseMiddleButtonUp(Point mousePosition, MouseKey keyState) override;
+
764
+
771 virtual bool OnContextMenu(bool isKeyboardMsg, Point mousePosition) override;
+
772
+
777 virtual void OnMenuCommand(int id) override;
+
778
+
785 virtual bool OnColor(HDC hdc, HBRUSH &hRetBrush) override;
+
786
+
795 virtual bool OnSetCursor(HWND hwnd, HitTestResult hitTest, int message, bool &result) override;
+
796
+
797 private:
+
803 bool _SetHorzAlignment(sw::HorizontalAlignment value);
+
804
+
810 bool _SetVertAlignment(sw::VerticalAlignment value);
+
811
+
815 static UIElement *_GetNextElement(UIElement *element, bool searchChildren = true);
+
816 };
+
+
817}
+
上下文菜单
Definition ContextMenu.h:11
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
布局接口
Definition ILayout.h:13
+
Tag接口
Definition ITag.h:11
+
表示界面中的元素
Definition UIElement.h:24
+
const Property< HorizontalAlignment > HorizontalAlignment
水平对齐方式
Definition UIElement.h:170
+
void RaiseRoutedEvent(RoutedEventType eventType)
触发路由事件
+
UIElement * GetNextElement()
获取当前元素在界面树上的下一个节点,若已是最后一个节点则返回根节点
+
void RegisterRoutedEvent(RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))
注册成员函数作为路由事件处理函数,当事件已注册时会覆盖已注册的函数
Definition UIElement.h:264
+
virtual void SetTag(uint64_t tag) override
设置Tag
+
void UnregisterRoutedEvent(RoutedEventType eventType)
取消对应类型路由事件的注册
+
void SetCursor(HCURSOR hCursor)
设置鼠标样式
+
void SetNextTabStopFocus()
设置下一个TabStop属性为true的元素为焦点元素
+
virtual void OnTabStop()
通过tab键将焦点移动到当前元素时调用该函数
+
void RegisterRoutedEvent(std::function< void(UIElement &, TEventArgs &)> handler)
根据事件参数类型注册路由事件
Definition UIElement.h:285
+
void RaiseRoutedEvent(RoutedEventArgs &eventArgs)
触发路由事件
+
bool AddChild(UIElement &element)
添加子控件
+
Color GetRealTextColor()
获取当前要显示的文本颜色:当InheritTextColor为true时获取到祖先节点中首个InheritTextColor为false的文本颜色,否则返回当前元素的文本颜色
+
virtual bool OnClose() override
接收到WM_CLOSE时调用该函数
+
double GetChildRightmost(bool update)
获取所有子元素在当前元素中最右边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
+
virtual bool OnMouseMove(Point mousePosition, MouseKey keyState) override
接收到WM_MOUSEMOVE时调用该函数
+
const Property< bool > TabStop
表示用户是否可以通过按下Tab键将焦点移动到当前元素
Definition UIElement.h:215
+
virtual bool OnMouseLeftButtonDown(Point mousePosition, MouseKey keyState) override
接收到WM_LBUTTONDOWN时调用该函数
+
bool AddChild(UIElement *element)
添加子控件
+
virtual void SetDesireSize(const Size &size) override
设置当前控件所需的尺寸
+
virtual ILayout & GetChildLayoutAt(int index) override
获取对应索引处的子控件,使用此函数前必须先调用GetChildLayoutCount
+
virtual bool OnChar(wchar_t ch, KeyFlags flags) override
接收到WM_CHAR时调用该函数
+
UIElement & operator[](int index) const
通过索引获取子控件
+
bool AddChild(UIElement &element, uint64_t layoutTag)
添加子控件并设置布局标记
+
void ResetCursor()
将鼠标样式设置为默认样式
+
virtual bool OnMouseRightButtonUp(Point mousePosition, MouseKey keyState) override
接收到WM_RBUTTONUP时调用该函数
+
int IndexOf(UIElement *element)
获取指定元素的索引
+
virtual bool OnMouseWheel(int wheelDelta, Point mousePosition, MouseKey keyState) override
接收到WM_MOUSEWHEEL时调用该函数
+
UIElement * GetRootElement()
获取当前元素所在界面树的根节点
+
virtual void OnEndPaint() override
在OnPaint函数完成之后调用该函数
+
const ReadOnlyProperty< int > ChildCount
子控件数量
Definition UIElement.h:180
+
virtual bool OnColor(HDC hdc, HBRUSH &hRetBrush) override
父窗口接收到WM_CTLCOLORxxx时调用对应控件的该函数
+
virtual bool OnSetCursor(HWND hwnd, HitTestResult hitTest, int message, bool &result) override
接收到WM_SETCURSOR消息时调用该函数
+
bool RemoveChildAt(int index)
移除指定索引处的子控件
+
void RegisterRoutedEvent(RoutedEventType eventType, const RoutedEvent &handler)
注册路由事件处理函数,当事件已注册时会覆盖已注册的函数
+
virtual bool OnMouseMiddleButtonUp(Point mousePosition, MouseKey keyState) override
接收到WM_MBUTTONUP时调用该函数
+
virtual Size GetDesireSize() override
获取控件所需尺寸
+
virtual bool OnMove(Point newClientPosition) override
接收到WM_MOVE时调用该函数
+
virtual bool OnContextMenu(bool isKeyboardMsg, Point mousePosition) override
接收到WM_CONTEXTMENU后调用目标控件的该函数
+
bool IsRootElement()
判断当前元素是否为根节点
+
UIElement * GetNextTabStopElement()
获取下一个TabStop属性为true的元素
+
virtual bool OnKillFocus(HWND hNextFocus) override
接收到WM_KILLFOCUS时调用该函数
+
const Property< uint64_t > LayoutTag
布局标记,对于不同的布局有不同含义
Definition UIElement.h:200
+
virtual void OnDrawFocusRect()
绘制虚线框时调用该函数
+
virtual uint64_t GetTag() override
获取Tag
+
void MoveToBottom()
移动到界面底部
+
void SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)
设置对齐方式
+
double GetChildBottommost(bool update)
获取所有子元素在当前元素中最底边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
+
const Property< bool > InheritTextColor
是否继承父元素的文本颜色
Definition UIElement.h:235
+
virtual void OnTextChanged() override
Text属性更改时调用此函数
+
Color GetRealBackColor()
获取当前要显示的背景颜色:当Transparent为true时获取到祖先节点中首个Transparent为false的背景颜色,否则返回当前元素的背景颜色
+
void SetCursor(StandardCursor cursor)
设置鼠标样式
+
virtual void ParentChanged(WndBase *newParent) override
父窗口改变时调用此函数
+
const Property< uint64_t > Tag
储存用户自定义信息的标记
Definition UIElement.h:195
+
virtual bool OnMouseRightButtonDown(Point mousePosition, MouseKey keyState) override
接收到WM_RBUTTONDOWN时调用该函数
+
const Property< Thickness > Margin
边距
Definition UIElement.h:165
+
int IndexOf(UIElement &element)
获取指定元素的索引
+
bool RemoveChild(UIElement *element)
移除子控件
+
const Property< bool > CollapseWhenHide
是否在不可见时不参与布局
Definition UIElement.h:185
+
void ClearChildren()
移除所有子控件
+
virtual bool OnSetFocus(HWND hPrevFocus) override
接收到WM_SETFOCUS时调用该函数
+
virtual void VisibleChanged(bool newVisible) override
Visible属性改变时调用此函数
+
virtual int GetChildLayoutCount() override
获取参与布局的子控件数量
+
bool RemoveChild(UIElement &element)
移除子控件
+
virtual uint64_t GetLayoutTag() override
获取布局标记
+
const Property< bool > Transparent
是否使用透明背景(此属性并非真正意义上的透明,将该属性设为true可继承父元素的背景颜色)
Definition UIElement.h:230
+
virtual bool OnMouseMiddleButtonDown(Point mousePosition, MouseKey keyState) override
接收到WM_MBUTTONDOWN时调用该函数
+
virtual void OnRemovedChild(UIElement &element)
移除子元素后调用该函数
+
const Property< Color > BackColor
背景颜色,修改该属性会同时将Transparent属性设为false,对于部分控件该属性可能不生效
Definition UIElement.h:220
+
double & GetArrangeOffsetY()
获取Arrange时子元素的垂直偏移量
+
void NotifyLayoutUpdated()
通知顶级窗口布局改变
+
virtual bool OnKeyDown(VirtualKey key, KeyFlags flags) override
接收到WM_KEYDOWN时调用该函数
+
virtual void SetTextColor(Color color, bool redraw)
设置文本颜色
+
void RegisterRoutedEvent(THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))
根据事件参数类型注册成员函数作为路由事件
Definition UIElement.h:308
+
void MoveToTop()
移动到界面顶部
+
bool AddChild(UIElement *element, uint64_t layoutTag)
添加子控件并设置布局标记
+
const Property< bool > Float
元素是否悬浮,若元素悬浮则该元素不会随滚动条滚动而改变位置
Definition UIElement.h:210
+
virtual bool OnMouseLeave() override
接收到WM_MOUSELEAVE时调用该函数
+
virtual void Arrange(const sw::Rect &finalPosition) override
安排控件位置
+
virtual void OnMenuCommand(int id) override
当WM_COMMAND接收到菜单命令时调用该函数
+
virtual ~UIElement()=0
析构函数,这里用纯虚函数使该类成为抽象类
+
void UpdateChildrenZOrder()
更新子元素的Z轴位置
+
virtual bool OnKeyUp(VirtualKey key, KeyFlags flags) override
接收到WM_KEYUP时调用该函数
+
virtual bool OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState) override
接收到WM_LBUTTONUP时调用该函数
+
virtual bool SetParent(WndBase *parent) override
设置父窗口
+
const ReadOnlyProperty< UIElement * > Parent
指向父元素的指针,当前元素为顶级窗口时该值为nullptr
Definition UIElement.h:190
+
const Property< VerticalAlignment > VerticalAlignment
垂直对齐方式
Definition UIElement.h:175
+
bool IsRoutedEventRegistered(RoutedEventType eventType)
判断路由事件是否已被注册
+
virtual void OnAddedChild(UIElement &element)
添加子元素后调用该函数
+
double & GetArrangeOffsetX()
获取Arrange时子元素的水平偏移量
+
void ShowContextMenu(const Point &point)
弹出当前元素的上下文菜单
+
const Property< sw::ContextMenu * > ContextMenu
右键按下时弹出的菜单
Definition UIElement.h:205
+
void UpdateSiblingsZOrder()
更新兄弟元素的Z轴位置
+
const Property< Color > TextColor
文本颜色,修改该属性会同时将InheritTextColor属性设为false,对于部分控件该属性可能不生效
Definition UIElement.h:225
+
UIElement()
初始化UIElement
+
virtual void Measure(const Size &availableSize) override
测量控件所需尺寸
+
virtual bool OnSize(Size newClientSize) override
接收到WM_SIZE时调用该函数
+
virtual void SetBackColor(Color color, bool redraw)
设置背景颜色
+
表示一个Windows窗口,是所有窗口和控件的基类
Definition WndBase.h:26
+
颜色
Definition Color.h:12
+
https://learn.microsoft.com/en-us/windows/win32/inputdev/about-keyboard-input#keystroke-message-flags
Definition Keys.h:11
+
表示相对于左上角的点坐标
Definition Point.h:11
+
表示一个矩形区域
Definition Rect.h:13
+
路由事件的参数
Definition RoutedEvent.h:171
+
尺寸
Definition Size.h:11
+
表示矩形区域周围边框的厚度
Definition Thickness.h:10
+
+
+ + + + diff --git a/docs/_uniform_grid_8h_source.html b/docs/_uniform_grid_8h_source.html new file mode 100644 index 00000000..39c2c7c1 --- /dev/null +++ b/docs/_uniform_grid_8h_source.html @@ -0,0 +1,150 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/UniformGrid.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
UniformGrid.h
+
+
+
1#pragma once
+
2
+
3#include "Panel.h"
+
4#include "UniformGridLayout.h"
+
5
+
6namespace sw
+
7{
+
+
11 class UniformGrid : public Panel
+
12 {
+
13 private:
+
17 UniformGridLayout _uniformGridLayout = UniformGridLayout();
+
18
+
19 public:
+ +
24
+ +
29
+ +
34
+
35 public:
+ +
40
+
41 protected:
+
45 virtual LayoutHost *GetDefaultLayout() override;
+
46 };
+
+
47}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
用于托管元素的布局方式的对象类型,是所有布局方式类型的基类
Definition LayoutHost.h:11
+
面板
Definition Panel.h:22
+
提供一种在网格(网格中的所有单元格都具有相同的大小)中排列内容的方法
Definition UniformGrid.h:12
+
const Property< int > Rows
行数
Definition UniformGrid.h:23
+
const Property< int > FirstColumn
网格第一行中前导空白单元格的数量
Definition UniformGrid.h:33
+
UniformGrid()
初始化UniformGrid
+
const Property< int > Columns
列数
Definition UniformGrid.h:28
+
virtual LayoutHost * GetDefaultLayout() override
获取默认布局对象
+
均匀大小网格布局
Definition UniformGridLayout.h:11
+
+
+ + + + diff --git a/docs/_uniform_grid_layout_8h_source.html b/docs/_uniform_grid_layout_8h_source.html new file mode 100644 index 00000000..9fdad5ce --- /dev/null +++ b/docs/_uniform_grid_layout_8h_source.html @@ -0,0 +1,143 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/UniformGridLayout.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
UniformGridLayout.h
+
+
+
1#pragma once
+
2
+
3#include "LayoutHost.h"
+
4
+
5namespace sw
+
6{
+
+ +
11 {
+
12 public:
+
16 int rows = 1;
+
17
+
21 int columns = 1;
+
22
+
26 int firstColumn = 0;
+
27
+
31 virtual void MeasureOverride(Size &availableSize) override;
+
32
+
36 virtual void ArrangeOverride(Size &finalSize) override;
+
37 };
+
+
38}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
用于托管元素的布局方式的对象类型,是所有布局方式类型的基类
Definition LayoutHost.h:11
+
均匀大小网格布局
Definition UniformGridLayout.h:11
+
int rows
行数
Definition UniformGridLayout.h:16
+
virtual void ArrangeOverride(Size &finalSize) override
安排控件
+
int columns
列数
Definition UniformGridLayout.h:21
+
int firstColumn
网格第一行中前导空白单元格的数量
Definition UniformGridLayout.h:26
+
virtual void MeasureOverride(Size &availableSize) override
计算所需尺寸
+
尺寸
Definition Size.h:11
+
+
+ + + + diff --git a/docs/_utils_8h_source.html b/docs/_utils_8h_source.html new file mode 100644 index 00000000..8de8aa1c --- /dev/null +++ b/docs/_utils_8h_source.html @@ -0,0 +1,228 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/Utils.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Utils.h
+
+
+
1#pragma once
+
2
+
3#include <map>
+
4#include <sstream>
+
5#include <string>
+
6#include <vector>
+
7
+
8namespace sw
+
9{
+
+
13 class Utils
+
14 {
+
15 private:
+
16 Utils() = delete;
+
17
+
18 template <typename T>
+
19 static void _BuildStr(std::wostream &wos, const T &arg)
+
20 {
+
21 wos << arg;
+
22 }
+
23
+
24 static void _BuildStr(std::wostream &wos, const char *str)
+
25 {
+ +
27 }
+
28
+
29 static void _BuildStr(std::wostream &wos, const std::string &str)
+
30 {
+ +
32 }
+
33
+
34 template <typename T>
+
35 static void _BuildStr(std::wostream &wos, const std::vector<T> &vec)
+
36 {
+
37 auto beg = vec.begin();
+
38 auto end = vec.end();
+
39 wos << L"[";
+
40 for (auto it = beg; it != end; ++it) {
+
41 if (it != beg)
+
42 wos << L", ";
+
43 Utils::_BuildStr(wos, *it);
+
44 }
+
45 wos << L"]";
+
46 }
+
47
+
48 template <typename TKey, typename TVal>
+
49 static void _BuildStr(std::wostream &wos, const std::map<TKey, TVal> &map)
+
50 {
+
51 auto beg = map.begin();
+
52 auto end = map.end();
+
53 wos << L"{";
+
54 for (auto it = beg; it != end; ++it) {
+
55 if (it != beg)
+
56 wos << L", ";
+
57 Utils::_BuildStr(wos, it->first);
+
58 wos << L":";
+
59 Utils::_BuildStr(wos, it->second);
+
60 }
+
61 wos << L"}";
+
62 }
+
63
+
64 public:
+
68 template <typename... Args>
+
+
69 static std::wstring BuildStr(const Args &...args)
+
70 {
+
71 std::wstringstream wss;
+
72 int _[]{(Utils::_BuildStr(wss, args), 0)...};
+
73 return wss.str();
+
74 }
+
+
75
+
79 template <typename T>
+
+
80 static constexpr inline T Max(const T &a, const T &b)
+
81 {
+
82 return a > b ? a : b;
+
83 }
+
+
84
+
88 template <typename T>
+
+
89 static constexpr inline T Min(const T &a, const T &b)
+
90 {
+
91 return a < b ? a : b;
+
92 }
+
+
93
+
94 public:
+
101 static std::wstring ToWideStr(const std::string &str, bool utf8 = false);
+
102
+
109 static std::string ToMultiByteStr(const std::wstring &wstr, bool utf8 = false);
+
110
+
116 static std::wstring Trim(const std::wstring &str);
+
117
+
123 static std::wstring TrimStart(const std::wstring &str);
+
124
+
130 static std::wstring TrimEnd(const std::wstring &str);
+
131
+
138 static std::vector<std::wstring> Split(const std::wstring &str, const std::wstring &delimiter);
+
139 };
+
+
140}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
auto end() const
正向迭代器结束
Definition Dictionary.h:60
+
auto begin() const
正向迭代器开始
Definition Dictionary.h:52
+
工具类
Definition Utils.h:14
+
static std::string ToMultiByteStr(const std::wstring &wstr, bool utf8=false)
将宽字符串转为窄字符串
+
static constexpr T Min(const T &a, const T &b)
取两值中的较小值
Definition Utils.h:89
+
static std::vector< std::wstring > Split(const std::wstring &str, const std::wstring &delimiter)
对字符串按照指定分隔符进行拆分
+
static std::wstring TrimEnd(const std::wstring &str)
删除串尾空白字符
+
static std::wstring BuildStr(const Args &...args)
拼接字符串,也可使用此函数将其他类型转为wstring
Definition Utils.h:69
+
static std::wstring Trim(const std::wstring &str)
删除首尾空白字符
+
static std::wstring TrimStart(const std::wstring &str)
删除串首空白字符
+
static constexpr T Max(const T &a, const T &b)
取两值中的较大值
Definition Utils.h:80
+
static std::wstring ToWideStr(const std::string &str, bool utf8=false)
将窄字符串转为宽字符串
+
+
+ + + + diff --git a/docs/_window_8h_source.html b/docs/_window_8h_source.html new file mode 100644 index 00000000..080d084f --- /dev/null +++ b/docs/_window_8h_source.html @@ -0,0 +1,283 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/Window.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Window.h
+
+
+
1#pragma once
+
2
+
3#include "Color.h"
+
4#include "Cursor.h"
+
5#include "Layer.h"
+
6#include "Menu.h"
+
7#include "Screen.h"
+
8#include "UIElement.h"
+
9
+
10namespace sw
+
11{
+
15 enum class WindowState {
+
16 Normal, // 普通窗口
+
17 Minimized, // 最小化窗口
+
18 Maximized, // 最大化窗口
+
19 };
+
20
+
24 enum class WindowStartupLocation {
+
25 Manual, // 使用系统默认或手动设置
+
26 CenterScreen, // 屏幕中心
+
27 CenterOwner, // 所有者窗口中心,只在ShowDialog时有效
+
28 };
+
29
+
+
33 class Window : public Layer
+
34 {
+
35 private:
+
39 bool _isFirstShow = true;
+
40
+
44 double _maxWidth = -1, _maxHeight = -1, _minWidth = -1, _minHeight = -1;
+
45
+
49 WindowStartupLocation _startupLocation = WindowStartupLocation::Manual;
+
50
+
54 Window *_modalOwner = nullptr;
+
55
+
59 sw::Menu *_menu = nullptr;
+
60
+
64 HWND _hPrevFocused = NULL;
+
65
+
69 std::shared_ptr<LayoutHost> _layout;
+
70
+
71 public:
+ +
76
+ +
81
+ +
86
+ +
91
+ +
96
+ +
101
+ +
106
+ +
111
+ +
116
+ +
121
+ +
126
+ +
131
+ +
136
+ +
141
+
142 public:
+ +
147
+
148 protected:
+
152 virtual LRESULT WndProc(const ProcMsg &refMsg) override;
+
153
+
157 virtual LayoutHost *GetDefaultLayout() override;
+
158
+
163 virtual bool OnClose() override;
+
164
+
169 virtual bool OnDestroy() override;
+
170
+
176 virtual bool OnEraseBackground(int &result) override;
+
177
+
182 virtual bool OnPaint() override;
+
183
+
188 virtual void OnMenuCommand(int id) override;
+
189
+
193 virtual void OnFirstShow();
+
194
+
198 virtual void OnActived();
+
199
+
203 virtual void OnInactived();
+
204
+
205 public:
+
209 void Show();
+
210
+ +
216
+ +
222
+ +
227
+
232 bool IsModal();
+
233
+ +
238
+
242 template <
+
243 typename TLayout,
+
244 typename std::enable_if<std::is_base_of<LayoutHost, TLayout>::value, int>::type = 0>
+
+ +
246 {
+
247 auto layout = std::make_shared<TLayout>();
+
248 layout->Associate(this);
+
249 this->_layout = layout;
+
250 this->NotifyLayoutUpdated();
+
251 }
+
+
252
+
256 template <std::nullptr_t>
+
+ +
258 {
+
259 this->_layout = nullptr;
+
260 this->NotifyLayoutUpdated();
+
261 }
+
+
262 };
+
+
263}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
表示可以设置布局方式的元素类型,如窗口、面板等
Definition Layer.h:13
+
用于托管元素的布局方式的对象类型,是所有布局方式类型的基类
Definition LayoutHost.h:11
+
菜单
Definition Menu.h:11
+
void NotifyLayoutUpdated()
通知顶级窗口布局改变
+
窗口
Definition Window.h:34
+
virtual bool OnDestroy() override
接收到WM_DESTROY时调用该函数
+
const Property< bool > Topmost
窗口是否置顶
Definition Window.h:110
+
bool IsModal()
窗口是否显示为模态窗口
+
void SetLayout()
取消通过SetLayout设置的布局方式
Definition Window.h:257
+
virtual void OnActived()
窗口成为前台窗口时调用该函数
+
Window()
初始化窗口
+
const Property< WindowState > State
窗口状态
Definition Window.h:90
+
const Property< sw::Menu * > Menu
窗口顶部的菜单栏
Definition Window.h:140
+
static const ReadOnlyProperty< int > WindowCount
当前已创建的窗口数
Definition Window.h:80
+
void Show()
显示窗口
+
virtual void OnFirstShow()
窗口第一次显示时调用该函数
+
void ShowDialog(Window &owner)
将窗体显示为模式对话框
+
void DrawMenuBar()
重回窗口的菜单栏
+
const Property< WindowStartupLocation > StartupLocation
窗口初次启动的位置
Definition Window.h:85
+
virtual bool OnClose() override
接收到WM_CLOSE时调用该函数
+
const Property< bool > SizeBox
窗口是否可调整大小
Definition Window.h:95
+
static const ReadOnlyProperty< Window * > ActiveWindow
程序的当前活动窗体
Definition Window.h:75
+
virtual LRESULT WndProc(const ProcMsg &refMsg) override
对WndProc的封装
+
const Property< double > MaxHeight
最大高度,当值不大于0时表示不限制
Definition Window.h:125
+
const Property< bool > MaximizeBox
最大化按钮是否可用
Definition Window.h:100
+
const Property< double > MaxWidth
最大宽度,当值不大于0时表示不限制
Definition Window.h:120
+
virtual void OnMenuCommand(int id) override
当OnCommand接收到菜单命令时调用该函数
+
void SetIcon(HICON hIcon)
设置图标
+
virtual void OnInactived()
窗口成为后台窗口时调用该函数
+
const Property< double > MinWidth
最小宽度,当值不大于0时表示不限制
Definition Window.h:130
+
const Property< bool > MinimizeBox
最小化按钮是否可用
Definition Window.h:105
+
const Property< double > MinHeight
最小高度,当值不大于0时表示不限制
Definition Window.h:135
+
virtual LayoutHost * GetDefaultLayout() override
获取默认布局对象
+
void SetLayout()
设置窗口的默认布局方式
Definition Window.h:245
+
void SizeToContent()
调整窗口尺寸以适应其内容大小,只对设置了布局方式的顶级窗口有效
+
const Property< bool > ToolWindow
是否显示为ToolWindow (窄边框)
Definition Window.h:115
+
virtual bool OnEraseBackground(int &result) override
接收到WM_ERASEBKGND时调用该函数
+
virtual bool OnPaint() override
接收到WM_PAINT时调用该函数
+
对Windows窗口消息的封装
Definition ProcMsg.h:10
+
+
+ + + + diff --git a/docs/_wnd_base_8h_source.html b/docs/_wnd_base_8h_source.html new file mode 100644 index 00000000..0303c84c --- /dev/null +++ b/docs/_wnd_base_8h_source.html @@ -0,0 +1,492 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/WndBase.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
WndBase.h
+
+
+
1#pragma once
+
2
+
3#include "App.h"
+
4#include "Cursor.h"
+
5#include "Dip.h"
+
6#include "Font.h"
+
7#include "HitTestResult.h"
+
8#include "Keys.h"
+
9#include "Point.h"
+
10#include "ProcMsg.h"
+
11#include "Property.h"
+
12#include "Rect.h"
+
13#include "Size.h"
+
14#include "WndMsg.h"
+
15#include <Windows.h>
+
16#include <string>
+
17#include <type_traits>
+
18#include <windowsx.h>
+
19
+
20namespace sw
+
21{
+
+
25 class WndBase
+
26 {
+
27 private:
+
31 static LRESULT CALLBACK _WndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
+
32
+
33 private:
+
37 HWND _hwnd = NULL;
+
38
+
42 HFONT _hfont = NULL;
+
43
+
47 sw::Font _font;
+
48
+
52 sw::Rect _rect = sw::Rect();
+
53
+
57 std::wstring _text = L"";
+
58
+
62 bool _focused = false;
+
63
+
67 bool _isDestroyed = false;
+
68
+
72 WNDPROC _controlOldWndProc = NULL;
+
73
+
74 public:
+ +
79
+ +
84
+ +
89
+ +
94
+ +
99
+ +
104
+ +
109
+ +
114
+ +
119
+ +
124
+ +
129
+ +
134
+ +
139
+ +
144
+ +
149
+ +
154
+ +
159
+ +
164
+ +
169
+
170 protected:
+ +
175
+
176 WndBase(const WndBase &) = delete; // 删除拷贝构造函数
+
177 WndBase(WndBase &&) = delete; // 删除移动构造函数
+
178 WndBase &operator=(const WndBase &) = delete; // 删除拷贝赋值运算符
+
179 WndBase &operator=(WndBase &&) = delete; // 删除移动赋值运算符
+
180
+
181 public:
+
185 virtual ~WndBase() = 0;
+
186
+
187 protected:
+ +
192
+ +
197
+ +
202
+ +
207
+ +
212
+ +
217
+ +
222
+ +
227
+ +
232
+ +
237
+ +
242
+ +
247
+
251 virtual LRESULT WndProc(const ProcMsg &refMsg);
+
252
+ +
257
+
262 virtual std::wstring &GetText();
+
263
+
268 virtual void SetText(const std::wstring &value);
+
269
+
274 virtual bool OnCreate();
+
275
+
280 virtual bool OnClose();
+
281
+
286 virtual bool OnDestroy();
+
287
+
292 virtual bool OnPaint();
+
293
+
297 virtual void OnEndPaint();
+
298
+
304 virtual bool OnMove(Point newClientPosition);
+
305
+
311 virtual bool OnSize(Size newClientSize);
+
312
+
316 virtual void OnTextChanged();
+
317
+ +
324
+ +
331
+
338 virtual bool OnMouseMove(Point mousePosition, MouseKey keyState);
+
339
+
344 virtual bool OnMouseLeave();
+
345
+
353 virtual bool OnMouseWheel(int wheelDelta, Point mousePosition, MouseKey keyState);
+
354
+
361 virtual bool OnMouseLeftButtonDown(Point mousePosition, MouseKey keyState);
+
362
+
369 virtual bool OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState);
+
370
+
377 virtual bool OnMouseLeftButtonDoubleClick(Point mousePosition, MouseKey keyState);
+
378
+
385 virtual bool OnMouseRightButtonDown(Point mousePosition, MouseKey keyState);
+
386
+
393 virtual bool OnMouseRightButtonUp(Point mousePosition, MouseKey keyState);
+
394
+
401 virtual bool OnMouseRightButtonDoubleClick(Point mousePosition, MouseKey keyState);
+
402
+
409 virtual bool OnMouseMiddleButtonDown(Point mousePosition, MouseKey keyState);
+
410
+
417 virtual bool OnMouseMiddleButtonUp(Point mousePosition, MouseKey keyState);
+
418
+
425 virtual bool OnMouseMiddleButtonDoubleClick(Point mousePosition, MouseKey keyState);
+
426
+
433 virtual bool OnChar(wchar_t ch, KeyFlags flags);
+
434
+
441 virtual bool OnDeadChar(wchar_t ch, KeyFlags flags);
+
442
+
449 virtual bool OnKeyDown(VirtualKey key, KeyFlags flags);
+
450
+
457 virtual bool OnKeyUp(VirtualKey key, KeyFlags flags);
+
458
+
465 virtual bool OnSysChar(wchar_t ch, KeyFlags flags);
+
466
+
473 virtual bool OnSysDeadChar(wchar_t ch, KeyFlags flags);
+
474
+
481 virtual bool OnSysKeyDown(VirtualKey key, KeyFlags flags);
+
482
+
489 virtual bool OnSysKeyUp(VirtualKey key, KeyFlags flags);
+
490
+
494 virtual void VisibleChanged(bool newVisible);
+
495
+
500 virtual bool SetParent(WndBase *parent);
+
501
+ +
507
+
512 virtual void OnCommand(int code);
+
513
+
520 virtual void OnControlCommand(WndBase *pControl, int code, int id);
+
521
+
526 virtual void OnMenuCommand(int id);
+
527
+
532 virtual void OnAcceleratorCommand(int id);
+
533
+
538 virtual void HandleInitialized(HWND hwnd);
+
539
+
544 virtual void FontChanged(HFONT hfont);
+
545
+
554 virtual bool OnSetCursor(HWND hwnd, HitTestResult hitTest, int message, bool &result);
+
555
+
562 virtual bool OnContextMenu(bool isKeyboardMsg, Point mousePosition);
+
563
+
569 virtual bool OnNotify(NMHDR *pNMHDR);
+
570
+
574 virtual void OnNotified(NMHDR *pNMHDR);
+
575
+
582 virtual bool OnVerticalScroll(int event, int pos);
+
583
+
590 virtual bool OnHorizontalScroll(int event, int pos);
+
591
+
597 virtual bool OnEnabledChanged(bool newValue);
+
598
+ +
607
+
614 virtual bool OnColor(HDC hdc, HBRUSH &hRetBrush);
+
615
+
621 virtual void OnNcHitTest(const Point &testPoint, HitTestResult &result);
+
622
+
628 virtual bool OnEraseBackground(int &result);
+
629
+
636 virtual bool OnDrawItem(int id, DRAWITEMSTRUCT *pDrawItem);
+
637
+
638 public:
+
642 void Show(int nCmdShow);
+
643
+
647 void Close();
+
648
+
652 void Update();
+
653
+ +
658
+
663 void Redraw(bool erase = false);
+
664
+
668 bool IsControl();
+
669
+
673 bool IsVisible();
+
674
+ +
681
+ +
688
+
692 LRESULT SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam);
+
693
+
698 HitTestResult NcHitTest(const Point &testPoint);
+
699
+
705 static WndBase *GetWndBase(HWND hwnd);
+
706
+
+
710 friend bool operator==(const WndBase &left, const WndBase &right)
+
711 {
+
712 return &left == &right;
+
713 }
+
+
714
+
+
718 friend bool operator!=(const WndBase &left, const WndBase &right)
+
719 {
+
720 return &left != &right;
+
721 }
+
+
722 };
+
+
723}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
字体类
Definition Font.h:137
+
表示一个Windows窗口,是所有窗口和控件的基类
Definition WndBase.h:26
+
const ReadOnlyProperty< sw::Rect > ClientRect
用户区尺寸
Definition WndBase.h:128
+
virtual bool OnPaint()
接收到WM_PAINT时调用该函数
+
virtual bool OnClose()
接收到WM_CLOSE时调用该函数
+
virtual bool OnMouseLeftButtonDown(Point mousePosition, MouseKey keyState)
接收到WM_LBUTTONDOWN时调用该函数
+
LONG_PTR GetExtendedStyle()
获取扩展窗口样式
+
virtual bool OnMouseMiddleButtonUp(Point mousePosition, MouseKey keyState)
接收到WM_MBUTTONUP时调用该函数
+
virtual void OnNcHitTest(const Point &testPoint, HitTestResult &result)
接收到WM_NCHITTEST后调用该函数
+
void SetStyle(LONG_PTR style)
设置窗口样式
+
virtual bool OnMove(Point newClientPosition)
接收到WM_MOVE时调用该函数
+
virtual bool OnNotify(NMHDR *pNMHDR)
接收到WM_NOTIFY后调用该函数
+
void Redraw(bool erase=false)
重画
+
void UpdateText()
更新_text字段
+
Point PointToScreen(const Point &point)
获取用户区点在屏幕上点的位置
+
virtual bool OnContextMenu(bool isKeyboardMsg, Point mousePosition)
接收到WM_CONTEXTMENU后调用目标控件的该函数
+
HFONT GetFontHandle()
获取字体句柄
+
virtual bool OnMouseMiddleButtonDown(Point mousePosition, MouseKey keyState)
接收到WM_MBUTTONDOWN时调用该函数
+
bool GetStyle(LONG_PTR style)
获取窗口的某个样式
+
friend bool operator!=(const WndBase &left, const WndBase &right)
重载!=运算符,判断是否为不同引用
Definition WndBase.h:718
+
const ReadOnlyProperty< double > ClientHeight
用户区高度
Definition WndBase.h:138
+
bool GetExtendedStyle(LONG_PTR style)
获取窗口的某个扩展样式
+
void Close()
发送关闭消息
+
const Property< double > Width
宽度
Definition WndBase.h:118
+
virtual bool OnSysKeyUp(VirtualKey key, KeyFlags flags)
接收到WM_SYSKEYUP时调用该函数
+
void InitWindow(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
初始化为窗口,该函数会调用CreateWindowExW
+
virtual bool OnMouseMiddleButtonDoubleClick(Point mousePosition, MouseKey keyState)
接收到WM_MBUTTONDBLCLK时调用该函数
+
virtual void OnNotified(NMHDR *pNMHDR)
父窗口接收到WM_NOTIFY后调用发出通知控件的该函数
+
virtual bool OnSetFocus(HWND hPrevFocus)
接收到WM_SETFOCUS时调用该函数
+
virtual void HandleInitialized(HWND hwnd)
窗口句柄初始化完成
+
virtual bool OnDeadChar(wchar_t ch, KeyFlags flags)
接收到WM_DEADCHAR时调用该函数
+
virtual bool OnMouseRightButtonDown(Point mousePosition, MouseKey keyState)
接收到WM_RBUTTONDOWN时调用该函数
+
virtual void ParentChanged(WndBase *newParent)
父窗口改变时调用此函数
+
const Property< double > Left
左边
Definition WndBase.h:108
+
const Property< sw::FontWeight > FontWeight
字体粗细
Definition WndBase.h:98
+
virtual bool OnSysChar(wchar_t ch, KeyFlags flags)
接收到WM_SYSCHAR时调用该函数
+
const Property< double > Height
高度
Definition WndBase.h:123
+
const Property< sw::Font > Font
字体
Definition WndBase.h:83
+
const ReadOnlyProperty< bool > IsDestroyed
是否已销毁,当该值为true时不应该继续使用当前对象
Definition WndBase.h:168
+
LRESULT DefaultWndProc(const ProcMsg &refMsg)
调用默认的WndProc,对于窗口则调用DefWindowProcW,控件则调用_controlOldWndProc
+
void SetExtendedStyle(LONG_PTR style)
设置扩展窗口样式
+
virtual bool OnMouseLeftButtonDoubleClick(Point mousePosition, MouseKey keyState)
接收到WM_LBUTTONDBLCLK时调用该函数
+
virtual bool OnMouseRightButtonDoubleClick(Point mousePosition, MouseKey keyState)
接收到WM_RBUTTONDBLCLK时调用该函数
+
virtual bool SetParent(WndBase *parent)
设置父窗口
+
void InitControl(LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
初始化为控件,该函数会调用CreateWindowExW
+
virtual void OnCommand(int code)
当父窗口接收到控件的WM_COMMAND时调用该函数
+
virtual void OnControlCommand(WndBase *pControl, int code, int id)
当WM_COMMAND接收到控件命令时调用该函数
+
virtual ~WndBase()=0
析构函数,这里用纯虚函数使该类成为抽象类
+
const Property< double > Top
顶边
Definition WndBase.h:113
+
virtual bool OnKillFocus(HWND hNextFocus)
接收到WM_KILLFOCUS时调用该函数
+
virtual bool OnDrawItem(int id, DRAWITEMSTRUCT *pDrawItem)
接收到WM_DRAWITEM时调用该函数
+
bool IsVisible()
判断当前对象在界面中是否可视,与Visible属性不同的是该函数返回值会受父窗口的影响
+
Point PointFromScreen(const Point &screenPoint)
获取屏幕上点在当前用户区点的位置
+
const Property< bool > Focused
窗口是否拥有焦点
Definition WndBase.h:158
+
virtual bool OnVerticalScroll(int event, int pos)
接收到WM_VSCROLL时调用目标控件的该函数
+
const Property< std::wstring > FontName
字体名称
Definition WndBase.h:88
+
virtual bool OnEraseBackground(int &result)
接收到WM_ERASEBKGND时调用该函数
+
virtual bool OnEnabledChanged(bool newValue)
接收到WM_ENABLE时调用该函数
+
const Property< sw::Rect > Rect
位置和尺寸
Definition WndBase.h:103
+
LONG_PTR GetStyle()
获取窗口样式
+
const ReadOnlyProperty< WndBase * > Parent
父窗口
Definition WndBase.h:163
+
virtual bool OnCreate()
接收到WM_CREATE时调用该函数
+
const Property< bool > Visible
窗口或控件是否可见
Definition WndBase.h:148
+
virtual LRESULT WndProc(const ProcMsg &refMsg)
对WndProc的封装
+
HitTestResult NcHitTest(const Point &testPoint)
测试指定点在窗口的哪一部分
+
virtual std::wstring & GetText()
获取窗口文本
+
friend bool operator==(const WndBase &left, const WndBase &right)
重载==运算符,判断是否为同一个引用
Definition WndBase.h:710
+
virtual void OnAcceleratorCommand(int id)
当WM_COMMAND接收到快捷键命令时调用该函数
+
const ReadOnlyProperty< double > ClientWidth
用户区宽度
Definition WndBase.h:133
+
virtual bool OnDestroy()
接收到WM_DESTROY时调用该函数
+
static WndBase * GetWndBase(HWND hwnd)
通过窗口句柄获取WndBase
+
const Property< std::wstring > Text
窗口标题或控件文本
Definition WndBase.h:153
+
virtual bool OnCtlColor(WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)
接收到WM_CTLCOLORxxx时调用该函数
+
virtual bool OnColor(HDC hdc, HBRUSH &hRetBrush)
父窗口接收到WM_CTLCOLORxxx时调用对应控件的该函数
+
WndBase()
初始化WndBase
+
virtual bool OnSize(Size newClientSize)
接收到WM_SIZE时调用该函数
+
virtual bool OnMouseLeave()
接收到WM_MOUSELEAVE时调用该函数
+
void SetExtendedStyle(LONG_PTR style, bool value)
设置窗口的某个扩展样式
+
virtual bool OnSetCursor(HWND hwnd, HitTestResult hitTest, int message, bool &result)
接收到WM_SETCURSOR消息时调用该函数
+
void Update()
该函数调用UpdateWindow
+
virtual void SetText(const std::wstring &value)
调用SetWindowTextW设置窗口文本
+
const ReadOnlyProperty< HWND > Handle
窗口句柄
Definition WndBase.h:78
+
virtual void FontChanged(HFONT hfont)
字体改变时调用该函数
+
const Property< double > FontSize
字体大小
Definition WndBase.h:93
+
void SetStyle(LONG_PTR style, bool value)
设置窗口的某个样式
+
bool IsControl()
判断当前对象是否是控件
+
virtual bool OnSysDeadChar(wchar_t ch, KeyFlags flags)
接收到WM_SYSDEADCHAR时调用该函数
+
virtual bool OnChar(wchar_t ch, KeyFlags flags)
接收到WM_CHAR时调用该函数
+
virtual bool OnMouseMove(Point mousePosition, MouseKey keyState)
接收到WM_MOUSEMOVE时调用该函数
+
LRESULT SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)
发送消息
+
const Property< bool > Enabled
窗口或控件是否可用
Definition WndBase.h:143
+
virtual bool OnSysKeyDown(VirtualKey key, KeyFlags flags)
接收到WM_SYSKEYDOWN时调用该函数
+
virtual bool OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState)
接收到WM_LBUTTONUP时调用该函数
+
virtual void OnEndPaint()
在OnPaint函数完成之后调用该函数
+
virtual void OnTextChanged()
Text属性更改时调用此函数
+
virtual bool OnMouseWheel(int wheelDelta, Point mousePosition, MouseKey keyState)
接收到WM_MOUSEWHEEL时调用该函数
+
void Show(int nCmdShow)
该函数调用ShowWindow
+
virtual bool OnKeyDown(VirtualKey key, KeyFlags flags)
接收到WM_KEYDOWN时调用该函数
+
virtual bool OnMouseRightButtonUp(Point mousePosition, MouseKey keyState)
接收到WM_RBUTTONUP时调用该函数
+
virtual void VisibleChanged(bool newVisible)
Visible属性改变时调用此函数
+
virtual bool OnKeyUp(VirtualKey key, KeyFlags flags)
接收到WM_KEYUP时调用该函数
+
virtual bool OnHorizontalScroll(int event, int pos)
接收到WM_HSCROLL时调用目标控件的该函数
+
void UpdateFont()
更新字体
+
virtual void OnMenuCommand(int id)
当WM_COMMAND接收到菜单命令时调用该函数
+
https://learn.microsoft.com/en-us/windows/win32/inputdev/about-keyboard-input#keystroke-message-flags
Definition Keys.h:11
+
表示相对于左上角的点坐标
Definition Point.h:11
+
对Windows窗口消息的封装
Definition ProcMsg.h:10
+
表示一个矩形区域
Definition Rect.h:13
+
尺寸
Definition Size.h:11
+
+
+ + + + diff --git a/docs/_wnd_msg_8h_source.html b/docs/_wnd_msg_8h_source.html new file mode 100644 index 00000000..4d475585 --- /dev/null +++ b/docs/_wnd_msg_8h_source.html @@ -0,0 +1,125 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/WndMsg.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
WndMsg.h
+
+
+
1#pragma once
+
2
+
3#include <Windows.h>
+
4
+
5namespace sw
+
6{
+
10 enum WndMsg : UINT {
+
11
+
15 WM_SimpleWindowBegin = WM_USER + 0x3000,
+
16
+
20 WM_UpdateLayout,
+
21 };
+
22}
+
+
+ + + + diff --git a/docs/_wrap_layout_8h_source.html b/docs/_wrap_layout_8h_source.html new file mode 100644 index 00000000..abf9f75d --- /dev/null +++ b/docs/_wrap_layout_8h_source.html @@ -0,0 +1,140 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/WrapLayout.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
WrapLayout.h
+
+
+
1#pragma once
+
2
+
3#include "Alignment.h"
+
4#include "WrapLayoutH.h"
+
5#include "WrapLayoutV.h"
+
6
+
7namespace sw
+
8{
+
+
12 class WrapLayout : public WrapLayoutH, public WrapLayoutV
+
13 {
+
14 public:
+
18 Orientation orientation = Orientation::Horizontal;
+
19
+
23 virtual void MeasureOverride(Size &availableSize) override;
+
24
+
28 virtual void ArrangeOverride(Size &finalSize) override;
+
29 };
+
+
30}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
横向自动换行布局
Definition WrapLayoutH.h:11
+
自动换行布局
Definition WrapLayout.h:13
+
Orientation orientation
排列方式
Definition WrapLayout.h:18
+
virtual void MeasureOverride(Size &availableSize) override
计算所需尺寸
+
virtual void ArrangeOverride(Size &finalSize) override
安排控件
+
纵向自动换行布局
Definition WrapLayoutV.h:11
+
尺寸
Definition Size.h:11
+
+
+ + + + diff --git a/docs/_wrap_layout_h_8h_source.html b/docs/_wrap_layout_h_8h_source.html new file mode 100644 index 00000000..6f1d5afc --- /dev/null +++ b/docs/_wrap_layout_h_8h_source.html @@ -0,0 +1,134 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/WrapLayoutH.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
WrapLayoutH.h
+
+
+
1#pragma once
+
2
+
3#include "LayoutHost.h"
+
4
+
5namespace sw
+
6{
+
+
10 class WrapLayoutH : virtual public LayoutHost
+
11 {
+
12 public:
+
16 virtual void MeasureOverride(Size &availableSize) override;
+
17
+
21 virtual void ArrangeOverride(Size &finalSize) override;
+
22 };
+
+
23}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
用于托管元素的布局方式的对象类型,是所有布局方式类型的基类
Definition LayoutHost.h:11
+
横向自动换行布局
Definition WrapLayoutH.h:11
+
virtual void ArrangeOverride(Size &finalSize) override
安排控件
+
virtual void MeasureOverride(Size &availableSize) override
计算所需尺寸
+
尺寸
Definition Size.h:11
+
+
+ + + + diff --git a/docs/_wrap_layout_v_8h_source.html b/docs/_wrap_layout_v_8h_source.html new file mode 100644 index 00000000..8546f8ec --- /dev/null +++ b/docs/_wrap_layout_v_8h_source.html @@ -0,0 +1,134 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/WrapLayoutV.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
WrapLayoutV.h
+
+
+
1#pragma once
+
2
+
3#include "LayoutHost.h"
+
4
+
5namespace sw
+
6{
+
+
10 class WrapLayoutV : virtual public LayoutHost
+
11 {
+
12 public:
+
16 virtual void MeasureOverride(Size &availableSize) override;
+
17
+
21 virtual void ArrangeOverride(Size &finalSize) override;
+
22 };
+
+
23}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
用于托管元素的布局方式的对象类型,是所有布局方式类型的基类
Definition LayoutHost.h:11
+
纵向自动换行布局
Definition WrapLayoutV.h:11
+
virtual void ArrangeOverride(Size &finalSize) override
安排控件
+
virtual void MeasureOverride(Size &availableSize) override
计算所需尺寸
+
尺寸
Definition Size.h:11
+
+
+ + + + diff --git a/docs/_wrap_panel_8h_source.html b/docs/_wrap_panel_8h_source.html new file mode 100644 index 00000000..5b564170 --- /dev/null +++ b/docs/_wrap_panel_8h_source.html @@ -0,0 +1,144 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc/WrapPanel.h Source File + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
WrapPanel.h
+
+
+
1#pragma once
+
2
+
3#include "Panel.h"
+
4#include "WrapLayout.h"
+
5
+
6namespace sw
+
7{
+
+
11 class WrapPanel : public Panel
+
12 {
+
13 private:
+
17 WrapLayout _wrapLayout = WrapLayout();
+
18
+
19 public:
+ +
24
+
25 public:
+ +
30
+
31 protected:
+
35 virtual LayoutHost *GetDefaultLayout() override;
+
36 };
+
+
37}
+
字典类,内部维护了一个指向std::map的智能指针
Definition Dictionary.h:24
+
用于托管元素的布局方式的对象类型,是所有布局方式类型的基类
Definition LayoutHost.h:11
+
面板
Definition Panel.h:22
+
自动换行布局
Definition WrapLayout.h:13
+
自动换行面板
Definition WrapPanel.h:12
+
const Property< sw::Orientation > Orientation
排列方式
Definition WrapPanel.h:23
+
WrapPanel()
初始化WrapPanel
+
virtual LayoutHost * GetDefaultLayout() override
获取默认布局对象
+
+
+ + + + diff --git a/docs/annotated.html b/docs/annotated.html new file mode 100644 index 00000000..5eb5cb9b --- /dev/null +++ b/docs/annotated.html @@ -0,0 +1,212 @@ + + + + + + + +SimpleWindow: Class List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Class List
+
+
+
Here are the classes, structs, unions and interfaces with brief descriptions:
+
[detail level 12]
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 Nsw
+
+
+
+ + + + diff --git a/docs/annotated_dup.js b/docs/annotated_dup.js new file mode 100644 index 00000000..d6d8f6b7 --- /dev/null +++ b/docs/annotated_dup.js @@ -0,0 +1,106 @@ +var annotated_dup = +[ + [ "sw", null, [ + [ "_HasEventType", "structsw_1_1___has_event_type.html", null ], + [ "_HasEventType< T, decltype(void(std::declval< T >().EventType))>", "structsw_1_1___has_event_type_3_01_t_00_01decltype_07void_07std_1_1declval_3_01_t_01_4_07_08_8_event_type_08_08_4.html", null ], + [ "_IsTypedRoutedEventArgs", "structsw_1_1___is_typed_routed_event_args.html", null ], + [ "App", "classsw_1_1_app.html", null ], + [ "AutoSizeGridColumn", "structsw_1_1_auto_size_grid_column.html", "structsw_1_1_auto_size_grid_column" ], + [ "AutoSizeGridRow", "structsw_1_1_auto_size_grid_row.html", "structsw_1_1_auto_size_grid_row" ], + [ "Button", "classsw_1_1_button.html", "classsw_1_1_button" ], + [ "ButtonBase", "classsw_1_1_button_base.html", "classsw_1_1_button_base" ], + [ "Canvas", "classsw_1_1_canvas.html", "classsw_1_1_canvas" ], + [ "CanvasLayout", "classsw_1_1_canvas_layout.html", "classsw_1_1_canvas_layout" ], + [ "CanvasLayoutTag", "structsw_1_1_canvas_layout_tag.html", "structsw_1_1_canvas_layout_tag" ], + [ "CheckableButton", "classsw_1_1_checkable_button.html", "classsw_1_1_checkable_button" ], + [ "CheckBox", "classsw_1_1_check_box.html", "classsw_1_1_check_box" ], + [ "Color", "structsw_1_1_color.html", "structsw_1_1_color" ], + [ "ComboBox", "classsw_1_1_combo_box.html", "classsw_1_1_combo_box" ], + [ "ContextMenu", "classsw_1_1_context_menu.html", "classsw_1_1_context_menu" ], + [ "Control", "classsw_1_1_control.html", "classsw_1_1_control" ], + [ "CursorHelper", "classsw_1_1_cursor_helper.html", null ], + [ "Dictionary", "classsw_1_1_dictionary.html", "classsw_1_1_dictionary" ], + [ "Dip", "classsw_1_1_dip.html", null ], + [ "DockLayout", "classsw_1_1_dock_layout.html", "classsw_1_1_dock_layout" ], + [ "DockPanel", "classsw_1_1_dock_panel.html", "classsw_1_1_dock_panel" ], + [ "FillLayout", "classsw_1_1_fill_layout.html", "classsw_1_1_fill_layout" ], + [ "FillRemainGridColumn", "structsw_1_1_fill_remain_grid_column.html", "structsw_1_1_fill_remain_grid_column" ], + [ "FillRemainGridRow", "structsw_1_1_fill_remain_grid_row.html", "structsw_1_1_fill_remain_grid_row" ], + [ "FixSizeGridColumn", "structsw_1_1_fix_size_grid_column.html", "structsw_1_1_fix_size_grid_column" ], + [ "FixSizeGridRow", "structsw_1_1_fix_size_grid_row.html", "structsw_1_1_fix_size_grid_row" ], + [ "Font", "classsw_1_1_font.html", "classsw_1_1_font" ], + [ "GotCharEventArgs", "structsw_1_1_got_char_event_args.html", null ], + [ "Grid", "classsw_1_1_grid.html", "classsw_1_1_grid" ], + [ "GridColumn", "structsw_1_1_grid_column.html", "structsw_1_1_grid_column" ], + [ "GridLayout", "classsw_1_1_grid_layout.html", "classsw_1_1_grid_layout" ], + [ "GridLayoutTag", "structsw_1_1_grid_layout_tag.html", "structsw_1_1_grid_layout_tag" ], + [ "GridRow", "structsw_1_1_grid_row.html", "structsw_1_1_grid_row" ], + [ "GroupBox", "classsw_1_1_group_box.html", "classsw_1_1_group_box" ], + [ "IconHelper", "classsw_1_1_icon_helper.html", null ], + [ "ILayout", "classsw_1_1_i_layout.html", "classsw_1_1_i_layout" ], + [ "ITag", "classsw_1_1_i_tag.html", "classsw_1_1_i_tag" ], + [ "ItemsControl", "classsw_1_1_items_control.html", "classsw_1_1_items_control" ], + [ "KeyDownEventArgs", "structsw_1_1_key_down_event_args.html", null ], + [ "KeyFlags", "structsw_1_1_key_flags.html", null ], + [ "KeyUpEventArgs", "structsw_1_1_key_up_event_args.html", null ], + [ "Label", "classsw_1_1_label.html", "classsw_1_1_label" ], + [ "Layer", "classsw_1_1_layer.html", "classsw_1_1_layer" ], + [ "LayoutHost", "classsw_1_1_layout_host.html", "classsw_1_1_layout_host" ], + [ "List", "classsw_1_1_list.html", "classsw_1_1_list" ], + [ "ListBox", "classsw_1_1_list_box.html", "classsw_1_1_list_box" ], + [ "ListView", "classsw_1_1_list_view.html", "classsw_1_1_list_view" ], + [ "ListViewCheckStateChangedEventArgs", "structsw_1_1_list_view_check_state_changed_event_args.html", null ], + [ "ListViewColumn", "structsw_1_1_list_view_column.html", "structsw_1_1_list_view_column" ], + [ "ListViewHeaderClickedEventArgs", "structsw_1_1_list_view_header_clicked_event_args.html", null ], + [ "ListViewItemClickedEventArgs", "structsw_1_1_list_view_item_clicked_event_args.html", null ], + [ "Menu", "classsw_1_1_menu.html", "classsw_1_1_menu" ], + [ "MenuBase", "classsw_1_1_menu_base.html", "classsw_1_1_menu_base" ], + [ "MenuItem", "classsw_1_1_menu_item.html", "classsw_1_1_menu_item" ], + [ "MouseButtonDownEventArgs", "structsw_1_1_mouse_button_down_event_args.html", null ], + [ "MouseButtonUpEventArgs", "structsw_1_1_mouse_button_up_event_args.html", null ], + [ "MouseMoveEventArgs", "structsw_1_1_mouse_move_event_args.html", null ], + [ "MouseWheelEventArgs", "structsw_1_1_mouse_wheel_event_args.html", null ], + [ "MsgBox", "classsw_1_1_msg_box.html", null ], + [ "Panel", "classsw_1_1_panel.html", "classsw_1_1_panel" ], + [ "PanelBase", "classsw_1_1_panel_base.html", "classsw_1_1_panel_base" ], + [ "PasswordBox", "classsw_1_1_password_box.html", "classsw_1_1_password_box" ], + [ "Path", "classsw_1_1_path.html", null ], + [ "Point", "structsw_1_1_point.html", "structsw_1_1_point" ], + [ "PositionChangedEventArgs", "structsw_1_1_position_changed_event_args.html", null ], + [ "ProcMsg", "structsw_1_1_proc_msg.html", "structsw_1_1_proc_msg" ], + [ "ProgressBar", "classsw_1_1_progress_bar.html", "classsw_1_1_progress_bar" ], + [ "Property", "classsw_1_1_property.html", "classsw_1_1_property" ], + [ "RadioButton", "classsw_1_1_radio_button.html", "classsw_1_1_radio_button" ], + [ "ReadOnlyProperty", "classsw_1_1_read_only_property.html", "classsw_1_1_read_only_property" ], + [ "Rect", "structsw_1_1_rect.html", "structsw_1_1_rect" ], + [ "RoutedEventArgs", "structsw_1_1_routed_event_args.html", "structsw_1_1_routed_event_args" ], + [ "RoutedEventArgsOfType", "structsw_1_1_routed_event_args_of_type.html", null ], + [ "Screen", "classsw_1_1_screen.html", null ], + [ "ScrollingEventArgs", "structsw_1_1_scrolling_event_args.html", null ], + [ "ShowContextMenuEventArgs", "structsw_1_1_show_context_menu_event_args.html", null ], + [ "Size", "structsw_1_1_size.html", "structsw_1_1_size" ], + [ "SizeChangedEventArgs", "structsw_1_1_size_changed_event_args.html", null ], + [ "Slider", "classsw_1_1_slider.html", "classsw_1_1_slider" ], + [ "StackLayout", "classsw_1_1_stack_layout.html", "classsw_1_1_stack_layout" ], + [ "StackLayoutH", "classsw_1_1_stack_layout_h.html", "classsw_1_1_stack_layout_h" ], + [ "StackLayoutV", "classsw_1_1_stack_layout_v.html", "classsw_1_1_stack_layout_v" ], + [ "StackPanel", "classsw_1_1_stack_panel.html", "classsw_1_1_stack_panel" ], + [ "StaticControl", "classsw_1_1_static_control.html", "classsw_1_1_static_control" ], + [ "TabControl", "classsw_1_1_tab_control.html", "classsw_1_1_tab_control" ], + [ "TextBox", "classsw_1_1_text_box.html", "classsw_1_1_text_box" ], + [ "TextBoxBase", "classsw_1_1_text_box_base.html", "classsw_1_1_text_box_base" ], + [ "Thickness", "structsw_1_1_thickness.html", "structsw_1_1_thickness" ], + [ "UIElement", "classsw_1_1_u_i_element.html", "classsw_1_1_u_i_element" ], + [ "UniformGrid", "classsw_1_1_uniform_grid.html", "classsw_1_1_uniform_grid" ], + [ "UniformGridLayout", "classsw_1_1_uniform_grid_layout.html", "classsw_1_1_uniform_grid_layout" ], + [ "Utils", "classsw_1_1_utils.html", null ], + [ "Window", "classsw_1_1_window.html", "classsw_1_1_window" ], + [ "WindowClosingEventArgs", "structsw_1_1_window_closing_event_args.html", null ], + [ "WndBase", "classsw_1_1_wnd_base.html", "classsw_1_1_wnd_base" ], + [ "WrapLayout", "classsw_1_1_wrap_layout.html", "classsw_1_1_wrap_layout" ], + [ "WrapLayoutH", "classsw_1_1_wrap_layout_h.html", "classsw_1_1_wrap_layout_h" ], + [ "WrapLayoutV", "classsw_1_1_wrap_layout_v.html", "classsw_1_1_wrap_layout_v" ], + [ "WrapPanel", "classsw_1_1_wrap_panel.html", "classsw_1_1_wrap_panel" ], + [ "WriteOnlyProperty", "classsw_1_1_write_only_property.html", "classsw_1_1_write_only_property" ] + ] ] +]; \ No newline at end of file diff --git a/docs/bc_s.png b/docs/bc_s.png new file mode 100644 index 0000000000000000000000000000000000000000..224b29aa9847d5a4b3902efd602b7ddf7d33e6c2 GIT binary patch literal 676 zcmV;V0$crwP)y__>=_9%My z{n931IS})GlGUF8K#6VIbs%684A^L3@%PlP2>_sk`UWPq@f;rU*V%rPy_ekbhXT&s z(GN{DxFv}*vZp`F>S!r||M`I*nOwwKX+BC~3P5N3-)Y{65c;ywYiAh-1*hZcToLHK ztpl1xomJ+Yb}K(cfbJr2=GNOnT!UFA7Vy~fBz8?J>XHsbZoDad^8PxfSa0GDgENZS zuLCEqzb*xWX2CG*b&5IiO#NzrW*;`VC9455M`o1NBh+(k8~`XCEEoC1Ybwf;vr4K3 zg|EB<07?SOqHp9DhLpS&bzgo70I+ghB_#)K7H%AMU3v}xuyQq9&Bm~++VYhF09a+U zl7>n7Jjm$K#b*FONz~fj;I->Bf;ule1prFN9FovcDGBkpg>)O*-}eLnC{6oZHZ$o% zXKW$;0_{8hxHQ>l;_*HATI(`7t#^{$(zLe}h*mqwOc*nRY9=?Sx4OOeVIfI|0V(V2 zBrW#G7Ss9wvzr@>H*`r>zE z+e8bOBgqIgldUJlG(YUDviMB`9+DH8n-s9SXRLyJHO1!=wY^79WYZMTa(wiZ!zP66 zA~!21vmF3H2{ngD;+`6j#~6j;$*f*G_2ZD1E;9(yaw7d-QnSCpK(cR1zU3qU0000< KMNUMnLSTYoA~SLT literal 0 HcmV?d00001 diff --git a/docs/bc_sd.png b/docs/bc_sd.png new file mode 100644 index 0000000000000000000000000000000000000000..31ca888dc71049713b35c351933a8d0f36180bf1 GIT binary patch literal 635 zcmV->0)+jEP)Jwi0r1~gdSq#w{Bu1q z`craw(p2!hu$4C_$Oc3X(sI6e=9QSTwPt{G) z=htT&^~&c~L2~e{r5_5SYe7#Is-$ln>~Kd%$F#tC65?{LvQ}8O`A~RBB0N~`2M+waajO;5>3B&-viHGJeEK2TQOiPRa zfDKyqwMc4wfaEh4jt>H`nW_Zidwk@Bowp`}(VUaj-pSI(-1L>FJVsX}Yl9~JsqgsZ zUD9(rMwf23Gez6KPa|wwInZodP-2}9@fK0Ga_9{8SOjU&4l`pH4@qlQp83>>HT$xW zER^U>)MyV%t(Lu=`d=Y?{k1@}&r7ZGkFQ%z%N+sE9BtYjovzxyxCPxN6&@wLK{soQ zSmkj$aLI}miuE^p@~4}mg9OjDfGEkgY4~^XzLRUBB*O{+&vq<3v(E%+k_i%=`~j%{ Vj14gnt9}3g002ovPDHLkV1n!oC4m3{ literal 0 HcmV?d00001 diff --git a/docs/classes.html b/docs/classes.html new file mode 100644 index 00000000..2aea43f3 --- /dev/null +++ b/docs/classes.html @@ -0,0 +1,160 @@ + + + + + + + +SimpleWindow: Class Index + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Class Index
+
+
+
A | B | C | D | F | G | I | K | L | M | P | R | S | T | U | W | _
+
+
+
A
+
App (sw)
AutoSizeGridColumn (sw)
AutoSizeGridRow (sw)
+
+
B
+
Button (sw)
ButtonBase (sw)
+
+
C
+
Canvas (sw)
CanvasLayout (sw)
CanvasLayoutTag (sw)
CheckableButton (sw)
CheckBox (sw)
Color (sw)
ComboBox (sw)
ContextMenu (sw)
Control (sw)
CursorHelper (sw)
+
+
D
+
Dictionary (sw)
Dip (sw)
DockLayout (sw)
DockPanel (sw)
+
+
F
+
FillLayout (sw)
FillRemainGridColumn (sw)
FillRemainGridRow (sw)
FixSizeGridColumn (sw)
FixSizeGridRow (sw)
Font (sw)
+
+
G
+
GotCharEventArgs (sw)
Grid (sw)
GridColumn (sw)
GridLayout (sw)
GridLayoutTag (sw)
GridRow (sw)
GroupBox (sw)
+
+
I
+
IconHelper (sw)
ILayout (sw)
ITag (sw)
ItemsControl (sw)
+
+
K
+
KeyDownEventArgs (sw)
KeyFlags (sw)
KeyUpEventArgs (sw)
+
+
L
+
Label (sw)
Layer (sw)
LayoutHost (sw)
List (sw)
ListBox (sw)
ListView (sw)
ListViewCheckStateChangedEventArgs (sw)
ListViewColumn (sw)
ListViewHeaderClickedEventArgs (sw)
ListViewItemClickedEventArgs (sw)
+
+
M
+
Menu (sw)
MenuBase (sw)
MenuItem (sw)
MouseButtonDownEventArgs (sw)
MouseButtonUpEventArgs (sw)
MouseMoveEventArgs (sw)
MouseWheelEventArgs (sw)
MsgBox (sw)
+
+
P
+
Panel (sw)
PanelBase (sw)
PasswordBox (sw)
Path (sw)
Point (sw)
PositionChangedEventArgs (sw)
ProcMsg (sw)
ProgressBar (sw)
Property (sw)
+
+
R
+
RadioButton (sw)
ReadOnlyProperty (sw)
Rect (sw)
RoutedEventArgs (sw)
RoutedEventArgsOfType (sw)
+
+
S
+
Screen (sw)
ScrollingEventArgs (sw)
ShowContextMenuEventArgs (sw)
Size (sw)
SizeChangedEventArgs (sw)
Slider (sw)
StackLayout (sw)
StackLayoutH (sw)
StackLayoutV (sw)
StackPanel (sw)
StaticControl (sw)
+
+
T
+
TabControl (sw)
TextBox (sw)
TextBoxBase (sw)
Thickness (sw)
+
+
U
+
UIElement (sw)
UniformGrid (sw)
UniformGridLayout (sw)
Utils (sw)
+
+
W
+
Window (sw)
WindowClosingEventArgs (sw)
WndBase (sw)
WrapLayout (sw)
WrapLayoutH (sw)
WrapLayoutV (sw)
WrapPanel (sw)
WriteOnlyProperty (sw)
+
+
_
+
_HasEventType (sw)
_HasEventType< T, decltype(void(std::declval< T >().EventType))> (sw)
_IsTypedRoutedEventArgs (sw)
+
+
+
+ + + + diff --git a/docs/classsw_1_1_app-members.html b/docs/classsw_1_1_app-members.html new file mode 100644 index 00000000..94badc1c --- /dev/null +++ b/docs/classsw_1_1_app-members.html @@ -0,0 +1,116 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::App Member List
+
+
+ +

This is the complete list of members for sw::App, including all inherited members.

+ + + + + + + + +
CurrentDirectorysw::Appstatic
ExeDirectorysw::Appstatic
ExePathsw::Appstatic
Instancesw::Appstatic
MsgLoop()sw::Appstatic
QuitModesw::Appstatic
QuitMsgLoop(int exitCode=0)sw::Appstatic
+
+ + + + diff --git a/docs/classsw_1_1_app.html b/docs/classsw_1_1_app.html new file mode 100644 index 00000000..446d5453 --- /dev/null +++ b/docs/classsw_1_1_app.html @@ -0,0 +1,216 @@ + + + + + + + +SimpleWindow: sw::App Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+ +

App类 + More...

+ +

#include <App.h>

+ + + + + + + + +

+Static Public Member Functions

static int MsgLoop ()
 消息循环
 
static void QuitMsgLoop (int exitCode=0)
 退出当前消息循环
 
+ + + + + + + + + + + + + + + + +

+Static Public Attributes

+static const ReadOnlyProperty< HINSTANCEInstance
 应用程序的当前实例的句柄
 
+static const ReadOnlyProperty< std::wstring > ExePath
 当前exe的文件路径
 
+static const ReadOnlyProperty< std::wstring > ExeDirectory
 当前exe所在的文件夹路径
 
+static const Property< std::wstring > CurrentDirectory
 当前工作路径
 
+static const Property< AppQuitMode > QuitMode
 程序退出消息循环的方式
 
+

Detailed Description

+

App类

+

Member Function Documentation

+ +

◆ MsgLoop()

+ +
+
+ + + + + +
+ + + + + + + +
static int sw::App::MsgLoop ()
+
+static
+
+ +

消息循环

+
Returns
退出代码
+ +
+
+ +

◆ QuitMsgLoop()

+ +
+
+ + + + + +
+ + + + + + + +
static void sw::App::QuitMsgLoop (int exitCode = 0)
+
+static
+
+ +

退出当前消息循环

+
Parameters
+ + +
exitCode退出代码
+
+
+ +
+
+
The documentation for this class was generated from the following file:
    +
  • D:/code/GitHub/sw/sw/inc/App.h
  • +
+
+
+ + + + diff --git a/docs/classsw_1_1_button-members.html b/docs/classsw_1_1_button-members.html new file mode 100644 index 00000000..3c745266 --- /dev/null +++ b/docs/classsw_1_1_button-members.html @@ -0,0 +1,294 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::Button Member List
+
+
+ +

This is the complete list of members for sw::Button, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AddChild(UIElement *element)sw::UIElement
AddChild(UIElement &element)sw::UIElement
AddChild(UIElement *element, uint64_t layoutTag)sw::UIElement
AddChild(UIElement &element, uint64_t layoutTag)sw::UIElement
Arrange(const sw::Rect &finalPosition) overridesw::UIElementvirtual
BackColorsw::UIElement
Button()sw::Button
ButtonBase()sw::ButtonBaseprotected
ChildCountsw::UIElement
ClearChildren()sw::UIElement
ClientHeightsw::WndBase
ClientRectsw::WndBase
ClientWidthsw::WndBase
Close()sw::WndBase
CollapseWhenHidesw::UIElement
ContextMenusw::UIElement
Control()sw::Controlprotected
DefaultWndProc(const ProcMsg &refMsg)sw::WndBaseprotected
Enabledsw::WndBase
Floatsw::UIElement
Focusedsw::WndBase
Fontsw::WndBase
FontChanged(HFONT hfont)sw::WndBaseprotectedvirtual
FontNamesw::WndBase
FontSizesw::WndBase
FontWeightsw::WndBase
GetArrangeOffsetX()sw::UIElementprotected
GetArrangeOffsetY()sw::UIElementprotected
GetChildBottommost(bool update)sw::UIElementprotected
GetChildLayoutAt(int index) overridesw::UIElementvirtual
GetChildLayoutCount() overridesw::UIElementvirtual
GetChildRightmost(bool update)sw::UIElementprotected
GetDesireSize() overridesw::UIElementvirtual
GetExtendedStyle()sw::WndBaseprotected
GetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
GetFontHandle()sw::WndBaseprotected
GetLayoutTag() overridesw::UIElementvirtual
GetNextElement()sw::UIElement
GetNextTabStopElement()sw::UIElement
GetRealBackColor()sw::UIElement
GetRealTextColor()sw::UIElement
GetRootElement()sw::UIElement
GetStyle()sw::WndBaseprotected
GetStyle(LONG_PTR style)sw::WndBaseprotected
GetTag() overridesw::UIElementvirtual
GetText()sw::WndBaseprotectedvirtual
GetWndBase(HWND hwnd)sw::WndBasestatic
Handlesw::WndBase
HandleChenged()sw::Controlprotectedvirtual
HandleInitialized(HWND hwnd)sw::WndBaseprotectedvirtual
Heightsw::WndBase
HorizontalAlignmentsw::UIElement
IndexOf(UIElement *element)sw::UIElement
IndexOf(UIElement &element)sw::UIElement
InheritTextColorsw::UIElement
InitButtonBase(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::ButtonBaseprotected
InitControl(LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
InitWindow(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
IsControl()sw::WndBase
IsDestroyedsw::WndBase
IsRootElement()sw::UIElement
IsRoutedEventRegistered(RoutedEventType eventType)sw::UIElement
IsVisible()sw::WndBase
LayoutTagsw::UIElement
Leftsw::WndBase
Marginsw::UIElement
Measure(const Size &availableSize) overridesw::UIElementvirtual
MoveToBottom()sw::UIElement
MoveToTop()sw::UIElement
NcHitTest(const Point &testPoint)sw::WndBase
NotifyLayoutUpdated()sw::UIElementprotected
OnAcceleratorCommand(int id)sw::WndBaseprotectedvirtual
OnAddedChild(UIElement &element)sw::UIElementprotectedvirtual
OnChar(wchar_t ch, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnClicked()sw::ButtonBaseprotectedvirtual
OnClose() overridesw::UIElementprotectedvirtual
OnColor(HDC hdc, HBRUSH &hRetBrush) overridesw::UIElementprotectedvirtual
OnCommand(int code) overridesw::ButtonBaseprotectedvirtual
OnContextMenu(bool isKeyboardMsg, Point mousePosition) overridesw::UIElementprotectedvirtual
OnControlCommand(WndBase *pControl, int code, int id)sw::WndBaseprotectedvirtual
OnCreate()sw::WndBaseprotectedvirtual
OnCtlColor(WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)sw::WndBaseprotectedvirtual
OnDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnDestroy()sw::WndBaseprotectedvirtual
OnDoubleClicked()sw::ButtonBaseprotectedvirtual
OnDrawFocusRect() overridesw::Buttonprotectedvirtual
OnDrawItem(int id, DRAWITEMSTRUCT *pDrawItem)sw::WndBaseprotectedvirtual
OnEnabledChanged(bool newValue)sw::WndBaseprotectedvirtual
OnEndPaint() overridesw::UIElementprotectedvirtual
OnEraseBackground(int &result)sw::WndBaseprotectedvirtual
OnHorizontalScroll(int event, int pos)sw::WndBaseprotectedvirtual
OnKeyDown(VirtualKey key, KeyFlags flags) overridesw::Buttonprotectedvirtual
OnKeyUp(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKillFocus(HWND hNextFocus) overridesw::Buttonprotectedvirtual
OnMenuCommand(int id) overridesw::UIElementprotectedvirtual
OnMouseLeave() overridesw::UIElementprotectedvirtual
OnMouseLeftButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseLeftButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseMiddleButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMove(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseRightButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseWheel(int wheelDelta, Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMove(Point newClientPosition) overridesw::UIElementprotectedvirtual
OnNcHitTest(const Point &testPoint, HitTestResult &result)sw::WndBaseprotectedvirtual
OnNotified(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnNotify(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnPaint()sw::WndBaseprotectedvirtual
OnRemovedChild(UIElement &element)sw::UIElementprotectedvirtual
OnSetCursor(HWND hwnd, HitTestResult hitTest, int message, bool &result) overridesw::UIElementprotectedvirtual
OnSetFocus(HWND hPreFocus) overridesw::Buttonprotectedvirtual
OnSize(Size newClientSize) overridesw::UIElementprotectedvirtual
OnSysChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyDown(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyUp(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnTabStop()sw::UIElementprotectedvirtual
OnTextChanged() overridesw::UIElementprotectedvirtual
OnVerticalScroll(int event, int pos)sw::WndBaseprotectedvirtual
operator=(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator=(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator[](int index) constsw::UIElement
Parentsw::UIElement
ParentChanged(WndBase *newParent) overridesw::UIElementprotectedvirtual
PointFromScreen(const Point &screenPoint)sw::WndBase
PointToScreen(const Point &point)sw::WndBase
RaiseRoutedEvent(RoutedEventType eventType)sw::UIElementprotected
RaiseRoutedEvent(RoutedEventArgs &eventArgs)sw::UIElementprotected
Rectsw::WndBase
Redraw(bool erase=false)sw::WndBase
RegisterRoutedEvent(RoutedEventType eventType, const RoutedEvent &handler)sw::UIElement
RegisterRoutedEvent(RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))sw::UIElementinline
RegisterRoutedEvent(std::function< void(UIElement &, TEventArgs &)> handler)sw::UIElementinline
RegisterRoutedEvent(THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))sw::UIElementinline
RemoveChild(UIElement *element)sw::UIElement
RemoveChild(UIElement &element)sw::UIElement
RemoveChildAt(int index)sw::UIElement
ResetCursor()sw::UIElement
ResetHandle()sw::Controlprotected
SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase
SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement
SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual
SetCursor(HCURSOR hCursor)sw::UIElement
SetCursor(StandardCursor cursor)sw::UIElement
SetDesireSize(const Size &size) overridesw::UIElementvirtual
SetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
SetExtendedStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetNextTabStopFocus()sw::UIElementprotected
SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual
SetStyle(LONG_PTR style)sw::WndBaseprotected
SetStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetTag(uint64_t tag) overridesw::UIElementvirtual
SetText(const std::wstring &value)sw::WndBaseprotectedvirtual
SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual
Show(int nCmdShow)sw::WndBase
ShowContextMenu(const Point &point)sw::UIElement
TabStopsw::UIElement
Tagsw::UIElement
Textsw::WndBase
TextColorsw::UIElement
Topsw::WndBase
Transparentsw::UIElement
UIElement()sw::UIElementprotected
UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement
Update()sw::WndBase
UpdateChildrenZOrder()sw::UIElementprotected
UpdateFont()sw::WndBase
UpdateSiblingsZOrder()sw::UIElementprotected
UpdateText()sw::WndBaseprotected
VerticalAlignmentsw::UIElement
Visiblesw::WndBase
VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual
Widthsw::WndBase
WndBase()sw::WndBaseprotected
WndBase(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndBase(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual
~ButtonBase()=0sw::ButtonBasepure virtual
~Control()=0sw::Controlpure virtual
~UIElement()=0sw::UIElementpure virtual
~WndBase()=0sw::WndBasepure virtual
+
+ + + + diff --git a/docs/classsw_1_1_button.html b/docs/classsw_1_1_button.html new file mode 100644 index 00000000..a6c10974 --- /dev/null +++ b/docs/classsw_1_1_button.html @@ -0,0 +1,946 @@ + + + + + + + +SimpleWindow: sw::Button Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+ +

按钮 + More...

+ +

#include <Button.h>

+
+Inheritance diagram for sw::Button:
+
+
+ + +sw::ButtonBase +sw::Control +sw::UIElement +sw::WndBase +sw::ILayout +sw::ITag + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

Button ()
 初始化按钮
 
- Public Member Functions inherited from sw::ButtonBase
+virtual ~ButtonBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
- Public Member Functions inherited from sw::Control
+virtual ~Control ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
- Public Member Functions inherited from sw::UIElement
+virtual ~UIElement ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
void RegisterRoutedEvent (RoutedEventType eventType, const RoutedEvent &handler)
 注册路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename T >
void RegisterRoutedEvent (RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))
 注册成员函数作为路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename TEventArgs , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (std::function< void(UIElement &, TEventArgs &)> handler)
 根据事件参数类型注册路由事件
 
template<typename TEventArgs , typename THandleObj , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))
 根据事件参数类型注册成员函数作为路由事件
 
void UnregisterRoutedEvent (RoutedEventType eventType)
 取消对应类型路由事件的注册
 
bool IsRoutedEventRegistered (RoutedEventType eventType)
 判断路由事件是否已被注册
 
bool AddChild (UIElement *element)
 添加子控件
 
bool AddChild (UIElement &element)
 添加子控件
 
bool AddChild (UIElement *element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool AddChild (UIElement &element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool RemoveChildAt (int index)
 移除指定索引处的子控件
 
bool RemoveChild (UIElement *element)
 移除子控件
 
bool RemoveChild (UIElement &element)
 移除子控件
 
+void ClearChildren ()
 移除所有子控件
 
int IndexOf (UIElement *element)
 获取指定元素的索引
 
int IndexOf (UIElement &element)
 获取指定元素的索引
 
+UIElementoperator[] (int index) const
 通过索引获取子控件
 
void ShowContextMenu (const Point &point)
 弹出当前元素的上下文菜单
 
+void MoveToTop ()
 移动到界面顶部
 
+void MoveToBottom ()
 移动到界面底部
 
+bool IsRootElement ()
 判断当前元素是否为根节点
 
+UIElementGetRootElement ()
 获取当前元素所在界面树的根节点
 
+UIElementGetNextElement ()
 获取当前元素在界面树上的下一个节点,若已是最后一个节点则返回根节点
 
+UIElementGetNextTabStopElement ()
 获取下一个TabStop属性为true的元素
 
+Color GetRealBackColor ()
 获取当前要显示的背景颜色:当Transparent为true时获取到祖先节点中首个Transparent为false的背景颜色,否则返回当前元素的背景颜色
 
+Color GetRealTextColor ()
 获取当前要显示的文本颜色:当InheritTextColor为true时获取到祖先节点中首个InheritTextColor为false的文本颜色,否则返回当前元素的文本颜色
 
void SetCursor (HCURSOR hCursor)
 设置鼠标样式
 
void SetCursor (StandardCursor cursor)
 设置鼠标样式
 
+void ResetCursor ()
 将鼠标样式设置为默认样式
 
void SetAlignment (sw::HorizontalAlignment horz, sw::VerticalAlignment vert)
 设置对齐方式
 
virtual uint64_t GetTag () override
 获取Tag
 
virtual void SetTag (uint64_t tag) override
 设置Tag
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取参与布局的子控件数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取对应索引处的子控件,使用此函数前必须先调用GetChildLayoutCount
 
virtual Size GetDesireSize () override
 获取控件所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置当前控件所需的尺寸
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const sw::Rect &finalPosition) override
 安排控件位置
 
- Public Member Functions inherited from sw::WndBase
+virtual ~WndBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void Show (int nCmdShow)
 该函数调用ShowWindow
 
+void Close ()
 发送关闭消息
 
+void Update ()
 该函数调用UpdateWindow
 
+void UpdateFont ()
 更新字体
 
void Redraw (bool erase=false)
 重画
 
+bool IsControl ()
 判断当前对象是否是控件
 
+bool IsVisible ()
 判断当前对象在界面中是否可视,与Visible属性不同的是该函数返回值会受父窗口的影响
 
Point PointToScreen (const Point &point)
 获取用户区点在屏幕上点的位置
 
Point PointFromScreen (const Point &screenPoint)
 获取屏幕上点在当前用户区点的位置
 
+LRESULT SendMessageW (UINT uMsg, WPARAM wParam, LPARAM lParam)
 发送消息
 
HitTestResult NcHitTest (const Point &testPoint)
 测试指定点在窗口的哪一部分
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Protected Member Functions

virtual void OnDrawFocusRect () override
 绘制虚线框时调用该函数
 
virtual bool OnSetFocus (HWND hPreFocus) override
 接收到WM_SETFOCUS时调用该函数
 
virtual bool OnKillFocus (HWND hNextFocus) override
 接收到WM_KILLFOCUS时调用该函数
 
virtual bool OnKeyDown (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYDOWN时调用该函数
 
- Protected Member Functions inherited from sw::ButtonBase
ButtonBase ()
 初始化ButtonBase
 
+void InitButtonBase (LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化控件
 
virtual void OnCommand (int code) override
 当父窗口接收到控件的WM_COMMAND时调用该函数
 
+virtual void OnClicked ()
 被单击时调用该函数
 
+virtual void OnDoubleClicked ()
 被双击时调用该函数
 
- Protected Member Functions inherited from sw::Control
Control ()
 初始化控件
 
+void ResetHandle ()
 销毁控件句柄并重新初始化,该操作会创建新的句柄并设置样式、文本、字体等
 
+virtual void HandleChenged ()
 控件句柄发生改变时调用该函数
 
- Protected Member Functions inherited from sw::UIElement
UIElement ()
 初始化UIElement
 
void RaiseRoutedEvent (RoutedEventType eventType)
 触发路由事件
 
void RaiseRoutedEvent (RoutedEventArgs &eventArgs)
 触发路由事件
 
+void NotifyLayoutUpdated ()
 通知顶级窗口布局改变
 
+doubleGetArrangeOffsetX ()
 获取Arrange时子元素的水平偏移量
 
+doubleGetArrangeOffsetY ()
 获取Arrange时子元素的垂直偏移量
 
double GetChildRightmost (bool update)
 获取所有子元素在当前元素中最右边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
double GetChildBottommost (bool update)
 获取所有子元素在当前元素中最底边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
+void UpdateChildrenZOrder ()
 更新子元素的Z轴位置
 
+void UpdateSiblingsZOrder ()
 更新兄弟元素的Z轴位置
 
+void SetNextTabStopFocus ()
 设置下一个TabStop属性为true的元素为焦点元素
 
virtual void SetBackColor (Color color, bool redraw)
 设置背景颜色
 
virtual void SetTextColor (Color color, bool redraw)
 设置文本颜色
 
virtual void OnAddedChild (UIElement &element)
 添加子元素后调用该函数
 
virtual void OnRemovedChild (UIElement &element)
 移除子元素后调用该函数
 
+virtual void OnTabStop ()
 通过tab键将焦点移动到当前元素时调用该函数
 
virtual bool SetParent (WndBase *parent) override
 设置父窗口
 
virtual void ParentChanged (WndBase *newParent) override
 父窗口改变时调用此函数
 
virtual void OnEndPaint () override
 在OnPaint函数完成之后调用该函数
 
virtual bool OnClose () override
 接收到WM_CLOSE时调用该函数
 
virtual bool OnMove (Point newClientPosition) override
 接收到WM_MOVE时调用该函数
 
virtual bool OnSize (Size newClientSize) override
 接收到WM_SIZE时调用该函数
 
virtual void OnTextChanged () override
 Text属性更改时调用此函数
 
virtual void VisibleChanged (bool newVisible) override
 Visible属性改变时调用此函数
 
virtual bool OnChar (wchar_t ch, KeyFlags flags) override
 接收到WM_CHAR时调用该函数
 
virtual bool OnKeyUp (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYUP时调用该函数
 
virtual bool OnMouseMove (Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEMOVE时调用该函数
 
virtual bool OnMouseLeave () override
 接收到WM_MOUSELEAVE时调用该函数
 
virtual bool OnMouseWheel (int wheelDelta, Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEWHEEL时调用该函数
 
virtual bool OnMouseLeftButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONDOWN时调用该函数
 
virtual bool OnMouseLeftButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONUP时调用该函数
 
virtual bool OnMouseRightButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONDOWN时调用该函数
 
virtual bool OnMouseRightButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONUP时调用该函数
 
virtual bool OnMouseMiddleButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONDOWN时调用该函数
 
virtual bool OnMouseMiddleButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONUP时调用该函数
 
virtual bool OnContextMenu (bool isKeyboardMsg, Point mousePosition) override
 接收到WM_CONTEXTMENU后调用目标控件的该函数
 
virtual void OnMenuCommand (int id) override
 当WM_COMMAND接收到菜单命令时调用该函数
 
virtual bool OnColor (HDC hdc, HBRUSH &hRetBrush) override
 父窗口接收到WM_CTLCOLORxxx时调用对应控件的该函数
 
virtual bool OnSetCursor (HWND hwnd, HitTestResult hitTest, int message, bool &result) override
 接收到WM_SETCURSOR消息时调用该函数
 
- Protected Member Functions inherited from sw::WndBase
WndBase ()
 初始化WndBase
 
WndBase (const WndBase &)=delete
 
WndBase (WndBase &&)=delete
 
+WndBaseoperator= (const WndBase &)=delete
 
+WndBaseoperator= (WndBase &&)=delete
 
+void InitWindow (LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为窗口,该函数会调用CreateWindowExW
 
+void InitControl (LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为控件,该函数会调用CreateWindowExW
 
+LONG_PTR GetStyle ()
 获取窗口样式
 
+void SetStyle (LONG_PTR style)
 设置窗口样式
 
+bool GetStyle (LONG_PTR style)
 获取窗口的某个样式
 
+void SetStyle (LONG_PTR style, bool value)
 设置窗口的某个样式
 
+LONG_PTR GetExtendedStyle ()
 获取扩展窗口样式
 
+void SetExtendedStyle (LONG_PTR style)
 设置扩展窗口样式
 
+bool GetExtendedStyle (LONG_PTR style)
 获取窗口的某个扩展样式
 
+void SetExtendedStyle (LONG_PTR style, bool value)
 设置窗口的某个扩展样式
 
+HFONT GetFontHandle ()
 获取字体句柄
 
+LRESULT DefaultWndProc (const ProcMsg &refMsg)
 调用默认的WndProc,对于窗口则调用DefWindowProcW,控件则调用_controlOldWndProc
 
virtual LRESULT WndProc (const ProcMsg &refMsg)
 对WndProc的封装
 
+void UpdateText ()
 更新_text字段
 
virtual std::wstring & GetText ()
 获取窗口文本
 
virtual void SetText (const std::wstring &value)
 调用SetWindowTextW设置窗口文本
 
virtual bool OnCreate ()
 接收到WM_CREATE时调用该函数
 
virtual bool OnDestroy ()
 接收到WM_DESTROY时调用该函数
 
virtual bool OnPaint ()
 接收到WM_PAINT时调用该函数
 
virtual bool OnMouseLeftButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_LBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseRightButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_RBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseMiddleButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_MBUTTONDBLCLK时调用该函数
 
virtual bool OnDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_DEADCHAR时调用该函数
 
virtual bool OnSysChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSCHAR时调用该函数
 
virtual bool OnSysDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSDEADCHAR时调用该函数
 
virtual bool OnSysKeyDown (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYDOWN时调用该函数
 
virtual bool OnSysKeyUp (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYUP时调用该函数
 
virtual void OnControlCommand (WndBase *pControl, int code, int id)
 当WM_COMMAND接收到控件命令时调用该函数
 
virtual void OnAcceleratorCommand (int id)
 当WM_COMMAND接收到快捷键命令时调用该函数
 
virtual void HandleInitialized (HWND hwnd)
 窗口句柄初始化完成
 
virtual void FontChanged (HFONT hfont)
 字体改变时调用该函数
 
virtual bool OnNotify (NMHDR *pNMHDR)
 接收到WM_NOTIFY后调用该函数
 
virtual void OnNotified (NMHDR *pNMHDR)
 父窗口接收到WM_NOTIFY后调用发出通知控件的该函数
 
virtual bool OnVerticalScroll (int event, int pos)
 接收到WM_VSCROLL时调用目标控件的该函数
 
virtual bool OnHorizontalScroll (int event, int pos)
 接收到WM_HSCROLL时调用目标控件的该函数
 
virtual bool OnEnabledChanged (bool newValue)
 接收到WM_ENABLE时调用该函数
 
virtual bool OnCtlColor (WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)
 接收到WM_CTLCOLORxxx时调用该函数
 
virtual void OnNcHitTest (const Point &testPoint, HitTestResult &result)
 接收到WM_NCHITTEST后调用该函数
 
virtual bool OnEraseBackground (int &result)
 接收到WM_ERASEBKGND时调用该函数
 
virtual bool OnDrawItem (int id, DRAWITEMSTRUCT *pDrawItem)
 接收到WM_DRAWITEM时调用该函数
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Additional Inherited Members

- Static Public Member Functions inherited from sw::WndBase
static WndBaseGetWndBase (HWND hwnd)
 通过窗口句柄获取WndBase
 
- Public Attributes inherited from sw::UIElement
+const Property< ThicknessMargin
 边距
 
+const Property< HorizontalAlignment > HorizontalAlignment
 水平对齐方式
 
+const Property< VerticalAlignment > VerticalAlignment
 垂直对齐方式
 
+const ReadOnlyProperty< intChildCount
 子控件数量
 
+const Property< boolCollapseWhenHide
 是否在不可见时不参与布局
 
+const ReadOnlyProperty< UIElement * > Parent
 指向父元素的指针,当前元素为顶级窗口时该值为nullptr
 
+const Property< uint64_tTag
 储存用户自定义信息的标记
 
+const Property< uint64_tLayoutTag
 布局标记,对于不同的布局有不同含义
 
+const Property< sw::ContextMenu * > ContextMenu
 右键按下时弹出的菜单
 
+const Property< boolFloat
 元素是否悬浮,若元素悬浮则该元素不会随滚动条滚动而改变位置
 
+const Property< boolTabStop
 表示用户是否可以通过按下Tab键将焦点移动到当前元素
 
+const Property< ColorBackColor
 背景颜色,修改该属性会同时将Transparent属性设为false,对于部分控件该属性可能不生效
 
+const Property< ColorTextColor
 文本颜色,修改该属性会同时将InheritTextColor属性设为false,对于部分控件该属性可能不生效
 
+const Property< boolTransparent
 是否使用透明背景(此属性并非真正意义上的透明,将该属性设为true可继承父元素的背景颜色)
 
+const Property< boolInheritTextColor
 是否继承父元素的文本颜色
 
- Public Attributes inherited from sw::WndBase
+const ReadOnlyProperty< HWNDHandle
 窗口句柄
 
+const Property< sw::FontFont
 字体
 
+const Property< std::wstring > FontName
 字体名称
 
+const Property< doubleFontSize
 字体大小
 
+const Property< sw::FontWeight > FontWeight
 字体粗细
 
+const Property< sw::RectRect
 位置和尺寸
 
+const Property< doubleLeft
 左边
 
+const Property< doubleTop
 顶边
 
+const Property< doubleWidth
 宽度
 
+const Property< doubleHeight
 高度
 
+const ReadOnlyProperty< sw::RectClientRect
 用户区尺寸
 
+const ReadOnlyProperty< doubleClientWidth
 用户区宽度
 
+const ReadOnlyProperty< doubleClientHeight
 用户区高度
 
+const Property< boolEnabled
 窗口或控件是否可用
 
+const Property< boolVisible
 窗口或控件是否可见
 
+const Property< std::wstring > Text
 窗口标题或控件文本
 
+const Property< boolFocused
 窗口是否拥有焦点
 
+const ReadOnlyProperty< WndBase * > Parent
 父窗口
 
+const ReadOnlyProperty< boolIsDestroyed
 是否已销毁,当该值为true时不应该继续使用当前对象
 
+

Detailed Description

+

按钮

+

Member Function Documentation

+ +

◆ OnDrawFocusRect()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::Button::OnDrawFocusRect ()
+
+overrideprotectedvirtual
+
+ +

绘制虚线框时调用该函数

+ +

Reimplemented from sw::UIElement.

+ +
+
+ +

◆ OnKeyDown()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::Button::OnKeyDown (VirtualKey key,
KeyFlags flags )
+
+overrideprotectedvirtual
+
+ +

接收到WM_KEYDOWN时调用该函数

+
Parameters
+ + + +
key虚拟按键
flags附加信息
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented from sw::UIElement.

+ +
+
+ +

◆ OnKillFocus()

+ +
+
+ + + + + +
+ + + + + + + +
virtual bool sw::Button::OnKillFocus (HWND hNextFocus)
+
+overrideprotectedvirtual
+
+ +

接收到WM_KILLFOCUS时调用该函数

+
Parameters
+ + +
hNextFocus接收到焦点的hwnd,可能为NULL
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented from sw::UIElement.

+ +
+
+ +

◆ OnSetFocus()

+ +
+
+ + + + + +
+ + + + + + + +
virtual bool sw::Button::OnSetFocus (HWND hPreFocus)
+
+overrideprotectedvirtual
+
+ +

接收到WM_SETFOCUS时调用该函数

+
Parameters
+ + +
hPreFocus丢失焦点的hwnd,可能为NULL
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented from sw::UIElement.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_button.js b/docs/classsw_1_1_button.js new file mode 100644 index 00000000..0116fab6 --- /dev/null +++ b/docs/classsw_1_1_button.js @@ -0,0 +1,8 @@ +var classsw_1_1_button = +[ + [ "Button", "classsw_1_1_button.html#aafd2e523e98d68c45e451d93f22ead13", null ], + [ "OnDrawFocusRect", "classsw_1_1_button.html#a496b008fab7266676831e3473353537d", null ], + [ "OnKeyDown", "classsw_1_1_button.html#a7c8ac08e29b2b2294047949bfc025891", null ], + [ "OnKillFocus", "classsw_1_1_button.html#a367d1dfa43e065dbe2a0272d4cfef458", null ], + [ "OnSetFocus", "classsw_1_1_button.html#a7ef48914988a2c38835ff09dee5c5040", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_button.png b/docs/classsw_1_1_button.png new file mode 100644 index 0000000000000000000000000000000000000000..e1a0c79c07459bd18e78322c0bc37af011d8ff07 GIT binary patch literal 1964 zcmbVNeN@v`82+&ZBt-NS1^kH3u}y-3unn4wj}6wZ&Z#`s>2$h(-22}9+;iUdJnwU# z`_+4KQBDpB2LJ$^u+cjb0Kf(b#Y<1Zq4@*Y0}xu=-iv)d!fLfb;neIxZq3cMx3>D` zY@mv#)M_@b-xD|p}EcdqR{%G zr7qhZ_DRbt=x;}l567N$iEr*47d0gGHFgSPd?&=kq}Erl+TpPiUgt)#t6h-Ts}3}; zM%!I=;<8QHv}^{BMs7(dr+NwcM5i@P-qX1?REq&molYzkHpVkNtmEE+2GKFoovOE^ z+&T=kG^0jzNO&cp$y#%!g|A6f_0`XVVbv-QNcV`XT$DB|HHBA|eU9IwY%<Oh*v=hs)%$4@lvXvlq`bJd$U}Un^khP1YBAw(q zk#YjUlzrnA=YHd|^=zwdRUeu2)_sjr%#XY62iU!;;Bd1#K)04x9GPrSWeZd#mpo1` zIS;Tuf!}KiWBBv6SD&l6wY^$UFjg~CXtdmp3Q>q=o9#Dp55}tWe(~6qLx#-=>}T>y zx23u0?5brS>DV^27mfdH^p8H~>&%{XldO@vc(Qg#Xub1GL#wA*QVVgMh^hDLVqoj` zO1*xVEl-T`^#Sk2_+F&{WIgCr8q^K5#CTM>AOY6Q0#ASOLT#CyI@i3G+D)yFbU>8i zP%xm2VRP2j>AD{tNW;LlIwDH&yxI2mmn+y4udw++xfsVO_+{) zVyffL;j{6B0%sQ^jXpA!1EvHqM==>Cp()=EL})^2zQ)UpwY9|4HNz&jjYe5_M{@4%l;{O?c}DtsZ_4j)4O-XkZcG(- zjE|;ShVgIQxJ#(uhCGo;-;RM(KuzRUmNetEozwo2`gD1*8=gGC5Pa0^?8;ju1&7Ys zkD|S&5B^~wkCotx#BPK5YDkECNc4|oL{8Rs`=>JZ} zqwm00XL|i&LjZiL9rC*upgJ5M@i|om`Nb5;^wOE39>eC^R$S_F?i!_^C{N{{) zF0Z7_zkk;BX&EtZz`XMeQJB8i&>HZlB|pX}=$izY#fIx6dA8AjVf}AL5l8?MG4Q$W z#t5hDzIcHA%0IZm|K#v5o002sukG8MZYRZ2lZa>*V>s#ZUMYb&?1$%o1Xp$vG0;qA zlL8LM_2w}-!Ur=l&=Yf+16Gv#23jNum8c@rUB2cpz35gxlN0(d0>4pGj>76>H0P*p zAETZxO=?^X&^?pMJ0hawhcX1T3=A=GiXHR09nzp3U>BUQ%PjuFmI-zX+5~g@b*Qkx zauHoER|Y`oR~pL_iOe)8U1HZi)a97OwE80@#SS K9qsSzFZ&fvNx?z@ literal 0 HcmV?d00001 diff --git a/docs/classsw_1_1_button_base-members.html b/docs/classsw_1_1_button_base-members.html new file mode 100644 index 00000000..14304f60 --- /dev/null +++ b/docs/classsw_1_1_button_base-members.html @@ -0,0 +1,293 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::ButtonBase Member List
+
+
+ +

This is the complete list of members for sw::ButtonBase, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AddChild(UIElement *element)sw::UIElement
AddChild(UIElement &element)sw::UIElement
AddChild(UIElement *element, uint64_t layoutTag)sw::UIElement
AddChild(UIElement &element, uint64_t layoutTag)sw::UIElement
Arrange(const sw::Rect &finalPosition) overridesw::UIElementvirtual
BackColorsw::UIElement
ButtonBase()sw::ButtonBaseprotected
ChildCountsw::UIElement
ClearChildren()sw::UIElement
ClientHeightsw::WndBase
ClientRectsw::WndBase
ClientWidthsw::WndBase
Close()sw::WndBase
CollapseWhenHidesw::UIElement
ContextMenusw::UIElement
Control()sw::Controlprotected
DefaultWndProc(const ProcMsg &refMsg)sw::WndBaseprotected
Enabledsw::WndBase
Floatsw::UIElement
Focusedsw::WndBase
Fontsw::WndBase
FontChanged(HFONT hfont)sw::WndBaseprotectedvirtual
FontNamesw::WndBase
FontSizesw::WndBase
FontWeightsw::WndBase
GetArrangeOffsetX()sw::UIElementprotected
GetArrangeOffsetY()sw::UIElementprotected
GetChildBottommost(bool update)sw::UIElementprotected
GetChildLayoutAt(int index) overridesw::UIElementvirtual
GetChildLayoutCount() overridesw::UIElementvirtual
GetChildRightmost(bool update)sw::UIElementprotected
GetDesireSize() overridesw::UIElementvirtual
GetExtendedStyle()sw::WndBaseprotected
GetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
GetFontHandle()sw::WndBaseprotected
GetLayoutTag() overridesw::UIElementvirtual
GetNextElement()sw::UIElement
GetNextTabStopElement()sw::UIElement
GetRealBackColor()sw::UIElement
GetRealTextColor()sw::UIElement
GetRootElement()sw::UIElement
GetStyle()sw::WndBaseprotected
GetStyle(LONG_PTR style)sw::WndBaseprotected
GetTag() overridesw::UIElementvirtual
GetText()sw::WndBaseprotectedvirtual
GetWndBase(HWND hwnd)sw::WndBasestatic
Handlesw::WndBase
HandleChenged()sw::Controlprotectedvirtual
HandleInitialized(HWND hwnd)sw::WndBaseprotectedvirtual
Heightsw::WndBase
HorizontalAlignmentsw::UIElement
IndexOf(UIElement *element)sw::UIElement
IndexOf(UIElement &element)sw::UIElement
InheritTextColorsw::UIElement
InitButtonBase(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::ButtonBaseprotected
InitControl(LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
InitWindow(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
IsControl()sw::WndBase
IsDestroyedsw::WndBase
IsRootElement()sw::UIElement
IsRoutedEventRegistered(RoutedEventType eventType)sw::UIElement
IsVisible()sw::WndBase
LayoutTagsw::UIElement
Leftsw::WndBase
Marginsw::UIElement
Measure(const Size &availableSize) overridesw::UIElementvirtual
MoveToBottom()sw::UIElement
MoveToTop()sw::UIElement
NcHitTest(const Point &testPoint)sw::WndBase
NotifyLayoutUpdated()sw::UIElementprotected
OnAcceleratorCommand(int id)sw::WndBaseprotectedvirtual
OnAddedChild(UIElement &element)sw::UIElementprotectedvirtual
OnChar(wchar_t ch, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnClicked()sw::ButtonBaseprotectedvirtual
OnClose() overridesw::UIElementprotectedvirtual
OnColor(HDC hdc, HBRUSH &hRetBrush) overridesw::UIElementprotectedvirtual
OnCommand(int code) overridesw::ButtonBaseprotectedvirtual
OnContextMenu(bool isKeyboardMsg, Point mousePosition) overridesw::UIElementprotectedvirtual
OnControlCommand(WndBase *pControl, int code, int id)sw::WndBaseprotectedvirtual
OnCreate()sw::WndBaseprotectedvirtual
OnCtlColor(WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)sw::WndBaseprotectedvirtual
OnDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnDestroy()sw::WndBaseprotectedvirtual
OnDoubleClicked()sw::ButtonBaseprotectedvirtual
OnDrawFocusRect()sw::UIElementprotectedvirtual
OnDrawItem(int id, DRAWITEMSTRUCT *pDrawItem)sw::WndBaseprotectedvirtual
OnEnabledChanged(bool newValue)sw::WndBaseprotectedvirtual
OnEndPaint() overridesw::UIElementprotectedvirtual
OnEraseBackground(int &result)sw::WndBaseprotectedvirtual
OnHorizontalScroll(int event, int pos)sw::WndBaseprotectedvirtual
OnKeyDown(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKeyUp(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKillFocus(HWND hNextFocus) overridesw::UIElementprotectedvirtual
OnMenuCommand(int id) overridesw::UIElementprotectedvirtual
OnMouseLeave() overridesw::UIElementprotectedvirtual
OnMouseLeftButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseLeftButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseMiddleButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMove(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseRightButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseWheel(int wheelDelta, Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMove(Point newClientPosition) overridesw::UIElementprotectedvirtual
OnNcHitTest(const Point &testPoint, HitTestResult &result)sw::WndBaseprotectedvirtual
OnNotified(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnNotify(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnPaint()sw::WndBaseprotectedvirtual
OnRemovedChild(UIElement &element)sw::UIElementprotectedvirtual
OnSetCursor(HWND hwnd, HitTestResult hitTest, int message, bool &result) overridesw::UIElementprotectedvirtual
OnSetFocus(HWND hPrevFocus) overridesw::UIElementprotectedvirtual
OnSize(Size newClientSize) overridesw::UIElementprotectedvirtual
OnSysChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyDown(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyUp(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnTabStop()sw::UIElementprotectedvirtual
OnTextChanged() overridesw::UIElementprotectedvirtual
OnVerticalScroll(int event, int pos)sw::WndBaseprotectedvirtual
operator=(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator=(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator[](int index) constsw::UIElement
Parentsw::UIElement
ParentChanged(WndBase *newParent) overridesw::UIElementprotectedvirtual
PointFromScreen(const Point &screenPoint)sw::WndBase
PointToScreen(const Point &point)sw::WndBase
RaiseRoutedEvent(RoutedEventType eventType)sw::UIElementprotected
RaiseRoutedEvent(RoutedEventArgs &eventArgs)sw::UIElementprotected
Rectsw::WndBase
Redraw(bool erase=false)sw::WndBase
RegisterRoutedEvent(RoutedEventType eventType, const RoutedEvent &handler)sw::UIElement
RegisterRoutedEvent(RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))sw::UIElementinline
RegisterRoutedEvent(std::function< void(UIElement &, TEventArgs &)> handler)sw::UIElementinline
RegisterRoutedEvent(THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))sw::UIElementinline
RemoveChild(UIElement *element)sw::UIElement
RemoveChild(UIElement &element)sw::UIElement
RemoveChildAt(int index)sw::UIElement
ResetCursor()sw::UIElement
ResetHandle()sw::Controlprotected
SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase
SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement
SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual
SetCursor(HCURSOR hCursor)sw::UIElement
SetCursor(StandardCursor cursor)sw::UIElement
SetDesireSize(const Size &size) overridesw::UIElementvirtual
SetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
SetExtendedStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetNextTabStopFocus()sw::UIElementprotected
SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual
SetStyle(LONG_PTR style)sw::WndBaseprotected
SetStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetTag(uint64_t tag) overridesw::UIElementvirtual
SetText(const std::wstring &value)sw::WndBaseprotectedvirtual
SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual
Show(int nCmdShow)sw::WndBase
ShowContextMenu(const Point &point)sw::UIElement
TabStopsw::UIElement
Tagsw::UIElement
Textsw::WndBase
TextColorsw::UIElement
Topsw::WndBase
Transparentsw::UIElement
UIElement()sw::UIElementprotected
UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement
Update()sw::WndBase
UpdateChildrenZOrder()sw::UIElementprotected
UpdateFont()sw::WndBase
UpdateSiblingsZOrder()sw::UIElementprotected
UpdateText()sw::WndBaseprotected
VerticalAlignmentsw::UIElement
Visiblesw::WndBase
VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual
Widthsw::WndBase
WndBase()sw::WndBaseprotected
WndBase(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndBase(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual
~ButtonBase()=0sw::ButtonBasepure virtual
~Control()=0sw::Controlpure virtual
~UIElement()=0sw::UIElementpure virtual
~WndBase()=0sw::WndBasepure virtual
+
+ + + + diff --git a/docs/classsw_1_1_button_base.html b/docs/classsw_1_1_button_base.html new file mode 100644 index 00000000..1c891da2 --- /dev/null +++ b/docs/classsw_1_1_button_base.html @@ -0,0 +1,836 @@ + + + + + + + +SimpleWindow: sw::ButtonBase Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
sw::ButtonBase Class Referenceabstract
+
+
+ +

窗口类名为BUTTON的控件类型的基类 + More...

+ +

#include <ButtonBase.h>

+
+Inheritance diagram for sw::ButtonBase:
+
+
+ + +sw::Control +sw::UIElement +sw::WndBase +sw::ILayout +sw::ITag +sw::Button +sw::CheckableButton +sw::CheckBox +sw::RadioButton + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

+virtual ~ButtonBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
- Public Member Functions inherited from sw::Control
+virtual ~Control ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
- Public Member Functions inherited from sw::UIElement
+virtual ~UIElement ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
void RegisterRoutedEvent (RoutedEventType eventType, const RoutedEvent &handler)
 注册路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename T >
void RegisterRoutedEvent (RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))
 注册成员函数作为路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename TEventArgs , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (std::function< void(UIElement &, TEventArgs &)> handler)
 根据事件参数类型注册路由事件
 
template<typename TEventArgs , typename THandleObj , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))
 根据事件参数类型注册成员函数作为路由事件
 
void UnregisterRoutedEvent (RoutedEventType eventType)
 取消对应类型路由事件的注册
 
bool IsRoutedEventRegistered (RoutedEventType eventType)
 判断路由事件是否已被注册
 
bool AddChild (UIElement *element)
 添加子控件
 
bool AddChild (UIElement &element)
 添加子控件
 
bool AddChild (UIElement *element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool AddChild (UIElement &element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool RemoveChildAt (int index)
 移除指定索引处的子控件
 
bool RemoveChild (UIElement *element)
 移除子控件
 
bool RemoveChild (UIElement &element)
 移除子控件
 
+void ClearChildren ()
 移除所有子控件
 
int IndexOf (UIElement *element)
 获取指定元素的索引
 
int IndexOf (UIElement &element)
 获取指定元素的索引
 
+UIElementoperator[] (int index) const
 通过索引获取子控件
 
void ShowContextMenu (const Point &point)
 弹出当前元素的上下文菜单
 
+void MoveToTop ()
 移动到界面顶部
 
+void MoveToBottom ()
 移动到界面底部
 
+bool IsRootElement ()
 判断当前元素是否为根节点
 
+UIElementGetRootElement ()
 获取当前元素所在界面树的根节点
 
+UIElementGetNextElement ()
 获取当前元素在界面树上的下一个节点,若已是最后一个节点则返回根节点
 
+UIElementGetNextTabStopElement ()
 获取下一个TabStop属性为true的元素
 
+Color GetRealBackColor ()
 获取当前要显示的背景颜色:当Transparent为true时获取到祖先节点中首个Transparent为false的背景颜色,否则返回当前元素的背景颜色
 
+Color GetRealTextColor ()
 获取当前要显示的文本颜色:当InheritTextColor为true时获取到祖先节点中首个InheritTextColor为false的文本颜色,否则返回当前元素的文本颜色
 
void SetCursor (HCURSOR hCursor)
 设置鼠标样式
 
void SetCursor (StandardCursor cursor)
 设置鼠标样式
 
+void ResetCursor ()
 将鼠标样式设置为默认样式
 
void SetAlignment (sw::HorizontalAlignment horz, sw::VerticalAlignment vert)
 设置对齐方式
 
virtual uint64_t GetTag () override
 获取Tag
 
virtual void SetTag (uint64_t tag) override
 设置Tag
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取参与布局的子控件数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取对应索引处的子控件,使用此函数前必须先调用GetChildLayoutCount
 
virtual Size GetDesireSize () override
 获取控件所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置当前控件所需的尺寸
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const sw::Rect &finalPosition) override
 安排控件位置
 
- Public Member Functions inherited from sw::WndBase
+virtual ~WndBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void Show (int nCmdShow)
 该函数调用ShowWindow
 
+void Close ()
 发送关闭消息
 
+void Update ()
 该函数调用UpdateWindow
 
+void UpdateFont ()
 更新字体
 
void Redraw (bool erase=false)
 重画
 
+bool IsControl ()
 判断当前对象是否是控件
 
+bool IsVisible ()
 判断当前对象在界面中是否可视,与Visible属性不同的是该函数返回值会受父窗口的影响
 
Point PointToScreen (const Point &point)
 获取用户区点在屏幕上点的位置
 
Point PointFromScreen (const Point &screenPoint)
 获取屏幕上点在当前用户区点的位置
 
+LRESULT SendMessageW (UINT uMsg, WPARAM wParam, LPARAM lParam)
 发送消息
 
HitTestResult NcHitTest (const Point &testPoint)
 测试指定点在窗口的哪一部分
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Protected Member Functions

ButtonBase ()
 初始化ButtonBase
 
+void InitButtonBase (LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化控件
 
virtual void OnCommand (int code) override
 当父窗口接收到控件的WM_COMMAND时调用该函数
 
+virtual void OnClicked ()
 被单击时调用该函数
 
+virtual void OnDoubleClicked ()
 被双击时调用该函数
 
- Protected Member Functions inherited from sw::Control
Control ()
 初始化控件
 
+void ResetHandle ()
 销毁控件句柄并重新初始化,该操作会创建新的句柄并设置样式、文本、字体等
 
+virtual void HandleChenged ()
 控件句柄发生改变时调用该函数
 
- Protected Member Functions inherited from sw::UIElement
UIElement ()
 初始化UIElement
 
void RaiseRoutedEvent (RoutedEventType eventType)
 触发路由事件
 
void RaiseRoutedEvent (RoutedEventArgs &eventArgs)
 触发路由事件
 
+void NotifyLayoutUpdated ()
 通知顶级窗口布局改变
 
+doubleGetArrangeOffsetX ()
 获取Arrange时子元素的水平偏移量
 
+doubleGetArrangeOffsetY ()
 获取Arrange时子元素的垂直偏移量
 
double GetChildRightmost (bool update)
 获取所有子元素在当前元素中最右边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
double GetChildBottommost (bool update)
 获取所有子元素在当前元素中最底边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
+void UpdateChildrenZOrder ()
 更新子元素的Z轴位置
 
+void UpdateSiblingsZOrder ()
 更新兄弟元素的Z轴位置
 
+void SetNextTabStopFocus ()
 设置下一个TabStop属性为true的元素为焦点元素
 
virtual void SetBackColor (Color color, bool redraw)
 设置背景颜色
 
virtual void SetTextColor (Color color, bool redraw)
 设置文本颜色
 
virtual void OnAddedChild (UIElement &element)
 添加子元素后调用该函数
 
virtual void OnRemovedChild (UIElement &element)
 移除子元素后调用该函数
 
+virtual void OnTabStop ()
 通过tab键将焦点移动到当前元素时调用该函数
 
virtual void OnDrawFocusRect ()
 绘制虚线框时调用该函数
 
virtual bool SetParent (WndBase *parent) override
 设置父窗口
 
virtual void ParentChanged (WndBase *newParent) override
 父窗口改变时调用此函数
 
virtual void OnEndPaint () override
 在OnPaint函数完成之后调用该函数
 
virtual bool OnClose () override
 接收到WM_CLOSE时调用该函数
 
virtual bool OnMove (Point newClientPosition) override
 接收到WM_MOVE时调用该函数
 
virtual bool OnSize (Size newClientSize) override
 接收到WM_SIZE时调用该函数
 
virtual void OnTextChanged () override
 Text属性更改时调用此函数
 
virtual void VisibleChanged (bool newVisible) override
 Visible属性改变时调用此函数
 
virtual bool OnSetFocus (HWND hPrevFocus) override
 接收到WM_SETFOCUS时调用该函数
 
virtual bool OnKillFocus (HWND hNextFocus) override
 接收到WM_KILLFOCUS时调用该函数
 
virtual bool OnChar (wchar_t ch, KeyFlags flags) override
 接收到WM_CHAR时调用该函数
 
virtual bool OnKeyDown (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYDOWN时调用该函数
 
virtual bool OnKeyUp (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYUP时调用该函数
 
virtual bool OnMouseMove (Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEMOVE时调用该函数
 
virtual bool OnMouseLeave () override
 接收到WM_MOUSELEAVE时调用该函数
 
virtual bool OnMouseWheel (int wheelDelta, Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEWHEEL时调用该函数
 
virtual bool OnMouseLeftButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONDOWN时调用该函数
 
virtual bool OnMouseLeftButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONUP时调用该函数
 
virtual bool OnMouseRightButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONDOWN时调用该函数
 
virtual bool OnMouseRightButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONUP时调用该函数
 
virtual bool OnMouseMiddleButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONDOWN时调用该函数
 
virtual bool OnMouseMiddleButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONUP时调用该函数
 
virtual bool OnContextMenu (bool isKeyboardMsg, Point mousePosition) override
 接收到WM_CONTEXTMENU后调用目标控件的该函数
 
virtual void OnMenuCommand (int id) override
 当WM_COMMAND接收到菜单命令时调用该函数
 
virtual bool OnColor (HDC hdc, HBRUSH &hRetBrush) override
 父窗口接收到WM_CTLCOLORxxx时调用对应控件的该函数
 
virtual bool OnSetCursor (HWND hwnd, HitTestResult hitTest, int message, bool &result) override
 接收到WM_SETCURSOR消息时调用该函数
 
- Protected Member Functions inherited from sw::WndBase
WndBase ()
 初始化WndBase
 
WndBase (const WndBase &)=delete
 
WndBase (WndBase &&)=delete
 
+WndBaseoperator= (const WndBase &)=delete
 
+WndBaseoperator= (WndBase &&)=delete
 
+void InitWindow (LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为窗口,该函数会调用CreateWindowExW
 
+void InitControl (LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为控件,该函数会调用CreateWindowExW
 
+LONG_PTR GetStyle ()
 获取窗口样式
 
+void SetStyle (LONG_PTR style)
 设置窗口样式
 
+bool GetStyle (LONG_PTR style)
 获取窗口的某个样式
 
+void SetStyle (LONG_PTR style, bool value)
 设置窗口的某个样式
 
+LONG_PTR GetExtendedStyle ()
 获取扩展窗口样式
 
+void SetExtendedStyle (LONG_PTR style)
 设置扩展窗口样式
 
+bool GetExtendedStyle (LONG_PTR style)
 获取窗口的某个扩展样式
 
+void SetExtendedStyle (LONG_PTR style, bool value)
 设置窗口的某个扩展样式
 
+HFONT GetFontHandle ()
 获取字体句柄
 
+LRESULT DefaultWndProc (const ProcMsg &refMsg)
 调用默认的WndProc,对于窗口则调用DefWindowProcW,控件则调用_controlOldWndProc
 
virtual LRESULT WndProc (const ProcMsg &refMsg)
 对WndProc的封装
 
+void UpdateText ()
 更新_text字段
 
virtual std::wstring & GetText ()
 获取窗口文本
 
virtual void SetText (const std::wstring &value)
 调用SetWindowTextW设置窗口文本
 
virtual bool OnCreate ()
 接收到WM_CREATE时调用该函数
 
virtual bool OnDestroy ()
 接收到WM_DESTROY时调用该函数
 
virtual bool OnPaint ()
 接收到WM_PAINT时调用该函数
 
virtual bool OnMouseLeftButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_LBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseRightButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_RBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseMiddleButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_MBUTTONDBLCLK时调用该函数
 
virtual bool OnDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_DEADCHAR时调用该函数
 
virtual bool OnSysChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSCHAR时调用该函数
 
virtual bool OnSysDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSDEADCHAR时调用该函数
 
virtual bool OnSysKeyDown (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYDOWN时调用该函数
 
virtual bool OnSysKeyUp (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYUP时调用该函数
 
virtual void OnControlCommand (WndBase *pControl, int code, int id)
 当WM_COMMAND接收到控件命令时调用该函数
 
virtual void OnAcceleratorCommand (int id)
 当WM_COMMAND接收到快捷键命令时调用该函数
 
virtual void HandleInitialized (HWND hwnd)
 窗口句柄初始化完成
 
virtual void FontChanged (HFONT hfont)
 字体改变时调用该函数
 
virtual bool OnNotify (NMHDR *pNMHDR)
 接收到WM_NOTIFY后调用该函数
 
virtual void OnNotified (NMHDR *pNMHDR)
 父窗口接收到WM_NOTIFY后调用发出通知控件的该函数
 
virtual bool OnVerticalScroll (int event, int pos)
 接收到WM_VSCROLL时调用目标控件的该函数
 
virtual bool OnHorizontalScroll (int event, int pos)
 接收到WM_HSCROLL时调用目标控件的该函数
 
virtual bool OnEnabledChanged (bool newValue)
 接收到WM_ENABLE时调用该函数
 
virtual bool OnCtlColor (WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)
 接收到WM_CTLCOLORxxx时调用该函数
 
virtual void OnNcHitTest (const Point &testPoint, HitTestResult &result)
 接收到WM_NCHITTEST后调用该函数
 
virtual bool OnEraseBackground (int &result)
 接收到WM_ERASEBKGND时调用该函数
 
virtual bool OnDrawItem (int id, DRAWITEMSTRUCT *pDrawItem)
 接收到WM_DRAWITEM时调用该函数
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Additional Inherited Members

- Static Public Member Functions inherited from sw::WndBase
static WndBaseGetWndBase (HWND hwnd)
 通过窗口句柄获取WndBase
 
- Public Attributes inherited from sw::UIElement
+const Property< ThicknessMargin
 边距
 
+const Property< HorizontalAlignment > HorizontalAlignment
 水平对齐方式
 
+const Property< VerticalAlignment > VerticalAlignment
 垂直对齐方式
 
+const ReadOnlyProperty< intChildCount
 子控件数量
 
+const Property< boolCollapseWhenHide
 是否在不可见时不参与布局
 
+const ReadOnlyProperty< UIElement * > Parent
 指向父元素的指针,当前元素为顶级窗口时该值为nullptr
 
+const Property< uint64_tTag
 储存用户自定义信息的标记
 
+const Property< uint64_tLayoutTag
 布局标记,对于不同的布局有不同含义
 
+const Property< sw::ContextMenu * > ContextMenu
 右键按下时弹出的菜单
 
+const Property< boolFloat
 元素是否悬浮,若元素悬浮则该元素不会随滚动条滚动而改变位置
 
+const Property< boolTabStop
 表示用户是否可以通过按下Tab键将焦点移动到当前元素
 
+const Property< ColorBackColor
 背景颜色,修改该属性会同时将Transparent属性设为false,对于部分控件该属性可能不生效
 
+const Property< ColorTextColor
 文本颜色,修改该属性会同时将InheritTextColor属性设为false,对于部分控件该属性可能不生效
 
+const Property< boolTransparent
 是否使用透明背景(此属性并非真正意义上的透明,将该属性设为true可继承父元素的背景颜色)
 
+const Property< boolInheritTextColor
 是否继承父元素的文本颜色
 
- Public Attributes inherited from sw::WndBase
+const ReadOnlyProperty< HWNDHandle
 窗口句柄
 
+const Property< sw::FontFont
 字体
 
+const Property< std::wstring > FontName
 字体名称
 
+const Property< doubleFontSize
 字体大小
 
+const Property< sw::FontWeight > FontWeight
 字体粗细
 
+const Property< sw::RectRect
 位置和尺寸
 
+const Property< doubleLeft
 左边
 
+const Property< doubleTop
 顶边
 
+const Property< doubleWidth
 宽度
 
+const Property< doubleHeight
 高度
 
+const ReadOnlyProperty< sw::RectClientRect
 用户区尺寸
 
+const ReadOnlyProperty< doubleClientWidth
 用户区宽度
 
+const ReadOnlyProperty< doubleClientHeight
 用户区高度
 
+const Property< boolEnabled
 窗口或控件是否可用
 
+const Property< boolVisible
 窗口或控件是否可见
 
+const Property< std::wstring > Text
 窗口标题或控件文本
 
+const Property< boolFocused
 窗口是否拥有焦点
 
+const ReadOnlyProperty< WndBase * > Parent
 父窗口
 
+const ReadOnlyProperty< boolIsDestroyed
 是否已销毁,当该值为true时不应该继续使用当前对象
 
+

Detailed Description

+

窗口类名为BUTTON的控件类型的基类

+

Member Function Documentation

+ +

◆ OnCommand()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::ButtonBase::OnCommand (int code)
+
+overrideprotectedvirtual
+
+ +

当父窗口接收到控件的WM_COMMAND时调用该函数

+
Parameters
+ + +
code通知代码
+
+
+ +

Reimplemented from sw::WndBase.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_button_base.js b/docs/classsw_1_1_button_base.js new file mode 100644 index 00000000..cf4fa3d0 --- /dev/null +++ b/docs/classsw_1_1_button_base.js @@ -0,0 +1,9 @@ +var classsw_1_1_button_base = +[ + [ "ButtonBase", "classsw_1_1_button_base.html#ae5dad2a65523da878df700fa4aefe3ee", null ], + [ "~ButtonBase", "classsw_1_1_button_base.html#a2b521a4eb6233774cf15ece47c0b5d68", null ], + [ "InitButtonBase", "classsw_1_1_button_base.html#a35200f7e5429767c50c089eb312ff248", null ], + [ "OnClicked", "classsw_1_1_button_base.html#a2cd07956db48b796257bd1ac238642f6", null ], + [ "OnCommand", "classsw_1_1_button_base.html#ad95b3a535345f674c55b7c6287e49a2d", null ], + [ "OnDoubleClicked", "classsw_1_1_button_base.html#aa0fb82e77ba464863fc609c987d5ff5d", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_button_base.png b/docs/classsw_1_1_button_base.png new file mode 100644 index 0000000000000000000000000000000000000000..32fff4e28892fb5aa1cf8d80430a852c578f07a9 GIT binary patch literal 2855 zcmb_e2~<;88U`wMjL;Y*E>MAnrtoA_DT@#Zv_Y~6$RmOv7+XcOD2OG5O(WJL0Yor7 zK@o`6Bn(v+35Y=!1!W71h=9l{5Lp6|gndmPxnZ9%0{qDQ}|K7Xz`|tPP zKjwh5qdGzpp`@gwP9hROB_(ADzIXoZ6L=&unehV*S_k%19TW-$+#Md9rYBTnTI~eR zZcV8l?(6G=$ITnuxv*_rFzD>21V8`dvQ)YKT1g3!Pa@b;LzTz7-<>PA-e4!=h^`JS z;$>+2FLd3{EDOec^fPa65asK4M7Gj>iu40GIg;YNBn{FQ)I*&~DuFQO$S3YVW3iZ2 zcMyZ|B9lomtdjtMLKz1V_tc-{l+gIl!`bbM?UJwDY_dKQdfC*OwK1 zwLEMG&}%@Gu-@-db5YdF(I^?I$5<1Ex?PfZ5$Py*-_Hc=4m;Zd;!NZMi{&DZqLvH| z-m?+MX=lYOqiHII)V@ zr+zK*66~w2HMYH0b`!e=P2#Coys=?VP9_cB#bi;Ru3d-88bEu6B*0F_SRN)SnXFm> zL9uJRcA#H^;Es(av#53yQWo(J4|Z6j?9ooB?hnN^YHA2W5E@w3-5{vD4Xes_{coVp zEO@{#*H)vbX=Ev8(vM@P@iOmz5?jSTgbsp79g6NJxozK($L(w-k)qJ0kjJ^O;oNA^ z^x65eT-tIDCoia+`;;w!Qrc!cD>`b#;SJM2r6JoVFJ~`eRo!uC&vvZ+=_gU4PPuoq z%s*#Q5+?Gl%FPK_zHmgrv`Dj8R!62yEq+&XhBNx`M7;Tf4-G@==GjFrXG}L0&7$C` z_(WXsZuIW@q4lOjG*leOPi>p3?hPDwG`RDwdA@ltJj7P5P?9Q<+`?;d7CbDqq(9rW z6i53_VPBkAf0Evsl4|}s$3I8kuSk}~?1s&fJJHzgM@cdx9sidld?)i?(i!lJPUDAZ z6okuC6c~b&z#rZwcoom-oWPH!Xw03ucEC=X zj2P?>H8M<$Wvd9SYyiW=7`DoY0XFd}Tcy?j_{#ymzn$KlVHXu9!C+?Y!2$dIZ;E)I zH*#34D=%uozae~`4ci$!Z+R&>oD>x}c^SIkI5krGiXZW2XY_Y%JEs?52dzkBaq7_Z zXD^Mr2jX43c$RyNfC+0Cl92Z}sF`@m1gqLJR4YFS_R(ao?eXq;KgZtCm@{z60LFJQ zmy7dV!M;x1;WBrjZ5n=nPVZ@Q)WbZ2i5$#Y)!sHT!U*^?5>|6yl*)xfJ&nZZRr0h& z2<~03ok^o}9pX6Lu_mwk@*dZ2HyQC)!&BssR-bUA1_sArR!&Upr3lKbuOEt|*bIxpmBSv||t8aO$y%mm4 z_x>mSGc9Zt(}}-FW^-|G0kieT<~2IcUT0xj=v9^RYooS6)dYNrFD z3Nz7M@MRnX`XNf{E9K@}%bW3XGMeZ>it;L!Y?3n3r(9kDMaEp13kDYFulYyEItlN$I%I zR{zG^!G>vZ%wiAW<7E`M8ANn_yw|Y44lko zNah%gP%HD0-%Q-Ge(5c_K_ktpY_mk>b${`8<$79A*pYHQjJDulS+YO#fm6%GbaMj= zFU<{kl@zp6wW>5_X>u-$#dQ7;##Rdn{tb;oAV?;E%m=HgtKGUzW8%#Jk-hNMvQXSt z%CX*YC0t0OhWtD6{9$kWMp&>-hc79X+I;>bM^a{AMLg6h9yxXR%ZRNy5pCKQc5uy8@*Sgf6iqMOf0)=6?<3=b})^ zFqgUoWv9R(g$rrKqm%CD-8(uH5-l1R{gP%LT3nn`wI@eDd0-g2+$U_bSMBm#E#85lY)30zopIA9j z~$$bcMe#3>XZ zI^pMwr=`%Txgk+|$Ogs_LkhdP^i4Ca-}G;AyUh{wS`U9%E33G*yL*lz_RmQ2ti9RF zmkbAM(kLs`j-KRmmaJ35k&K!p^X_lAx+%4He#`U8eMmc0hQZj1Hi-=}{W=F=@tyv6 quzy1)T);RP0(o3Xae#}QAlHea)2Ld@ehF|%t3+~eCggl`^wO_Kn_Qm& literal 0 HcmV?d00001 diff --git a/docs/classsw_1_1_canvas-members.html b/docs/classsw_1_1_canvas-members.html new file mode 100644 index 00000000..523863ca --- /dev/null +++ b/docs/classsw_1_1_canvas-members.html @@ -0,0 +1,325 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::Canvas Member List
+
+
+ +

This is the complete list of members for sw::Canvas, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AddChild(UIElement *element)sw::UIElement
AddChild(UIElement &element)sw::UIElement
AddChild(UIElement *element, uint64_t layoutTag)sw::UIElement
AddChild(UIElement &element, uint64_t layoutTag)sw::UIElement
Arrange(const sw::Rect &finalPosition) overridesw::PanelBasevirtual
AutoSizesw::Layer
BackColorsw::UIElement
BorderStylesw::Panel
Canvas()sw::Canvas
ChildCountsw::UIElement
ClearChildren()sw::UIElement
ClientHeightsw::WndBase
ClientRectsw::WndBase
ClientWidthsw::WndBase
Close()sw::WndBase
CollapseWhenHidesw::UIElement
ContextMenusw::UIElement
Control()sw::Controlprotected
DefaultWndProc(const ProcMsg &refMsg)sw::WndBaseprotected
DisableLayout()sw::Layer
Enabledsw::WndBase
EnableLayout()sw::Layer
Floatsw::UIElement
Focusedsw::WndBase
Fontsw::WndBase
FontChanged(HFONT hfont)sw::WndBaseprotectedvirtual
FontNamesw::WndBase
FontSizesw::WndBase
FontWeightsw::WndBase
GetArrangeOffsetX()sw::UIElementprotected
GetArrangeOffsetY()sw::UIElementprotected
GetCanvasLayoutTag(UIElement &element)sw::Canvasstatic
GetChildBottommost(bool update)sw::UIElementprotected
GetChildLayoutAt(int index) overridesw::UIElementvirtual
GetChildLayoutCount() overridesw::UIElementvirtual
GetChildRightmost(bool update)sw::UIElementprotected
GetDefaultLayout() overridesw::Canvasprotectedvirtual
GetDesireSize() overridesw::UIElementvirtual
GetExtendedStyle()sw::WndBaseprotected
GetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
GetFontHandle()sw::WndBaseprotected
GetHorizontalScrollPageSize()sw::Layer
GetHorizontalScrollRange(double &refMin, double &refMax)sw::Layer
GetLayoutTag() overridesw::UIElementvirtual
GetNextElement()sw::UIElement
GetNextTabStopElement()sw::UIElement
GetRealBackColor()sw::UIElement
GetRealTextColor()sw::UIElement
GetRootElement()sw::UIElement
GetStyle()sw::WndBaseprotected
GetStyle(LONG_PTR style)sw::WndBaseprotected
GetTag() overridesw::UIElementvirtual
GetText()sw::WndBaseprotectedvirtual
GetVerticalScrollPageSize()sw::Layer
GetVerticalScrollRange(double &refMin, double &refMax)sw::Layer
GetWndBase(HWND hwnd)sw::WndBasestatic
Handlesw::WndBase
HandleChenged()sw::Controlprotectedvirtual
HandleInitialized(HWND hwnd)sw::WndBaseprotectedvirtual
Heightsw::WndBase
HorizontalAlignmentsw::UIElement
HorizontalScrollBarsw::Layer
HorizontalScrollLimitsw::Layer
HorizontalScrollPossw::Layer
IndexOf(UIElement *element)sw::UIElement
IndexOf(UIElement &element)sw::UIElement
InheritTextColorsw::UIElement
InitControl(LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
InitWindow(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
IsControl()sw::WndBase
IsDestroyedsw::WndBase
IsRootElement()sw::UIElement
IsRoutedEventRegistered(RoutedEventType eventType)sw::UIElement
IsVisible()sw::WndBase
Layer()sw::Layerprotected
Layoutsw::Layer
LayoutTagsw::UIElement
Leftsw::WndBase
Marginsw::UIElement
Measure(const Size &availableSize) overridesw::PanelBasevirtual
MoveToBottom()sw::UIElement
MoveToTop()sw::UIElement
NcHitTest(const Point &testPoint)sw::WndBase
NotifyLayoutUpdated()sw::UIElementprotected
OnAcceleratorCommand(int id)sw::WndBaseprotectedvirtual
OnAddedChild(UIElement &element)sw::UIElementprotectedvirtual
OnChar(wchar_t ch, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnClose() overridesw::UIElementprotectedvirtual
OnColor(HDC hdc, HBRUSH &hRetBrush) overridesw::UIElementprotectedvirtual
OnCommand(int code)sw::WndBaseprotectedvirtual
OnContextMenu(bool isKeyboardMsg, Point mousePosition) overridesw::UIElementprotectedvirtual
OnControlCommand(WndBase *pControl, int code, int id)sw::WndBaseprotectedvirtual
OnCreate()sw::WndBaseprotectedvirtual
OnCtlColor(WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)sw::WndBaseprotectedvirtual
OnDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnDestroy()sw::WndBaseprotectedvirtual
OnDrawFocusRect()sw::UIElementprotectedvirtual
OnDrawItem(int id, DRAWITEMSTRUCT *pDrawItem)sw::WndBaseprotectedvirtual
OnEnabledChanged(bool newValue)sw::WndBaseprotectedvirtual
OnEndPaint() overridesw::UIElementprotectedvirtual
OnEraseBackground(int &result)sw::WndBaseprotectedvirtual
OnHorizontalScroll(int event, int pos) overridesw::PanelBaseprotectedvirtual
OnKeyDown(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKeyUp(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKillFocus(HWND hNextFocus) overridesw::UIElementprotectedvirtual
OnMenuCommand(int id) overridesw::UIElementprotectedvirtual
OnMouseLeave() overridesw::UIElementprotectedvirtual
OnMouseLeftButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseLeftButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseMiddleButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMove(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseRightButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseWheel(int wheelDelta, Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMove(Point newClientPosition) overridesw::UIElementprotectedvirtual
OnNcHitTest(const Point &testPoint, HitTestResult &result)sw::WndBaseprotectedvirtual
OnNotified(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnNotify(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnPaint() overridesw::Panelprotectedvirtual
OnRemovedChild(UIElement &element)sw::UIElementprotectedvirtual
OnScroll(ScrollOrientation scrollbar, ScrollEvent event, double pos)sw::Layerprotectedvirtual
OnSetCursor(HWND hwnd, HitTestResult hitTest, int message, bool &result) overridesw::UIElementprotectedvirtual
OnSetFocus(HWND hPrevFocus) overridesw::UIElementprotectedvirtual
OnSize(Size newClientSize) overridesw::Panelprotectedvirtual
OnSysChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyDown(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyUp(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnTabStop()sw::UIElementprotectedvirtual
OnTextChanged() overridesw::UIElementprotectedvirtual
OnVerticalScroll(int event, int pos) overridesw::PanelBaseprotectedvirtual
operator=(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator=(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator[](int index) constsw::UIElement
Panel()sw::Panel
PanelBase()sw::PanelBaseprotected
Parentsw::UIElement
ParentChanged(WndBase *newParent) overridesw::UIElementprotectedvirtual
PointFromScreen(const Point &screenPoint)sw::WndBase
PointToScreen(const Point &point)sw::WndBase
RaiseRoutedEvent(RoutedEventType eventType)sw::UIElementprotected
RaiseRoutedEvent(RoutedEventArgs &eventArgs)sw::UIElementprotected
Rectsw::WndBase
Redraw(bool erase=false)sw::WndBase
RegisterRoutedEvent(RoutedEventType eventType, const RoutedEvent &handler)sw::UIElement
RegisterRoutedEvent(RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))sw::UIElementinline
RegisterRoutedEvent(std::function< void(UIElement &, TEventArgs &)> handler)sw::UIElementinline
RegisterRoutedEvent(THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))sw::UIElementinline
RemoveChild(UIElement *element)sw::UIElement
RemoveChild(UIElement &element)sw::UIElement
RemoveChildAt(int index)sw::UIElement
ResetCursor()sw::UIElement
ResetHandle()sw::Controlprotected
ScrollHorizontal(double offset)sw::Layer
ScrollToBottom()sw::Layer
ScrollToLeft()sw::Layer
ScrollToRight()sw::Layer
ScrollToTop()sw::Layer
ScrollVertical(double offset)sw::Layer
SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase
SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement
SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual
SetCanvasLayoutTag(UIElement &element, const CanvasLayoutTag &tag)sw::Canvasstatic
SetCursor(HCURSOR hCursor)sw::UIElement
SetCursor(StandardCursor cursor)sw::UIElement
SetDesireSize(const Size &size) overridesw::UIElementvirtual
SetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
SetExtendedStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetHorizontalScrollPageSize(double pageSize)sw::Layer
SetHorizontalScrollRange(double min, double max)sw::Layer
SetNextTabStopFocus()sw::UIElementprotected
SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual
SetStyle(LONG_PTR style)sw::WndBaseprotected
SetStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetTag(uint64_t tag) overridesw::UIElementvirtual
SetText(const std::wstring &value)sw::WndBaseprotectedvirtual
SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual
SetVerticalScrollPageSize(double pageSize)sw::Layer
SetVerticalScrollRange(double min, double max)sw::Layer
Show(int nCmdShow)sw::WndBase
ShowContextMenu(const Point &point)sw::UIElement
TabStopsw::UIElement
Tagsw::UIElement
Textsw::WndBase
TextColorsw::UIElement
Topsw::WndBase
Transparentsw::UIElement
UIElement()sw::UIElementprotected
UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement
Update()sw::WndBase
UpdateChildrenZOrder()sw::UIElementprotected
UpdateFont()sw::WndBase
UpdateLayout()sw::Layerprotected
UpdateScrollRange()sw::Layer
UpdateSiblingsZOrder()sw::UIElementprotected
UpdateText()sw::WndBaseprotected
VerticalAlignmentsw::UIElement
VerticalScrollBarsw::Layer
VerticalScrollLimitsw::Layer
VerticalScrollPossw::Layer
Visiblesw::WndBase
VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual
Widthsw::WndBase
WndBase()sw::WndBaseprotected
WndBase(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndBase(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual
~Control()=0sw::Controlpure virtual
~Layer()=0sw::Layerpure virtual
~PanelBase()=0sw::PanelBasepure virtual
~UIElement()=0sw::UIElementpure virtual
~WndBase()=0sw::WndBasepure virtual
+
+ + + + diff --git a/docs/classsw_1_1_canvas.html b/docs/classsw_1_1_canvas.html new file mode 100644 index 00000000..0e491649 --- /dev/null +++ b/docs/classsw_1_1_canvas.html @@ -0,0 +1,965 @@ + + + + + + + +SimpleWindow: sw::Canvas Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+ +

一种可以为子元素设置绝对位置的面板,与普通Panel不同的是Canvas支持自动滚动条 + More...

+ +

#include <Canvas.h>

+
+Inheritance diagram for sw::Canvas:
+
+
+ + +sw::Panel +sw::PanelBase +sw::Control +sw::Layer +sw::UIElement +sw::UIElement +sw::WndBase +sw::ILayout +sw::ITag +sw::WndBase +sw::ILayout +sw::ITag + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

Canvas ()
 初始化Canvas
 
- Public Member Functions inherited from sw::Panel
Panel ()
 初始化面板
 
- Public Member Functions inherited from sw::PanelBase
+virtual ~PanelBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const sw::Rect &finalPosition) override
 安排控件位置
 
- Public Member Functions inherited from sw::Control
+virtual ~Control ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
- Public Member Functions inherited from sw::UIElement
+virtual ~UIElement ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
void RegisterRoutedEvent (RoutedEventType eventType, const RoutedEvent &handler)
 注册路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename T >
void RegisterRoutedEvent (RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))
 注册成员函数作为路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename TEventArgs , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (std::function< void(UIElement &, TEventArgs &)> handler)
 根据事件参数类型注册路由事件
 
template<typename TEventArgs , typename THandleObj , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))
 根据事件参数类型注册成员函数作为路由事件
 
void UnregisterRoutedEvent (RoutedEventType eventType)
 取消对应类型路由事件的注册
 
bool IsRoutedEventRegistered (RoutedEventType eventType)
 判断路由事件是否已被注册
 
bool AddChild (UIElement *element)
 添加子控件
 
bool AddChild (UIElement &element)
 添加子控件
 
bool AddChild (UIElement *element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool AddChild (UIElement &element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool RemoveChildAt (int index)
 移除指定索引处的子控件
 
bool RemoveChild (UIElement *element)
 移除子控件
 
bool RemoveChild (UIElement &element)
 移除子控件
 
+void ClearChildren ()
 移除所有子控件
 
int IndexOf (UIElement *element)
 获取指定元素的索引
 
int IndexOf (UIElement &element)
 获取指定元素的索引
 
+UIElementoperator[] (int index) const
 通过索引获取子控件
 
void ShowContextMenu (const Point &point)
 弹出当前元素的上下文菜单
 
+void MoveToTop ()
 移动到界面顶部
 
+void MoveToBottom ()
 移动到界面底部
 
+bool IsRootElement ()
 判断当前元素是否为根节点
 
+UIElementGetRootElement ()
 获取当前元素所在界面树的根节点
 
+UIElementGetNextElement ()
 获取当前元素在界面树上的下一个节点,若已是最后一个节点则返回根节点
 
+UIElementGetNextTabStopElement ()
 获取下一个TabStop属性为true的元素
 
+Color GetRealBackColor ()
 获取当前要显示的背景颜色:当Transparent为true时获取到祖先节点中首个Transparent为false的背景颜色,否则返回当前元素的背景颜色
 
+Color GetRealTextColor ()
 获取当前要显示的文本颜色:当InheritTextColor为true时获取到祖先节点中首个InheritTextColor为false的文本颜色,否则返回当前元素的文本颜色
 
void SetCursor (HCURSOR hCursor)
 设置鼠标样式
 
void SetCursor (StandardCursor cursor)
 设置鼠标样式
 
+void ResetCursor ()
 将鼠标样式设置为默认样式
 
void SetAlignment (sw::HorizontalAlignment horz, sw::VerticalAlignment vert)
 设置对齐方式
 
virtual uint64_t GetTag () override
 获取Tag
 
virtual void SetTag (uint64_t tag) override
 设置Tag
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取参与布局的子控件数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取对应索引处的子控件,使用此函数前必须先调用GetChildLayoutCount
 
virtual Size GetDesireSize () override
 获取控件所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置当前控件所需的尺寸
 
- Public Member Functions inherited from sw::WndBase
+virtual ~WndBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void Show (int nCmdShow)
 该函数调用ShowWindow
 
+void Close ()
 发送关闭消息
 
+void Update ()
 该函数调用UpdateWindow
 
+void UpdateFont ()
 更新字体
 
void Redraw (bool erase=false)
 重画
 
+bool IsControl ()
 判断当前对象是否是控件
 
+bool IsVisible ()
 判断当前对象在界面中是否可视,与Visible属性不同的是该函数返回值会受父窗口的影响
 
Point PointToScreen (const Point &point)
 获取用户区点在屏幕上点的位置
 
Point PointFromScreen (const Point &screenPoint)
 获取屏幕上点在当前用户区点的位置
 
+LRESULT SendMessageW (UINT uMsg, WPARAM wParam, LPARAM lParam)
 发送消息
 
HitTestResult NcHitTest (const Point &testPoint)
 测试指定点在窗口的哪一部分
 
- Public Member Functions inherited from sw::Layer
+virtual ~Layer ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void DisableLayout ()
 禁用布局
 
+void EnableLayout ()
 启用布局
 
void GetHorizontalScrollRange (double &refMin, double &refMax)
 获取横向滚动条的范围
 
void GetVerticalScrollRange (double &refMin, double &refMax)
 获取纵向滚动条的范围
 
void SetHorizontalScrollRange (double min, double max)
 设置横向滚动条的范围
 
void SetVerticalScrollRange (double min, double max)
 设置纵向滚动条的范围
 
+double GetHorizontalScrollPageSize ()
 获取水平滚动条滚动页面大小
 
+double GetVerticalScrollPageSize ()
 获取垂直滚动条滚动页面大小
 
+void SetHorizontalScrollPageSize (double pageSize)
 设置水平滚动条滚动页面大小
 
+void SetVerticalScrollPageSize (double pageSize)
 设置垂直滚动条滚动页面大小
 
+void UpdateScrollRange ()
 根据子元素更新滚动条范围,未设定布局方式时该函数无效
 
+void ScrollToTop ()
 将垂直滚动条移动到顶部
 
+void ScrollToBottom ()
 将垂直滚动条移动到底部
 
+void ScrollToLeft ()
 将水平滚动条移动到最左
 
+void ScrollToRight ()
 将水平滚动条移动到最右
 
void ScrollHorizontal (double offset)
 水平滚动
 
void ScrollVertical (double offset)
 垂直滚动
 
+ + + + + + + + + + + +

+Static Public Member Functions

+static CanvasLayoutTag GetCanvasLayoutTag (UIElement &element)
 获取指定元素的布局标记
 
+static void SetCanvasLayoutTag (UIElement &element, const CanvasLayoutTag &tag)
 给指定元素设置布局标记
 
- Static Public Member Functions inherited from sw::WndBase
static WndBaseGetWndBase (HWND hwnd)
 通过窗口句柄获取WndBase
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Protected Member Functions

virtual LayoutHostGetDefaultLayout () override
 获取默认布局对象
 
- Protected Member Functions inherited from sw::Panel
virtual bool OnPaint () override
 接收到WM_PAINT时调用该函数
 
virtual bool OnSize (Size newClientSize) override
 接收到WM_SIZE时调用该函数
 
- Protected Member Functions inherited from sw::PanelBase
PanelBase ()
 初始化PanelBase
 
virtual bool OnVerticalScroll (int event, int pos) override
 接收到WM_VSCROLL时调用目标控件的该函数
 
virtual bool OnHorizontalScroll (int event, int pos) override
 接收到WM_HSCROLL时调用目标控件的该函数
 
- Protected Member Functions inherited from sw::Control
Control ()
 初始化控件
 
+void ResetHandle ()
 销毁控件句柄并重新初始化,该操作会创建新的句柄并设置样式、文本、字体等
 
+virtual void HandleChenged ()
 控件句柄发生改变时调用该函数
 
- Protected Member Functions inherited from sw::UIElement
UIElement ()
 初始化UIElement
 
void RaiseRoutedEvent (RoutedEventType eventType)
 触发路由事件
 
void RaiseRoutedEvent (RoutedEventArgs &eventArgs)
 触发路由事件
 
+void NotifyLayoutUpdated ()
 通知顶级窗口布局改变
 
+doubleGetArrangeOffsetX ()
 获取Arrange时子元素的水平偏移量
 
+doubleGetArrangeOffsetY ()
 获取Arrange时子元素的垂直偏移量
 
double GetChildRightmost (bool update)
 获取所有子元素在当前元素中最右边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
double GetChildBottommost (bool update)
 获取所有子元素在当前元素中最底边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
+void UpdateChildrenZOrder ()
 更新子元素的Z轴位置
 
+void UpdateSiblingsZOrder ()
 更新兄弟元素的Z轴位置
 
+void SetNextTabStopFocus ()
 设置下一个TabStop属性为true的元素为焦点元素
 
virtual void SetBackColor (Color color, bool redraw)
 设置背景颜色
 
virtual void SetTextColor (Color color, bool redraw)
 设置文本颜色
 
virtual void OnAddedChild (UIElement &element)
 添加子元素后调用该函数
 
virtual void OnRemovedChild (UIElement &element)
 移除子元素后调用该函数
 
+virtual void OnTabStop ()
 通过tab键将焦点移动到当前元素时调用该函数
 
virtual void OnDrawFocusRect ()
 绘制虚线框时调用该函数
 
virtual bool SetParent (WndBase *parent) override
 设置父窗口
 
virtual void ParentChanged (WndBase *newParent) override
 父窗口改变时调用此函数
 
virtual void OnEndPaint () override
 在OnPaint函数完成之后调用该函数
 
virtual bool OnClose () override
 接收到WM_CLOSE时调用该函数
 
virtual bool OnMove (Point newClientPosition) override
 接收到WM_MOVE时调用该函数
 
virtual void OnTextChanged () override
 Text属性更改时调用此函数
 
virtual void VisibleChanged (bool newVisible) override
 Visible属性改变时调用此函数
 
virtual bool OnSetFocus (HWND hPrevFocus) override
 接收到WM_SETFOCUS时调用该函数
 
virtual bool OnKillFocus (HWND hNextFocus) override
 接收到WM_KILLFOCUS时调用该函数
 
virtual bool OnChar (wchar_t ch, KeyFlags flags) override
 接收到WM_CHAR时调用该函数
 
virtual bool OnKeyDown (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYDOWN时调用该函数
 
virtual bool OnKeyUp (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYUP时调用该函数
 
virtual bool OnMouseMove (Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEMOVE时调用该函数
 
virtual bool OnMouseLeave () override
 接收到WM_MOUSELEAVE时调用该函数
 
virtual bool OnMouseWheel (int wheelDelta, Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEWHEEL时调用该函数
 
virtual bool OnMouseLeftButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONDOWN时调用该函数
 
virtual bool OnMouseLeftButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONUP时调用该函数
 
virtual bool OnMouseRightButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONDOWN时调用该函数
 
virtual bool OnMouseRightButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONUP时调用该函数
 
virtual bool OnMouseMiddleButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONDOWN时调用该函数
 
virtual bool OnMouseMiddleButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONUP时调用该函数
 
virtual bool OnContextMenu (bool isKeyboardMsg, Point mousePosition) override
 接收到WM_CONTEXTMENU后调用目标控件的该函数
 
virtual void OnMenuCommand (int id) override
 当WM_COMMAND接收到菜单命令时调用该函数
 
virtual bool OnColor (HDC hdc, HBRUSH &hRetBrush) override
 父窗口接收到WM_CTLCOLORxxx时调用对应控件的该函数
 
virtual bool OnSetCursor (HWND hwnd, HitTestResult hitTest, int message, bool &result) override
 接收到WM_SETCURSOR消息时调用该函数
 
- Protected Member Functions inherited from sw::WndBase
WndBase ()
 初始化WndBase
 
WndBase (const WndBase &)=delete
 
WndBase (WndBase &&)=delete
 
+WndBaseoperator= (const WndBase &)=delete
 
+WndBaseoperator= (WndBase &&)=delete
 
+void InitWindow (LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为窗口,该函数会调用CreateWindowExW
 
+void InitControl (LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为控件,该函数会调用CreateWindowExW
 
+LONG_PTR GetStyle ()
 获取窗口样式
 
+void SetStyle (LONG_PTR style)
 设置窗口样式
 
+bool GetStyle (LONG_PTR style)
 获取窗口的某个样式
 
+void SetStyle (LONG_PTR style, bool value)
 设置窗口的某个样式
 
+LONG_PTR GetExtendedStyle ()
 获取扩展窗口样式
 
+void SetExtendedStyle (LONG_PTR style)
 设置扩展窗口样式
 
+bool GetExtendedStyle (LONG_PTR style)
 获取窗口的某个扩展样式
 
+void SetExtendedStyle (LONG_PTR style, bool value)
 设置窗口的某个扩展样式
 
+HFONT GetFontHandle ()
 获取字体句柄
 
+LRESULT DefaultWndProc (const ProcMsg &refMsg)
 调用默认的WndProc,对于窗口则调用DefWindowProcW,控件则调用_controlOldWndProc
 
virtual LRESULT WndProc (const ProcMsg &refMsg)
 对WndProc的封装
 
+void UpdateText ()
 更新_text字段
 
virtual std::wstring & GetText ()
 获取窗口文本
 
virtual void SetText (const std::wstring &value)
 调用SetWindowTextW设置窗口文本
 
virtual bool OnCreate ()
 接收到WM_CREATE时调用该函数
 
virtual bool OnDestroy ()
 接收到WM_DESTROY时调用该函数
 
virtual bool OnMouseLeftButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_LBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseRightButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_RBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseMiddleButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_MBUTTONDBLCLK时调用该函数
 
virtual bool OnDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_DEADCHAR时调用该函数
 
virtual bool OnSysChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSCHAR时调用该函数
 
virtual bool OnSysDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSDEADCHAR时调用该函数
 
virtual bool OnSysKeyDown (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYDOWN时调用该函数
 
virtual bool OnSysKeyUp (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYUP时调用该函数
 
virtual void OnCommand (int code)
 当父窗口接收到控件的WM_COMMAND时调用该函数
 
virtual void OnControlCommand (WndBase *pControl, int code, int id)
 当WM_COMMAND接收到控件命令时调用该函数
 
virtual void OnAcceleratorCommand (int id)
 当WM_COMMAND接收到快捷键命令时调用该函数
 
virtual void HandleInitialized (HWND hwnd)
 窗口句柄初始化完成
 
virtual void FontChanged (HFONT hfont)
 字体改变时调用该函数
 
virtual bool OnNotify (NMHDR *pNMHDR)
 接收到WM_NOTIFY后调用该函数
 
virtual void OnNotified (NMHDR *pNMHDR)
 父窗口接收到WM_NOTIFY后调用发出通知控件的该函数
 
virtual bool OnEnabledChanged (bool newValue)
 接收到WM_ENABLE时调用该函数
 
virtual bool OnCtlColor (WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)
 接收到WM_CTLCOLORxxx时调用该函数
 
virtual void OnNcHitTest (const Point &testPoint, HitTestResult &result)
 接收到WM_NCHITTEST后调用该函数
 
virtual bool OnEraseBackground (int &result)
 接收到WM_ERASEBKGND时调用该函数
 
virtual bool OnDrawItem (int id, DRAWITEMSTRUCT *pDrawItem)
 接收到WM_DRAWITEM时调用该函数
 
- Protected Member Functions inherited from sw::Layer
Layer ()
 初始化Layer
 
+void UpdateLayout ()
 更新布局
 
virtual void OnScroll (ScrollOrientation scrollbar, ScrollEvent event, double pos)
 触发滚动条相关事件时调用该函数
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Additional Inherited Members

- Public Attributes inherited from sw::Panel
+const Property< sw::BorderStyle > BorderStyle
 边框样式
 
- Public Attributes inherited from sw::UIElement
+const Property< ThicknessMargin
 边距
 
+const Property< HorizontalAlignment > HorizontalAlignment
 水平对齐方式
 
+const Property< VerticalAlignment > VerticalAlignment
 垂直对齐方式
 
+const ReadOnlyProperty< intChildCount
 子控件数量
 
+const Property< boolCollapseWhenHide
 是否在不可见时不参与布局
 
+const ReadOnlyProperty< UIElement * > Parent
 指向父元素的指针,当前元素为顶级窗口时该值为nullptr
 
+const Property< uint64_tTag
 储存用户自定义信息的标记
 
+const Property< uint64_tLayoutTag
 布局标记,对于不同的布局有不同含义
 
+const Property< sw::ContextMenu * > ContextMenu
 右键按下时弹出的菜单
 
+const Property< boolFloat
 元素是否悬浮,若元素悬浮则该元素不会随滚动条滚动而改变位置
 
+const Property< boolTabStop
 表示用户是否可以通过按下Tab键将焦点移动到当前元素
 
+const Property< ColorBackColor
 背景颜色,修改该属性会同时将Transparent属性设为false,对于部分控件该属性可能不生效
 
+const Property< ColorTextColor
 文本颜色,修改该属性会同时将InheritTextColor属性设为false,对于部分控件该属性可能不生效
 
+const Property< boolTransparent
 是否使用透明背景(此属性并非真正意义上的透明,将该属性设为true可继承父元素的背景颜色)
 
+const Property< boolInheritTextColor
 是否继承父元素的文本颜色
 
- Public Attributes inherited from sw::WndBase
+const ReadOnlyProperty< HWNDHandle
 窗口句柄
 
+const Property< sw::FontFont
 字体
 
+const Property< std::wstring > FontName
 字体名称
 
+const Property< doubleFontSize
 字体大小
 
+const Property< sw::FontWeight > FontWeight
 字体粗细
 
+const Property< sw::RectRect
 位置和尺寸
 
+const Property< doubleLeft
 左边
 
+const Property< doubleTop
 顶边
 
+const Property< doubleWidth
 宽度
 
+const Property< doubleHeight
 高度
 
+const ReadOnlyProperty< sw::RectClientRect
 用户区尺寸
 
+const ReadOnlyProperty< doubleClientWidth
 用户区宽度
 
+const ReadOnlyProperty< doubleClientHeight
 用户区高度
 
+const Property< boolEnabled
 窗口或控件是否可用
 
+const Property< boolVisible
 窗口或控件是否可见
 
+const Property< std::wstring > Text
 窗口标题或控件文本
 
+const Property< boolFocused
 窗口是否拥有焦点
 
+const ReadOnlyProperty< WndBase * > Parent
 父窗口
 
+const ReadOnlyProperty< boolIsDestroyed
 是否已销毁,当该值为true时不应该继续使用当前对象
 
- Public Attributes inherited from sw::Layer
+const Property< LayoutHost * > Layout
 自定义的布局方式,赋值后将自动与所指向的布局关联,每个布局只能关联一个对象,设为nullptr可恢复默认布局
 
+const Property< boolAutoSize
 是否按照布局方式与子元素自动调整尺寸,该属性仅在当前元素已设置布局方式并且非顶级元素时有效
 
+const Property< boolHorizontalScrollBar
 是否显示横向滚动条
 
+const Property< boolVerticalScrollBar
 是否显示纵向滚动条
 
+const Property< doubleHorizontalScrollPos
 横向滚动条位置
 
+const Property< doubleVerticalScrollPos
 纵向滚动条位置
 
+const ReadOnlyProperty< doubleHorizontalScrollLimit
 横向滚动条可设置的最大位置
 
+const ReadOnlyProperty< doubleVerticalScrollLimit
 纵向滚动条可设置的最大位置
 
+

Detailed Description

+

一种可以为子元素设置绝对位置的面板,与普通Panel不同的是Canvas支持自动滚动条

+

Member Function Documentation

+ +

◆ GetDefaultLayout()

+ +
+
+ + + + + +
+ + + + + + + +
virtual LayoutHost * sw::Canvas::GetDefaultLayout ()
+
+overrideprotectedvirtual
+
+ +

获取默认布局对象

+ +

Reimplemented from sw::Layer.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_canvas.js b/docs/classsw_1_1_canvas.js new file mode 100644 index 00000000..0ef2a4c2 --- /dev/null +++ b/docs/classsw_1_1_canvas.js @@ -0,0 +1,5 @@ +var classsw_1_1_canvas = +[ + [ "Canvas", "classsw_1_1_canvas.html#a92de73414d185ba3e67668643de54e35", null ], + [ "GetDefaultLayout", "classsw_1_1_canvas.html#a203ac5f90e7aa9df73df4b4d43fc0266", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_canvas.png b/docs/classsw_1_1_canvas.png new file mode 100644 index 0000000000000000000000000000000000000000..bef0de3ea58f706ad9230030f01e852945843756 GIT binary patch literal 3295 zcmd5<2~<;O76t_b1h+xMC_?Kfin6Hz7YG>?8j;O~7l8l?Rs@kvA%N_LR@J?g!%?YJ0`cY844L{9 zW3Q!2gg))pm;L?yVBD$=e-q4UMICcHt^)MMXU`J)KU7q7f}I@fJz`ZQy{|HR?ypnt zcyw+pPpW)KdwOs;bGjG5eJB0o*8+V#X~>ngxy5JJ|Ge-c_%?2J=|q#?9B*}jpwzqJ z*Wuu+rpF=PE2>%6T^RO0l>@_WCY}&PM@CK5OW@$F02tnXiv&TTm0%CUXnC|}cOE9s z2!g_=MGxg?OJGra?I1RgTq}A+oqgKia$r84f>8vX;El*<181f%3t?P4OD2z1=q$(3 zd6RYZtky2C-ueV(BzwAn9(zx)z;8vh;c-+>e(_zu-e(e0T^g+$Lo_Z@tm=6!;qT2( z?%aM;h>f-L4ydjh7PiaUTy1?rT7uJb7hnj7Vc% z9^m)o?y=+oSznfCqfA!XYTB4M+}+D`pKqS&+Tp{Q=Y(WvmBJ%A;e=BV&m!2M34+S+ zFVK|ZyUcdH9p42(?h-R5$EGCvcGAugsf{mW)}CBUN_w?geB*5R~>Qob>=5T(j@MBT?H0XxGkdC3J*7TmDI(fz}7qE0%uQ z7u^~>jlJv{rb}I~G-J=ByfpSpPUf6a&#%-$?@N>y)~1;*&5yq4Qb}?1((qPfnB)aq z6Pjl`;X6!P|4Lt6$Ncw{fyvlstM#R^wuUikZ^;d{T60-z)-T#9vPTU5!Aj4ooxO&f zcpaPUj{dDg1}@)lsh@u#aPnsquW@;H$2D&4ZEcxJk$u(~9}g?8;TCkz?)0?aW6L&%?fdELLc^h z@z$(lh;iYtM>I5t4Q_(~&m zxbTUb#dN6nPA0s~!9`qoz2KQoydur;#jZqLw4jwyVc62C#~g>K4U*ZT$yCy}=j}KK zeaX4}cJ~ULmTr&B?Cr9cB&B01D<$A&csae@qM2TL^4-}bj94Sd6q{I+(rH}r-84Z@ zoHccuXhgKL#@o-SbX&(<8WWajhdQS{@&3d#x3gX&< zO-))4B(w~wy%BeSR9vfM2M4gJ|E=4B1sE%h**&PI)ia_DD+ zB3H5Ygn9Wjc|XDPhUG`q<5ADHUn4Ise8O6}O<>Sed_tOen46?M4uwDv!RVf2F=?Ww z)$BDC!Eil?nWk;5f`iY_s?#qk$o&k`L|Z3?trb=kXZ;`8=DFm_l{gMZzGff4FyITD;~drWJ;l8C5vqA;sU^g`1F8$)>W1IUuq;ZJ1g_(zf{DI;~FU2i-vT+F}G=>L#eZIiLK zKZB1fB_-MOE$Va9H+nitE*;{2_MZvYo&xe%u9~PThGF|-mU9s%`f55E6#ECO-V0Lg z=)G7NF4)JOlqvLdUW9Uof!eqaHP$#J4Bc`Y;U=lar^SwKdLJ z2yU4>bIT-ksFxzf(Ad;0e;HT~lZ2vYr=QxUTVv{pb8|`B8j}fW3EKqqXG-j&vEJbs zd|K#^;~KZi+Cm^%C{3Nc0mD)R{&H>W+0$iD&Up9+cGUy|4%kk`y@SUZT<=0}f?O7$ zLPT52ZH9_T?zj^m210qwV?r{%4S?c;cs>0)MAGJ?y`kzK5TDgZL2^D$viEF5gq=t~ zQ&U?Q(^OUEm;umMUuj0`EYUz%{?&2L-z_!g5|MS8alhy32PQtG@E0LJr<{HnPA&92p}F_FdNf{5M-qc<$(v{I8(uwL~Fh+`YieN=;&F63$Tb0 zZX%+_m>a@sI)tKF#gUprns*DRsp1-EQBReLfc3Om#@G0eFNEp8F*RZfNu zf=De`kI5}v4gGSm6>B_o^!zTuW;N^fW;0-WbTkG*_u~cfp29C8_8MHe*e=7eR(KQ{ Ub8ggtzalD5j&2TR2S}9P0Dm7BTL1t6 literal 0 HcmV?d00001 diff --git a/docs/classsw_1_1_canvas_layout-members.html b/docs/classsw_1_1_canvas_layout-members.html new file mode 100644 index 00000000..b605cb8d --- /dev/null +++ b/docs/classsw_1_1_canvas_layout-members.html @@ -0,0 +1,119 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::CanvasLayout Member List
+
+
+ +

This is the complete list of members for sw::CanvasLayout, including all inherited members.

+ + + + + + + + + + + +
Arrange(const Rect &finalPosition) overridesw::LayoutHostvirtual
ArrangeOverride(Size &finalSize) overridesw::CanvasLayoutvirtual
Associate(ILayout *obj)sw::LayoutHost
GetChildLayoutAt(int index) overridesw::LayoutHostvirtual
GetChildLayoutCount() overridesw::LayoutHostvirtual
GetDesireSize() overridesw::LayoutHostvirtual
GetLayoutTag() overridesw::LayoutHostvirtual
Measure(const Size &availableSize) overridesw::LayoutHostvirtual
MeasureOverride(Size &availableSize) overridesw::CanvasLayoutvirtual
SetDesireSize(const Size &size) overridesw::LayoutHostvirtual
+
+ + + + diff --git a/docs/classsw_1_1_canvas_layout.html b/docs/classsw_1_1_canvas_layout.html new file mode 100644 index 00000000..312dde44 --- /dev/null +++ b/docs/classsw_1_1_canvas_layout.html @@ -0,0 +1,224 @@ + + + + + + + +SimpleWindow: sw::CanvasLayout Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
sw::CanvasLayout Class Reference
+
+
+ +

绝对位置布局方式 + More...

+ +

#include <CanvasLayout.h>

+
+Inheritance diagram for sw::CanvasLayout:
+
+
+ + +sw::LayoutHost +sw::ILayout + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

virtual void MeasureOverride (Size &availableSize) override
 计算所需尺寸
 
virtual void ArrangeOverride (Size &finalSize) override
 安排控件
 
- Public Member Functions inherited from sw::LayoutHost
void Associate (ILayout *obj)
 设置关联的对象,每个LayoutHost只能关联一个对象
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取关联对象子控件的数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取关联对象对应索引处的子控件
 
virtual Size GetDesireSize () override
 获取关联对象所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置关联对象所需的尺寸
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const Rect &finalPosition) override
 安排控件位置
 
+

Detailed Description

+

绝对位置布局方式

+

Member Function Documentation

+ +

◆ ArrangeOverride()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::CanvasLayout::ArrangeOverride (Size & finalSize)
+
+overridevirtual
+
+ +

安排控件

+ +

Implements sw::LayoutHost.

+ +
+
+ +

◆ MeasureOverride()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::CanvasLayout::MeasureOverride (Size & availableSize)
+
+overridevirtual
+
+ +

计算所需尺寸

+ +

Implements sw::LayoutHost.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_canvas_layout.js b/docs/classsw_1_1_canvas_layout.js new file mode 100644 index 00000000..b6b2312d --- /dev/null +++ b/docs/classsw_1_1_canvas_layout.js @@ -0,0 +1,5 @@ +var classsw_1_1_canvas_layout = +[ + [ "ArrangeOverride", "classsw_1_1_canvas_layout.html#ae537365bb8c5ab18ec497844d87f288d", null ], + [ "MeasureOverride", "classsw_1_1_canvas_layout.html#a8e0f36dd4b70eda9db6c2665b019a4e5", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_canvas_layout.png b/docs/classsw_1_1_canvas_layout.png new file mode 100644 index 0000000000000000000000000000000000000000..e84910ce1896aa4f9db900c23bd477e6f7626053 GIT binary patch literal 748 zcmeAS@N?(olHy`uVBq!ia0vp^ML^ua!3-pMxcm)(lyrbki0l9V|AEXGZ@!lHA6jl< zpjjX>{mhF84;}!;P0xlc0m^Zf1o;Is0Qq2G&NTZ90|QgJr;B4q1>@VfuP3cm5NMgb z?9`*b^MAPP8!^xE=_0GH)1$yuI&eyJ(G)L2U(vl`S@s}Q-qSjA}xO)BD_4$n@nT6A0o?Sa>rM>Rj z=dK>(i(2#I6wMcG5V~*AKVOz>lVsI?@15&Hx>LhX{J4IGhrPN@r%&nr=U6fANneX^ z*lFIbDSov{?LFg@iVd}&_qcYgy}xt1Vej1ZSLd!wKe^{i>JhoJoKL^Mu0MaE*lSYz zuJ%8?ALTxUQ^#A+=gijLA>cGa)45HcsmV@YXITV?;-0Gxp<0#AchuTvluvk_ckT0< zYwCH|aznT3s0AELS-9qece1Zzo`d0hHkgk?IPKlCUC!-O_}DYw>KsW3w(8RP zD5IP#ZK^rt-mB)^MLV3P + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::CheckBox Member List
+
+
+ +

This is the complete list of members for sw::CheckBox, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AddChild(UIElement *element)sw::UIElement
AddChild(UIElement &element)sw::UIElement
AddChild(UIElement *element, uint64_t layoutTag)sw::UIElement
AddChild(UIElement &element, uint64_t layoutTag)sw::UIElement
Arrange(const sw::Rect &finalPosition) overridesw::UIElementvirtual
BackColorsw::UIElement
ButtonBase()sw::ButtonBaseprotected
CheckableButton()sw::CheckableButtonprotected
CheckBox()sw::CheckBox
CheckStatesw::CheckableButton
ChildCountsw::UIElement
ClearChildren()sw::UIElement
ClientHeightsw::WndBase
ClientRectsw::WndBase
ClientWidthsw::WndBase
Close()sw::WndBase
CollapseWhenHidesw::UIElement
ContextMenusw::UIElement
Control()sw::Controlprotected
DefaultWndProc(const ProcMsg &refMsg)sw::WndBaseprotected
Enabledsw::WndBase
Floatsw::UIElement
Focusedsw::WndBase
Fontsw::WndBase
FontChanged(HFONT hfont)sw::WndBaseprotectedvirtual
FontNamesw::WndBase
FontSizesw::WndBase
FontWeightsw::WndBase
GetArrangeOffsetX()sw::UIElementprotected
GetArrangeOffsetY()sw::UIElementprotected
GetChildBottommost(bool update)sw::UIElementprotected
GetChildLayoutAt(int index) overridesw::UIElementvirtual
GetChildLayoutCount() overridesw::UIElementvirtual
GetChildRightmost(bool update)sw::UIElementprotected
GetDesireSize() overridesw::UIElementvirtual
GetExtendedStyle()sw::WndBaseprotected
GetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
GetFontHandle()sw::WndBaseprotected
GetLayoutTag() overridesw::UIElementvirtual
GetNextElement()sw::UIElement
GetNextTabStopElement()sw::UIElement
GetRealBackColor()sw::UIElement
GetRealTextColor()sw::UIElement
GetRootElement()sw::UIElement
GetStyle()sw::WndBaseprotected
GetStyle(LONG_PTR style)sw::WndBaseprotected
GetTag() overridesw::UIElementvirtual
GetText()sw::WndBaseprotectedvirtual
GetWndBase(HWND hwnd)sw::WndBasestatic
Handlesw::WndBase
HandleChenged()sw::Controlprotectedvirtual
HandleInitialized(HWND hwnd)sw::WndBaseprotectedvirtual
Heightsw::WndBase
HorizontalAlignmentsw::UIElement
IndexOf(UIElement *element)sw::UIElement
IndexOf(UIElement &element)sw::UIElement
InheritTextColorsw::UIElement
InitButtonBase(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::ButtonBaseprotected
InitControl(LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
InitWindow(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
IsCheckedsw::CheckableButton
IsControl()sw::WndBase
IsDestroyedsw::WndBase
IsRootElement()sw::UIElement
IsRoutedEventRegistered(RoutedEventType eventType)sw::UIElement
IsVisible()sw::WndBase
LayoutTagsw::UIElement
Leftsw::WndBase
Marginsw::UIElement
Measure(const Size &availableSize) overridesw::UIElementvirtual
MoveToBottom()sw::UIElement
MoveToTop()sw::UIElement
NcHitTest(const Point &testPoint)sw::WndBase
NotifyLayoutUpdated()sw::UIElementprotected
OnAcceleratorCommand(int id)sw::WndBaseprotectedvirtual
OnAddedChild(UIElement &element)sw::UIElementprotectedvirtual
OnChar(wchar_t ch, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnClicked()sw::ButtonBaseprotectedvirtual
OnClose() overridesw::UIElementprotectedvirtual
OnColor(HDC hdc, HBRUSH &hRetBrush) overridesw::UIElementprotectedvirtual
OnCommand(int code) overridesw::ButtonBaseprotectedvirtual
OnContextMenu(bool isKeyboardMsg, Point mousePosition) overridesw::UIElementprotectedvirtual
OnControlCommand(WndBase *pControl, int code, int id)sw::WndBaseprotectedvirtual
OnCreate()sw::WndBaseprotectedvirtual
OnCtlColor(WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)sw::WndBaseprotectedvirtual
OnDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnDestroy()sw::WndBaseprotectedvirtual
OnDoubleClicked()sw::ButtonBaseprotectedvirtual
OnDrawFocusRect()sw::UIElementprotectedvirtual
OnDrawItem(int id, DRAWITEMSTRUCT *pDrawItem)sw::WndBaseprotectedvirtual
OnEnabledChanged(bool newValue)sw::WndBaseprotectedvirtual
OnEndPaint() overridesw::UIElementprotectedvirtual
OnEraseBackground(int &result)sw::WndBaseprotectedvirtual
OnHorizontalScroll(int event, int pos)sw::WndBaseprotectedvirtual
OnKeyDown(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKeyUp(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKillFocus(HWND hNextFocus) overridesw::UIElementprotectedvirtual
OnMenuCommand(int id) overridesw::UIElementprotectedvirtual
OnMouseLeave() overridesw::UIElementprotectedvirtual
OnMouseLeftButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseLeftButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseMiddleButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMove(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseRightButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseWheel(int wheelDelta, Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMove(Point newClientPosition) overridesw::UIElementprotectedvirtual
OnNcHitTest(const Point &testPoint, HitTestResult &result)sw::WndBaseprotectedvirtual
OnNotified(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnNotify(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnPaint()sw::WndBaseprotectedvirtual
OnRemovedChild(UIElement &element)sw::UIElementprotectedvirtual
OnSetCursor(HWND hwnd, HitTestResult hitTest, int message, bool &result) overridesw::UIElementprotectedvirtual
OnSetFocus(HWND hPrevFocus) overridesw::UIElementprotectedvirtual
OnSize(Size newClientSize) overridesw::UIElementprotectedvirtual
OnSysChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyDown(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyUp(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnTabStop()sw::UIElementprotectedvirtual
OnTextChanged() overridesw::UIElementprotectedvirtual
OnVerticalScroll(int event, int pos)sw::WndBaseprotectedvirtual
operator=(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator=(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator[](int index) constsw::UIElement
Parentsw::UIElement
ParentChanged(WndBase *newParent) overridesw::UIElementprotectedvirtual
PointFromScreen(const Point &screenPoint)sw::WndBase
PointToScreen(const Point &point)sw::WndBase
RaiseRoutedEvent(RoutedEventType eventType)sw::UIElementprotected
RaiseRoutedEvent(RoutedEventArgs &eventArgs)sw::UIElementprotected
Rectsw::WndBase
Redraw(bool erase=false)sw::WndBase
RegisterRoutedEvent(RoutedEventType eventType, const RoutedEvent &handler)sw::UIElement
RegisterRoutedEvent(RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))sw::UIElementinline
RegisterRoutedEvent(std::function< void(UIElement &, TEventArgs &)> handler)sw::UIElementinline
RegisterRoutedEvent(THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))sw::UIElementinline
RemoveChild(UIElement *element)sw::UIElement
RemoveChild(UIElement &element)sw::UIElement
RemoveChildAt(int index)sw::UIElement
ResetCursor()sw::UIElement
ResetHandle()sw::Controlprotected
SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase
SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement
SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual
SetCursor(HCURSOR hCursor)sw::UIElement
SetCursor(StandardCursor cursor)sw::UIElement
SetDesireSize(const Size &size) overridesw::UIElementvirtual
SetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
SetExtendedStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetNextTabStopFocus()sw::UIElementprotected
SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual
SetStyle(LONG_PTR style)sw::WndBaseprotected
SetStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetTag(uint64_t tag) overridesw::UIElementvirtual
SetText(const std::wstring &value)sw::WndBaseprotectedvirtual
SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual
Show(int nCmdShow)sw::WndBase
ShowContextMenu(const Point &point)sw::UIElement
TabStopsw::UIElement
Tagsw::UIElement
Textsw::WndBase
TextColorsw::UIElement
ThreeStatesw::CheckBox
Topsw::WndBase
Transparentsw::UIElement
UIElement()sw::UIElementprotected
UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement
Update()sw::WndBase
UpdateChildrenZOrder()sw::UIElementprotected
UpdateFont()sw::WndBase
UpdateSiblingsZOrder()sw::UIElementprotected
UpdateText()sw::WndBaseprotected
VerticalAlignmentsw::UIElement
Visiblesw::WndBase
VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual
Widthsw::WndBase
WndBase()sw::WndBaseprotected
WndBase(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndBase(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual
~ButtonBase()=0sw::ButtonBasepure virtual
~CheckableButton()=0sw::CheckableButtonpure virtual
~Control()=0sw::Controlpure virtual
~UIElement()=0sw::UIElementpure virtual
~WndBase()=0sw::WndBasepure virtual
+
+ + + + diff --git a/docs/classsw_1_1_check_box.html b/docs/classsw_1_1_check_box.html new file mode 100644 index 00000000..eb408e37 --- /dev/null +++ b/docs/classsw_1_1_check_box.html @@ -0,0 +1,827 @@ + + + + + + + +SimpleWindow: sw::CheckBox Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
sw::CheckBox Class Reference
+
+
+ +

复选框 + More...

+ +

#include <CheckBox.h>

+
+Inheritance diagram for sw::CheckBox:
+
+
+ + +sw::CheckableButton +sw::ButtonBase +sw::Control +sw::UIElement +sw::WndBase +sw::ILayout +sw::ITag + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

CheckBox ()
 初始化复选框
 
- Public Member Functions inherited from sw::CheckableButton
+virtual ~CheckableButton ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
- Public Member Functions inherited from sw::ButtonBase
+virtual ~ButtonBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
- Public Member Functions inherited from sw::Control
+virtual ~Control ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
- Public Member Functions inherited from sw::UIElement
+virtual ~UIElement ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
void RegisterRoutedEvent (RoutedEventType eventType, const RoutedEvent &handler)
 注册路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename T >
void RegisterRoutedEvent (RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))
 注册成员函数作为路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename TEventArgs , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (std::function< void(UIElement &, TEventArgs &)> handler)
 根据事件参数类型注册路由事件
 
template<typename TEventArgs , typename THandleObj , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))
 根据事件参数类型注册成员函数作为路由事件
 
void UnregisterRoutedEvent (RoutedEventType eventType)
 取消对应类型路由事件的注册
 
bool IsRoutedEventRegistered (RoutedEventType eventType)
 判断路由事件是否已被注册
 
bool AddChild (UIElement *element)
 添加子控件
 
bool AddChild (UIElement &element)
 添加子控件
 
bool AddChild (UIElement *element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool AddChild (UIElement &element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool RemoveChildAt (int index)
 移除指定索引处的子控件
 
bool RemoveChild (UIElement *element)
 移除子控件
 
bool RemoveChild (UIElement &element)
 移除子控件
 
+void ClearChildren ()
 移除所有子控件
 
int IndexOf (UIElement *element)
 获取指定元素的索引
 
int IndexOf (UIElement &element)
 获取指定元素的索引
 
+UIElementoperator[] (int index) const
 通过索引获取子控件
 
void ShowContextMenu (const Point &point)
 弹出当前元素的上下文菜单
 
+void MoveToTop ()
 移动到界面顶部
 
+void MoveToBottom ()
 移动到界面底部
 
+bool IsRootElement ()
 判断当前元素是否为根节点
 
+UIElementGetRootElement ()
 获取当前元素所在界面树的根节点
 
+UIElementGetNextElement ()
 获取当前元素在界面树上的下一个节点,若已是最后一个节点则返回根节点
 
+UIElementGetNextTabStopElement ()
 获取下一个TabStop属性为true的元素
 
+Color GetRealBackColor ()
 获取当前要显示的背景颜色:当Transparent为true时获取到祖先节点中首个Transparent为false的背景颜色,否则返回当前元素的背景颜色
 
+Color GetRealTextColor ()
 获取当前要显示的文本颜色:当InheritTextColor为true时获取到祖先节点中首个InheritTextColor为false的文本颜色,否则返回当前元素的文本颜色
 
void SetCursor (HCURSOR hCursor)
 设置鼠标样式
 
void SetCursor (StandardCursor cursor)
 设置鼠标样式
 
+void ResetCursor ()
 将鼠标样式设置为默认样式
 
void SetAlignment (sw::HorizontalAlignment horz, sw::VerticalAlignment vert)
 设置对齐方式
 
virtual uint64_t GetTag () override
 获取Tag
 
virtual void SetTag (uint64_t tag) override
 设置Tag
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取参与布局的子控件数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取对应索引处的子控件,使用此函数前必须先调用GetChildLayoutCount
 
virtual Size GetDesireSize () override
 获取控件所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置当前控件所需的尺寸
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const sw::Rect &finalPosition) override
 安排控件位置
 
- Public Member Functions inherited from sw::WndBase
+virtual ~WndBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void Show (int nCmdShow)
 该函数调用ShowWindow
 
+void Close ()
 发送关闭消息
 
+void Update ()
 该函数调用UpdateWindow
 
+void UpdateFont ()
 更新字体
 
void Redraw (bool erase=false)
 重画
 
+bool IsControl ()
 判断当前对象是否是控件
 
+bool IsVisible ()
 判断当前对象在界面中是否可视,与Visible属性不同的是该函数返回值会受父窗口的影响
 
Point PointToScreen (const Point &point)
 获取用户区点在屏幕上点的位置
 
Point PointFromScreen (const Point &screenPoint)
 获取屏幕上点在当前用户区点的位置
 
+LRESULT SendMessageW (UINT uMsg, WPARAM wParam, LPARAM lParam)
 发送消息
 
HitTestResult NcHitTest (const Point &testPoint)
 测试指定点在窗口的哪一部分
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Attributes

+const Property< boolThreeState
 是否为三态复选框
 
- Public Attributes inherited from sw::CheckableButton
+const Property< sw::CheckState > CheckState
 选中状态
 
+const Property< boolIsChecked
 是否选中
 
- Public Attributes inherited from sw::UIElement
+const Property< ThicknessMargin
 边距
 
+const Property< HorizontalAlignment > HorizontalAlignment
 水平对齐方式
 
+const Property< VerticalAlignment > VerticalAlignment
 垂直对齐方式
 
+const ReadOnlyProperty< intChildCount
 子控件数量
 
+const Property< boolCollapseWhenHide
 是否在不可见时不参与布局
 
+const ReadOnlyProperty< UIElement * > Parent
 指向父元素的指针,当前元素为顶级窗口时该值为nullptr
 
+const Property< uint64_tTag
 储存用户自定义信息的标记
 
+const Property< uint64_tLayoutTag
 布局标记,对于不同的布局有不同含义
 
+const Property< sw::ContextMenu * > ContextMenu
 右键按下时弹出的菜单
 
+const Property< boolFloat
 元素是否悬浮,若元素悬浮则该元素不会随滚动条滚动而改变位置
 
+const Property< boolTabStop
 表示用户是否可以通过按下Tab键将焦点移动到当前元素
 
+const Property< ColorBackColor
 背景颜色,修改该属性会同时将Transparent属性设为false,对于部分控件该属性可能不生效
 
+const Property< ColorTextColor
 文本颜色,修改该属性会同时将InheritTextColor属性设为false,对于部分控件该属性可能不生效
 
+const Property< boolTransparent
 是否使用透明背景(此属性并非真正意义上的透明,将该属性设为true可继承父元素的背景颜色)
 
+const Property< boolInheritTextColor
 是否继承父元素的文本颜色
 
- Public Attributes inherited from sw::WndBase
+const ReadOnlyProperty< HWNDHandle
 窗口句柄
 
+const Property< sw::FontFont
 字体
 
+const Property< std::wstring > FontName
 字体名称
 
+const Property< doubleFontSize
 字体大小
 
+const Property< sw::FontWeight > FontWeight
 字体粗细
 
+const Property< sw::RectRect
 位置和尺寸
 
+const Property< doubleLeft
 左边
 
+const Property< doubleTop
 顶边
 
+const Property< doubleWidth
 宽度
 
+const Property< doubleHeight
 高度
 
+const ReadOnlyProperty< sw::RectClientRect
 用户区尺寸
 
+const ReadOnlyProperty< doubleClientWidth
 用户区宽度
 
+const ReadOnlyProperty< doubleClientHeight
 用户区高度
 
+const Property< boolEnabled
 窗口或控件是否可用
 
+const Property< boolVisible
 窗口或控件是否可见
 
+const Property< std::wstring > Text
 窗口标题或控件文本
 
+const Property< boolFocused
 窗口是否拥有焦点
 
+const ReadOnlyProperty< WndBase * > Parent
 父窗口
 
+const ReadOnlyProperty< boolIsDestroyed
 是否已销毁,当该值为true时不应该继续使用当前对象
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Additional Inherited Members

- Static Public Member Functions inherited from sw::WndBase
static WndBaseGetWndBase (HWND hwnd)
 通过窗口句柄获取WndBase
 
- Protected Member Functions inherited from sw::CheckableButton
CheckableButton ()
 初始化CheckableButton
 
- Protected Member Functions inherited from sw::ButtonBase
ButtonBase ()
 初始化ButtonBase
 
+void InitButtonBase (LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化控件
 
virtual void OnCommand (int code) override
 当父窗口接收到控件的WM_COMMAND时调用该函数
 
+virtual void OnClicked ()
 被单击时调用该函数
 
+virtual void OnDoubleClicked ()
 被双击时调用该函数
 
- Protected Member Functions inherited from sw::Control
Control ()
 初始化控件
 
+void ResetHandle ()
 销毁控件句柄并重新初始化,该操作会创建新的句柄并设置样式、文本、字体等
 
+virtual void HandleChenged ()
 控件句柄发生改变时调用该函数
 
- Protected Member Functions inherited from sw::UIElement
UIElement ()
 初始化UIElement
 
void RaiseRoutedEvent (RoutedEventType eventType)
 触发路由事件
 
void RaiseRoutedEvent (RoutedEventArgs &eventArgs)
 触发路由事件
 
+void NotifyLayoutUpdated ()
 通知顶级窗口布局改变
 
+doubleGetArrangeOffsetX ()
 获取Arrange时子元素的水平偏移量
 
+doubleGetArrangeOffsetY ()
 获取Arrange时子元素的垂直偏移量
 
double GetChildRightmost (bool update)
 获取所有子元素在当前元素中最右边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
double GetChildBottommost (bool update)
 获取所有子元素在当前元素中最底边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
+void UpdateChildrenZOrder ()
 更新子元素的Z轴位置
 
+void UpdateSiblingsZOrder ()
 更新兄弟元素的Z轴位置
 
+void SetNextTabStopFocus ()
 设置下一个TabStop属性为true的元素为焦点元素
 
virtual void SetBackColor (Color color, bool redraw)
 设置背景颜色
 
virtual void SetTextColor (Color color, bool redraw)
 设置文本颜色
 
virtual void OnAddedChild (UIElement &element)
 添加子元素后调用该函数
 
virtual void OnRemovedChild (UIElement &element)
 移除子元素后调用该函数
 
+virtual void OnTabStop ()
 通过tab键将焦点移动到当前元素时调用该函数
 
virtual void OnDrawFocusRect ()
 绘制虚线框时调用该函数
 
virtual bool SetParent (WndBase *parent) override
 设置父窗口
 
virtual void ParentChanged (WndBase *newParent) override
 父窗口改变时调用此函数
 
virtual void OnEndPaint () override
 在OnPaint函数完成之后调用该函数
 
virtual bool OnClose () override
 接收到WM_CLOSE时调用该函数
 
virtual bool OnMove (Point newClientPosition) override
 接收到WM_MOVE时调用该函数
 
virtual bool OnSize (Size newClientSize) override
 接收到WM_SIZE时调用该函数
 
virtual void OnTextChanged () override
 Text属性更改时调用此函数
 
virtual void VisibleChanged (bool newVisible) override
 Visible属性改变时调用此函数
 
virtual bool OnSetFocus (HWND hPrevFocus) override
 接收到WM_SETFOCUS时调用该函数
 
virtual bool OnKillFocus (HWND hNextFocus) override
 接收到WM_KILLFOCUS时调用该函数
 
virtual bool OnChar (wchar_t ch, KeyFlags flags) override
 接收到WM_CHAR时调用该函数
 
virtual bool OnKeyDown (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYDOWN时调用该函数
 
virtual bool OnKeyUp (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYUP时调用该函数
 
virtual bool OnMouseMove (Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEMOVE时调用该函数
 
virtual bool OnMouseLeave () override
 接收到WM_MOUSELEAVE时调用该函数
 
virtual bool OnMouseWheel (int wheelDelta, Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEWHEEL时调用该函数
 
virtual bool OnMouseLeftButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONDOWN时调用该函数
 
virtual bool OnMouseLeftButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONUP时调用该函数
 
virtual bool OnMouseRightButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONDOWN时调用该函数
 
virtual bool OnMouseRightButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONUP时调用该函数
 
virtual bool OnMouseMiddleButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONDOWN时调用该函数
 
virtual bool OnMouseMiddleButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONUP时调用该函数
 
virtual bool OnContextMenu (bool isKeyboardMsg, Point mousePosition) override
 接收到WM_CONTEXTMENU后调用目标控件的该函数
 
virtual void OnMenuCommand (int id) override
 当WM_COMMAND接收到菜单命令时调用该函数
 
virtual bool OnColor (HDC hdc, HBRUSH &hRetBrush) override
 父窗口接收到WM_CTLCOLORxxx时调用对应控件的该函数
 
virtual bool OnSetCursor (HWND hwnd, HitTestResult hitTest, int message, bool &result) override
 接收到WM_SETCURSOR消息时调用该函数
 
- Protected Member Functions inherited from sw::WndBase
WndBase ()
 初始化WndBase
 
WndBase (const WndBase &)=delete
 
WndBase (WndBase &&)=delete
 
+WndBaseoperator= (const WndBase &)=delete
 
+WndBaseoperator= (WndBase &&)=delete
 
+void InitWindow (LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为窗口,该函数会调用CreateWindowExW
 
+void InitControl (LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为控件,该函数会调用CreateWindowExW
 
+LONG_PTR GetStyle ()
 获取窗口样式
 
+void SetStyle (LONG_PTR style)
 设置窗口样式
 
+bool GetStyle (LONG_PTR style)
 获取窗口的某个样式
 
+void SetStyle (LONG_PTR style, bool value)
 设置窗口的某个样式
 
+LONG_PTR GetExtendedStyle ()
 获取扩展窗口样式
 
+void SetExtendedStyle (LONG_PTR style)
 设置扩展窗口样式
 
+bool GetExtendedStyle (LONG_PTR style)
 获取窗口的某个扩展样式
 
+void SetExtendedStyle (LONG_PTR style, bool value)
 设置窗口的某个扩展样式
 
+HFONT GetFontHandle ()
 获取字体句柄
 
+LRESULT DefaultWndProc (const ProcMsg &refMsg)
 调用默认的WndProc,对于窗口则调用DefWindowProcW,控件则调用_controlOldWndProc
 
virtual LRESULT WndProc (const ProcMsg &refMsg)
 对WndProc的封装
 
+void UpdateText ()
 更新_text字段
 
virtual std::wstring & GetText ()
 获取窗口文本
 
virtual void SetText (const std::wstring &value)
 调用SetWindowTextW设置窗口文本
 
virtual bool OnCreate ()
 接收到WM_CREATE时调用该函数
 
virtual bool OnDestroy ()
 接收到WM_DESTROY时调用该函数
 
virtual bool OnPaint ()
 接收到WM_PAINT时调用该函数
 
virtual bool OnMouseLeftButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_LBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseRightButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_RBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseMiddleButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_MBUTTONDBLCLK时调用该函数
 
virtual bool OnDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_DEADCHAR时调用该函数
 
virtual bool OnSysChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSCHAR时调用该函数
 
virtual bool OnSysDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSDEADCHAR时调用该函数
 
virtual bool OnSysKeyDown (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYDOWN时调用该函数
 
virtual bool OnSysKeyUp (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYUP时调用该函数
 
virtual void OnControlCommand (WndBase *pControl, int code, int id)
 当WM_COMMAND接收到控件命令时调用该函数
 
virtual void OnAcceleratorCommand (int id)
 当WM_COMMAND接收到快捷键命令时调用该函数
 
virtual void HandleInitialized (HWND hwnd)
 窗口句柄初始化完成
 
virtual void FontChanged (HFONT hfont)
 字体改变时调用该函数
 
virtual bool OnNotify (NMHDR *pNMHDR)
 接收到WM_NOTIFY后调用该函数
 
virtual void OnNotified (NMHDR *pNMHDR)
 父窗口接收到WM_NOTIFY后调用发出通知控件的该函数
 
virtual bool OnVerticalScroll (int event, int pos)
 接收到WM_VSCROLL时调用目标控件的该函数
 
virtual bool OnHorizontalScroll (int event, int pos)
 接收到WM_HSCROLL时调用目标控件的该函数
 
virtual bool OnEnabledChanged (bool newValue)
 接收到WM_ENABLE时调用该函数
 
virtual bool OnCtlColor (WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)
 接收到WM_CTLCOLORxxx时调用该函数
 
virtual void OnNcHitTest (const Point &testPoint, HitTestResult &result)
 接收到WM_NCHITTEST后调用该函数
 
virtual bool OnEraseBackground (int &result)
 接收到WM_ERASEBKGND时调用该函数
 
virtual bool OnDrawItem (int id, DRAWITEMSTRUCT *pDrawItem)
 接收到WM_DRAWITEM时调用该函数
 
+

Detailed Description

+

复选框

+

The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_check_box.js b/docs/classsw_1_1_check_box.js new file mode 100644 index 00000000..f3255b04 --- /dev/null +++ b/docs/classsw_1_1_check_box.js @@ -0,0 +1,5 @@ +var classsw_1_1_check_box = +[ + [ "CheckBox", "classsw_1_1_check_box.html#a9db08b927d4b2ff852d0166ab94ab196", null ], + [ "ThreeState", "classsw_1_1_check_box.html#ac8a52241895124f970ee2878f5d00d11", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_check_box.png b/docs/classsw_1_1_check_box.png new file mode 100644 index 0000000000000000000000000000000000000000..b8083b7250fb8540d5fc316cd798d959fd33c39d GIT binary patch literal 2612 zcmbVOXH*mE8pf=VA~rS(DuPCeV^}FJOA&}7EkY7*VCYLIH+rRr5YW(N6(fSMk!Yk_ zLb(A2sUi^IQrrtf(1^fN1TplEl!TDn!TV#6yLxxeopa`VGw(a^H}gI3^E}_g+2Sm> z$?TJnkdWAhu`(k_NNl1*rT3ZP6&P(} zgM))mT$kg(gmTis1e~1&bpPqlgQdNJVzn5vQ}&ci)BV#y#cgsHL#;V23&JEy{KE)^ zgb|E;)usMxJpEybWOthtVuO}!R^z(Db1_oyF2c{~Y90w9h!f66`!73_sGW?g$!>t^u{`yo=kK*6LTc0)^{~V41!c zoh>}Lv(S1kDL_?2FpSd1x}HfHp!JS&c{TDkGnV>l-7`bZy$T;HTTh|aNMSP!5CK+U z$9Vfz_-NPed!p&^fI}qR(Lg-d`91=LAU-*FR|ma1nZxqQQpWVSzFOE_BbmpV*v-CE zeET9kCI3!en)$vO;#@C5sjDP$HCmI`y4(24Y!}mQovlHlu`jHR^-hSR1Yt;?pdiGQ z?+S#YT$qJKM$o&g{B%lma~EMmwR&g5<c^#L4|)5Z;KiJeAh^U3et&-B6&4aAiYnTLE6%1X8}O}x+8@XAS)$u$ zsiyXH;W&=3Ms@655Q=SxAQ-?suPSZMwC|iq*k}b!4gf)4WH!r( z(A8i!Y2lT_r3X=%BOX+I;Rni;TzrAbgDVG2YHlwsrZplzCAOe2p|QHkM2zVsU!*E3 zMpqhM5JxZA{8j}~q(&%~b4s?YOSSs<84oPdx`j^Lw!kHe%|7I${tw3YF@HcjHSth z3Sls2=n)PF94#V!ib+}kvyBT{AB|PX0^)AZL z#5Y^C4y+7`^OS+PUd2Nvm67nUK%-`vQY7KN{5kcfunedvmh`{Yum91?FQuYVJQc3v zVVhdXc`Sh<4d(h8Cx%}TwvRqy`81vV5NHZMerXl+9r{jC+{)>W!*EfGJTu{hm+b7V zkY|PaM=oZBWQ48l0p`A8GlJq58#_CU`?x!jpIHZ7QUK;mG%=M_3eQWG)M+LoOqb_6 zGV7w7tYf2EJi0WXqTFgHySF6K@>0D8vktxJBM7^(G!$VoeY%F2=m1WC3l#CPH-x8W zCgb-t@@}}{W|$CZDb+!>ig8y=dJ21d12NXrgDE(vj)ecZOZ88v{v~|=Tp+}=kZzMt z)-5P*STD2g?q_nMShjc??dflI2II-cvsn`W1o6P_AaOUNIFkS_(IG^`3C$~!vNN|x zjfLI}toHITSMMp!Y@7Wf%ax-5!J{>iZasDmaQxO6h_8=N4al_z{o@eb#hRqOZ$s)= z2`wB>HEM=oAyZvn@^R@PuLtMsbnkUnS*ZK^VR-qJya2fRV@Y=vVTALv)CDY4gJvvA zEyfzf-)L9;@K5?11SKtZ+!r|Oto1U>QCnUw-|#rTl9OTxf=LkAJ$T5wqH(`p)^9GM zE!!}MIasF|bWI|11MPVQRL4yS{`8DSnP7;(2mba)Px=3V{;X=1blp?IM0&GE`vcYl z`46lZg?Q`j$6}QiY{`9T^n-ily+DzGheg86jUfIGyBpQg7CIoE#--8c%h>)mT~}v3 zjohNx)gm&v%44Fh;*A%%e>Sv753(Es!XQcwV9ap{PhO>Gx2=;(e%5byvT?aApTQr1 z+Ibde9W$PyQz^vLRV~=Gy7m(zC{G&fga)^(f{>$FdRr$6>!_(VJqNu(V){D# z+7GloWDiLDX47EkzdLVmzx9_WJ2iFzKoso(iW-ha`oCKT^f(RN0%$|Nd@OnrQ<18Z zNNjTJE4UyJ%)!Y57E90$5kc-N4*p+!R?QQ4-rqrk)#xjE!(AY^k1t7fiou!5lpa3w zMZf)JX)ICiytw>iX0Mv(NF25Hw^>{I8a zFp;1_eMig{9^byj+uo7*mY`-w##S!+>6z9o2-PAZQM{ub-;rwUknn-`=TBwoyw*ic z&(K5l$G3_y0(@GYw?*%rr>+*}GCLZ=BN*(vUNgJBL9GjqR_a}`mD?d + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::CheckableButton Member List
+
+
+ +

This is the complete list of members for sw::CheckableButton, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AddChild(UIElement *element)sw::UIElement
AddChild(UIElement &element)sw::UIElement
AddChild(UIElement *element, uint64_t layoutTag)sw::UIElement
AddChild(UIElement &element, uint64_t layoutTag)sw::UIElement
Arrange(const sw::Rect &finalPosition) overridesw::UIElementvirtual
BackColorsw::UIElement
ButtonBase()sw::ButtonBaseprotected
CheckableButton()sw::CheckableButtonprotected
CheckStatesw::CheckableButton
ChildCountsw::UIElement
ClearChildren()sw::UIElement
ClientHeightsw::WndBase
ClientRectsw::WndBase
ClientWidthsw::WndBase
Close()sw::WndBase
CollapseWhenHidesw::UIElement
ContextMenusw::UIElement
Control()sw::Controlprotected
DefaultWndProc(const ProcMsg &refMsg)sw::WndBaseprotected
Enabledsw::WndBase
Floatsw::UIElement
Focusedsw::WndBase
Fontsw::WndBase
FontChanged(HFONT hfont)sw::WndBaseprotectedvirtual
FontNamesw::WndBase
FontSizesw::WndBase
FontWeightsw::WndBase
GetArrangeOffsetX()sw::UIElementprotected
GetArrangeOffsetY()sw::UIElementprotected
GetChildBottommost(bool update)sw::UIElementprotected
GetChildLayoutAt(int index) overridesw::UIElementvirtual
GetChildLayoutCount() overridesw::UIElementvirtual
GetChildRightmost(bool update)sw::UIElementprotected
GetDesireSize() overridesw::UIElementvirtual
GetExtendedStyle()sw::WndBaseprotected
GetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
GetFontHandle()sw::WndBaseprotected
GetLayoutTag() overridesw::UIElementvirtual
GetNextElement()sw::UIElement
GetNextTabStopElement()sw::UIElement
GetRealBackColor()sw::UIElement
GetRealTextColor()sw::UIElement
GetRootElement()sw::UIElement
GetStyle()sw::WndBaseprotected
GetStyle(LONG_PTR style)sw::WndBaseprotected
GetTag() overridesw::UIElementvirtual
GetText()sw::WndBaseprotectedvirtual
GetWndBase(HWND hwnd)sw::WndBasestatic
Handlesw::WndBase
HandleChenged()sw::Controlprotectedvirtual
HandleInitialized(HWND hwnd)sw::WndBaseprotectedvirtual
Heightsw::WndBase
HorizontalAlignmentsw::UIElement
IndexOf(UIElement *element)sw::UIElement
IndexOf(UIElement &element)sw::UIElement
InheritTextColorsw::UIElement
InitButtonBase(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::ButtonBaseprotected
InitControl(LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
InitWindow(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
IsCheckedsw::CheckableButton
IsControl()sw::WndBase
IsDestroyedsw::WndBase
IsRootElement()sw::UIElement
IsRoutedEventRegistered(RoutedEventType eventType)sw::UIElement
IsVisible()sw::WndBase
LayoutTagsw::UIElement
Leftsw::WndBase
Marginsw::UIElement
Measure(const Size &availableSize) overridesw::UIElementvirtual
MoveToBottom()sw::UIElement
MoveToTop()sw::UIElement
NcHitTest(const Point &testPoint)sw::WndBase
NotifyLayoutUpdated()sw::UIElementprotected
OnAcceleratorCommand(int id)sw::WndBaseprotectedvirtual
OnAddedChild(UIElement &element)sw::UIElementprotectedvirtual
OnChar(wchar_t ch, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnClicked()sw::ButtonBaseprotectedvirtual
OnClose() overridesw::UIElementprotectedvirtual
OnColor(HDC hdc, HBRUSH &hRetBrush) overridesw::UIElementprotectedvirtual
OnCommand(int code) overridesw::ButtonBaseprotectedvirtual
OnContextMenu(bool isKeyboardMsg, Point mousePosition) overridesw::UIElementprotectedvirtual
OnControlCommand(WndBase *pControl, int code, int id)sw::WndBaseprotectedvirtual
OnCreate()sw::WndBaseprotectedvirtual
OnCtlColor(WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)sw::WndBaseprotectedvirtual
OnDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnDestroy()sw::WndBaseprotectedvirtual
OnDoubleClicked()sw::ButtonBaseprotectedvirtual
OnDrawFocusRect()sw::UIElementprotectedvirtual
OnDrawItem(int id, DRAWITEMSTRUCT *pDrawItem)sw::WndBaseprotectedvirtual
OnEnabledChanged(bool newValue)sw::WndBaseprotectedvirtual
OnEndPaint() overridesw::UIElementprotectedvirtual
OnEraseBackground(int &result)sw::WndBaseprotectedvirtual
OnHorizontalScroll(int event, int pos)sw::WndBaseprotectedvirtual
OnKeyDown(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKeyUp(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKillFocus(HWND hNextFocus) overridesw::UIElementprotectedvirtual
OnMenuCommand(int id) overridesw::UIElementprotectedvirtual
OnMouseLeave() overridesw::UIElementprotectedvirtual
OnMouseLeftButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseLeftButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseMiddleButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMove(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseRightButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseWheel(int wheelDelta, Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMove(Point newClientPosition) overridesw::UIElementprotectedvirtual
OnNcHitTest(const Point &testPoint, HitTestResult &result)sw::WndBaseprotectedvirtual
OnNotified(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnNotify(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnPaint()sw::WndBaseprotectedvirtual
OnRemovedChild(UIElement &element)sw::UIElementprotectedvirtual
OnSetCursor(HWND hwnd, HitTestResult hitTest, int message, bool &result) overridesw::UIElementprotectedvirtual
OnSetFocus(HWND hPrevFocus) overridesw::UIElementprotectedvirtual
OnSize(Size newClientSize) overridesw::UIElementprotectedvirtual
OnSysChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyDown(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyUp(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnTabStop()sw::UIElementprotectedvirtual
OnTextChanged() overridesw::UIElementprotectedvirtual
OnVerticalScroll(int event, int pos)sw::WndBaseprotectedvirtual
operator=(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator=(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator[](int index) constsw::UIElement
Parentsw::UIElement
ParentChanged(WndBase *newParent) overridesw::UIElementprotectedvirtual
PointFromScreen(const Point &screenPoint)sw::WndBase
PointToScreen(const Point &point)sw::WndBase
RaiseRoutedEvent(RoutedEventType eventType)sw::UIElementprotected
RaiseRoutedEvent(RoutedEventArgs &eventArgs)sw::UIElementprotected
Rectsw::WndBase
Redraw(bool erase=false)sw::WndBase
RegisterRoutedEvent(RoutedEventType eventType, const RoutedEvent &handler)sw::UIElement
RegisterRoutedEvent(RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))sw::UIElementinline
RegisterRoutedEvent(std::function< void(UIElement &, TEventArgs &)> handler)sw::UIElementinline
RegisterRoutedEvent(THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))sw::UIElementinline
RemoveChild(UIElement *element)sw::UIElement
RemoveChild(UIElement &element)sw::UIElement
RemoveChildAt(int index)sw::UIElement
ResetCursor()sw::UIElement
ResetHandle()sw::Controlprotected
SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase
SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement
SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual
SetCursor(HCURSOR hCursor)sw::UIElement
SetCursor(StandardCursor cursor)sw::UIElement
SetDesireSize(const Size &size) overridesw::UIElementvirtual
SetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
SetExtendedStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetNextTabStopFocus()sw::UIElementprotected
SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual
SetStyle(LONG_PTR style)sw::WndBaseprotected
SetStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetTag(uint64_t tag) overridesw::UIElementvirtual
SetText(const std::wstring &value)sw::WndBaseprotectedvirtual
SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual
Show(int nCmdShow)sw::WndBase
ShowContextMenu(const Point &point)sw::UIElement
TabStopsw::UIElement
Tagsw::UIElement
Textsw::WndBase
TextColorsw::UIElement
Topsw::WndBase
Transparentsw::UIElement
UIElement()sw::UIElementprotected
UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement
Update()sw::WndBase
UpdateChildrenZOrder()sw::UIElementprotected
UpdateFont()sw::WndBase
UpdateSiblingsZOrder()sw::UIElementprotected
UpdateText()sw::WndBaseprotected
VerticalAlignmentsw::UIElement
Visiblesw::WndBase
VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual
Widthsw::WndBase
WndBase()sw::WndBaseprotected
WndBase(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndBase(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual
~ButtonBase()=0sw::ButtonBasepure virtual
~CheckableButton()=0sw::CheckableButtonpure virtual
~Control()=0sw::Controlpure virtual
~UIElement()=0sw::UIElementpure virtual
~WndBase()=0sw::WndBasepure virtual
+
+ + + + diff --git a/docs/classsw_1_1_checkable_button.html b/docs/classsw_1_1_checkable_button.html new file mode 100644 index 00000000..ce94169e --- /dev/null +++ b/docs/classsw_1_1_checkable_button.html @@ -0,0 +1,821 @@ + + + + + + + +SimpleWindow: sw::CheckableButton Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
sw::CheckableButton Class Referenceabstract
+
+
+ +

表示可选中的按钮类型(单选框、复选框等) + More...

+ +

#include <CheckableButton.h>

+
+Inheritance diagram for sw::CheckableButton:
+
+
+ + +sw::ButtonBase +sw::Control +sw::UIElement +sw::WndBase +sw::ILayout +sw::ITag +sw::CheckBox +sw::RadioButton + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

+virtual ~CheckableButton ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
- Public Member Functions inherited from sw::ButtonBase
+virtual ~ButtonBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
- Public Member Functions inherited from sw::Control
+virtual ~Control ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
- Public Member Functions inherited from sw::UIElement
+virtual ~UIElement ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
void RegisterRoutedEvent (RoutedEventType eventType, const RoutedEvent &handler)
 注册路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename T >
void RegisterRoutedEvent (RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))
 注册成员函数作为路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename TEventArgs , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (std::function< void(UIElement &, TEventArgs &)> handler)
 根据事件参数类型注册路由事件
 
template<typename TEventArgs , typename THandleObj , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))
 根据事件参数类型注册成员函数作为路由事件
 
void UnregisterRoutedEvent (RoutedEventType eventType)
 取消对应类型路由事件的注册
 
bool IsRoutedEventRegistered (RoutedEventType eventType)
 判断路由事件是否已被注册
 
bool AddChild (UIElement *element)
 添加子控件
 
bool AddChild (UIElement &element)
 添加子控件
 
bool AddChild (UIElement *element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool AddChild (UIElement &element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool RemoveChildAt (int index)
 移除指定索引处的子控件
 
bool RemoveChild (UIElement *element)
 移除子控件
 
bool RemoveChild (UIElement &element)
 移除子控件
 
+void ClearChildren ()
 移除所有子控件
 
int IndexOf (UIElement *element)
 获取指定元素的索引
 
int IndexOf (UIElement &element)
 获取指定元素的索引
 
+UIElementoperator[] (int index) const
 通过索引获取子控件
 
void ShowContextMenu (const Point &point)
 弹出当前元素的上下文菜单
 
+void MoveToTop ()
 移动到界面顶部
 
+void MoveToBottom ()
 移动到界面底部
 
+bool IsRootElement ()
 判断当前元素是否为根节点
 
+UIElementGetRootElement ()
 获取当前元素所在界面树的根节点
 
+UIElementGetNextElement ()
 获取当前元素在界面树上的下一个节点,若已是最后一个节点则返回根节点
 
+UIElementGetNextTabStopElement ()
 获取下一个TabStop属性为true的元素
 
+Color GetRealBackColor ()
 获取当前要显示的背景颜色:当Transparent为true时获取到祖先节点中首个Transparent为false的背景颜色,否则返回当前元素的背景颜色
 
+Color GetRealTextColor ()
 获取当前要显示的文本颜色:当InheritTextColor为true时获取到祖先节点中首个InheritTextColor为false的文本颜色,否则返回当前元素的文本颜色
 
void SetCursor (HCURSOR hCursor)
 设置鼠标样式
 
void SetCursor (StandardCursor cursor)
 设置鼠标样式
 
+void ResetCursor ()
 将鼠标样式设置为默认样式
 
void SetAlignment (sw::HorizontalAlignment horz, sw::VerticalAlignment vert)
 设置对齐方式
 
virtual uint64_t GetTag () override
 获取Tag
 
virtual void SetTag (uint64_t tag) override
 设置Tag
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取参与布局的子控件数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取对应索引处的子控件,使用此函数前必须先调用GetChildLayoutCount
 
virtual Size GetDesireSize () override
 获取控件所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置当前控件所需的尺寸
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const sw::Rect &finalPosition) override
 安排控件位置
 
- Public Member Functions inherited from sw::WndBase
+virtual ~WndBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void Show (int nCmdShow)
 该函数调用ShowWindow
 
+void Close ()
 发送关闭消息
 
+void Update ()
 该函数调用UpdateWindow
 
+void UpdateFont ()
 更新字体
 
void Redraw (bool erase=false)
 重画
 
+bool IsControl ()
 判断当前对象是否是控件
 
+bool IsVisible ()
 判断当前对象在界面中是否可视,与Visible属性不同的是该函数返回值会受父窗口的影响
 
Point PointToScreen (const Point &point)
 获取用户区点在屏幕上点的位置
 
Point PointFromScreen (const Point &screenPoint)
 获取屏幕上点在当前用户区点的位置
 
+LRESULT SendMessageW (UINT uMsg, WPARAM wParam, LPARAM lParam)
 发送消息
 
HitTestResult NcHitTest (const Point &testPoint)
 测试指定点在窗口的哪一部分
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Attributes

+const Property< sw::CheckState > CheckState
 选中状态
 
+const Property< boolIsChecked
 是否选中
 
- Public Attributes inherited from sw::UIElement
+const Property< ThicknessMargin
 边距
 
+const Property< HorizontalAlignment > HorizontalAlignment
 水平对齐方式
 
+const Property< VerticalAlignment > VerticalAlignment
 垂直对齐方式
 
+const ReadOnlyProperty< intChildCount
 子控件数量
 
+const Property< boolCollapseWhenHide
 是否在不可见时不参与布局
 
+const ReadOnlyProperty< UIElement * > Parent
 指向父元素的指针,当前元素为顶级窗口时该值为nullptr
 
+const Property< uint64_tTag
 储存用户自定义信息的标记
 
+const Property< uint64_tLayoutTag
 布局标记,对于不同的布局有不同含义
 
+const Property< sw::ContextMenu * > ContextMenu
 右键按下时弹出的菜单
 
+const Property< boolFloat
 元素是否悬浮,若元素悬浮则该元素不会随滚动条滚动而改变位置
 
+const Property< boolTabStop
 表示用户是否可以通过按下Tab键将焦点移动到当前元素
 
+const Property< ColorBackColor
 背景颜色,修改该属性会同时将Transparent属性设为false,对于部分控件该属性可能不生效
 
+const Property< ColorTextColor
 文本颜色,修改该属性会同时将InheritTextColor属性设为false,对于部分控件该属性可能不生效
 
+const Property< boolTransparent
 是否使用透明背景(此属性并非真正意义上的透明,将该属性设为true可继承父元素的背景颜色)
 
+const Property< boolInheritTextColor
 是否继承父元素的文本颜色
 
- Public Attributes inherited from sw::WndBase
+const ReadOnlyProperty< HWNDHandle
 窗口句柄
 
+const Property< sw::FontFont
 字体
 
+const Property< std::wstring > FontName
 字体名称
 
+const Property< doubleFontSize
 字体大小
 
+const Property< sw::FontWeight > FontWeight
 字体粗细
 
+const Property< sw::RectRect
 位置和尺寸
 
+const Property< doubleLeft
 左边
 
+const Property< doubleTop
 顶边
 
+const Property< doubleWidth
 宽度
 
+const Property< doubleHeight
 高度
 
+const ReadOnlyProperty< sw::RectClientRect
 用户区尺寸
 
+const ReadOnlyProperty< doubleClientWidth
 用户区宽度
 
+const ReadOnlyProperty< doubleClientHeight
 用户区高度
 
+const Property< boolEnabled
 窗口或控件是否可用
 
+const Property< boolVisible
 窗口或控件是否可见
 
+const Property< std::wstring > Text
 窗口标题或控件文本
 
+const Property< boolFocused
 窗口是否拥有焦点
 
+const ReadOnlyProperty< WndBase * > Parent
 父窗口
 
+const ReadOnlyProperty< boolIsDestroyed
 是否已销毁,当该值为true时不应该继续使用当前对象
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Protected Member Functions

CheckableButton ()
 初始化CheckableButton
 
- Protected Member Functions inherited from sw::ButtonBase
ButtonBase ()
 初始化ButtonBase
 
+void InitButtonBase (LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化控件
 
virtual void OnCommand (int code) override
 当父窗口接收到控件的WM_COMMAND时调用该函数
 
+virtual void OnClicked ()
 被单击时调用该函数
 
+virtual void OnDoubleClicked ()
 被双击时调用该函数
 
- Protected Member Functions inherited from sw::Control
Control ()
 初始化控件
 
+void ResetHandle ()
 销毁控件句柄并重新初始化,该操作会创建新的句柄并设置样式、文本、字体等
 
+virtual void HandleChenged ()
 控件句柄发生改变时调用该函数
 
- Protected Member Functions inherited from sw::UIElement
UIElement ()
 初始化UIElement
 
void RaiseRoutedEvent (RoutedEventType eventType)
 触发路由事件
 
void RaiseRoutedEvent (RoutedEventArgs &eventArgs)
 触发路由事件
 
+void NotifyLayoutUpdated ()
 通知顶级窗口布局改变
 
+doubleGetArrangeOffsetX ()
 获取Arrange时子元素的水平偏移量
 
+doubleGetArrangeOffsetY ()
 获取Arrange时子元素的垂直偏移量
 
double GetChildRightmost (bool update)
 获取所有子元素在当前元素中最右边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
double GetChildBottommost (bool update)
 获取所有子元素在当前元素中最底边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
+void UpdateChildrenZOrder ()
 更新子元素的Z轴位置
 
+void UpdateSiblingsZOrder ()
 更新兄弟元素的Z轴位置
 
+void SetNextTabStopFocus ()
 设置下一个TabStop属性为true的元素为焦点元素
 
virtual void SetBackColor (Color color, bool redraw)
 设置背景颜色
 
virtual void SetTextColor (Color color, bool redraw)
 设置文本颜色
 
virtual void OnAddedChild (UIElement &element)
 添加子元素后调用该函数
 
virtual void OnRemovedChild (UIElement &element)
 移除子元素后调用该函数
 
+virtual void OnTabStop ()
 通过tab键将焦点移动到当前元素时调用该函数
 
virtual void OnDrawFocusRect ()
 绘制虚线框时调用该函数
 
virtual bool SetParent (WndBase *parent) override
 设置父窗口
 
virtual void ParentChanged (WndBase *newParent) override
 父窗口改变时调用此函数
 
virtual void OnEndPaint () override
 在OnPaint函数完成之后调用该函数
 
virtual bool OnClose () override
 接收到WM_CLOSE时调用该函数
 
virtual bool OnMove (Point newClientPosition) override
 接收到WM_MOVE时调用该函数
 
virtual bool OnSize (Size newClientSize) override
 接收到WM_SIZE时调用该函数
 
virtual void OnTextChanged () override
 Text属性更改时调用此函数
 
virtual void VisibleChanged (bool newVisible) override
 Visible属性改变时调用此函数
 
virtual bool OnSetFocus (HWND hPrevFocus) override
 接收到WM_SETFOCUS时调用该函数
 
virtual bool OnKillFocus (HWND hNextFocus) override
 接收到WM_KILLFOCUS时调用该函数
 
virtual bool OnChar (wchar_t ch, KeyFlags flags) override
 接收到WM_CHAR时调用该函数
 
virtual bool OnKeyDown (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYDOWN时调用该函数
 
virtual bool OnKeyUp (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYUP时调用该函数
 
virtual bool OnMouseMove (Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEMOVE时调用该函数
 
virtual bool OnMouseLeave () override
 接收到WM_MOUSELEAVE时调用该函数
 
virtual bool OnMouseWheel (int wheelDelta, Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEWHEEL时调用该函数
 
virtual bool OnMouseLeftButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONDOWN时调用该函数
 
virtual bool OnMouseLeftButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONUP时调用该函数
 
virtual bool OnMouseRightButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONDOWN时调用该函数
 
virtual bool OnMouseRightButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONUP时调用该函数
 
virtual bool OnMouseMiddleButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONDOWN时调用该函数
 
virtual bool OnMouseMiddleButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONUP时调用该函数
 
virtual bool OnContextMenu (bool isKeyboardMsg, Point mousePosition) override
 接收到WM_CONTEXTMENU后调用目标控件的该函数
 
virtual void OnMenuCommand (int id) override
 当WM_COMMAND接收到菜单命令时调用该函数
 
virtual bool OnColor (HDC hdc, HBRUSH &hRetBrush) override
 父窗口接收到WM_CTLCOLORxxx时调用对应控件的该函数
 
virtual bool OnSetCursor (HWND hwnd, HitTestResult hitTest, int message, bool &result) override
 接收到WM_SETCURSOR消息时调用该函数
 
- Protected Member Functions inherited from sw::WndBase
WndBase ()
 初始化WndBase
 
WndBase (const WndBase &)=delete
 
WndBase (WndBase &&)=delete
 
+WndBaseoperator= (const WndBase &)=delete
 
+WndBaseoperator= (WndBase &&)=delete
 
+void InitWindow (LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为窗口,该函数会调用CreateWindowExW
 
+void InitControl (LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为控件,该函数会调用CreateWindowExW
 
+LONG_PTR GetStyle ()
 获取窗口样式
 
+void SetStyle (LONG_PTR style)
 设置窗口样式
 
+bool GetStyle (LONG_PTR style)
 获取窗口的某个样式
 
+void SetStyle (LONG_PTR style, bool value)
 设置窗口的某个样式
 
+LONG_PTR GetExtendedStyle ()
 获取扩展窗口样式
 
+void SetExtendedStyle (LONG_PTR style)
 设置扩展窗口样式
 
+bool GetExtendedStyle (LONG_PTR style)
 获取窗口的某个扩展样式
 
+void SetExtendedStyle (LONG_PTR style, bool value)
 设置窗口的某个扩展样式
 
+HFONT GetFontHandle ()
 获取字体句柄
 
+LRESULT DefaultWndProc (const ProcMsg &refMsg)
 调用默认的WndProc,对于窗口则调用DefWindowProcW,控件则调用_controlOldWndProc
 
virtual LRESULT WndProc (const ProcMsg &refMsg)
 对WndProc的封装
 
+void UpdateText ()
 更新_text字段
 
virtual std::wstring & GetText ()
 获取窗口文本
 
virtual void SetText (const std::wstring &value)
 调用SetWindowTextW设置窗口文本
 
virtual bool OnCreate ()
 接收到WM_CREATE时调用该函数
 
virtual bool OnDestroy ()
 接收到WM_DESTROY时调用该函数
 
virtual bool OnPaint ()
 接收到WM_PAINT时调用该函数
 
virtual bool OnMouseLeftButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_LBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseRightButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_RBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseMiddleButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_MBUTTONDBLCLK时调用该函数
 
virtual bool OnDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_DEADCHAR时调用该函数
 
virtual bool OnSysChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSCHAR时调用该函数
 
virtual bool OnSysDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSDEADCHAR时调用该函数
 
virtual bool OnSysKeyDown (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYDOWN时调用该函数
 
virtual bool OnSysKeyUp (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYUP时调用该函数
 
virtual void OnControlCommand (WndBase *pControl, int code, int id)
 当WM_COMMAND接收到控件命令时调用该函数
 
virtual void OnAcceleratorCommand (int id)
 当WM_COMMAND接收到快捷键命令时调用该函数
 
virtual void HandleInitialized (HWND hwnd)
 窗口句柄初始化完成
 
virtual void FontChanged (HFONT hfont)
 字体改变时调用该函数
 
virtual bool OnNotify (NMHDR *pNMHDR)
 接收到WM_NOTIFY后调用该函数
 
virtual void OnNotified (NMHDR *pNMHDR)
 父窗口接收到WM_NOTIFY后调用发出通知控件的该函数
 
virtual bool OnVerticalScroll (int event, int pos)
 接收到WM_VSCROLL时调用目标控件的该函数
 
virtual bool OnHorizontalScroll (int event, int pos)
 接收到WM_HSCROLL时调用目标控件的该函数
 
virtual bool OnEnabledChanged (bool newValue)
 接收到WM_ENABLE时调用该函数
 
virtual bool OnCtlColor (WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)
 接收到WM_CTLCOLORxxx时调用该函数
 
virtual void OnNcHitTest (const Point &testPoint, HitTestResult &result)
 接收到WM_NCHITTEST后调用该函数
 
virtual bool OnEraseBackground (int &result)
 接收到WM_ERASEBKGND时调用该函数
 
virtual bool OnDrawItem (int id, DRAWITEMSTRUCT *pDrawItem)
 接收到WM_DRAWITEM时调用该函数
 
+ + + + + +

+Additional Inherited Members

- Static Public Member Functions inherited from sw::WndBase
static WndBaseGetWndBase (HWND hwnd)
 通过窗口句柄获取WndBase
 
+

Detailed Description

+

表示可选中的按钮类型(单选框、复选框等)

+

The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_checkable_button.js b/docs/classsw_1_1_checkable_button.js new file mode 100644 index 00000000..1d23d43c --- /dev/null +++ b/docs/classsw_1_1_checkable_button.js @@ -0,0 +1,7 @@ +var classsw_1_1_checkable_button = +[ + [ "CheckableButton", "classsw_1_1_checkable_button.html#a2524d4f78fb668da7d5a27a8d9aed837", null ], + [ "~CheckableButton", "classsw_1_1_checkable_button.html#a5219cae8ff29ce51fc384b1916debb7a", null ], + [ "CheckState", "classsw_1_1_checkable_button.html#ad8a49d1834f5dd09237583795f439547", null ], + [ "IsChecked", "classsw_1_1_checkable_button.html#a52e1547dc73eb7b8f6cd4ecb523e7f56", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_checkable_button.png b/docs/classsw_1_1_checkable_button.png new file mode 100644 index 0000000000000000000000000000000000000000..68a9e988a4e593839f1feeb507c333187ad62413 GIT binary patch literal 2764 zcmbVO3p7+~8`k{!tEm(T5jrSmC)Zpfx=a{kYMU()gQAN_RLnGz{!UVUn#^xHZsT-j zIBk~^iD?*0%rS$hG)*NTmmwLqqH&wEb^g}BYIXY8I`3M0?eF{EcYk|-&-=X3yOZ{K zx-3U)q7@VrmSbHppn}2zDsq`E{s*#>pB{4zxoPe3!0(dF<;bxA-G|eu5AtozfJhBm zQ-5b?C$etU?9D)YOHP5FUJA(kli8p$pDHMz_hB*H@v#er+6SZFG$}cEEn;8c&k{x( z){;?a7qO0(Wdxp4Ufc4;#ue|yX3OgA&9&>ymJKuZ8tjBb(>{4O;kR+8t{B|9Ooe^3 zDIiq70n}r{$96ODP!VxEKj{9k2{RoC>gW=BnV*Y>MA43fv1m|#l&Oon>vq9}wQ-`}O>0AG;26~4{C-IPR%L(S2Acr!l?5ZvSh9`(vegH<`a>{KFB--~8 z&v$!(x7bJVpzT_d{d%Moly>hwJX1p(GrKwc@tg<0ewfDG#21I_#=V@aA#ihC*<|s( z+?ir(^<}l*K_1g%IvQG)KODO$M5$|O2aYXo zS_ID3<&@4g37H=EA!ulfgd?teY&t<5bP3Pl*aO|AA-FZBUTcK~Vx!)$%rRLei{L;@ z89d9SQk{MzOez~6tRzq4(pfOv(IdLK7b+LnsEi0GRjRE{K<|1(1hagtI7oD2Z0W7o z=0=v3iaQny84Kgf$Pg5l=}9qIjijSsGYG@aFmChdNTR~9l_7wn@5CX>l^~5vHc!k| zViWZ5tV3c;>Nxs#I-DN8&*QlGv;zj$8K^TyR$^Zo6%x-HU=<6Ks2Eh(b+peaAZg(< z$e7AXG&L*r{fcR zpkTz?kb;Uy2Dxd1y4bB*tiMN8J7%(%%u;Gl3rR!WSIp=9g4M_4)fM5^cj8FSgC8m*7k}k+Ar3$ zPDvj$u?oLaqC;1g4(l&239gwq5XFu(7r|l0LSA@BlU2ACmm7b=X~+51!YSTH@zuG= zTmBUXI!JTD=X5$=y{k+-FS2tOdMr^*wL1P*B*{2E?-sV?$%y1O8+&PMe~_SLxaXyS zWp!kKYoBI$fK9Wo8ye!&IHQlRVZM{5`4w#$PW3Am#vOw9Ry<8LRhvDmNpElRtPp=X z>9lZkn4qsHMNqONRZ5CH^%SMVFA;mv-!%^$;?Q7L-4?r`kF!HVDs@`l$6KbTemt78 zGIs?9Rc)(tP|+93($%yyp9D_~`i{Qack=Z2T~1B&5|VJf*A5R=ry^(gf(xUi)VhJ+ zVBgz6vk80VsT(LL09#~ScM_vkcU%$ZPSI#RdoWunxMX+0+dutvz%F!Etpto9a-+;G znbV~1jZ%jUZD%x@Zi@XGtctpQz4RUiUDcv4*vF`iucv9wmS6CPeHgW@vHG0Si17+q zjJ2NP+znPbi*rENllOrn9;TH+&@={pTn5TucuHGO@$O%-7Ac?@)Pi%@^cVK;WNb4{ z;rS$ZW6Gpe36cqYEt$bjtdQl@{88SL+waxNDU%ivs;kw_(~i;1K040K?+X4E2G~30OqRm4i;`R z(o-azj8ZXrl;oOl2D9Y*D)V`xZwSzLT%Cz_Yn2j_gbT(;MiF!Tni&nzKw_(TfFoje z3pcR-MT{Uzg6ju*yH_A|m*M%cz6eLUJ6j8(XObV>z?-@YEH)v#qa5ifZh`nagz03d=qeooA+r}$LpDCNFbWK>a zX`-HoSp04z&3~chCvDd%4KGB^taDlXDA6?`U~TGcRMBPC{`y92;Wk4(#h1$K|4%2N zcgH&DWGeh3-l>Cd*FWi-jpCbm(hb$P)P=KEsxzBepsk-!VKFZ;Or+;cDkD2_=6j&% zZL;cf6+nIg(HRX>2=X&Y>%Nj$Q2<+48T8&)&$=|;)HnAw021w-3k4+fipk9^u#W~o zIO1;pta_ny=Cqtj9X-kkztYCaIM?1qo}R(C&;(j}Sy_g3qbWQ;Vr8p(miU!-GbfhR zLF`EWb+9_ye9{CKmphcNNb;=D^L4iaV5{6>!3*z2q54L)m}(g!%(J*ITA z#JgT|QGnNIrRufzYzv&6EPJ`)&Gw-gr)y)mb&l??+Q%GeaTBSUvvupZkG=Y| + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::ComboBox Member List
+
+
+ +

This is the complete list of members for sw::ComboBox, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AddChild(UIElement *element)sw::UIElement
AddChild(UIElement &element)sw::UIElement
AddChild(UIElement *element, uint64_t layoutTag)sw::UIElement
AddChild(UIElement &element, uint64_t layoutTag)sw::UIElement
AddItem(const std::wstring &item) overridesw::ComboBoxvirtual
sw::ItemsControl::AddItem(const TItem &item)=0sw::ItemsControl< TItem >pure virtual
Arrange(const sw::Rect &finalPosition) overridesw::UIElementvirtual
BackColorsw::UIElement
ChildCountsw::UIElement
Clear() overridesw::ComboBoxvirtual
ClearChildren()sw::UIElement
ClientHeightsw::WndBase
ClientRectsw::WndBase
ClientWidthsw::WndBase
Close()sw::WndBase
CloseDropDown()sw::ComboBox
CollapseWhenHidesw::UIElement
ComboBox()sw::ComboBox
ContextMenusw::UIElement
Control()sw::Controlprotected
DefaultWndProc(const ProcMsg &refMsg)sw::WndBaseprotected
Enabledsw::WndBase
Floatsw::UIElement
Focusedsw::WndBase
Fontsw::WndBase
FontChanged(HFONT hfont)sw::WndBaseprotectedvirtual
FontNamesw::WndBase
FontSizesw::WndBase
FontWeightsw::WndBase
GetArrangeOffsetX()sw::UIElementprotected
GetArrangeOffsetY()sw::UIElementprotected
GetChildBottommost(bool update)sw::UIElementprotected
GetChildLayoutAt(int index) overridesw::UIElementvirtual
GetChildLayoutCount() overridesw::UIElementvirtual
GetChildRightmost(bool update)sw::UIElementprotected
GetDesireSize() overridesw::UIElementvirtual
GetExtendedStyle()sw::WndBaseprotected
GetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
GetFontHandle()sw::WndBaseprotected
GetItemAt(int index) overridesw::ComboBoxvirtual
GetItemsCount() overridesw::ComboBoxprotectedvirtual
GetLayoutTag() overridesw::UIElementvirtual
GetNextElement()sw::UIElement
GetNextTabStopElement()sw::UIElement
GetRealBackColor()sw::UIElement
GetRealTextColor()sw::UIElement
GetRootElement()sw::UIElement
GetSelectedIndex() overridesw::ComboBoxprotectedvirtual
GetSelectedItem() overridesw::ComboBoxprotectedvirtual
GetStyle()sw::WndBaseprotected
GetStyle(LONG_PTR style)sw::WndBaseprotected
GetTag() overridesw::UIElementvirtual
GetText() overridesw::ComboBoxprotectedvirtual
GetWndBase(HWND hwnd)sw::WndBasestatic
Handlesw::WndBase
HandleChenged()sw::Controlprotectedvirtual
HandleInitialized(HWND hwnd)sw::WndBaseprotectedvirtual
Heightsw::WndBase
HorizontalAlignmentsw::UIElement
IndexOf(UIElement *element)sw::UIElement
IndexOf(UIElement &element)sw::UIElement
InheritTextColorsw::UIElement
InitControl(LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
InitWindow(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
InsertItem(int index, const std::wstring &item) overridesw::ComboBoxvirtual
sw::ItemsControl::InsertItem(int index, const TItem &item)=0sw::ItemsControl< TItem >pure virtual
IsControl()sw::WndBase
IsDestroyedsw::WndBase
IsEditablesw::ComboBox
IsRootElement()sw::UIElement
IsRoutedEventRegistered(RoutedEventType eventType)sw::UIElement
IsVisible()sw::WndBase
ItemsControl()sw::ItemsControl< TItem >inlineprotected
ItemsCountsw::ItemsControl< TItem >
LayoutTagsw::UIElement
Leftsw::WndBase
Marginsw::UIElement
Measure(const Size &availableSize) overridesw::UIElementvirtual
MoveToBottom()sw::UIElement
MoveToTop()sw::UIElement
NcHitTest(const Point &testPoint)sw::WndBase
NotifyLayoutUpdated()sw::UIElementprotected
OnAcceleratorCommand(int id)sw::WndBaseprotectedvirtual
OnAddedChild(UIElement &element)sw::UIElementprotectedvirtual
OnChar(wchar_t ch, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnClose() overridesw::UIElementprotectedvirtual
OnColor(HDC hdc, HBRUSH &hRetBrush) overridesw::UIElementprotectedvirtual
OnCommand(int code) overridesw::ComboBoxprotectedvirtual
OnContextMenu(bool isKeyboardMsg, Point mousePosition) overridesw::UIElementprotectedvirtual
OnControlCommand(WndBase *pControl, int code, int id)sw::WndBaseprotectedvirtual
OnCreate()sw::WndBaseprotectedvirtual
OnCtlColor(WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)sw::WndBaseprotectedvirtual
OnDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnDestroy()sw::WndBaseprotectedvirtual
OnDrawFocusRect()sw::UIElementprotectedvirtual
OnDrawItem(int id, DRAWITEMSTRUCT *pDrawItem)sw::WndBaseprotectedvirtual
OnEnabledChanged(bool newValue)sw::WndBaseprotectedvirtual
OnEndPaint() overridesw::UIElementprotectedvirtual
OnEraseBackground(int &result)sw::WndBaseprotectedvirtual
OnHorizontalScroll(int event, int pos)sw::WndBaseprotectedvirtual
OnKeyDown(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKeyUp(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKillFocus(HWND hNextFocus) overridesw::UIElementprotectedvirtual
OnMenuCommand(int id) overridesw::UIElementprotectedvirtual
OnMouseLeave() overridesw::UIElementprotectedvirtual
OnMouseLeftButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseLeftButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseMiddleButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMove(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseRightButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseWheel(int wheelDelta, Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMove(Point newClientPosition) overridesw::UIElementprotectedvirtual
OnNcHitTest(const Point &testPoint, HitTestResult &result)sw::WndBaseprotectedvirtual
OnNotified(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnNotify(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnPaint()sw::WndBaseprotectedvirtual
OnRemovedChild(UIElement &element)sw::UIElementprotectedvirtual
OnSelectionChanged() overridesw::ComboBoxprotectedvirtual
OnSetCursor(HWND hwnd, HitTestResult hitTest, int message, bool &result) overridesw::UIElementprotectedvirtual
OnSetFocus(HWND hPrevFocus) overridesw::UIElementprotectedvirtual
OnSize(Size newClientSize) overridesw::UIElementprotectedvirtual
OnSysChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyDown(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyUp(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnTabStop()sw::UIElementprotectedvirtual
OnTextChanged() overridesw::UIElementprotectedvirtual
OnVerticalScroll(int event, int pos)sw::WndBaseprotectedvirtual
operator=(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator=(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator[](int index) constsw::UIElement
Parentsw::UIElement
ParentChanged(WndBase *newParent) overridesw::UIElementprotectedvirtual
PointFromScreen(const Point &screenPoint)sw::WndBase
PointToScreen(const Point &point)sw::WndBase
RaiseRoutedEvent(RoutedEventType eventType)sw::UIElementprotected
RaiseRoutedEvent(RoutedEventArgs &eventArgs)sw::UIElementprotected
Rectsw::WndBase
Redraw(bool erase=false)sw::WndBase
RegisterRoutedEvent(RoutedEventType eventType, const RoutedEvent &handler)sw::UIElement
RegisterRoutedEvent(RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))sw::UIElementinline
RegisterRoutedEvent(std::function< void(UIElement &, TEventArgs &)> handler)sw::UIElementinline
RegisterRoutedEvent(THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))sw::UIElementinline
RemoveChild(UIElement *element)sw::UIElement
RemoveChild(UIElement &element)sw::UIElement
RemoveChildAt(int index)sw::UIElement
RemoveItemAt(int index) overridesw::ComboBoxvirtual
ResetCursor()sw::UIElement
ResetHandle()sw::Controlprotected
SelectedIndexsw::ItemsControl< TItem >
SelectedItemsw::ItemsControl< TItem >
SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase
SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement
SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual
SetCursor(HCURSOR hCursor)sw::UIElement
SetCursor(StandardCursor cursor)sw::UIElement
SetDesireSize(const Size &size) overridesw::UIElementvirtual
SetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
SetExtendedStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetNextTabStopFocus()sw::UIElementprotected
SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual
SetSelectedIndex(int index) overridesw::ComboBoxprotectedvirtual
SetStyle(LONG_PTR style)sw::WndBaseprotected
SetStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetTag(uint64_t tag) overridesw::UIElementvirtual
SetText(const std::wstring &value) overridesw::ComboBoxprotectedvirtual
SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual
Show(int nCmdShow)sw::WndBase
ShowContextMenu(const Point &point)sw::UIElement
ShowDropDown()sw::ComboBox
TabStopsw::UIElement
Tagsw::UIElement
Textsw::WndBase
TextColorsw::UIElement
Topsw::WndBase
Transparentsw::UIElement
UIElement()sw::UIElementprotected
UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement
Update()sw::WndBase
UpdateChildrenZOrder()sw::UIElementprotected
UpdateFont()sw::WndBase
UpdateItem(int index, const std::wstring &newValue) overridesw::ComboBoxvirtual
sw::ItemsControl::UpdateItem(int index, const TItem &newValue)=0sw::ItemsControl< TItem >pure virtual
UpdateSiblingsZOrder()sw::UIElementprotected
UpdateText()sw::WndBaseprotected
VerticalAlignmentsw::UIElement
Visiblesw::WndBase
VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual
Widthsw::WndBase
WndBase()sw::WndBaseprotected
WndBase(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndBase(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual
~Control()=0sw::Controlpure virtual
~UIElement()=0sw::UIElementpure virtual
~WndBase()=0sw::WndBasepure virtual
+
+ + + + diff --git a/docs/classsw_1_1_combo_box.html b/docs/classsw_1_1_combo_box.html new file mode 100644 index 00000000..e8a9a9cd --- /dev/null +++ b/docs/classsw_1_1_combo_box.html @@ -0,0 +1,1315 @@ + + + + + + + +SimpleWindow: sw::ComboBox Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+ +

组合框 + More...

+ +

#include <ComboBox.h>

+
+Inheritance diagram for sw::ComboBox:
+
+
+ + +sw::ItemsControl< TItem > +sw::Control +sw::UIElement +sw::WndBase +sw::ILayout +sw::ITag + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

ComboBox ()
 初始化组合框
 
virtual void Clear () override
 清空所有子项
 
virtual std::wstring GetItemAt (int index) override
 获取指定索引处子项的值
 
virtual bool AddItem (const std::wstring &item) override
 添加新的子项
 
virtual bool InsertItem (int index, const std::wstring &item) override
 添加子项到指定索引
 
virtual bool UpdateItem (int index, const std::wstring &newValue) override
 更新指定位置的子项
 
virtual bool RemoveItemAt (int index) override
 移除指定索引处的子项
 
+void ShowDropDown ()
 显示下拉列表
 
+void CloseDropDown ()
 关闭下拉列表
 
- Public Member Functions inherited from sw::ItemsControl< TItem >
virtual bool AddItem (const TItem &item)=0
 添加新的子项
 
virtual bool InsertItem (int index, const TItem &item)=0
 添加子项到指定索引
 
virtual bool UpdateItem (int index, const TItem &newValue)=0
 更新指定位置的子项
 
- Public Member Functions inherited from sw::Control
+virtual ~Control ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
- Public Member Functions inherited from sw::UIElement
+virtual ~UIElement ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
void RegisterRoutedEvent (RoutedEventType eventType, const RoutedEvent &handler)
 注册路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename T >
void RegisterRoutedEvent (RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))
 注册成员函数作为路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename TEventArgs , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (std::function< void(UIElement &, TEventArgs &)> handler)
 根据事件参数类型注册路由事件
 
template<typename TEventArgs , typename THandleObj , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))
 根据事件参数类型注册成员函数作为路由事件
 
void UnregisterRoutedEvent (RoutedEventType eventType)
 取消对应类型路由事件的注册
 
bool IsRoutedEventRegistered (RoutedEventType eventType)
 判断路由事件是否已被注册
 
bool AddChild (UIElement *element)
 添加子控件
 
bool AddChild (UIElement &element)
 添加子控件
 
bool AddChild (UIElement *element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool AddChild (UIElement &element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool RemoveChildAt (int index)
 移除指定索引处的子控件
 
bool RemoveChild (UIElement *element)
 移除子控件
 
bool RemoveChild (UIElement &element)
 移除子控件
 
+void ClearChildren ()
 移除所有子控件
 
int IndexOf (UIElement *element)
 获取指定元素的索引
 
int IndexOf (UIElement &element)
 获取指定元素的索引
 
+UIElementoperator[] (int index) const
 通过索引获取子控件
 
void ShowContextMenu (const Point &point)
 弹出当前元素的上下文菜单
 
+void MoveToTop ()
 移动到界面顶部
 
+void MoveToBottom ()
 移动到界面底部
 
+bool IsRootElement ()
 判断当前元素是否为根节点
 
+UIElementGetRootElement ()
 获取当前元素所在界面树的根节点
 
+UIElementGetNextElement ()
 获取当前元素在界面树上的下一个节点,若已是最后一个节点则返回根节点
 
+UIElementGetNextTabStopElement ()
 获取下一个TabStop属性为true的元素
 
+Color GetRealBackColor ()
 获取当前要显示的背景颜色:当Transparent为true时获取到祖先节点中首个Transparent为false的背景颜色,否则返回当前元素的背景颜色
 
+Color GetRealTextColor ()
 获取当前要显示的文本颜色:当InheritTextColor为true时获取到祖先节点中首个InheritTextColor为false的文本颜色,否则返回当前元素的文本颜色
 
void SetCursor (HCURSOR hCursor)
 设置鼠标样式
 
void SetCursor (StandardCursor cursor)
 设置鼠标样式
 
+void ResetCursor ()
 将鼠标样式设置为默认样式
 
void SetAlignment (sw::HorizontalAlignment horz, sw::VerticalAlignment vert)
 设置对齐方式
 
virtual uint64_t GetTag () override
 获取Tag
 
virtual void SetTag (uint64_t tag) override
 设置Tag
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取参与布局的子控件数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取对应索引处的子控件,使用此函数前必须先调用GetChildLayoutCount
 
virtual Size GetDesireSize () override
 获取控件所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置当前控件所需的尺寸
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const sw::Rect &finalPosition) override
 安排控件位置
 
- Public Member Functions inherited from sw::WndBase
+virtual ~WndBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void Show (int nCmdShow)
 该函数调用ShowWindow
 
+void Close ()
 发送关闭消息
 
+void Update ()
 该函数调用UpdateWindow
 
+void UpdateFont ()
 更新字体
 
void Redraw (bool erase=false)
 重画
 
+bool IsControl ()
 判断当前对象是否是控件
 
+bool IsVisible ()
 判断当前对象在界面中是否可视,与Visible属性不同的是该函数返回值会受父窗口的影响
 
Point PointToScreen (const Point &point)
 获取用户区点在屏幕上点的位置
 
Point PointFromScreen (const Point &screenPoint)
 获取屏幕上点在当前用户区点的位置
 
+LRESULT SendMessageW (UINT uMsg, WPARAM wParam, LPARAM lParam)
 发送消息
 
HitTestResult NcHitTest (const Point &testPoint)
 测试指定点在窗口的哪一部分
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Attributes

+const Property< boolIsEditable
 组合框内容是否可编辑,更新该属性会导致已添加的子项被清空
 
- Public Attributes inherited from sw::ItemsControl< TItem >
+const ReadOnlyProperty< intItemsCount
 项数
 
+const Property< intSelectedIndex
 选中项的索引,当无选中项时为-1
 
+const ReadOnlyProperty< TItemSelectedItem
 选中项
 
- Public Attributes inherited from sw::UIElement
+const Property< ThicknessMargin
 边距
 
+const Property< HorizontalAlignment > HorizontalAlignment
 水平对齐方式
 
+const Property< VerticalAlignment > VerticalAlignment
 垂直对齐方式
 
+const ReadOnlyProperty< intChildCount
 子控件数量
 
+const Property< boolCollapseWhenHide
 是否在不可见时不参与布局
 
+const ReadOnlyProperty< UIElement * > Parent
 指向父元素的指针,当前元素为顶级窗口时该值为nullptr
 
+const Property< uint64_tTag
 储存用户自定义信息的标记
 
+const Property< uint64_tLayoutTag
 布局标记,对于不同的布局有不同含义
 
+const Property< sw::ContextMenu * > ContextMenu
 右键按下时弹出的菜单
 
+const Property< boolFloat
 元素是否悬浮,若元素悬浮则该元素不会随滚动条滚动而改变位置
 
+const Property< boolTabStop
 表示用户是否可以通过按下Tab键将焦点移动到当前元素
 
+const Property< ColorBackColor
 背景颜色,修改该属性会同时将Transparent属性设为false,对于部分控件该属性可能不生效
 
+const Property< ColorTextColor
 文本颜色,修改该属性会同时将InheritTextColor属性设为false,对于部分控件该属性可能不生效
 
+const Property< boolTransparent
 是否使用透明背景(此属性并非真正意义上的透明,将该属性设为true可继承父元素的背景颜色)
 
+const Property< boolInheritTextColor
 是否继承父元素的文本颜色
 
- Public Attributes inherited from sw::WndBase
+const ReadOnlyProperty< HWNDHandle
 窗口句柄
 
+const Property< sw::FontFont
 字体
 
+const Property< std::wstring > FontName
 字体名称
 
+const Property< doubleFontSize
 字体大小
 
+const Property< sw::FontWeight > FontWeight
 字体粗细
 
+const Property< sw::RectRect
 位置和尺寸
 
+const Property< doubleLeft
 左边
 
+const Property< doubleTop
 顶边
 
+const Property< doubleWidth
 宽度
 
+const Property< doubleHeight
 高度
 
+const ReadOnlyProperty< sw::RectClientRect
 用户区尺寸
 
+const ReadOnlyProperty< doubleClientWidth
 用户区宽度
 
+const ReadOnlyProperty< doubleClientHeight
 用户区高度
 
+const Property< boolEnabled
 窗口或控件是否可用
 
+const Property< boolVisible
 窗口或控件是否可见
 
+const Property< std::wstring > Text
 窗口标题或控件文本
 
+const Property< boolFocused
 窗口是否拥有焦点
 
+const ReadOnlyProperty< WndBase * > Parent
 父窗口
 
+const ReadOnlyProperty< boolIsDestroyed
 是否已销毁,当该值为true时不应该继续使用当前对象
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Protected Member Functions

virtual int GetItemsCount () override
 获取子项数
 
virtual int GetSelectedIndex () override
 选中项的索引,当无选中项时为-1
 
virtual void SetSelectedIndex (int index) override
 设置选中项索引
 
virtual std::wstring GetSelectedItem () override
 获取选中项
 
virtual std::wstring & GetText () override
 获取可编辑状态下的编辑框文本内容
 
virtual void SetText (const std::wstring &value) override
 设置Text属性时调用该函数
 
virtual void OnCommand (int code) override
 当父窗口接收到控件的WM_COMMAND时调用该函数
 
virtual void OnSelectionChanged () override
 选中项改变时调用该函数
 
- Protected Member Functions inherited from sw::ItemsControl< TItem >
ItemsControl ()
 初始化ItemsControl
 
- Protected Member Functions inherited from sw::Control
Control ()
 初始化控件
 
+void ResetHandle ()
 销毁控件句柄并重新初始化,该操作会创建新的句柄并设置样式、文本、字体等
 
+virtual void HandleChenged ()
 控件句柄发生改变时调用该函数
 
- Protected Member Functions inherited from sw::UIElement
UIElement ()
 初始化UIElement
 
void RaiseRoutedEvent (RoutedEventType eventType)
 触发路由事件
 
void RaiseRoutedEvent (RoutedEventArgs &eventArgs)
 触发路由事件
 
+void NotifyLayoutUpdated ()
 通知顶级窗口布局改变
 
+doubleGetArrangeOffsetX ()
 获取Arrange时子元素的水平偏移量
 
+doubleGetArrangeOffsetY ()
 获取Arrange时子元素的垂直偏移量
 
double GetChildRightmost (bool update)
 获取所有子元素在当前元素中最右边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
double GetChildBottommost (bool update)
 获取所有子元素在当前元素中最底边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
+void UpdateChildrenZOrder ()
 更新子元素的Z轴位置
 
+void UpdateSiblingsZOrder ()
 更新兄弟元素的Z轴位置
 
+void SetNextTabStopFocus ()
 设置下一个TabStop属性为true的元素为焦点元素
 
virtual void SetBackColor (Color color, bool redraw)
 设置背景颜色
 
virtual void SetTextColor (Color color, bool redraw)
 设置文本颜色
 
virtual void OnAddedChild (UIElement &element)
 添加子元素后调用该函数
 
virtual void OnRemovedChild (UIElement &element)
 移除子元素后调用该函数
 
+virtual void OnTabStop ()
 通过tab键将焦点移动到当前元素时调用该函数
 
virtual void OnDrawFocusRect ()
 绘制虚线框时调用该函数
 
virtual bool SetParent (WndBase *parent) override
 设置父窗口
 
virtual void ParentChanged (WndBase *newParent) override
 父窗口改变时调用此函数
 
virtual void OnEndPaint () override
 在OnPaint函数完成之后调用该函数
 
virtual bool OnClose () override
 接收到WM_CLOSE时调用该函数
 
virtual bool OnMove (Point newClientPosition) override
 接收到WM_MOVE时调用该函数
 
virtual bool OnSize (Size newClientSize) override
 接收到WM_SIZE时调用该函数
 
virtual void OnTextChanged () override
 Text属性更改时调用此函数
 
virtual void VisibleChanged (bool newVisible) override
 Visible属性改变时调用此函数
 
virtual bool OnSetFocus (HWND hPrevFocus) override
 接收到WM_SETFOCUS时调用该函数
 
virtual bool OnKillFocus (HWND hNextFocus) override
 接收到WM_KILLFOCUS时调用该函数
 
virtual bool OnChar (wchar_t ch, KeyFlags flags) override
 接收到WM_CHAR时调用该函数
 
virtual bool OnKeyDown (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYDOWN时调用该函数
 
virtual bool OnKeyUp (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYUP时调用该函数
 
virtual bool OnMouseMove (Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEMOVE时调用该函数
 
virtual bool OnMouseLeave () override
 接收到WM_MOUSELEAVE时调用该函数
 
virtual bool OnMouseWheel (int wheelDelta, Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEWHEEL时调用该函数
 
virtual bool OnMouseLeftButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONDOWN时调用该函数
 
virtual bool OnMouseLeftButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONUP时调用该函数
 
virtual bool OnMouseRightButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONDOWN时调用该函数
 
virtual bool OnMouseRightButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONUP时调用该函数
 
virtual bool OnMouseMiddleButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONDOWN时调用该函数
 
virtual bool OnMouseMiddleButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONUP时调用该函数
 
virtual bool OnContextMenu (bool isKeyboardMsg, Point mousePosition) override
 接收到WM_CONTEXTMENU后调用目标控件的该函数
 
virtual void OnMenuCommand (int id) override
 当WM_COMMAND接收到菜单命令时调用该函数
 
virtual bool OnColor (HDC hdc, HBRUSH &hRetBrush) override
 父窗口接收到WM_CTLCOLORxxx时调用对应控件的该函数
 
virtual bool OnSetCursor (HWND hwnd, HitTestResult hitTest, int message, bool &result) override
 接收到WM_SETCURSOR消息时调用该函数
 
- Protected Member Functions inherited from sw::WndBase
WndBase ()
 初始化WndBase
 
WndBase (const WndBase &)=delete
 
WndBase (WndBase &&)=delete
 
+WndBaseoperator= (const WndBase &)=delete
 
+WndBaseoperator= (WndBase &&)=delete
 
+void InitWindow (LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为窗口,该函数会调用CreateWindowExW
 
+void InitControl (LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为控件,该函数会调用CreateWindowExW
 
+LONG_PTR GetStyle ()
 获取窗口样式
 
+void SetStyle (LONG_PTR style)
 设置窗口样式
 
+bool GetStyle (LONG_PTR style)
 获取窗口的某个样式
 
+void SetStyle (LONG_PTR style, bool value)
 设置窗口的某个样式
 
+LONG_PTR GetExtendedStyle ()
 获取扩展窗口样式
 
+void SetExtendedStyle (LONG_PTR style)
 设置扩展窗口样式
 
+bool GetExtendedStyle (LONG_PTR style)
 获取窗口的某个扩展样式
 
+void SetExtendedStyle (LONG_PTR style, bool value)
 设置窗口的某个扩展样式
 
+HFONT GetFontHandle ()
 获取字体句柄
 
+LRESULT DefaultWndProc (const ProcMsg &refMsg)
 调用默认的WndProc,对于窗口则调用DefWindowProcW,控件则调用_controlOldWndProc
 
virtual LRESULT WndProc (const ProcMsg &refMsg)
 对WndProc的封装
 
+void UpdateText ()
 更新_text字段
 
virtual bool OnCreate ()
 接收到WM_CREATE时调用该函数
 
virtual bool OnDestroy ()
 接收到WM_DESTROY时调用该函数
 
virtual bool OnPaint ()
 接收到WM_PAINT时调用该函数
 
virtual bool OnMouseLeftButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_LBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseRightButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_RBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseMiddleButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_MBUTTONDBLCLK时调用该函数
 
virtual bool OnDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_DEADCHAR时调用该函数
 
virtual bool OnSysChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSCHAR时调用该函数
 
virtual bool OnSysDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSDEADCHAR时调用该函数
 
virtual bool OnSysKeyDown (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYDOWN时调用该函数
 
virtual bool OnSysKeyUp (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYUP时调用该函数
 
virtual void OnControlCommand (WndBase *pControl, int code, int id)
 当WM_COMMAND接收到控件命令时调用该函数
 
virtual void OnAcceleratorCommand (int id)
 当WM_COMMAND接收到快捷键命令时调用该函数
 
virtual void HandleInitialized (HWND hwnd)
 窗口句柄初始化完成
 
virtual void FontChanged (HFONT hfont)
 字体改变时调用该函数
 
virtual bool OnNotify (NMHDR *pNMHDR)
 接收到WM_NOTIFY后调用该函数
 
virtual void OnNotified (NMHDR *pNMHDR)
 父窗口接收到WM_NOTIFY后调用发出通知控件的该函数
 
virtual bool OnVerticalScroll (int event, int pos)
 接收到WM_VSCROLL时调用目标控件的该函数
 
virtual bool OnHorizontalScroll (int event, int pos)
 接收到WM_HSCROLL时调用目标控件的该函数
 
virtual bool OnEnabledChanged (bool newValue)
 接收到WM_ENABLE时调用该函数
 
virtual bool OnCtlColor (WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)
 接收到WM_CTLCOLORxxx时调用该函数
 
virtual void OnNcHitTest (const Point &testPoint, HitTestResult &result)
 接收到WM_NCHITTEST后调用该函数
 
virtual bool OnEraseBackground (int &result)
 接收到WM_ERASEBKGND时调用该函数
 
virtual bool OnDrawItem (int id, DRAWITEMSTRUCT *pDrawItem)
 接收到WM_DRAWITEM时调用该函数
 
+ + + + + +

+Additional Inherited Members

- Static Public Member Functions inherited from sw::WndBase
static WndBaseGetWndBase (HWND hwnd)
 通过窗口句柄获取WndBase
 
+

Detailed Description

+

组合框

+

Member Function Documentation

+ +

◆ AddItem()

+ +
+
+ + + + + +
+ + + + + + + +
virtual bool sw::ComboBox::AddItem (const std::wstring & item)
+
+overridevirtual
+
+ +

添加新的子项

+
Parameters
+ + +
item要添加的子项
+
+
+
Returns
是否添加成功
+ +
+
+ +

◆ Clear()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::ComboBox::Clear ()
+
+overridevirtual
+
+ +

清空所有子项

+ +

Implements sw::ItemsControl< TItem >.

+ +
+
+ +

◆ GetItemAt()

+ +
+
+ + + + + +
+ + + + + + + +
virtual std::wstring sw::ComboBox::GetItemAt (int index)
+
+overridevirtual
+
+ +

获取指定索引处子项的值

+
Parameters
+ + +
index子项的索引
+
+
+ +

Implements sw::ItemsControl< TItem >.

+ +
+
+ +

◆ GetItemsCount()

+ +
+
+ + + + + +
+ + + + + + + +
virtual int sw::ComboBox::GetItemsCount ()
+
+overrideprotectedvirtual
+
+ +

获取子项数

+ +

Implements sw::ItemsControl< TItem >.

+ +
+
+ +

◆ GetSelectedIndex()

+ +
+
+ + + + + +
+ + + + + + + +
virtual int sw::ComboBox::GetSelectedIndex ()
+
+overrideprotectedvirtual
+
+ +

选中项的索引,当无选中项时为-1

+ +

Implements sw::ItemsControl< TItem >.

+ +
+
+ +

◆ GetSelectedItem()

+ +
+
+ + + + + +
+ + + + + + + +
virtual std::wstring sw::ComboBox::GetSelectedItem ()
+
+overrideprotectedvirtual
+
+ +

获取选中项

+ +

Implements sw::ItemsControl< TItem >.

+ +
+
+ +

◆ GetText()

+ +
+
+ + + + + +
+ + + + + + + +
virtual std::wstring & sw::ComboBox::GetText ()
+
+overrideprotectedvirtual
+
+ +

获取可编辑状态下的编辑框文本内容

+ +

Reimplemented from sw::WndBase.

+ +
+
+ +

◆ InsertItem()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::ComboBox::InsertItem (int index,
const std::wstring & item )
+
+overridevirtual
+
+ +

添加子项到指定索引

+
Parameters
+ + + +
index要插入的位置
item要添加的子项
+
+
+
Returns
是否添加成功
+ +
+
+ +

◆ OnCommand()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::ComboBox::OnCommand (int code)
+
+overrideprotectedvirtual
+
+ +

当父窗口接收到控件的WM_COMMAND时调用该函数

+
Parameters
+ + +
code通知代码
+
+
+ +

Reimplemented from sw::WndBase.

+ +
+
+ +

◆ OnSelectionChanged()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::ComboBox::OnSelectionChanged ()
+
+overrideprotectedvirtual
+
+ +

选中项改变时调用该函数

+ +

Reimplemented from sw::ItemsControl< TItem >.

+ +
+
+ +

◆ RemoveItemAt()

+ +
+
+ + + + + +
+ + + + + + + +
virtual bool sw::ComboBox::RemoveItemAt (int index)
+
+overridevirtual
+
+ +

移除指定索引处的子项

+
Parameters
+ + +
index要移除子项的索引
+
+
+
Returns
操作是否成功
+ +

Implements sw::ItemsControl< TItem >.

+ +
+
+ +

◆ SetSelectedIndex()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::ComboBox::SetSelectedIndex (int index)
+
+overrideprotectedvirtual
+
+ +

设置选中项索引

+ +

Implements sw::ItemsControl< TItem >.

+ +
+
+ +

◆ SetText()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::ComboBox::SetText (const std::wstring & value)
+
+overrideprotectedvirtual
+
+ +

设置Text属性时调用该函数

+
Parameters
+ + +
value要设置的文本
+
+
+ +

Reimplemented from sw::WndBase.

+ +
+
+ +

◆ UpdateItem()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::ComboBox::UpdateItem (int index,
const std::wstring & newValue )
+
+overridevirtual
+
+ +

更新指定位置的子项

+
Parameters
+ + + +
index要更新子项的位置
newValue子项的新值
+
+
+
Returns
操作是否成功
+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_combo_box.js b/docs/classsw_1_1_combo_box.js new file mode 100644 index 00000000..5ceeba5d --- /dev/null +++ b/docs/classsw_1_1_combo_box.js @@ -0,0 +1,21 @@ +var classsw_1_1_combo_box = +[ + [ "ComboBox", "classsw_1_1_combo_box.html#ab7952615f64988796a72df3027170e8b", null ], + [ "AddItem", "classsw_1_1_combo_box.html#a2a8aa04ae1b6d8544f0d772c8dd2aa2c", null ], + [ "Clear", "classsw_1_1_combo_box.html#ae3956a539565249f84c343ff7a8cc945", null ], + [ "CloseDropDown", "classsw_1_1_combo_box.html#a347c5bf1646ae709ec6a4585dea20dae", null ], + [ "GetItemAt", "classsw_1_1_combo_box.html#a9847d3dead963ac17d4e181aa138e4d4", null ], + [ "GetItemsCount", "classsw_1_1_combo_box.html#af18b947a96cf7de045525294fcac2825", null ], + [ "GetSelectedIndex", "classsw_1_1_combo_box.html#a1b7b120c4f55c724f3b9f29038659d81", null ], + [ "GetSelectedItem", "classsw_1_1_combo_box.html#abf46ed1454b54b77128e833a0c2e924a", null ], + [ "GetText", "classsw_1_1_combo_box.html#aac58ae29f08c67b0fe043d6b8822e74d", null ], + [ "InsertItem", "classsw_1_1_combo_box.html#ab1cf2dc76d67d10a2088acfeb29d1398", null ], + [ "OnCommand", "classsw_1_1_combo_box.html#a691d1f3e1dd2cadae40fdcca2f05f6e2", null ], + [ "OnSelectionChanged", "classsw_1_1_combo_box.html#aae57315267ac472d28f9a55ac28cc902", null ], + [ "RemoveItemAt", "classsw_1_1_combo_box.html#acd95ee1c4a1d8909d78df8c8e1820088", null ], + [ "SetSelectedIndex", "classsw_1_1_combo_box.html#a021e4d94ae1b811514523942fe94f7fe", null ], + [ "SetText", "classsw_1_1_combo_box.html#a3b4e253960fe5f62aed8544066899654", null ], + [ "ShowDropDown", "classsw_1_1_combo_box.html#a5127d5cdcd1873ae9e092a59b6bff70c", null ], + [ "UpdateItem", "classsw_1_1_combo_box.html#a8681ea3c984f21f86269518407981d26", null ], + [ "IsEditable", "classsw_1_1_combo_box.html#aa495a8136f05548a3e26bdf3e0612a8f", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_combo_box.png b/docs/classsw_1_1_combo_box.png new file mode 100644 index 0000000000000000000000000000000000000000..c3ba2cb25afdd8296017c9a51a8acd2e0f61c253 GIT binary patch literal 2326 zcmd5;X;f2Z8U_@p7#NwNg1|@h;fdfXExrECET++r!sIp-_NwPWT}qw}tV~Vi;3> zb7jiyIH`!AR(rbBK&$EwnlC;uuz5F*D8G}$rNW>NJqo*Y zb0boWB|Cm>Yb&EMLNb{qzhh{YuB8?2LxDjPy+H`rf^GGw8T0a&gkXZl{@p_GaF3AS zZli#1j;HEwyV9L!_Gs$QNabo)e$FkLrs@3|JJg68i|e}248zn4oba!!GUYp7R%Uz? z?5k3uiqlQ>{ymHZu`B%);_RPg;G0*O>23%*qE*w>ZPfYj-hdc9z+aUHJ$%Do4Jp1M z0S8L#vAV>7BmZk^y*}R|a7#4~b)*XRjR<1Qwfk>8cDDffZ*C)bsWjg*!2+pQ|JXf; z1&Nw7XPZwC*D?Z=>w`zuY9$q)*QB!HNWBUQmwTPjy!e*G+b|W?8*lf*YL29im5$8* zyf$5%s6(Imu$bV(?KmopW79`SSB9V&DhDes#QJu=*9DA>fl}p(vNS%5V{QUPU0et3#622V1V)bO;HUT3Cl6H zDZa5w|Dsq`9slE(hp9Mx`!=EozTH$!_0jVne+hok#6xcFC;2#aBB{4kZ4Rm2IR#NQ zdJ0Fz_VEWHbtXXG!}6IyNEs;Tv5B)v%(w87Hhyl3ZZT4o&Hzo>$_gh%)UnZDpGQ)AJXS{V!H11iPlaCRiIi3(Vy6n<|)zqRK5ir`mqQ{&L=x7%s*n2qh@l@Y)xJNkep#`G2bFkj;M z@KtKV{-%Q=y{5p*)l(QDIBlshPIt_k@`W8vm*w*ZVhqj4drz*&{|41?qgk{+V1PFm OrL!)csERY88NUJIUaXk_ literal 0 HcmV?d00001 diff --git a/docs/classsw_1_1_context_menu-members.html b/docs/classsw_1_1_context_menu-members.html new file mode 100644 index 00000000..2ccbe9df --- /dev/null +++ b/docs/classsw_1_1_context_menu-members.html @@ -0,0 +1,136 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::ContextMenu Member List
+
+
+ +

This is the complete list of members for sw::ContextMenu, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AddItem(const MenuItem &item)sw::MenuBase
AddSubItem(MenuItem &item, const MenuItem &subItem)sw::MenuBase
ContextMenu()sw::ContextMenu
ContextMenu(std::initializer_list< MenuItem > items)sw::ContextMenu
GetChecked(MenuItem &item, bool &out)sw::MenuBase
GetEnabled(MenuItem &item, bool &out)sw::MenuBase
GetHandle()sw::MenuBase
GetMenuItem(int id)sw::MenuBase
GetMenuItem(std::initializer_list< int > path)sw::MenuBase
GetMenuItem(std::initializer_list< std::wstring > path)sw::MenuBase
GetParent(MenuItem &item)sw::MenuBase
IDToIndex(int id) overridesw::ContextMenuprotectedvirtual
IndexToID(int index) overridesw::ContextMenuprotectedvirtual
InitMenuBase(HMENU hMenu)sw::MenuBaseprotected
IsContextMenuID(int id)sw::ContextMenustatic
itemssw::MenuBase
MenuBase()sw::MenuBase
MenuBase(const MenuBase &menu)sw::MenuBase
operator=(const MenuBase &menu)sw::MenuBase
RemoveItem(MenuItem &item)sw::MenuBase
SetChecked(MenuItem &item, bool value)sw::MenuBase
SetEnabled(MenuItem &item, bool value)sw::MenuBase
SetItems(std::initializer_list< MenuItem > items)sw::MenuBase
SetSubItems(MenuItem &item, std::initializer_list< MenuItem > subItems)sw::MenuBase
SetText(MenuItem &item, const std::wstring &value)sw::MenuBase
Update()sw::MenuBase
~MenuBase()sw::MenuBase
+
+ + + + diff --git a/docs/classsw_1_1_context_menu.html b/docs/classsw_1_1_context_menu.html new file mode 100644 index 00000000..fa4fc04a --- /dev/null +++ b/docs/classsw_1_1_context_menu.html @@ -0,0 +1,345 @@ + + + + + + + +SimpleWindow: sw::ContextMenu Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+ +

上下文菜单 + More...

+ +

#include <ContextMenu.h>

+
+Inheritance diagram for sw::ContextMenu:
+
+
+ + +sw::MenuBase + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

ContextMenu ()
 初始化上下文菜单
 
ContextMenu (std::initializer_list< MenuItem > items)
 初始化上下文菜单并设置菜单项
 
- Public Member Functions inherited from sw::MenuBase
MenuBase ()
 初始化菜单
 
MenuBase (const MenuBase &menu)
 重载拷贝构造
 
~MenuBase ()
 释放资源
 
+MenuBaseoperator= (const MenuBase &menu)
 重载拷贝赋值运算
 
+HMENU GetHandle ()
 获取菜单句柄
 
+void Update ()
 更新菜单
 
+void SetItems (std::initializer_list< MenuItem > items)
 初始化菜单并添加菜单项
 
bool SetSubItems (MenuItem &item, std::initializer_list< MenuItem > subItems)
 重新设置当前菜单中某个菜单项的子项
 
void AddItem (const MenuItem &item)
 添加新的菜单项到菜单
 
bool AddSubItem (MenuItem &item, const MenuItem &subItem)
 像当前菜单中的某个菜单项添加新的子项
 
bool RemoveItem (MenuItem &item)
 移除当前菜单中的某个子项
 
MenuItemGetMenuItem (int id)
 通过id获取菜单项
 
MenuItemGetMenuItem (std::initializer_list< int > path)
 通过索引来获取菜单项
 
MenuItemGetMenuItem (std::initializer_list< std::wstring > path)
 通过菜单项的text来获取菜单项
 
MenuItemGetParent (MenuItem &item)
 获取当前菜单中指定菜单项的直接父菜单项
 
bool GetEnabled (MenuItem &item, bool &out)
 获取一个值,表示菜单项是否可用
 
bool SetEnabled (MenuItem &item, bool value)
 设置菜单项是否可用
 
bool GetChecked (MenuItem &item, bool &out)
 获取一个值,表示菜单项是否选中
 
bool SetChecked (MenuItem &item, bool value)
 设置菜单项是否选中
 
bool SetText (MenuItem &item, const std::wstring &value)
 设置菜单项文本
 
+ + + + +

+Static Public Member Functions

static bool IsContextMenuID (int id)
 判断ID是否为上下文菜单项的ID
 
+ + + + + + + + + + + +

+Protected Member Functions

virtual int IndexToID (int index) override
 根据索引获取ID
 
virtual int IDToIndex (int id) override
 根据ID获取索引
 
- Protected Member Functions inherited from sw::MenuBase
void InitMenuBase (HMENU hMenu)
 设置菜单句柄
 
+ + + + + +

+Additional Inherited Members

- Public Attributes inherited from sw::MenuBase
+std::vector< std::shared_ptr< MenuItem > > items
 菜单项集合
 
+

Detailed Description

+

上下文菜单

+

Member Function Documentation

+ +

◆ IDToIndex()

+ +
+
+ + + + + +
+ + + + + + + +
virtual int sw::ContextMenu::IDToIndex (int id)
+
+overrideprotectedvirtual
+
+ +

根据ID获取索引

+
Parameters
+ + +
id菜单项的ID
+
+
+
Returns
索引
+ +

Implements sw::MenuBase.

+ +
+
+ +

◆ IndexToID()

+ +
+
+ + + + + +
+ + + + + + + +
virtual int sw::ContextMenu::IndexToID (int index)
+
+overrideprotectedvirtual
+
+ +

根据索引获取ID

+
Parameters
+ + +
index索引
+
+
+
Returns
菜单项的ID
+ +

Implements sw::MenuBase.

+ +
+
+ +

◆ IsContextMenuID()

+ +
+
+ + + + + +
+ + + + + + + +
static bool sw::ContextMenu::IsContextMenuID (int id)
+
+static
+
+ +

判断ID是否为上下文菜单项的ID

+
Parameters
+ + +
id要判断的ID
+
+
+
Returns
ID是否为上下文菜单项的ID
+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_context_menu.js b/docs/classsw_1_1_context_menu.js new file mode 100644 index 00000000..c7ac06c4 --- /dev/null +++ b/docs/classsw_1_1_context_menu.js @@ -0,0 +1,7 @@ +var classsw_1_1_context_menu = +[ + [ "ContextMenu", "classsw_1_1_context_menu.html#ac51b991e84733be50e525147c3cc9d43", null ], + [ "ContextMenu", "classsw_1_1_context_menu.html#a63c072213d8bfb7cbe4d6974eb44266b", null ], + [ "IDToIndex", "classsw_1_1_context_menu.html#a93eb69c1dbf74969dd90d5c7a7532ce8", null ], + [ "IndexToID", "classsw_1_1_context_menu.html#ae27616f20c9f03d7e5b81eaa6e7f3446", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_context_menu.png b/docs/classsw_1_1_context_menu.png new file mode 100644 index 0000000000000000000000000000000000000000..bc78ded4db5b063ea2be0324ebfe7f80818eb5be GIT binary patch literal 539 zcmeAS@N?(olHy`uVBq!ia0vp^*+3k?!3-od?^Fi>Dd_;85ZC|z{{xvX-h3_XKeXJ! zK(jz%`k5CG9y|bwo1P6@0+iz{3GxeO0P?}WoN4wI1_s7uo-U3d6^w7^X7?Rd;Av@h zTvhX5IG@vBcvgw{+R)H-Mhk7;oHxs>S3V}u+u|`vtw_xC-OI-jiBg`c)R*vk#=W); zEBkWk{>D0f>y48Rr-YeqE@E5gvq@_8lJNV&b!oEG?)sL6gjY$ZF6z9x-1)%tH5V7? z&5Nj#c(?lI-OW+CCaagvxI1s+*0#zBvonj#yPnTE(|PrBedJ-o-M4?w;x^dYxNqkE z`{8dDpVlt9Znws`G(J<~kNK|&D*wIDDV?;n>{j`na;D4BO`7q*`>zZP%95Mp_^oFs zzV0+?j@-0w8~$_`tZ`KyPm*|Uu!=cw25OW(ELnk*OpwDMop%KkMU-@I72k?-`r znX;x~H#PoMha5J(^>VZJwG6wbS7Woox@!*x9p2ftKVj;!z_6^>U02UN7r1{SJJfA! zY2e|V#%*>rfrmG(%@sF|xK^+&bN~8V(SL7M%P;#WvD_-!{O|t&my~F*i^MlOaU68B YcaVuF&T!+>0Y)Q(r>mdKI;Vst0CF4o5&!@I literal 0 HcmV?d00001 diff --git a/docs/classsw_1_1_control-members.html b/docs/classsw_1_1_control-members.html new file mode 100644 index 00000000..04b7c00c --- /dev/null +++ b/docs/classsw_1_1_control-members.html @@ -0,0 +1,288 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::Control Member List
+
+
+ +

This is the complete list of members for sw::Control, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AddChild(UIElement *element)sw::UIElement
AddChild(UIElement &element)sw::UIElement
AddChild(UIElement *element, uint64_t layoutTag)sw::UIElement
AddChild(UIElement &element, uint64_t layoutTag)sw::UIElement
Arrange(const sw::Rect &finalPosition) overridesw::UIElementvirtual
BackColorsw::UIElement
ChildCountsw::UIElement
ClearChildren()sw::UIElement
ClientHeightsw::WndBase
ClientRectsw::WndBase
ClientWidthsw::WndBase
Close()sw::WndBase
CollapseWhenHidesw::UIElement
ContextMenusw::UIElement
Control()sw::Controlprotected
DefaultWndProc(const ProcMsg &refMsg)sw::WndBaseprotected
Enabledsw::WndBase
Floatsw::UIElement
Focusedsw::WndBase
Fontsw::WndBase
FontChanged(HFONT hfont)sw::WndBaseprotectedvirtual
FontNamesw::WndBase
FontSizesw::WndBase
FontWeightsw::WndBase
GetArrangeOffsetX()sw::UIElementprotected
GetArrangeOffsetY()sw::UIElementprotected
GetChildBottommost(bool update)sw::UIElementprotected
GetChildLayoutAt(int index) overridesw::UIElementvirtual
GetChildLayoutCount() overridesw::UIElementvirtual
GetChildRightmost(bool update)sw::UIElementprotected
GetDesireSize() overridesw::UIElementvirtual
GetExtendedStyle()sw::WndBaseprotected
GetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
GetFontHandle()sw::WndBaseprotected
GetLayoutTag() overridesw::UIElementvirtual
GetNextElement()sw::UIElement
GetNextTabStopElement()sw::UIElement
GetRealBackColor()sw::UIElement
GetRealTextColor()sw::UIElement
GetRootElement()sw::UIElement
GetStyle()sw::WndBaseprotected
GetStyle(LONG_PTR style)sw::WndBaseprotected
GetTag() overridesw::UIElementvirtual
GetText()sw::WndBaseprotectedvirtual
GetWndBase(HWND hwnd)sw::WndBasestatic
Handlesw::WndBase
HandleChenged()sw::Controlprotectedvirtual
HandleInitialized(HWND hwnd)sw::WndBaseprotectedvirtual
Heightsw::WndBase
HorizontalAlignmentsw::UIElement
IndexOf(UIElement *element)sw::UIElement
IndexOf(UIElement &element)sw::UIElement
InheritTextColorsw::UIElement
InitControl(LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
InitWindow(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
IsControl()sw::WndBase
IsDestroyedsw::WndBase
IsRootElement()sw::UIElement
IsRoutedEventRegistered(RoutedEventType eventType)sw::UIElement
IsVisible()sw::WndBase
LayoutTagsw::UIElement
Leftsw::WndBase
Marginsw::UIElement
Measure(const Size &availableSize) overridesw::UIElementvirtual
MoveToBottom()sw::UIElement
MoveToTop()sw::UIElement
NcHitTest(const Point &testPoint)sw::WndBase
NotifyLayoutUpdated()sw::UIElementprotected
OnAcceleratorCommand(int id)sw::WndBaseprotectedvirtual
OnAddedChild(UIElement &element)sw::UIElementprotectedvirtual
OnChar(wchar_t ch, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnClose() overridesw::UIElementprotectedvirtual
OnColor(HDC hdc, HBRUSH &hRetBrush) overridesw::UIElementprotectedvirtual
OnCommand(int code)sw::WndBaseprotectedvirtual
OnContextMenu(bool isKeyboardMsg, Point mousePosition) overridesw::UIElementprotectedvirtual
OnControlCommand(WndBase *pControl, int code, int id)sw::WndBaseprotectedvirtual
OnCreate()sw::WndBaseprotectedvirtual
OnCtlColor(WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)sw::WndBaseprotectedvirtual
OnDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnDestroy()sw::WndBaseprotectedvirtual
OnDrawFocusRect()sw::UIElementprotectedvirtual
OnDrawItem(int id, DRAWITEMSTRUCT *pDrawItem)sw::WndBaseprotectedvirtual
OnEnabledChanged(bool newValue)sw::WndBaseprotectedvirtual
OnEndPaint() overridesw::UIElementprotectedvirtual
OnEraseBackground(int &result)sw::WndBaseprotectedvirtual
OnHorizontalScroll(int event, int pos)sw::WndBaseprotectedvirtual
OnKeyDown(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKeyUp(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKillFocus(HWND hNextFocus) overridesw::UIElementprotectedvirtual
OnMenuCommand(int id) overridesw::UIElementprotectedvirtual
OnMouseLeave() overridesw::UIElementprotectedvirtual
OnMouseLeftButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseLeftButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseMiddleButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMove(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseRightButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseWheel(int wheelDelta, Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMove(Point newClientPosition) overridesw::UIElementprotectedvirtual
OnNcHitTest(const Point &testPoint, HitTestResult &result)sw::WndBaseprotectedvirtual
OnNotified(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnNotify(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnPaint()sw::WndBaseprotectedvirtual
OnRemovedChild(UIElement &element)sw::UIElementprotectedvirtual
OnSetCursor(HWND hwnd, HitTestResult hitTest, int message, bool &result) overridesw::UIElementprotectedvirtual
OnSetFocus(HWND hPrevFocus) overridesw::UIElementprotectedvirtual
OnSize(Size newClientSize) overridesw::UIElementprotectedvirtual
OnSysChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyDown(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyUp(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnTabStop()sw::UIElementprotectedvirtual
OnTextChanged() overridesw::UIElementprotectedvirtual
OnVerticalScroll(int event, int pos)sw::WndBaseprotectedvirtual
operator=(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator=(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator[](int index) constsw::UIElement
Parentsw::UIElement
ParentChanged(WndBase *newParent) overridesw::UIElementprotectedvirtual
PointFromScreen(const Point &screenPoint)sw::WndBase
PointToScreen(const Point &point)sw::WndBase
RaiseRoutedEvent(RoutedEventType eventType)sw::UIElementprotected
RaiseRoutedEvent(RoutedEventArgs &eventArgs)sw::UIElementprotected
Rectsw::WndBase
Redraw(bool erase=false)sw::WndBase
RegisterRoutedEvent(RoutedEventType eventType, const RoutedEvent &handler)sw::UIElement
RegisterRoutedEvent(RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))sw::UIElementinline
RegisterRoutedEvent(std::function< void(UIElement &, TEventArgs &)> handler)sw::UIElementinline
RegisterRoutedEvent(THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))sw::UIElementinline
RemoveChild(UIElement *element)sw::UIElement
RemoveChild(UIElement &element)sw::UIElement
RemoveChildAt(int index)sw::UIElement
ResetCursor()sw::UIElement
ResetHandle()sw::Controlprotected
SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase
SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement
SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual
SetCursor(HCURSOR hCursor)sw::UIElement
SetCursor(StandardCursor cursor)sw::UIElement
SetDesireSize(const Size &size) overridesw::UIElementvirtual
SetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
SetExtendedStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetNextTabStopFocus()sw::UIElementprotected
SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual
SetStyle(LONG_PTR style)sw::WndBaseprotected
SetStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetTag(uint64_t tag) overridesw::UIElementvirtual
SetText(const std::wstring &value)sw::WndBaseprotectedvirtual
SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual
Show(int nCmdShow)sw::WndBase
ShowContextMenu(const Point &point)sw::UIElement
TabStopsw::UIElement
Tagsw::UIElement
Textsw::WndBase
TextColorsw::UIElement
Topsw::WndBase
Transparentsw::UIElement
UIElement()sw::UIElementprotected
UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement
Update()sw::WndBase
UpdateChildrenZOrder()sw::UIElementprotected
UpdateFont()sw::WndBase
UpdateSiblingsZOrder()sw::UIElementprotected
UpdateText()sw::WndBaseprotected
VerticalAlignmentsw::UIElement
Visiblesw::WndBase
VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual
Widthsw::WndBase
WndBase()sw::WndBaseprotected
WndBase(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndBase(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual
~Control()=0sw::Controlpure virtual
~UIElement()=0sw::UIElementpure virtual
~WndBase()=0sw::WndBasepure virtual
+
+ + + + diff --git a/docs/classsw_1_1_control.html b/docs/classsw_1_1_control.html new file mode 100644 index 00000000..ba4a1dbf --- /dev/null +++ b/docs/classsw_1_1_control.html @@ -0,0 +1,782 @@ + + + + + + + +SimpleWindow: sw::Control Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
sw::Control Class Referenceabstract
+
+
+ +

控件 + More...

+ +

#include <Control.h>

+
+Inheritance diagram for sw::Control:
+
+
+ + +sw::UIElement +sw::WndBase +sw::ILayout +sw::ITag +sw::ItemsControl< StrList > +sw::ButtonBase +sw::ItemsControl< TItem > +sw::PanelBase +sw::ProgressBar +sw::Slider +sw::StaticControl +sw::TabControl +sw::TextBoxBase + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

+virtual ~Control ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
- Public Member Functions inherited from sw::UIElement
+virtual ~UIElement ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
void RegisterRoutedEvent (RoutedEventType eventType, const RoutedEvent &handler)
 注册路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename T >
void RegisterRoutedEvent (RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))
 注册成员函数作为路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename TEventArgs , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (std::function< void(UIElement &, TEventArgs &)> handler)
 根据事件参数类型注册路由事件
 
template<typename TEventArgs , typename THandleObj , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))
 根据事件参数类型注册成员函数作为路由事件
 
void UnregisterRoutedEvent (RoutedEventType eventType)
 取消对应类型路由事件的注册
 
bool IsRoutedEventRegistered (RoutedEventType eventType)
 判断路由事件是否已被注册
 
bool AddChild (UIElement *element)
 添加子控件
 
bool AddChild (UIElement &element)
 添加子控件
 
bool AddChild (UIElement *element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool AddChild (UIElement &element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool RemoveChildAt (int index)
 移除指定索引处的子控件
 
bool RemoveChild (UIElement *element)
 移除子控件
 
bool RemoveChild (UIElement &element)
 移除子控件
 
+void ClearChildren ()
 移除所有子控件
 
int IndexOf (UIElement *element)
 获取指定元素的索引
 
int IndexOf (UIElement &element)
 获取指定元素的索引
 
+UIElementoperator[] (int index) const
 通过索引获取子控件
 
void ShowContextMenu (const Point &point)
 弹出当前元素的上下文菜单
 
+void MoveToTop ()
 移动到界面顶部
 
+void MoveToBottom ()
 移动到界面底部
 
+bool IsRootElement ()
 判断当前元素是否为根节点
 
+UIElementGetRootElement ()
 获取当前元素所在界面树的根节点
 
+UIElementGetNextElement ()
 获取当前元素在界面树上的下一个节点,若已是最后一个节点则返回根节点
 
+UIElementGetNextTabStopElement ()
 获取下一个TabStop属性为true的元素
 
+Color GetRealBackColor ()
 获取当前要显示的背景颜色:当Transparent为true时获取到祖先节点中首个Transparent为false的背景颜色,否则返回当前元素的背景颜色
 
+Color GetRealTextColor ()
 获取当前要显示的文本颜色:当InheritTextColor为true时获取到祖先节点中首个InheritTextColor为false的文本颜色,否则返回当前元素的文本颜色
 
void SetCursor (HCURSOR hCursor)
 设置鼠标样式
 
void SetCursor (StandardCursor cursor)
 设置鼠标样式
 
+void ResetCursor ()
 将鼠标样式设置为默认样式
 
void SetAlignment (sw::HorizontalAlignment horz, sw::VerticalAlignment vert)
 设置对齐方式
 
virtual uint64_t GetTag () override
 获取Tag
 
virtual void SetTag (uint64_t tag) override
 设置Tag
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取参与布局的子控件数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取对应索引处的子控件,使用此函数前必须先调用GetChildLayoutCount
 
virtual Size GetDesireSize () override
 获取控件所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置当前控件所需的尺寸
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const sw::Rect &finalPosition) override
 安排控件位置
 
- Public Member Functions inherited from sw::WndBase
+virtual ~WndBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void Show (int nCmdShow)
 该函数调用ShowWindow
 
+void Close ()
 发送关闭消息
 
+void Update ()
 该函数调用UpdateWindow
 
+void UpdateFont ()
 更新字体
 
void Redraw (bool erase=false)
 重画
 
+bool IsControl ()
 判断当前对象是否是控件
 
+bool IsVisible ()
 判断当前对象在界面中是否可视,与Visible属性不同的是该函数返回值会受父窗口的影响
 
Point PointToScreen (const Point &point)
 获取用户区点在屏幕上点的位置
 
Point PointFromScreen (const Point &screenPoint)
 获取屏幕上点在当前用户区点的位置
 
+LRESULT SendMessageW (UINT uMsg, WPARAM wParam, LPARAM lParam)
 发送消息
 
HitTestResult NcHitTest (const Point &testPoint)
 测试指定点在窗口的哪一部分
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Protected Member Functions

Control ()
 初始化控件
 
+void ResetHandle ()
 销毁控件句柄并重新初始化,该操作会创建新的句柄并设置样式、文本、字体等
 
+virtual void HandleChenged ()
 控件句柄发生改变时调用该函数
 
- Protected Member Functions inherited from sw::UIElement
UIElement ()
 初始化UIElement
 
void RaiseRoutedEvent (RoutedEventType eventType)
 触发路由事件
 
void RaiseRoutedEvent (RoutedEventArgs &eventArgs)
 触发路由事件
 
+void NotifyLayoutUpdated ()
 通知顶级窗口布局改变
 
+doubleGetArrangeOffsetX ()
 获取Arrange时子元素的水平偏移量
 
+doubleGetArrangeOffsetY ()
 获取Arrange时子元素的垂直偏移量
 
double GetChildRightmost (bool update)
 获取所有子元素在当前元素中最右边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
double GetChildBottommost (bool update)
 获取所有子元素在当前元素中最底边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
+void UpdateChildrenZOrder ()
 更新子元素的Z轴位置
 
+void UpdateSiblingsZOrder ()
 更新兄弟元素的Z轴位置
 
+void SetNextTabStopFocus ()
 设置下一个TabStop属性为true的元素为焦点元素
 
virtual void SetBackColor (Color color, bool redraw)
 设置背景颜色
 
virtual void SetTextColor (Color color, bool redraw)
 设置文本颜色
 
virtual void OnAddedChild (UIElement &element)
 添加子元素后调用该函数
 
virtual void OnRemovedChild (UIElement &element)
 移除子元素后调用该函数
 
+virtual void OnTabStop ()
 通过tab键将焦点移动到当前元素时调用该函数
 
virtual void OnDrawFocusRect ()
 绘制虚线框时调用该函数
 
virtual bool SetParent (WndBase *parent) override
 设置父窗口
 
virtual void ParentChanged (WndBase *newParent) override
 父窗口改变时调用此函数
 
virtual void OnEndPaint () override
 在OnPaint函数完成之后调用该函数
 
virtual bool OnClose () override
 接收到WM_CLOSE时调用该函数
 
virtual bool OnMove (Point newClientPosition) override
 接收到WM_MOVE时调用该函数
 
virtual bool OnSize (Size newClientSize) override
 接收到WM_SIZE时调用该函数
 
virtual void OnTextChanged () override
 Text属性更改时调用此函数
 
virtual void VisibleChanged (bool newVisible) override
 Visible属性改变时调用此函数
 
virtual bool OnSetFocus (HWND hPrevFocus) override
 接收到WM_SETFOCUS时调用该函数
 
virtual bool OnKillFocus (HWND hNextFocus) override
 接收到WM_KILLFOCUS时调用该函数
 
virtual bool OnChar (wchar_t ch, KeyFlags flags) override
 接收到WM_CHAR时调用该函数
 
virtual bool OnKeyDown (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYDOWN时调用该函数
 
virtual bool OnKeyUp (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYUP时调用该函数
 
virtual bool OnMouseMove (Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEMOVE时调用该函数
 
virtual bool OnMouseLeave () override
 接收到WM_MOUSELEAVE时调用该函数
 
virtual bool OnMouseWheel (int wheelDelta, Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEWHEEL时调用该函数
 
virtual bool OnMouseLeftButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONDOWN时调用该函数
 
virtual bool OnMouseLeftButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONUP时调用该函数
 
virtual bool OnMouseRightButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONDOWN时调用该函数
 
virtual bool OnMouseRightButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONUP时调用该函数
 
virtual bool OnMouseMiddleButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONDOWN时调用该函数
 
virtual bool OnMouseMiddleButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONUP时调用该函数
 
virtual bool OnContextMenu (bool isKeyboardMsg, Point mousePosition) override
 接收到WM_CONTEXTMENU后调用目标控件的该函数
 
virtual void OnMenuCommand (int id) override
 当WM_COMMAND接收到菜单命令时调用该函数
 
virtual bool OnColor (HDC hdc, HBRUSH &hRetBrush) override
 父窗口接收到WM_CTLCOLORxxx时调用对应控件的该函数
 
virtual bool OnSetCursor (HWND hwnd, HitTestResult hitTest, int message, bool &result) override
 接收到WM_SETCURSOR消息时调用该函数
 
- Protected Member Functions inherited from sw::WndBase
WndBase ()
 初始化WndBase
 
WndBase (const WndBase &)=delete
 
WndBase (WndBase &&)=delete
 
+WndBaseoperator= (const WndBase &)=delete
 
+WndBaseoperator= (WndBase &&)=delete
 
+void InitWindow (LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为窗口,该函数会调用CreateWindowExW
 
+void InitControl (LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为控件,该函数会调用CreateWindowExW
 
+LONG_PTR GetStyle ()
 获取窗口样式
 
+void SetStyle (LONG_PTR style)
 设置窗口样式
 
+bool GetStyle (LONG_PTR style)
 获取窗口的某个样式
 
+void SetStyle (LONG_PTR style, bool value)
 设置窗口的某个样式
 
+LONG_PTR GetExtendedStyle ()
 获取扩展窗口样式
 
+void SetExtendedStyle (LONG_PTR style)
 设置扩展窗口样式
 
+bool GetExtendedStyle (LONG_PTR style)
 获取窗口的某个扩展样式
 
+void SetExtendedStyle (LONG_PTR style, bool value)
 设置窗口的某个扩展样式
 
+HFONT GetFontHandle ()
 获取字体句柄
 
+LRESULT DefaultWndProc (const ProcMsg &refMsg)
 调用默认的WndProc,对于窗口则调用DefWindowProcW,控件则调用_controlOldWndProc
 
virtual LRESULT WndProc (const ProcMsg &refMsg)
 对WndProc的封装
 
+void UpdateText ()
 更新_text字段
 
virtual std::wstring & GetText ()
 获取窗口文本
 
virtual void SetText (const std::wstring &value)
 调用SetWindowTextW设置窗口文本
 
virtual bool OnCreate ()
 接收到WM_CREATE时调用该函数
 
virtual bool OnDestroy ()
 接收到WM_DESTROY时调用该函数
 
virtual bool OnPaint ()
 接收到WM_PAINT时调用该函数
 
virtual bool OnMouseLeftButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_LBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseRightButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_RBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseMiddleButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_MBUTTONDBLCLK时调用该函数
 
virtual bool OnDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_DEADCHAR时调用该函数
 
virtual bool OnSysChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSCHAR时调用该函数
 
virtual bool OnSysDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSDEADCHAR时调用该函数
 
virtual bool OnSysKeyDown (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYDOWN时调用该函数
 
virtual bool OnSysKeyUp (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYUP时调用该函数
 
virtual void OnCommand (int code)
 当父窗口接收到控件的WM_COMMAND时调用该函数
 
virtual void OnControlCommand (WndBase *pControl, int code, int id)
 当WM_COMMAND接收到控件命令时调用该函数
 
virtual void OnAcceleratorCommand (int id)
 当WM_COMMAND接收到快捷键命令时调用该函数
 
virtual void HandleInitialized (HWND hwnd)
 窗口句柄初始化完成
 
virtual void FontChanged (HFONT hfont)
 字体改变时调用该函数
 
virtual bool OnNotify (NMHDR *pNMHDR)
 接收到WM_NOTIFY后调用该函数
 
virtual void OnNotified (NMHDR *pNMHDR)
 父窗口接收到WM_NOTIFY后调用发出通知控件的该函数
 
virtual bool OnVerticalScroll (int event, int pos)
 接收到WM_VSCROLL时调用目标控件的该函数
 
virtual bool OnHorizontalScroll (int event, int pos)
 接收到WM_HSCROLL时调用目标控件的该函数
 
virtual bool OnEnabledChanged (bool newValue)
 接收到WM_ENABLE时调用该函数
 
virtual bool OnCtlColor (WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)
 接收到WM_CTLCOLORxxx时调用该函数
 
virtual void OnNcHitTest (const Point &testPoint, HitTestResult &result)
 接收到WM_NCHITTEST后调用该函数
 
virtual bool OnEraseBackground (int &result)
 接收到WM_ERASEBKGND时调用该函数
 
virtual bool OnDrawItem (int id, DRAWITEMSTRUCT *pDrawItem)
 接收到WM_DRAWITEM时调用该函数
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Additional Inherited Members

- Static Public Member Functions inherited from sw::WndBase
static WndBaseGetWndBase (HWND hwnd)
 通过窗口句柄获取WndBase
 
- Public Attributes inherited from sw::UIElement
+const Property< ThicknessMargin
 边距
 
+const Property< HorizontalAlignment > HorizontalAlignment
 水平对齐方式
 
+const Property< VerticalAlignment > VerticalAlignment
 垂直对齐方式
 
+const ReadOnlyProperty< intChildCount
 子控件数量
 
+const Property< boolCollapseWhenHide
 是否在不可见时不参与布局
 
+const ReadOnlyProperty< UIElement * > Parent
 指向父元素的指针,当前元素为顶级窗口时该值为nullptr
 
+const Property< uint64_tTag
 储存用户自定义信息的标记
 
+const Property< uint64_tLayoutTag
 布局标记,对于不同的布局有不同含义
 
+const Property< sw::ContextMenu * > ContextMenu
 右键按下时弹出的菜单
 
+const Property< boolFloat
 元素是否悬浮,若元素悬浮则该元素不会随滚动条滚动而改变位置
 
+const Property< boolTabStop
 表示用户是否可以通过按下Tab键将焦点移动到当前元素
 
+const Property< ColorBackColor
 背景颜色,修改该属性会同时将Transparent属性设为false,对于部分控件该属性可能不生效
 
+const Property< ColorTextColor
 文本颜色,修改该属性会同时将InheritTextColor属性设为false,对于部分控件该属性可能不生效
 
+const Property< boolTransparent
 是否使用透明背景(此属性并非真正意义上的透明,将该属性设为true可继承父元素的背景颜色)
 
+const Property< boolInheritTextColor
 是否继承父元素的文本颜色
 
- Public Attributes inherited from sw::WndBase
+const ReadOnlyProperty< HWNDHandle
 窗口句柄
 
+const Property< sw::FontFont
 字体
 
+const Property< std::wstring > FontName
 字体名称
 
+const Property< doubleFontSize
 字体大小
 
+const Property< sw::FontWeight > FontWeight
 字体粗细
 
+const Property< sw::RectRect
 位置和尺寸
 
+const Property< doubleLeft
 左边
 
+const Property< doubleTop
 顶边
 
+const Property< doubleWidth
 宽度
 
+const Property< doubleHeight
 高度
 
+const ReadOnlyProperty< sw::RectClientRect
 用户区尺寸
 
+const ReadOnlyProperty< doubleClientWidth
 用户区宽度
 
+const ReadOnlyProperty< doubleClientHeight
 用户区高度
 
+const Property< boolEnabled
 窗口或控件是否可用
 
+const Property< boolVisible
 窗口或控件是否可见
 
+const Property< std::wstring > Text
 窗口标题或控件文本
 
+const Property< boolFocused
 窗口是否拥有焦点
 
+const ReadOnlyProperty< WndBase * > Parent
 父窗口
 
+const ReadOnlyProperty< boolIsDestroyed
 是否已销毁,当该值为true时不应该继续使用当前对象
 
+

Detailed Description

+

控件

+

The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_control.js b/docs/classsw_1_1_control.js new file mode 100644 index 00000000..9bfe1fbe --- /dev/null +++ b/docs/classsw_1_1_control.js @@ -0,0 +1,7 @@ +var classsw_1_1_control = +[ + [ "Control", "classsw_1_1_control.html#aec7b384d013e9d25c507cf9ded87bff1", null ], + [ "~Control", "classsw_1_1_control.html#ab2c00cbb6c776111096e9711c19735e7", null ], + [ "HandleChenged", "classsw_1_1_control.html#ad16158c308954eedf12dad4603ef17db", null ], + [ "ResetHandle", "classsw_1_1_control.html#ac6593e51639858796dfa85f3910ccba9", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_control.png b/docs/classsw_1_1_control.png new file mode 100644 index 0000000000000000000000000000000000000000..84bc477808a4a6b6245be6c8a96c60a6c6bde190 GIT binary patch literal 5236 zcmdT|dsI_bzQ)pOQGpq~8ZS1)8OJ(RA*~h=1LXSFsY0zD;;1A(s))+l7+y(yOvQ?l zdL4}w1mCfT3iZJ&A&H1cr@=&v5rKpNX$U580)*s{oSc){M|;QHb!V;HyH?j-o%2U> ze*5fX@BMpx-}gJ8e;m8ge|*q*A0Hq8)vK0$;^Q+0_3?S*;M=}nr0Uc9A@DW*<24(W zd%a$8+t=^litbAmzW-j@G;woZS63Gp4|^1U6+H9X|4Hn6A7H<{BHk!^>f=N>KNQFQ%8e+Nu|2sF@}9;dvS}D$Z2E zmbmHRQDtz9g<|O9lv>W+DZ~~!nOtuR2At19$8maRIF$)DgPapjdKZQl385g ztI{jrpbfe*cm;(VZj{4&J|>6s_5AbKlT;y!W)SEQG_GXM#NC136_L=i4T?3>^u2Lh zr8iOWsCdrAIh=P-q}U}n3+siZj^?lKUmV_fzmNEAJ)XELF?Pz)GxW(TD74?cn3o;==|peX@HBuaBj>#7WN=G*bUJqq{Uo8dW9r_gmpOkoC0t))UsM z_iK{xG*Q`4s@e=Q>YravzN0h+1R9H~9tHEV7OzANgZ+gSvKA{cvan9zs5Oq!5O__) zXaJ(zbY`5{*Zsorookl0`=G=t&~?AXKjON3PSY%DH4-h>Z0{NSXwJq_3EryO))^Db z^Ds1Q_7_{z3|pDymIa1&_W3$`15r~Mg+zHokF5hOhYaWDfajV($AZ?wxxp5Sy2U7U zr#1*H`7Te(`mvKHA`EnRin)i)4<2TzjU7!*+r7!yciw)}Sigti(Ha3;-<0c2`c|_P zU-UyoakXlDr?5j&P9)N+{U%LJ&MCp`aw-~fB0Z@Md3;@+w@NNu9W@lhn`U@|zt9S( z76~LUMd@42+XUKZB7-`t8kp=Ixa}GaL*7>$!6M=f2IWI4`*Bs-qI{MS|S$C72 zH4Ssy!?EdqnAQP|mkYIr=K^m~^%2da7sWQNG^$s>xvh|~PZ|A(-H`550>FJUw|I|dHO){gT#T9pf~jZo#Odjx6);Yu{uO&+i}Kv6X_$)nHFhs(5+!UdC=ugG-c#3OYifFa@(BOolZ> zbkpt`12*?dGKoW(ysRy3ifvwJ0%tb41I@pI7>Ig39pIu(;Z5WG^Ng+pCn^eKFG`?5}{^UwJWn(?2%oVAk4VH86~}Q-dK0xKc+;b2W2O6F0_kK^OuO zhbAlS%+A6xQEMWiW7YwG(O*~uTk>14W$lOz(O84zhi{(k?-{UOGS9RXZn|l+t}Ac| zuzYyW&Zrw9bq_EsR{&LnLMrzNm2r_qSiaJ4!)BSFoX@!=o!xhvj+{!-=p2 zy?Gtez_o=Qku?%m90Kh*@vvNIRE=W)j`ke*;p#I+6ob%6kHg1&n=nL4LcXaUctm zJNU;Lbr;vlXwQuS#*W+Asc7IPe_1JM7F|zj-~YIhB3*jef9n4M+kPel{?BRh$0V4y zEN*4LU<0~-z1dgAxc3SoGw!&Rodd`ro3{$mqQ^l{ScqLD(zoVsfcO=_`z2gvdHWSZ zX{md7gI?eOFXruZxAtrzKXWh0ujf`%37GdM* zD?HVe(ZUar!DZ9Gv~8Y3Y?s%I(c(qLHe zM=SLqdI2!yU)UErQ_Q7OGZ7G1eI`R4X9uj(av8q7@hJT?m>kfH-jxqZ+nK?>p;sWAhoI?-PA zSo%PJ=BDq>T>j?k;zx~h6z}A^@Vp=N>-M5NZwjQ9zN{Zs`A0I?WS^Lw6N;+;(_C#n zLZO|n_^Qbv@bYYdCmD5D&tT(!NXcYX=7q9`myD)-IxqByMrZ3Kh6lkPAibV(NK@1J zy2Zx)A3FR(xoaD#wdq*iCw`C-1rMC z4J@Qq>7`{7h5a9%i1W=p$<@~7?JB`qjjg$57H6^E;F3X*6$EbcBNq&xe2J3Vt^h>W zwt{jxk=lW*2c(nSj^7IgV0u#+3hV84o+I*lrax2Ug*>m@7$FkAt+%9ezl?sd!8~VALEyZyHpd5ww16^;RQUdcK5GpblZJ=Jx2O{<*f?k3RIUsW3 zXfrL0Lb>N)3xnV0$$BG&awUy(R(KhaqdjkNDEq95WUHi5$);!{W0LSL}Ye*5w_OdE659_7t+c}^)BdFyvaU!s1e~E zT>@!&B%gu)jf%qho@}<=yqLxt-G$)-?`1(BfUQP8mO&G4v8jrLVDfi4`9pXQAzIT^ z9jz)h1{`@^34rg%<}%xXGHSnvDV#u!oNO#Y%KhAlj1KWC-wHkkn_R9%3iv zuAl2nPKC6yN%+)}$Rq?O`0=C`YYZ5!PDbBD1`mf12)2pW%!poJL??-y(*%^$VU zuO=)f!TS$Uc4n;--lNr*H2K1CFzH>fmH#&$j*qyzf_S6s&1uZg?wQXjXBo2jw%De5 zhAsUuxM0*#RsD(+a-ZSwffpIS)d`CKgPtE!{<#Bbtengny_{U5**f9QtYLZIb}S|S z0acMQH@zkN;&vpzZ2K*+U>S%n_K1_AX7@xnW4{Sc2r)&l4g}|6DidX3UD4nBTVhQ0lTk~ z6VjMtI(4iv_w8I)F-O_ydNYqi`&xQ^@O3nMR)x)G#S1XZ6VVe;T74+edkWLK4t%>O zOhc*Xs+GAP0DAcNzu373uyaP4VzVvosOum{63G@30OyI)mmzuCVxN@#yk^8Z#?SK6 W!Q0MbbHMvSpViA_mz6Ksdid}4_wcCz literal 0 HcmV?d00001 diff --git a/docs/classsw_1_1_cursor_helper-members.html b/docs/classsw_1_1_cursor_helper-members.html new file mode 100644 index 00000000..d2bfb572 --- /dev/null +++ b/docs/classsw_1_1_cursor_helper-members.html @@ -0,0 +1,113 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::CursorHelper Member List
+
+
+ +

This is the complete list of members for sw::CursorHelper, including all inherited members.

+ + + + + +
GetCursorHandle(StandardCursor cursor)sw::CursorHelperstatic
GetCursorHandle(HINSTANCE hInstance, int resourceId)sw::CursorHelperstatic
GetCursorHandle(HINSTANCE hInstance, const std::wstring &cursorName)sw::CursorHelperstatic
GetCursorHandle(const std::wstring &fileName)sw::CursorHelperstatic
+
+ + + + diff --git a/docs/classsw_1_1_cursor_helper.html b/docs/classsw_1_1_cursor_helper.html new file mode 100644 index 00000000..a05b3b6b --- /dev/null +++ b/docs/classsw_1_1_cursor_helper.html @@ -0,0 +1,283 @@ + + + + + + + +SimpleWindow: sw::CursorHelper Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
sw::CursorHelper Class Reference
+
+
+ +

用于获取鼠标句柄的工具类 + More...

+ +

#include <Cursor.h>

+ + + + + + + + + + + + + + +

+Static Public Member Functions

static HCURSOR GetCursorHandle (StandardCursor cursor)
 获取系统标准鼠标样式句柄
 
static HCURSOR GetCursorHandle (HINSTANCE hInstance, int resourceId)
 从指定模块中获取鼠标句柄
 
static HCURSOR GetCursorHandle (HINSTANCE hInstance, const std::wstring &cursorName)
 从指定模块中获取鼠标句柄
 
static HCURSOR GetCursorHandle (const std::wstring &fileName)
 从文件加载鼠标句柄
 
+

Detailed Description

+

用于获取鼠标句柄的工具类

+

Member Function Documentation

+ +

◆ GetCursorHandle() [1/4]

+ +
+
+ + + + + +
+ + + + + + + +
static HCURSOR sw::CursorHelper::GetCursorHandle (const std::wstring & fileName)
+
+static
+
+ +

从文件加载鼠标句柄

+
Parameters
+ + +
fileName鼠标文件路径
+
+
+
Returns
成功则返回鼠标句柄,否则返回NULL
+ +
+
+ +

◆ GetCursorHandle() [2/4]

+ +
+
+ + + + + +
+ + + + + + + + + + + +
static HCURSOR sw::CursorHelper::GetCursorHandle (HINSTANCE hInstance,
const std::wstring & cursorName )
+
+static
+
+ +

从指定模块中获取鼠标句柄

+
Parameters
+ + + +
hInstanceDLL或EXE的模块句柄
cursorName鼠标的资源名称
+
+
+
Returns
成功则返回鼠标句柄,否则返回NULL
+ +
+
+ +

◆ GetCursorHandle() [3/4]

+ +
+
+ + + + + +
+ + + + + + + + + + + +
static HCURSOR sw::CursorHelper::GetCursorHandle (HINSTANCE hInstance,
int resourceId )
+
+static
+
+ +

从指定模块中获取鼠标句柄

+
Parameters
+ + + +
hInstanceDLL或EXE的模块句柄
resourceId鼠标的资源序号
+
+
+
Returns
成功则返回鼠标句柄,否则返回NULL
+ +
+
+ +

◆ GetCursorHandle() [4/4]

+ +
+
+ + + + + +
+ + + + + + + +
static HCURSOR sw::CursorHelper::GetCursorHandle (StandardCursor cursor)
+
+static
+
+ +

获取系统标准鼠标样式句柄

+
Parameters
+ + +
cursor鼠标样式
+
+
+
Returns
鼠标句柄
+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_dictionary-members.html b/docs/classsw_1_1_dictionary-members.html new file mode 100644 index 00000000..64c09813 --- /dev/null +++ b/docs/classsw_1_1_dictionary-members.html @@ -0,0 +1,125 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::Dictionary< TKey, TVal > Member List
+
+
+ +

This is the complete list of members for sw::Dictionary< TKey, TVal >, including all inherited members.

+ + + + + + + + + + + + + + + + + +
begin() constsw::Dictionary< TKey, TVal >inline
Clear() constsw::Dictionary< TKey, TVal >inline
ContainsKey(const TKey &key) constsw::Dictionary< TKey, TVal >inline
Copy() constsw::Dictionary< TKey, TVal >inline
Count() constsw::Dictionary< TKey, TVal >inline
Dictionary()sw::Dictionary< TKey, TVal >inline
Dictionary(std::initializer_list< std::pair< const TKey, TVal > > list)sw::Dictionary< TKey, TVal >inline
end() constsw::Dictionary< TKey, TVal >inline
IsEmpty() constsw::Dictionary< TKey, TVal >inline
operator!=sw::Dictionary< TKey, TVal >friend
operator<<sw::Dictionary< TKey, TVal >friend
operator==sw::Dictionary< TKey, TVal >friend
operator[](const TKey &key) constsw::Dictionary< TKey, TVal >inline
rbegin() constsw::Dictionary< TKey, TVal >inline
Remove(const TKey &key) constsw::Dictionary< TKey, TVal >inline
rend() constsw::Dictionary< TKey, TVal >inline
+
+ + + + diff --git a/docs/classsw_1_1_dictionary.html b/docs/classsw_1_1_dictionary.html new file mode 100644 index 00000000..c8716561 --- /dev/null +++ b/docs/classsw_1_1_dictionary.html @@ -0,0 +1,296 @@ + + + + + + + +SimpleWindow: sw::Dictionary< TKey, TVal > Class Template Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
sw::Dictionary< TKey, TVal > Class Template Reference
+
+
+ +

字典类,内部维护了一个指向std::map的智能指针 + More...

+ +

#include <Dictionary.h>

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

Dictionary ()
 初始化字典
 
Dictionary (std::initializer_list< std::pair< const TKey, TVal > > list)
 使用初始化列表
 
+auto begin () const
 正向迭代器开始
 
+auto end () const
 正向迭代器结束
 
+auto rbegin () const
 反向迭代器开始
 
+auto rend () const
 反向迭代器结束
 
autooperator[] (const TKey &key) const
 获取或设置值
 
+int Count () const
 获取键值对个数
 
+bool IsEmpty () const
 字典是否为空
 
bool ContainsKey (const TKey &key) const
 是否存在某个键值
 
void Remove (const TKey &key) const
 移除指定键值对
 
+void Clear () const
 清空字典
 
+Dictionary Copy () const
 复制当前字典
 
+ + + + + + + + + + +

+Friends

+bool operator== (const Dictionary &left, const Dictionary &right)
 判断是否为同一个字典
 
+bool operator!= (const Dictionary &left, const Dictionary &right)
 判断是否不是同一个字典
 
+std::wostream & operator<< (std::wostream &wos, const Dictionary &dic)
 支持Utils::BuildStr
 
+

Detailed Description

+
template<typename TKey, typename TVal>
+class sw::Dictionary< TKey, TVal >

字典类,内部维护了一个指向std::map的智能指针

+

Member Function Documentation

+ +

◆ ContainsKey()

+ +
+
+
+template<typename TKey , typename TVal >
+ + + + + +
+ + + + + + + +
bool sw::Dictionary< TKey, TVal >::ContainsKey (const TKey & key) const
+
+inline
+
+ +

是否存在某个键值

+
Parameters
+ + +
key要查询的键值
+
+
+ +
+
+ +

◆ operator[]()

+ +
+
+
+template<typename TKey , typename TVal >
+ + + + + +
+ + + + + + + +
auto & sw::Dictionary< TKey, TVal >::operator[] (const TKey & key) const
+
+inline
+
+ +

获取或设置值

+
Parameters
+ + +
key键值
+
+
+ +
+
+ +

◆ Remove()

+ +
+
+
+template<typename TKey , typename TVal >
+ + + + + +
+ + + + + + + +
void sw::Dictionary< TKey, TVal >::Remove (const TKey & key) const
+
+inline
+
+ +

移除指定键值对

+
Parameters
+ + +
key要删除的键值
+
+
+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_dictionary.js b/docs/classsw_1_1_dictionary.js new file mode 100644 index 00000000..4a852c2f --- /dev/null +++ b/docs/classsw_1_1_dictionary.js @@ -0,0 +1,19 @@ +var classsw_1_1_dictionary = +[ + [ "Dictionary", "classsw_1_1_dictionary.html#a77cbfe628092b74f1a698e7b5fe56c69", null ], + [ "Dictionary", "classsw_1_1_dictionary.html#a178b607824a4eff707914f2eb3aaaa22", null ], + [ "begin", "classsw_1_1_dictionary.html#a9e7e3d687118005beb08bbf9e3a3a2bc", null ], + [ "Clear", "classsw_1_1_dictionary.html#a061c70ddd433b90b5d8b61a9c81fc8da", null ], + [ "ContainsKey", "classsw_1_1_dictionary.html#a726bccc37022c21d7864673c69138acc", null ], + [ "Copy", "classsw_1_1_dictionary.html#afa7a405134901716b4affecc9f01df0f", null ], + [ "Count", "classsw_1_1_dictionary.html#a7c16eced6a889e97f4a1807697090fd3", null ], + [ "end", "classsw_1_1_dictionary.html#a98945b3a8a7c6b3e1110a406718a49c8", null ], + [ "IsEmpty", "classsw_1_1_dictionary.html#a16703bd325716445121e257ae489dcc4", null ], + [ "operator[]", "classsw_1_1_dictionary.html#a3f2f6938ef081002887f747d74950a30", null ], + [ "rbegin", "classsw_1_1_dictionary.html#aad835fe48c0fccba0e7e99001c7f3de6", null ], + [ "Remove", "classsw_1_1_dictionary.html#afc07e417b7ccc36dc5a7dab5018b6186", null ], + [ "rend", "classsw_1_1_dictionary.html#ab46b8829980f88dd6fe703d4d2961773", null ], + [ "operator!=", "classsw_1_1_dictionary.html#a9d62c349f91ea2d17e49c9f424e522da", null ], + [ "operator<<", "classsw_1_1_dictionary.html#a09fce0167bbe5ff0e080de8b1a52e286", null ], + [ "operator==", "classsw_1_1_dictionary.html#aa139d8b586f45b45157b268832ac9522", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_dip-members.html b/docs/classsw_1_1_dip-members.html new file mode 100644 index 00000000..5f7f65a5 --- /dev/null +++ b/docs/classsw_1_1_dip-members.html @@ -0,0 +1,116 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::Dip Member List
+
+
+ +

This is the complete list of members for sw::Dip, including all inherited members.

+ + + + + + + + +
DipToPxX(double dip)sw::Dipstatic
DipToPxY(double dip)sw::Dipstatic
PxToDipX(int px)sw::Dipstatic
PxToDipY(int px)sw::Dipstatic
ScaleXsw::Dipstatic
ScaleYsw::Dipstatic
Update(int dpiX, int dpiY)sw::Dipstatic
+
+ + + + diff --git a/docs/classsw_1_1_dip.html b/docs/classsw_1_1_dip.html new file mode 100644 index 00000000..41032e34 --- /dev/null +++ b/docs/classsw_1_1_dip.html @@ -0,0 +1,156 @@ + + + + + + + +SimpleWindow: sw::Dip Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+ +

用于处理设备独立像素(dip)与屏幕像素之间的转换 + More...

+ +

#include <Dip.h>

+ + + + + + + + + + + + + + + + + +

+Static Public Member Functions

+static void Update (int dpiX, int dpiY)
 dpi改变时调用该函数更新缩放比例
 
+static double PxToDipX (int px)
 像素转dip(水平方向)
 
+static double PxToDipY (int px)
 像素转dip(垂直方向)
 
+static int DipToPxX (double dip)
 dip转像素(水平方向)
 
+static int DipToPxY (double dip)
 dip转像素(垂直方向)
 
+ + + + + + + +

+Static Public Attributes

+static const ReadOnlyProperty< doubleScaleX
 水平缩放比例
 
+static const ReadOnlyProperty< doubleScaleY
 垂直缩放比例
 
+

Detailed Description

+

用于处理设备独立像素(dip)与屏幕像素之间的转换

+

The documentation for this class was generated from the following file:
    +
  • D:/code/GitHub/sw/sw/inc/Dip.h
  • +
+
+
+ + + + diff --git a/docs/classsw_1_1_dock_layout-members.html b/docs/classsw_1_1_dock_layout-members.html new file mode 100644 index 00000000..b4138ee4 --- /dev/null +++ b/docs/classsw_1_1_dock_layout-members.html @@ -0,0 +1,125 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::DockLayout Member List
+
+
+ +

This is the complete list of members for sw::DockLayout, including all inherited members.

+ + + + + + + + + + + + + + + + + +
Arrange(const Rect &finalPosition) overridesw::LayoutHostvirtual
ArrangeOverride(Size &finalSize) overridesw::DockLayoutvirtual
Associate(ILayout *obj)sw::LayoutHost
Bottom enum value (defined in sw::DockLayout)sw::DockLayout
DockLayoutTag enum namesw::DockLayout
GetChildLayoutAt(int index) overridesw::LayoutHostvirtual
GetChildLayoutCount() overridesw::LayoutHostvirtual
GetDesireSize() overridesw::LayoutHostvirtual
GetLayoutTag() overridesw::LayoutHostvirtual
lastChildFillsw::DockLayout
Left enum value (defined in sw::DockLayout)sw::DockLayout
Measure(const Size &availableSize) overridesw::LayoutHostvirtual
MeasureOverride(Size &availableSize) overridesw::DockLayoutvirtual
Right enum value (defined in sw::DockLayout)sw::DockLayout
SetDesireSize(const Size &size) overridesw::LayoutHostvirtual
Top enum value (defined in sw::DockLayout)sw::DockLayout
+
+ + + + diff --git a/docs/classsw_1_1_dock_layout.html b/docs/classsw_1_1_dock_layout.html new file mode 100644 index 00000000..81cf603d --- /dev/null +++ b/docs/classsw_1_1_dock_layout.html @@ -0,0 +1,243 @@ + + + + + + + +SimpleWindow: sw::DockLayout Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
sw::DockLayout Class Reference
+
+
+ +

停靠布局 + More...

+ +

#include <DockLayout.h>

+
+Inheritance diagram for sw::DockLayout:
+
+
+ + +sw::LayoutHost +sw::ILayout + +
+ + + + + +

+Public Types

enum  DockLayoutTag { Left +, Top +, Right +, Bottom + }
 Dock布局标记
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

virtual void MeasureOverride (Size &availableSize) override
 计算所需尺寸
 
virtual void ArrangeOverride (Size &finalSize) override
 安排控件
 
- Public Member Functions inherited from sw::LayoutHost
void Associate (ILayout *obj)
 设置关联的对象,每个LayoutHost只能关联一个对象
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取关联对象子控件的数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取关联对象对应索引处的子控件
 
virtual Size GetDesireSize () override
 获取关联对象所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置关联对象所需的尺寸
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const Rect &finalPosition) override
 安排控件位置
 
+ + + + +

+Public Attributes

+bool lastChildFill = true
 最后一个子元素是否填充剩余空间
 
+

Detailed Description

+

停靠布局

+

Member Function Documentation

+ +

◆ ArrangeOverride()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::DockLayout::ArrangeOverride (Size & finalSize)
+
+overridevirtual
+
+ +

安排控件

+ +

Implements sw::LayoutHost.

+ +
+
+ +

◆ MeasureOverride()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::DockLayout::MeasureOverride (Size & availableSize)
+
+overridevirtual
+
+ +

计算所需尺寸

+ +

Implements sw::LayoutHost.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_dock_layout.js b/docs/classsw_1_1_dock_layout.js new file mode 100644 index 00000000..c72a6314 --- /dev/null +++ b/docs/classsw_1_1_dock_layout.js @@ -0,0 +1,12 @@ +var classsw_1_1_dock_layout = +[ + [ "DockLayoutTag", "classsw_1_1_dock_layout.html#a35500d2b1512e62f31792ed90aafde5d", [ + [ "Left", "classsw_1_1_dock_layout.html#a35500d2b1512e62f31792ed90aafde5da99652ee617481f4913656a3cbeb98976", null ], + [ "Top", "classsw_1_1_dock_layout.html#a35500d2b1512e62f31792ed90aafde5da73bf97fe1367fa6a4ed64e7d67456cce", null ], + [ "Right", "classsw_1_1_dock_layout.html#a35500d2b1512e62f31792ed90aafde5dac08cb4debc08b27cf4d376fdf1ee3d79", null ], + [ "Bottom", "classsw_1_1_dock_layout.html#a35500d2b1512e62f31792ed90aafde5da23360532b8e8c1826fb2a0cdf289639a", null ] + ] ], + [ "ArrangeOverride", "classsw_1_1_dock_layout.html#a095344f448138136a4988d4323dae0f9", null ], + [ "MeasureOverride", "classsw_1_1_dock_layout.html#a62fcb5b4236d5706caadb23ac557139a", null ], + [ "lastChildFill", "classsw_1_1_dock_layout.html#ae3279e6cc696c453a2f6171ca152fc47", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_dock_layout.png b/docs/classsw_1_1_dock_layout.png new file mode 100644 index 0000000000000000000000000000000000000000..fdb0c601f8fed14765f6cd9b7adca31aef6c5b00 GIT binary patch literal 709 zcmV;$0y_PPP)vTJr#LVva2S`&=-}Ys|Ns9r%~qrU000SeQchC<|NsC0|NsC0Hv*f~0006| zNkl+_^1H{RGQl2>G-GPRxu$TtkG+D@BL`OljK+#ge2Aa zHHcdelI-ay<$pq4teDh5+!EgsijiECERSQzTCbRy2(dtnoSsNl$0;OF$+PMTpF>u= zI*{3vEqED{9TV3YNM+dvO0QpwI#%+)KA+AVn@k6eRq+hMvC|5V~CRR z5k$+dPd!QM^(ct<-VYW4yr~HQM(Ym9G~GbC12QwlQ*MDgsJjdT0D2h&0Ms%F0H|dU z08q;y0HBsZ06;B+0DxM58sfe8qXkcrV`UJMRO=@ojwJhj6E25ZOtTEj_J7q|9>u4usW{wvY^dR!9A|1QVAh|~2+WAg$siOxU z9ZM!}iIs~ANYAeJvA={A+tWQ0+2gKC?4;O3v0UyU0UdT%tass!SG+eQS?f*6CB~bO zYYh9;lcZjcf_U%!U;)6JngC$5?to0w4U{_|Gh;mE7RZCT%OC)tmq7qPErS4nS_T0C zwG09PY8eCo)G`PFsP(5I&N(+)a3O>+Rt5QNBqoExlvy_9DwXZdBn00000NkvXXu0mjfD8xcA literal 0 HcmV?d00001 diff --git a/docs/classsw_1_1_dock_panel-members.html b/docs/classsw_1_1_dock_panel-members.html new file mode 100644 index 00000000..ec02f821 --- /dev/null +++ b/docs/classsw_1_1_dock_panel-members.html @@ -0,0 +1,326 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::DockPanel Member List
+
+
+ +

This is the complete list of members for sw::DockPanel, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AddChild(UIElement *element)sw::UIElement
AddChild(UIElement &element)sw::UIElement
AddChild(UIElement *element, uint64_t layoutTag)sw::UIElement
AddChild(UIElement &element, uint64_t layoutTag)sw::UIElement
Arrange(const sw::Rect &finalPosition) overridesw::PanelBasevirtual
AutoSizesw::Layer
BackColorsw::UIElement
BorderStylesw::Panel
ChildCountsw::UIElement
ClearChildren()sw::UIElement
ClientHeightsw::WndBase
ClientRectsw::WndBase
ClientWidthsw::WndBase
Close()sw::WndBase
CollapseWhenHidesw::UIElement
ContextMenusw::UIElement
Control()sw::Controlprotected
DefaultWndProc(const ProcMsg &refMsg)sw::WndBaseprotected
DisableLayout()sw::Layer
DockPanel()sw::DockPanel
Enabledsw::WndBase
EnableLayout()sw::Layer
Floatsw::UIElement
Focusedsw::WndBase
Fontsw::WndBase
FontChanged(HFONT hfont)sw::WndBaseprotectedvirtual
FontNamesw::WndBase
FontSizesw::WndBase
FontWeightsw::WndBase
GetArrangeOffsetX()sw::UIElementprotected
GetArrangeOffsetY()sw::UIElementprotected
GetChildBottommost(bool update)sw::UIElementprotected
GetChildLayoutAt(int index) overridesw::UIElementvirtual
GetChildLayoutCount() overridesw::UIElementvirtual
GetChildRightmost(bool update)sw::UIElementprotected
GetDefaultLayout() overridesw::DockPanelprotectedvirtual
GetDesireSize() overridesw::UIElementvirtual
GetDock(UIElement &element)sw::DockPanelstatic
GetExtendedStyle()sw::WndBaseprotected
GetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
GetFontHandle()sw::WndBaseprotected
GetHorizontalScrollPageSize()sw::Layer
GetHorizontalScrollRange(double &refMin, double &refMax)sw::Layer
GetLayoutTag() overridesw::UIElementvirtual
GetNextElement()sw::UIElement
GetNextTabStopElement()sw::UIElement
GetRealBackColor()sw::UIElement
GetRealTextColor()sw::UIElement
GetRootElement()sw::UIElement
GetStyle()sw::WndBaseprotected
GetStyle(LONG_PTR style)sw::WndBaseprotected
GetTag() overridesw::UIElementvirtual
GetText()sw::WndBaseprotectedvirtual
GetVerticalScrollPageSize()sw::Layer
GetVerticalScrollRange(double &refMin, double &refMax)sw::Layer
GetWndBase(HWND hwnd)sw::WndBasestatic
Handlesw::WndBase
HandleChenged()sw::Controlprotectedvirtual
HandleInitialized(HWND hwnd)sw::WndBaseprotectedvirtual
Heightsw::WndBase
HorizontalAlignmentsw::UIElement
HorizontalScrollBarsw::Layer
HorizontalScrollLimitsw::Layer
HorizontalScrollPossw::Layer
IndexOf(UIElement *element)sw::UIElement
IndexOf(UIElement &element)sw::UIElement
InheritTextColorsw::UIElement
InitControl(LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
InitWindow(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
IsControl()sw::WndBase
IsDestroyedsw::WndBase
IsRootElement()sw::UIElement
IsRoutedEventRegistered(RoutedEventType eventType)sw::UIElement
IsVisible()sw::WndBase
LastChildFillsw::DockPanel
Layer()sw::Layerprotected
Layoutsw::Layer
LayoutTagsw::UIElement
Leftsw::WndBase
Marginsw::UIElement
Measure(const Size &availableSize) overridesw::PanelBasevirtual
MoveToBottom()sw::UIElement
MoveToTop()sw::UIElement
NcHitTest(const Point &testPoint)sw::WndBase
NotifyLayoutUpdated()sw::UIElementprotected
OnAcceleratorCommand(int id)sw::WndBaseprotectedvirtual
OnAddedChild(UIElement &element)sw::UIElementprotectedvirtual
OnChar(wchar_t ch, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnClose() overridesw::UIElementprotectedvirtual
OnColor(HDC hdc, HBRUSH &hRetBrush) overridesw::UIElementprotectedvirtual
OnCommand(int code)sw::WndBaseprotectedvirtual
OnContextMenu(bool isKeyboardMsg, Point mousePosition) overridesw::UIElementprotectedvirtual
OnControlCommand(WndBase *pControl, int code, int id)sw::WndBaseprotectedvirtual
OnCreate()sw::WndBaseprotectedvirtual
OnCtlColor(WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)sw::WndBaseprotectedvirtual
OnDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnDestroy()sw::WndBaseprotectedvirtual
OnDrawFocusRect()sw::UIElementprotectedvirtual
OnDrawItem(int id, DRAWITEMSTRUCT *pDrawItem)sw::WndBaseprotectedvirtual
OnEnabledChanged(bool newValue)sw::WndBaseprotectedvirtual
OnEndPaint() overridesw::UIElementprotectedvirtual
OnEraseBackground(int &result)sw::WndBaseprotectedvirtual
OnHorizontalScroll(int event, int pos) overridesw::PanelBaseprotectedvirtual
OnKeyDown(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKeyUp(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKillFocus(HWND hNextFocus) overridesw::UIElementprotectedvirtual
OnMenuCommand(int id) overridesw::UIElementprotectedvirtual
OnMouseLeave() overridesw::UIElementprotectedvirtual
OnMouseLeftButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseLeftButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseMiddleButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMove(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseRightButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseWheel(int wheelDelta, Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMove(Point newClientPosition) overridesw::UIElementprotectedvirtual
OnNcHitTest(const Point &testPoint, HitTestResult &result)sw::WndBaseprotectedvirtual
OnNotified(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnNotify(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnPaint() overridesw::Panelprotectedvirtual
OnRemovedChild(UIElement &element)sw::UIElementprotectedvirtual
OnScroll(ScrollOrientation scrollbar, ScrollEvent event, double pos)sw::Layerprotectedvirtual
OnSetCursor(HWND hwnd, HitTestResult hitTest, int message, bool &result) overridesw::UIElementprotectedvirtual
OnSetFocus(HWND hPrevFocus) overridesw::UIElementprotectedvirtual
OnSize(Size newClientSize) overridesw::Panelprotectedvirtual
OnSysChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyDown(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyUp(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnTabStop()sw::UIElementprotectedvirtual
OnTextChanged() overridesw::UIElementprotectedvirtual
OnVerticalScroll(int event, int pos) overridesw::PanelBaseprotectedvirtual
operator=(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator=(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator[](int index) constsw::UIElement
Panel()sw::Panel
PanelBase()sw::PanelBaseprotected
Parentsw::UIElement
ParentChanged(WndBase *newParent) overridesw::UIElementprotectedvirtual
PointFromScreen(const Point &screenPoint)sw::WndBase
PointToScreen(const Point &point)sw::WndBase
RaiseRoutedEvent(RoutedEventType eventType)sw::UIElementprotected
RaiseRoutedEvent(RoutedEventArgs &eventArgs)sw::UIElementprotected
Rectsw::WndBase
Redraw(bool erase=false)sw::WndBase
RegisterRoutedEvent(RoutedEventType eventType, const RoutedEvent &handler)sw::UIElement
RegisterRoutedEvent(RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))sw::UIElementinline
RegisterRoutedEvent(std::function< void(UIElement &, TEventArgs &)> handler)sw::UIElementinline
RegisterRoutedEvent(THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))sw::UIElementinline
RemoveChild(UIElement *element)sw::UIElement
RemoveChild(UIElement &element)sw::UIElement
RemoveChildAt(int index)sw::UIElement
ResetCursor()sw::UIElement
ResetHandle()sw::Controlprotected
ScrollHorizontal(double offset)sw::Layer
ScrollToBottom()sw::Layer
ScrollToLeft()sw::Layer
ScrollToRight()sw::Layer
ScrollToTop()sw::Layer
ScrollVertical(double offset)sw::Layer
SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase
SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement
SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual
SetCursor(HCURSOR hCursor)sw::UIElement
SetCursor(StandardCursor cursor)sw::UIElement
SetDesireSize(const Size &size) overridesw::UIElementvirtual
SetDock(UIElement &element, DockLayout::DockLayoutTag dock)sw::DockPanelstatic
SetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
SetExtendedStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetHorizontalScrollPageSize(double pageSize)sw::Layer
SetHorizontalScrollRange(double min, double max)sw::Layer
SetNextTabStopFocus()sw::UIElementprotected
SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual
SetStyle(LONG_PTR style)sw::WndBaseprotected
SetStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetTag(uint64_t tag) overridesw::UIElementvirtual
SetText(const std::wstring &value)sw::WndBaseprotectedvirtual
SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual
SetVerticalScrollPageSize(double pageSize)sw::Layer
SetVerticalScrollRange(double min, double max)sw::Layer
Show(int nCmdShow)sw::WndBase
ShowContextMenu(const Point &point)sw::UIElement
TabStopsw::UIElement
Tagsw::UIElement
Textsw::WndBase
TextColorsw::UIElement
Topsw::WndBase
Transparentsw::UIElement
UIElement()sw::UIElementprotected
UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement
Update()sw::WndBase
UpdateChildrenZOrder()sw::UIElementprotected
UpdateFont()sw::WndBase
UpdateLayout()sw::Layerprotected
UpdateScrollRange()sw::Layer
UpdateSiblingsZOrder()sw::UIElementprotected
UpdateText()sw::WndBaseprotected
VerticalAlignmentsw::UIElement
VerticalScrollBarsw::Layer
VerticalScrollLimitsw::Layer
VerticalScrollPossw::Layer
Visiblesw::WndBase
VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual
Widthsw::WndBase
WndBase()sw::WndBaseprotected
WndBase(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndBase(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual
~Control()=0sw::Controlpure virtual
~Layer()=0sw::Layerpure virtual
~PanelBase()=0sw::PanelBasepure virtual
~UIElement()=0sw::UIElementpure virtual
~WndBase()=0sw::WndBasepure virtual
+
+ + + + diff --git a/docs/classsw_1_1_dock_panel.html b/docs/classsw_1_1_dock_panel.html new file mode 100644 index 00000000..e3bf28be --- /dev/null +++ b/docs/classsw_1_1_dock_panel.html @@ -0,0 +1,970 @@ + + + + + + + +SimpleWindow: sw::DockPanel Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+ +

停靠面板 + More...

+ +

#include <DockPanel.h>

+
+Inheritance diagram for sw::DockPanel:
+
+
+ + +sw::Panel +sw::PanelBase +sw::Control +sw::Layer +sw::UIElement +sw::UIElement +sw::WndBase +sw::ILayout +sw::ITag +sw::WndBase +sw::ILayout +sw::ITag + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

DockPanel ()
 初始化DockPanel
 
- Public Member Functions inherited from sw::Panel
Panel ()
 初始化面板
 
- Public Member Functions inherited from sw::PanelBase
+virtual ~PanelBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const sw::Rect &finalPosition) override
 安排控件位置
 
- Public Member Functions inherited from sw::Control
+virtual ~Control ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
- Public Member Functions inherited from sw::UIElement
+virtual ~UIElement ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
void RegisterRoutedEvent (RoutedEventType eventType, const RoutedEvent &handler)
 注册路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename T >
void RegisterRoutedEvent (RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))
 注册成员函数作为路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename TEventArgs , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (std::function< void(UIElement &, TEventArgs &)> handler)
 根据事件参数类型注册路由事件
 
template<typename TEventArgs , typename THandleObj , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))
 根据事件参数类型注册成员函数作为路由事件
 
void UnregisterRoutedEvent (RoutedEventType eventType)
 取消对应类型路由事件的注册
 
bool IsRoutedEventRegistered (RoutedEventType eventType)
 判断路由事件是否已被注册
 
bool AddChild (UIElement *element)
 添加子控件
 
bool AddChild (UIElement &element)
 添加子控件
 
bool AddChild (UIElement *element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool AddChild (UIElement &element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool RemoveChildAt (int index)
 移除指定索引处的子控件
 
bool RemoveChild (UIElement *element)
 移除子控件
 
bool RemoveChild (UIElement &element)
 移除子控件
 
+void ClearChildren ()
 移除所有子控件
 
int IndexOf (UIElement *element)
 获取指定元素的索引
 
int IndexOf (UIElement &element)
 获取指定元素的索引
 
+UIElementoperator[] (int index) const
 通过索引获取子控件
 
void ShowContextMenu (const Point &point)
 弹出当前元素的上下文菜单
 
+void MoveToTop ()
 移动到界面顶部
 
+void MoveToBottom ()
 移动到界面底部
 
+bool IsRootElement ()
 判断当前元素是否为根节点
 
+UIElementGetRootElement ()
 获取当前元素所在界面树的根节点
 
+UIElementGetNextElement ()
 获取当前元素在界面树上的下一个节点,若已是最后一个节点则返回根节点
 
+UIElementGetNextTabStopElement ()
 获取下一个TabStop属性为true的元素
 
+Color GetRealBackColor ()
 获取当前要显示的背景颜色:当Transparent为true时获取到祖先节点中首个Transparent为false的背景颜色,否则返回当前元素的背景颜色
 
+Color GetRealTextColor ()
 获取当前要显示的文本颜色:当InheritTextColor为true时获取到祖先节点中首个InheritTextColor为false的文本颜色,否则返回当前元素的文本颜色
 
void SetCursor (HCURSOR hCursor)
 设置鼠标样式
 
void SetCursor (StandardCursor cursor)
 设置鼠标样式
 
+void ResetCursor ()
 将鼠标样式设置为默认样式
 
void SetAlignment (sw::HorizontalAlignment horz, sw::VerticalAlignment vert)
 设置对齐方式
 
virtual uint64_t GetTag () override
 获取Tag
 
virtual void SetTag (uint64_t tag) override
 设置Tag
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取参与布局的子控件数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取对应索引处的子控件,使用此函数前必须先调用GetChildLayoutCount
 
virtual Size GetDesireSize () override
 获取控件所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置当前控件所需的尺寸
 
- Public Member Functions inherited from sw::WndBase
+virtual ~WndBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void Show (int nCmdShow)
 该函数调用ShowWindow
 
+void Close ()
 发送关闭消息
 
+void Update ()
 该函数调用UpdateWindow
 
+void UpdateFont ()
 更新字体
 
void Redraw (bool erase=false)
 重画
 
+bool IsControl ()
 判断当前对象是否是控件
 
+bool IsVisible ()
 判断当前对象在界面中是否可视,与Visible属性不同的是该函数返回值会受父窗口的影响
 
Point PointToScreen (const Point &point)
 获取用户区点在屏幕上点的位置
 
Point PointFromScreen (const Point &screenPoint)
 获取屏幕上点在当前用户区点的位置
 
+LRESULT SendMessageW (UINT uMsg, WPARAM wParam, LPARAM lParam)
 发送消息
 
HitTestResult NcHitTest (const Point &testPoint)
 测试指定点在窗口的哪一部分
 
- Public Member Functions inherited from sw::Layer
+virtual ~Layer ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void DisableLayout ()
 禁用布局
 
+void EnableLayout ()
 启用布局
 
void GetHorizontalScrollRange (double &refMin, double &refMax)
 获取横向滚动条的范围
 
void GetVerticalScrollRange (double &refMin, double &refMax)
 获取纵向滚动条的范围
 
void SetHorizontalScrollRange (double min, double max)
 设置横向滚动条的范围
 
void SetVerticalScrollRange (double min, double max)
 设置纵向滚动条的范围
 
+double GetHorizontalScrollPageSize ()
 获取水平滚动条滚动页面大小
 
+double GetVerticalScrollPageSize ()
 获取垂直滚动条滚动页面大小
 
+void SetHorizontalScrollPageSize (double pageSize)
 设置水平滚动条滚动页面大小
 
+void SetVerticalScrollPageSize (double pageSize)
 设置垂直滚动条滚动页面大小
 
+void UpdateScrollRange ()
 根据子元素更新滚动条范围,未设定布局方式时该函数无效
 
+void ScrollToTop ()
 将垂直滚动条移动到顶部
 
+void ScrollToBottom ()
 将垂直滚动条移动到底部
 
+void ScrollToLeft ()
 将水平滚动条移动到最左
 
+void ScrollToRight ()
 将水平滚动条移动到最右
 
void ScrollHorizontal (double offset)
 水平滚动
 
void ScrollVertical (double offset)
 垂直滚动
 
+ + + + + + + + + + + +

+Static Public Member Functions

+static DockLayout::DockLayoutTag GetDock (UIElement &element)
 获取指定元素的Dock
 
+static void SetDock (UIElement &element, DockLayout::DockLayoutTag dock)
 设置指定元素的Dock
 
- Static Public Member Functions inherited from sw::WndBase
static WndBaseGetWndBase (HWND hwnd)
 通过窗口句柄获取WndBase
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Attributes

+const Property< boolLastChildFill
 最后一个子元素是否填充剩余空间
 
- Public Attributes inherited from sw::Panel
+const Property< sw::BorderStyle > BorderStyle
 边框样式
 
- Public Attributes inherited from sw::UIElement
+const Property< ThicknessMargin
 边距
 
+const Property< HorizontalAlignment > HorizontalAlignment
 水平对齐方式
 
+const Property< VerticalAlignment > VerticalAlignment
 垂直对齐方式
 
+const ReadOnlyProperty< intChildCount
 子控件数量
 
+const Property< boolCollapseWhenHide
 是否在不可见时不参与布局
 
+const ReadOnlyProperty< UIElement * > Parent
 指向父元素的指针,当前元素为顶级窗口时该值为nullptr
 
+const Property< uint64_tTag
 储存用户自定义信息的标记
 
+const Property< uint64_tLayoutTag
 布局标记,对于不同的布局有不同含义
 
+const Property< sw::ContextMenu * > ContextMenu
 右键按下时弹出的菜单
 
+const Property< boolFloat
 元素是否悬浮,若元素悬浮则该元素不会随滚动条滚动而改变位置
 
+const Property< boolTabStop
 表示用户是否可以通过按下Tab键将焦点移动到当前元素
 
+const Property< ColorBackColor
 背景颜色,修改该属性会同时将Transparent属性设为false,对于部分控件该属性可能不生效
 
+const Property< ColorTextColor
 文本颜色,修改该属性会同时将InheritTextColor属性设为false,对于部分控件该属性可能不生效
 
+const Property< boolTransparent
 是否使用透明背景(此属性并非真正意义上的透明,将该属性设为true可继承父元素的背景颜色)
 
+const Property< boolInheritTextColor
 是否继承父元素的文本颜色
 
- Public Attributes inherited from sw::WndBase
+const ReadOnlyProperty< HWNDHandle
 窗口句柄
 
+const Property< sw::FontFont
 字体
 
+const Property< std::wstring > FontName
 字体名称
 
+const Property< doubleFontSize
 字体大小
 
+const Property< sw::FontWeight > FontWeight
 字体粗细
 
+const Property< sw::RectRect
 位置和尺寸
 
+const Property< doubleLeft
 左边
 
+const Property< doubleTop
 顶边
 
+const Property< doubleWidth
 宽度
 
+const Property< doubleHeight
 高度
 
+const ReadOnlyProperty< sw::RectClientRect
 用户区尺寸
 
+const ReadOnlyProperty< doubleClientWidth
 用户区宽度
 
+const ReadOnlyProperty< doubleClientHeight
 用户区高度
 
+const Property< boolEnabled
 窗口或控件是否可用
 
+const Property< boolVisible
 窗口或控件是否可见
 
+const Property< std::wstring > Text
 窗口标题或控件文本
 
+const Property< boolFocused
 窗口是否拥有焦点
 
+const ReadOnlyProperty< WndBase * > Parent
 父窗口
 
+const ReadOnlyProperty< boolIsDestroyed
 是否已销毁,当该值为true时不应该继续使用当前对象
 
- Public Attributes inherited from sw::Layer
+const Property< LayoutHost * > Layout
 自定义的布局方式,赋值后将自动与所指向的布局关联,每个布局只能关联一个对象,设为nullptr可恢复默认布局
 
+const Property< boolAutoSize
 是否按照布局方式与子元素自动调整尺寸,该属性仅在当前元素已设置布局方式并且非顶级元素时有效
 
+const Property< boolHorizontalScrollBar
 是否显示横向滚动条
 
+const Property< boolVerticalScrollBar
 是否显示纵向滚动条
 
+const Property< doubleHorizontalScrollPos
 横向滚动条位置
 
+const Property< doubleVerticalScrollPos
 纵向滚动条位置
 
+const ReadOnlyProperty< doubleHorizontalScrollLimit
 横向滚动条可设置的最大位置
 
+const ReadOnlyProperty< doubleVerticalScrollLimit
 纵向滚动条可设置的最大位置
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Protected Member Functions

virtual LayoutHostGetDefaultLayout () override
 获取默认布局对象
 
- Protected Member Functions inherited from sw::Panel
virtual bool OnPaint () override
 接收到WM_PAINT时调用该函数
 
virtual bool OnSize (Size newClientSize) override
 接收到WM_SIZE时调用该函数
 
- Protected Member Functions inherited from sw::PanelBase
PanelBase ()
 初始化PanelBase
 
virtual bool OnVerticalScroll (int event, int pos) override
 接收到WM_VSCROLL时调用目标控件的该函数
 
virtual bool OnHorizontalScroll (int event, int pos) override
 接收到WM_HSCROLL时调用目标控件的该函数
 
- Protected Member Functions inherited from sw::Control
Control ()
 初始化控件
 
+void ResetHandle ()
 销毁控件句柄并重新初始化,该操作会创建新的句柄并设置样式、文本、字体等
 
+virtual void HandleChenged ()
 控件句柄发生改变时调用该函数
 
- Protected Member Functions inherited from sw::UIElement
UIElement ()
 初始化UIElement
 
void RaiseRoutedEvent (RoutedEventType eventType)
 触发路由事件
 
void RaiseRoutedEvent (RoutedEventArgs &eventArgs)
 触发路由事件
 
+void NotifyLayoutUpdated ()
 通知顶级窗口布局改变
 
+doubleGetArrangeOffsetX ()
 获取Arrange时子元素的水平偏移量
 
+doubleGetArrangeOffsetY ()
 获取Arrange时子元素的垂直偏移量
 
double GetChildRightmost (bool update)
 获取所有子元素在当前元素中最右边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
double GetChildBottommost (bool update)
 获取所有子元素在当前元素中最底边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
+void UpdateChildrenZOrder ()
 更新子元素的Z轴位置
 
+void UpdateSiblingsZOrder ()
 更新兄弟元素的Z轴位置
 
+void SetNextTabStopFocus ()
 设置下一个TabStop属性为true的元素为焦点元素
 
virtual void SetBackColor (Color color, bool redraw)
 设置背景颜色
 
virtual void SetTextColor (Color color, bool redraw)
 设置文本颜色
 
virtual void OnAddedChild (UIElement &element)
 添加子元素后调用该函数
 
virtual void OnRemovedChild (UIElement &element)
 移除子元素后调用该函数
 
+virtual void OnTabStop ()
 通过tab键将焦点移动到当前元素时调用该函数
 
virtual void OnDrawFocusRect ()
 绘制虚线框时调用该函数
 
virtual bool SetParent (WndBase *parent) override
 设置父窗口
 
virtual void ParentChanged (WndBase *newParent) override
 父窗口改变时调用此函数
 
virtual void OnEndPaint () override
 在OnPaint函数完成之后调用该函数
 
virtual bool OnClose () override
 接收到WM_CLOSE时调用该函数
 
virtual bool OnMove (Point newClientPosition) override
 接收到WM_MOVE时调用该函数
 
virtual void OnTextChanged () override
 Text属性更改时调用此函数
 
virtual void VisibleChanged (bool newVisible) override
 Visible属性改变时调用此函数
 
virtual bool OnSetFocus (HWND hPrevFocus) override
 接收到WM_SETFOCUS时调用该函数
 
virtual bool OnKillFocus (HWND hNextFocus) override
 接收到WM_KILLFOCUS时调用该函数
 
virtual bool OnChar (wchar_t ch, KeyFlags flags) override
 接收到WM_CHAR时调用该函数
 
virtual bool OnKeyDown (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYDOWN时调用该函数
 
virtual bool OnKeyUp (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYUP时调用该函数
 
virtual bool OnMouseMove (Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEMOVE时调用该函数
 
virtual bool OnMouseLeave () override
 接收到WM_MOUSELEAVE时调用该函数
 
virtual bool OnMouseWheel (int wheelDelta, Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEWHEEL时调用该函数
 
virtual bool OnMouseLeftButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONDOWN时调用该函数
 
virtual bool OnMouseLeftButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONUP时调用该函数
 
virtual bool OnMouseRightButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONDOWN时调用该函数
 
virtual bool OnMouseRightButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONUP时调用该函数
 
virtual bool OnMouseMiddleButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONDOWN时调用该函数
 
virtual bool OnMouseMiddleButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONUP时调用该函数
 
virtual bool OnContextMenu (bool isKeyboardMsg, Point mousePosition) override
 接收到WM_CONTEXTMENU后调用目标控件的该函数
 
virtual void OnMenuCommand (int id) override
 当WM_COMMAND接收到菜单命令时调用该函数
 
virtual bool OnColor (HDC hdc, HBRUSH &hRetBrush) override
 父窗口接收到WM_CTLCOLORxxx时调用对应控件的该函数
 
virtual bool OnSetCursor (HWND hwnd, HitTestResult hitTest, int message, bool &result) override
 接收到WM_SETCURSOR消息时调用该函数
 
- Protected Member Functions inherited from sw::WndBase
WndBase ()
 初始化WndBase
 
WndBase (const WndBase &)=delete
 
WndBase (WndBase &&)=delete
 
+WndBaseoperator= (const WndBase &)=delete
 
+WndBaseoperator= (WndBase &&)=delete
 
+void InitWindow (LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为窗口,该函数会调用CreateWindowExW
 
+void InitControl (LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为控件,该函数会调用CreateWindowExW
 
+LONG_PTR GetStyle ()
 获取窗口样式
 
+void SetStyle (LONG_PTR style)
 设置窗口样式
 
+bool GetStyle (LONG_PTR style)
 获取窗口的某个样式
 
+void SetStyle (LONG_PTR style, bool value)
 设置窗口的某个样式
 
+LONG_PTR GetExtendedStyle ()
 获取扩展窗口样式
 
+void SetExtendedStyle (LONG_PTR style)
 设置扩展窗口样式
 
+bool GetExtendedStyle (LONG_PTR style)
 获取窗口的某个扩展样式
 
+void SetExtendedStyle (LONG_PTR style, bool value)
 设置窗口的某个扩展样式
 
+HFONT GetFontHandle ()
 获取字体句柄
 
+LRESULT DefaultWndProc (const ProcMsg &refMsg)
 调用默认的WndProc,对于窗口则调用DefWindowProcW,控件则调用_controlOldWndProc
 
virtual LRESULT WndProc (const ProcMsg &refMsg)
 对WndProc的封装
 
+void UpdateText ()
 更新_text字段
 
virtual std::wstring & GetText ()
 获取窗口文本
 
virtual void SetText (const std::wstring &value)
 调用SetWindowTextW设置窗口文本
 
virtual bool OnCreate ()
 接收到WM_CREATE时调用该函数
 
virtual bool OnDestroy ()
 接收到WM_DESTROY时调用该函数
 
virtual bool OnMouseLeftButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_LBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseRightButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_RBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseMiddleButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_MBUTTONDBLCLK时调用该函数
 
virtual bool OnDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_DEADCHAR时调用该函数
 
virtual bool OnSysChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSCHAR时调用该函数
 
virtual bool OnSysDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSDEADCHAR时调用该函数
 
virtual bool OnSysKeyDown (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYDOWN时调用该函数
 
virtual bool OnSysKeyUp (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYUP时调用该函数
 
virtual void OnCommand (int code)
 当父窗口接收到控件的WM_COMMAND时调用该函数
 
virtual void OnControlCommand (WndBase *pControl, int code, int id)
 当WM_COMMAND接收到控件命令时调用该函数
 
virtual void OnAcceleratorCommand (int id)
 当WM_COMMAND接收到快捷键命令时调用该函数
 
virtual void HandleInitialized (HWND hwnd)
 窗口句柄初始化完成
 
virtual void FontChanged (HFONT hfont)
 字体改变时调用该函数
 
virtual bool OnNotify (NMHDR *pNMHDR)
 接收到WM_NOTIFY后调用该函数
 
virtual void OnNotified (NMHDR *pNMHDR)
 父窗口接收到WM_NOTIFY后调用发出通知控件的该函数
 
virtual bool OnEnabledChanged (bool newValue)
 接收到WM_ENABLE时调用该函数
 
virtual bool OnCtlColor (WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)
 接收到WM_CTLCOLORxxx时调用该函数
 
virtual void OnNcHitTest (const Point &testPoint, HitTestResult &result)
 接收到WM_NCHITTEST后调用该函数
 
virtual bool OnEraseBackground (int &result)
 接收到WM_ERASEBKGND时调用该函数
 
virtual bool OnDrawItem (int id, DRAWITEMSTRUCT *pDrawItem)
 接收到WM_DRAWITEM时调用该函数
 
- Protected Member Functions inherited from sw::Layer
Layer ()
 初始化Layer
 
+void UpdateLayout ()
 更新布局
 
virtual void OnScroll (ScrollOrientation scrollbar, ScrollEvent event, double pos)
 触发滚动条相关事件时调用该函数
 
+

Detailed Description

+

停靠面板

+

Member Function Documentation

+ +

◆ GetDefaultLayout()

+ +
+
+ + + + + +
+ + + + + + + +
virtual LayoutHost * sw::DockPanel::GetDefaultLayout ()
+
+overrideprotectedvirtual
+
+ +

获取默认布局对象

+ +

Reimplemented from sw::Layer.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_dock_panel.js b/docs/classsw_1_1_dock_panel.js new file mode 100644 index 00000000..141ae14b --- /dev/null +++ b/docs/classsw_1_1_dock_panel.js @@ -0,0 +1,6 @@ +var classsw_1_1_dock_panel = +[ + [ "DockPanel", "classsw_1_1_dock_panel.html#a8c9ce34641a342dc14c8bae2d49e3c08", null ], + [ "GetDefaultLayout", "classsw_1_1_dock_panel.html#ae788d750c9da6ebb61d28d0bf948eaa7", null ], + [ "LastChildFill", "classsw_1_1_dock_panel.html#aa3f8617a879fb8c536799beae2ad2a31", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_dock_panel.png b/docs/classsw_1_1_dock_panel.png new file mode 100644 index 0000000000000000000000000000000000000000..427549a70eb7e5985200ba5d290721a1f47f7b24 GIT binary patch literal 3290 zcmd5cH8M6duQ_Hob%nB zbMNo`&bc>d_lN9RylB-TD=VwTfqQp_Sy{~|SXs?;S@<5XY(cP{;A{2%eFp=~W-}1S zCpD?GI~5og=i@8s?c<}Pqri?v!pp$BKb!~)Iba3!x#2OtsMpHM?pWY1|AQIxlu||h zL*WYRu6t>JM61kqZC%{8#~qzxEAdGhYc#SkdU#Qzf%=^@J0?9{%9q|(&y?g{9Li}=P^(iu z;)zHXdo-a@I`i%JmqH@aYPW%zwbtQL3S-~KzIha^N) zQ+m@}T3>RWS7$tUgdnYqh<|E|8ux$y7Ay!g{rku>G(A$wm z z>fx9#zhj|_TsOz8nOT;&J>>D}97kKmCe%1R>FVKMrL3j3%5bMdqZ!`oMiv=$jpBr6 z{NnOsx5qf?kQp;1<7As zQ)t72mI*7K*dQ!mO0}3gTQ!f__HyN;TRumkDwLtlOq6I!WSQ-@sxv7&Qq~YG z6Kk_>3(dpmU~<=Z8jsr2|LlUGEM=gChObjU-}E=N)|gR3+vdzRsCxuuwsTQ&5%QSC zCWYEAH+wnf(`I63$a8I8R7WY>GoVH)itmeAJ`5$FAt?6wjEp&zr?Nz>=Fc%Fw>mJ}aWB(k?esUl((`n{3iUj+yC z7v>bcqAw>C*{z9&HdoKw+|#;CLstiCSgDOlgi>Za1JM*aq9PCusND()nrR%5ZUFy2lE>~_J}R0zlu*j6W$vA;&jwoib$NR zpDbX4n8ARoe1Ga+7tFp@xOe|g6;)445sSFWb{G_44`w=?1se7+p8!GE%fJJ%bnDj@ z+wa#jaeX!!SyFKbl63GkraP1oXknG`No90gns@?r6Z~evwsN4QzJuGh zgK_V3m=fmIeh8tXO2fGH0qORJD-P7)lMv*!em}Q-$DtH*+=~8X{TR8Byr+t!Gu1E} zACND0*PXMMH*|hCz_`nfL zu47hhEM?qgwxTmHNXefyrgGqkj+m_sd&0}MRzXfV0rWKA_9-HAD|VPC_Y{}%id>7h zwC#rW05vX6q0i9k3V!@B29hv4|Ke5!=iIYJf%A*wLkM7uEGC=mc}Tsqrko zEWCOE)E;Pzn>@z9xoM%_Yvm0Wf1Q%%y^fXyKFkfHB9!^^QkVTCn|be*6Mm!66%97B zX5q|n(B(g=ble4;{plTNT~&;=9UK_m6S6s~Box`Oid1Jh0BI0DfzwezSZZJ}E6P)% zR|pu$#lA<$-3cngE9tXdyD#zFU?Le^rtR?cN zO<5$HQ_@U9?64$$kcX7jO(r-X6m@k`rQ_Xdf}&vuhbdr4vC)Ii;&>tCUH{u8+o9}TJ3LGZcTwwS& z@2_;Uwz~ubzn=@1H2V4ZRc*Ak&a=$Lv__w_nb%SVQ0=HZ_RP^bFW=(9`IkNX+~@CO z@uOKTYa2#euyb|2)Z+E>JDX6Vy^8S=MDzX}to(#zlEMsgU6?VMgmm=u@pqhyM4kpJ zkMqatz}+O0Wb?d?K+l(w+|$XG1DcuIvu#nJR6t@VNT2q`0#7VXZLCei0Ty)n;N4WD zI^`fC45x!(ZJ6snV$isLgrXdhOg?fe0BhLTxdMqh=RQk`;{e z#J?Hv6Kp>JKW6Y9SHFJYf0m}6H}(Omo=6W0L4O?Fx*a{6cFP~)AeV8=}Z6@+(IFGL-oan4RnV8B&iNX zRp-y#BJcuIB9Ez1U~N+?ka91 + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::FillLayout Member List
+
+
+ +

This is the complete list of members for sw::FillLayout, including all inherited members.

+ + + + + + + + + + + +
Arrange(const Rect &finalPosition) overridesw::LayoutHostvirtual
ArrangeOverride(Size &finalSize) overridesw::FillLayoutvirtual
Associate(ILayout *obj)sw::LayoutHost
GetChildLayoutAt(int index) overridesw::LayoutHostvirtual
GetChildLayoutCount() overridesw::LayoutHostvirtual
GetDesireSize() overridesw::LayoutHostvirtual
GetLayoutTag() overridesw::LayoutHostvirtual
Measure(const Size &availableSize) overridesw::LayoutHostvirtual
MeasureOverride(Size &availableSize) overridesw::FillLayoutvirtual
SetDesireSize(const Size &size) overridesw::LayoutHostvirtual
+
+ + + + diff --git a/docs/classsw_1_1_fill_layout.html b/docs/classsw_1_1_fill_layout.html new file mode 100644 index 00000000..0d2256c4 --- /dev/null +++ b/docs/classsw_1_1_fill_layout.html @@ -0,0 +1,224 @@ + + + + + + + +SimpleWindow: sw::FillLayout Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
sw::FillLayout Class Reference
+
+
+ +

一种将全部元素都铺满的布局,一般用于在只有一个子元素的时候将该元素铺满整个可用区域 + More...

+ +

#include <FillLayout.h>

+
+Inheritance diagram for sw::FillLayout:
+
+
+ + +sw::LayoutHost +sw::ILayout + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

virtual void MeasureOverride (Size &availableSize) override
 计算所需尺寸
 
virtual void ArrangeOverride (Size &finalSize) override
 安排控件
 
- Public Member Functions inherited from sw::LayoutHost
void Associate (ILayout *obj)
 设置关联的对象,每个LayoutHost只能关联一个对象
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取关联对象子控件的数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取关联对象对应索引处的子控件
 
virtual Size GetDesireSize () override
 获取关联对象所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置关联对象所需的尺寸
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const Rect &finalPosition) override
 安排控件位置
 
+

Detailed Description

+

一种将全部元素都铺满的布局,一般用于在只有一个子元素的时候将该元素铺满整个可用区域

+

Member Function Documentation

+ +

◆ ArrangeOverride()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::FillLayout::ArrangeOverride (Size & finalSize)
+
+overridevirtual
+
+ +

安排控件

+ +

Implements sw::LayoutHost.

+ +
+
+ +

◆ MeasureOverride()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::FillLayout::MeasureOverride (Size & availableSize)
+
+overridevirtual
+
+ +

计算所需尺寸

+ +

Implements sw::LayoutHost.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_fill_layout.js b/docs/classsw_1_1_fill_layout.js new file mode 100644 index 00000000..f4d27e50 --- /dev/null +++ b/docs/classsw_1_1_fill_layout.js @@ -0,0 +1,5 @@ +var classsw_1_1_fill_layout = +[ + [ "ArrangeOverride", "classsw_1_1_fill_layout.html#aa748a6d627a02ae1373ca987ea16fbd4", null ], + [ "MeasureOverride", "classsw_1_1_fill_layout.html#a5ef072479f4f0019c1b58427f1c36098", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_fill_layout.png b/docs/classsw_1_1_fill_layout.png new file mode 100644 index 0000000000000000000000000000000000000000..9ea08f863485c256e9cf81694f24c749f913b4e0 GIT binary patch literal 691 zcmeAS@N?(olHy`uVBq!ia0vp^2|(Pz!3-qz1Ld9qDd_;85ZC|z{{xvX-h3_XKeXJ! zK(jz%`k5CG9y|bwo1P6@0+iz{3GxeO0P?}WoN4wI1_mZOPZ!6K3dXl{Ur$=2z|%5& z*{M^%?LQW>Jbg6b;Krh|(`Uu@E}rmYvf3|c!($nmE|a!QX7&iW`kt{Rcfyio#V5`) zIIY{Znz`kA73Yd~mrPF@-DBJq6?!esR{i~kw{?a6Bgq5zq*PWLZd>8+f9*|e@QaHnE&zie02}_w&WP-8er6`m zS5eMEA@Z}||5sLcav`=fs6uzz)mQIIV;M44r+Q6i-7s~%(CYNt%iZnS7tDNB9^fv! zd+oNhjF;j!8*Rv7vG}CD{Ft?c*VpzrvA2A69eay~8z#E`6|83ox&5n#Ei-;O*Usdk z^-qG_*Q=bkt#|6H-oBHM``5pnYM!zE3`ZmuFJyQyNsM8`6w`#r z9?okGTleW6l=;x0R|JejAYOqD|7va!aM~c!)X_0lMnP%OD{+P({f?Hbj*g5~PHGHi zpZYq~U2-n{kjZ{~pI1fc^mX?cw!P6>xArMN8`yHC5T&yzVzoBErDAIlE zhzck=mNH3cKi7TL|HCRFf67MJ+C!WhtuQ{=w_s0*# n59habbS!gcaN;-^@SowzisYu}c@j0igTe~DWM4fK&dkq literal 0 HcmV?d00001 diff --git a/docs/classsw_1_1_font-members.html b/docs/classsw_1_1_font-members.html new file mode 100644 index 00000000..817e4c76 --- /dev/null +++ b/docs/classsw_1_1_font-members.html @@ -0,0 +1,131 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::Font Member List
+
+
+ +

This is the complete list of members for sw::Font, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + +
charSetsw::Font
clipPrecisionsw::Font
CreateHandle()sw::Font
escapementsw::Font
familysw::Font
Font() (defined in sw::Font)sw::Font
Font(const std::wstring &name, FontCharSet charSet) (defined in sw::Font)sw::Font
Font(const std::wstring &name, double size=12, FontWeight weight=FontWeight::DontCare) (defined in sw::Font)sw::Font
Font(const LOGFONTW &logFont) (defined in sw::Font)sw::Font
GetDefaultFont(bool update=false)sw::Fontstatic
GetFont(HFONT hFont)sw::Fontstatic
italicsw::Font
namesw::Font
operator LOGFONTW() const (defined in sw::Font)sw::Font
orientationsw::Font
outPrecisionsw::Font
pitchsw::Font
qualitysw::Font
sizesw::Font
strikeOutsw::Font
underlinesw::Font
weightsw::Font
+
+ + + + diff --git a/docs/classsw_1_1_font.html b/docs/classsw_1_1_font.html new file mode 100644 index 00000000..66e3c11f --- /dev/null +++ b/docs/classsw_1_1_font.html @@ -0,0 +1,263 @@ + + + + + + + +SimpleWindow: sw::Font Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+ +

字体类 + More...

+ +

#include <Font.h>

+ + + + + + + + + + + + + +

+Public Member Functions

Font (const std::wstring &name, FontCharSet charSet)
 
Font (const std::wstring &name, double size=12, FontWeight weight=FontWeight::DontCare)
 
Font (const LOGFONTW &logFont)
 
operator LOGFONTW () const
 
+HFONT CreateHandle ()
 创建HFONT句柄
 
+ + + + + + + +

+Static Public Member Functions

+static Font GetFont (HFONT hFont)
 通过HFONT获取字体信息
 
static FontGetDefaultFont (bool update=false)
 获取默认字体,可修改返回的引用来更改控件的默认字体,当首次调用或参数update为true时会获取系统默认字体(已创建的控件字体不会因此改变)
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Attributes

+std::wstring name = L""
 字体的字体名称,此字符串的长度不能超过 32
 
+double size = 12
 字体大小,以dip为单位
 
+int escapement = 0
 转义向量与设备的 x 轴之间的角度(以十分之一度为单位)
 
+int orientation = 0
 每个字符的基线和设备 x 轴之间的角度(以十分之一度为单位)
 
+FontWeight weight = FontWeight::DontCare
 字体的粗细,范围为 0 到 1000
 
+bool italic = false
 是否为斜体
 
+bool underline = false
 是否有下划线
 
+bool strikeOut = false
 是否有删除线
 
+FontCharSet charSet = FontCharSet::Default
 字符集
 
+FontOutPrecision outPrecision = FontOutPrecision::Default
 输出精度
 
+FontClipPrecision clipPrecision = FontClipPrecision::DefaultPrecis
 裁剪精度
 
+FontQuality quality = FontQuality::Default
 输出质量
 
FontPitch pitch = FontPitch::Default
 字体的间距和系列
 
+FontFamily family = FontFamily::DontCare
 字体系列
 
+

Detailed Description

+

字体类

+

Member Function Documentation

+ +

◆ GetDefaultFont()

+ +
+
+ + + + + +
+ + + + + + + +
static Font & sw::Font::GetDefaultFont (bool update = false)
+
+static
+
+ +

获取默认字体,可修改返回的引用来更改控件的默认字体,当首次调用或参数update为true时会获取系统默认字体(已创建的控件字体不会因此改变)

+
Parameters
+ + +
update是否重新获取
+
+
+
Returns
返回默认字体
+ +
+
+

Member Data Documentation

+ +

◆ pitch

+ +
+
+ + + + +
FontPitch sw::Font::pitch = FontPitch::Default
+
+ +

字体的间距和系列

+

字体的间距

+ +
+
+
The documentation for this class was generated from the following file:
    +
  • D:/code/GitHub/sw/sw/inc/Font.h
  • +
+
+
+ + + + diff --git a/docs/classsw_1_1_font.js b/docs/classsw_1_1_font.js new file mode 100644 index 00000000..82a4f1f6 --- /dev/null +++ b/docs/classsw_1_1_font.js @@ -0,0 +1,18 @@ +var classsw_1_1_font = +[ + [ "CreateHandle", "classsw_1_1_font.html#ac38911636974d3f67e7ece35cfc8172e", null ], + [ "charSet", "classsw_1_1_font.html#ac2b4f997e58b3dcadcaf95e0452599c6", null ], + [ "clipPrecision", "classsw_1_1_font.html#a17830a6ab96c792ea5c31f1dc4eb6b9b", null ], + [ "escapement", "classsw_1_1_font.html#a6c870ded0829330446de69e8c0994a1e", null ], + [ "family", "classsw_1_1_font.html#a032ab2f362cc53c16c5384f38c1d4888", null ], + [ "italic", "classsw_1_1_font.html#aa7ea90de17d56a063c395cf015baf11f", null ], + [ "name", "classsw_1_1_font.html#a169e7893a4b799bcb3424c5df0d5f54d", null ], + [ "orientation", "classsw_1_1_font.html#af31ac58928f6e0d9d9c90a95f54fd7de", null ], + [ "outPrecision", "classsw_1_1_font.html#aa223c3578a59a96149bd4ef989825e08", null ], + [ "pitch", "classsw_1_1_font.html#ae48df531042cb4d94440eadbe61d532b", null ], + [ "quality", "classsw_1_1_font.html#a7098cf91f8c7867df123ef6625fa5831", null ], + [ "size", "classsw_1_1_font.html#aad5569847e5d52c155fe3c1a049324f3", null ], + [ "strikeOut", "classsw_1_1_font.html#a14ae471a9508e23aad832f3060bbcb85", null ], + [ "underline", "classsw_1_1_font.html#a516d900b06bcd74900eccd55b59bdcba", null ], + [ "weight", "classsw_1_1_font.html#aa5126e73aad9ba2fd6aab826bac16a5c", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_grid-members.html b/docs/classsw_1_1_grid-members.html new file mode 100644 index 00000000..32f28723 --- /dev/null +++ b/docs/classsw_1_1_grid-members.html @@ -0,0 +1,331 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::Grid Member List
+
+
+ +

This is the complete list of members for sw::Grid, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AddChild(UIElement *element)sw::UIElement
AddChild(UIElement &element)sw::UIElement
AddChild(UIElement *element, uint64_t layoutTag)sw::UIElement
AddChild(UIElement &element, uint64_t layoutTag)sw::UIElement
AddColumn(const GridColumn &col)sw::Grid
AddRow(const GridRow &row)sw::Grid
Arrange(const sw::Rect &finalPosition) overridesw::PanelBasevirtual
AutoSizesw::Layer
BackColorsw::UIElement
BorderStylesw::Panel
ChildCountsw::UIElement
ClearChildren()sw::UIElement
ClearColumns()sw::Grid
ClearRows()sw::Grid
ClientHeightsw::WndBase
ClientRectsw::WndBase
ClientWidthsw::WndBase
Close()sw::WndBase
CollapseWhenHidesw::UIElement
ContextMenusw::UIElement
Control()sw::Controlprotected
DefaultWndProc(const ProcMsg &refMsg)sw::WndBaseprotected
DisableLayout()sw::Layer
Enabledsw::WndBase
EnableLayout()sw::Layer
Floatsw::UIElement
Focusedsw::WndBase
Fontsw::WndBase
FontChanged(HFONT hfont)sw::WndBaseprotectedvirtual
FontNamesw::WndBase
FontSizesw::WndBase
FontWeightsw::WndBase
GetArrangeOffsetX()sw::UIElementprotected
GetArrangeOffsetY()sw::UIElementprotected
GetChildBottommost(bool update)sw::UIElementprotected
GetChildLayoutAt(int index) overridesw::UIElementvirtual
GetChildLayoutCount() overridesw::UIElementvirtual
GetChildRightmost(bool update)sw::UIElementprotected
GetDefaultLayout() overridesw::Gridprotectedvirtual
GetDesireSize() overridesw::UIElementvirtual
GetExtendedStyle()sw::WndBaseprotected
GetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
GetFontHandle()sw::WndBaseprotected
GetGridLayoutTag(UIElement &element)sw::Gridstatic
GetHorizontalScrollPageSize()sw::Layer
GetHorizontalScrollRange(double &refMin, double &refMax)sw::Layer
GetLayoutTag() overridesw::UIElementvirtual
GetNextElement()sw::UIElement
GetNextTabStopElement()sw::UIElement
GetRealBackColor()sw::UIElement
GetRealTextColor()sw::UIElement
GetRootElement()sw::UIElement
GetStyle()sw::WndBaseprotected
GetStyle(LONG_PTR style)sw::WndBaseprotected
GetTag() overridesw::UIElementvirtual
GetText()sw::WndBaseprotectedvirtual
GetVerticalScrollPageSize()sw::Layer
GetVerticalScrollRange(double &refMin, double &refMax)sw::Layer
GetWndBase(HWND hwnd)sw::WndBasestatic
Grid()sw::Grid
Handlesw::WndBase
HandleChenged()sw::Controlprotectedvirtual
HandleInitialized(HWND hwnd)sw::WndBaseprotectedvirtual
Heightsw::WndBase
HorizontalAlignmentsw::UIElement
HorizontalScrollBarsw::Layer
HorizontalScrollLimitsw::Layer
HorizontalScrollPossw::Layer
IndexOf(UIElement *element)sw::UIElement
IndexOf(UIElement &element)sw::UIElement
InheritTextColorsw::UIElement
InitControl(LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
InitWindow(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
IsControl()sw::WndBase
IsDestroyedsw::WndBase
IsRootElement()sw::UIElement
IsRoutedEventRegistered(RoutedEventType eventType)sw::UIElement
IsVisible()sw::WndBase
Layer()sw::Layerprotected
Layoutsw::Layer
LayoutTagsw::UIElement
Leftsw::WndBase
Marginsw::UIElement
Measure(const Size &availableSize) overridesw::PanelBasevirtual
MoveToBottom()sw::UIElement
MoveToTop()sw::UIElement
NcHitTest(const Point &testPoint)sw::WndBase
NotifyLayoutUpdated()sw::UIElementprotected
OnAcceleratorCommand(int id)sw::WndBaseprotectedvirtual
OnAddedChild(UIElement &element)sw::UIElementprotectedvirtual
OnChar(wchar_t ch, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnClose() overridesw::UIElementprotectedvirtual
OnColor(HDC hdc, HBRUSH &hRetBrush) overridesw::UIElementprotectedvirtual
OnCommand(int code)sw::WndBaseprotectedvirtual
OnContextMenu(bool isKeyboardMsg, Point mousePosition) overridesw::UIElementprotectedvirtual
OnControlCommand(WndBase *pControl, int code, int id)sw::WndBaseprotectedvirtual
OnCreate()sw::WndBaseprotectedvirtual
OnCtlColor(WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)sw::WndBaseprotectedvirtual
OnDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnDestroy()sw::WndBaseprotectedvirtual
OnDrawFocusRect()sw::UIElementprotectedvirtual
OnDrawItem(int id, DRAWITEMSTRUCT *pDrawItem)sw::WndBaseprotectedvirtual
OnEnabledChanged(bool newValue)sw::WndBaseprotectedvirtual
OnEndPaint() overridesw::UIElementprotectedvirtual
OnEraseBackground(int &result)sw::WndBaseprotectedvirtual
OnHorizontalScroll(int event, int pos) overridesw::PanelBaseprotectedvirtual
OnKeyDown(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKeyUp(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKillFocus(HWND hNextFocus) overridesw::UIElementprotectedvirtual
OnMenuCommand(int id) overridesw::UIElementprotectedvirtual
OnMouseLeave() overridesw::UIElementprotectedvirtual
OnMouseLeftButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseLeftButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseMiddleButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMove(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseRightButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseWheel(int wheelDelta, Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMove(Point newClientPosition) overridesw::UIElementprotectedvirtual
OnNcHitTest(const Point &testPoint, HitTestResult &result)sw::WndBaseprotectedvirtual
OnNotified(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnNotify(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnPaint() overridesw::Panelprotectedvirtual
OnRemovedChild(UIElement &element)sw::UIElementprotectedvirtual
OnScroll(ScrollOrientation scrollbar, ScrollEvent event, double pos)sw::Layerprotectedvirtual
OnSetCursor(HWND hwnd, HitTestResult hitTest, int message, bool &result) overridesw::UIElementprotectedvirtual
OnSetFocus(HWND hPrevFocus) overridesw::UIElementprotectedvirtual
OnSize(Size newClientSize) overridesw::Panelprotectedvirtual
OnSysChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyDown(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyUp(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnTabStop()sw::UIElementprotectedvirtual
OnTextChanged() overridesw::UIElementprotectedvirtual
OnVerticalScroll(int event, int pos) overridesw::PanelBaseprotectedvirtual
operator=(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator=(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator[](int index) constsw::UIElement
Panel()sw::Panel
PanelBase()sw::PanelBaseprotected
Parentsw::UIElement
ParentChanged(WndBase *newParent) overridesw::UIElementprotectedvirtual
PointFromScreen(const Point &screenPoint)sw::WndBase
PointToScreen(const Point &point)sw::WndBase
RaiseRoutedEvent(RoutedEventType eventType)sw::UIElementprotected
RaiseRoutedEvent(RoutedEventArgs &eventArgs)sw::UIElementprotected
Rectsw::WndBase
Redraw(bool erase=false)sw::WndBase
RegisterRoutedEvent(RoutedEventType eventType, const RoutedEvent &handler)sw::UIElement
RegisterRoutedEvent(RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))sw::UIElementinline
RegisterRoutedEvent(std::function< void(UIElement &, TEventArgs &)> handler)sw::UIElementinline
RegisterRoutedEvent(THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))sw::UIElementinline
RemoveChild(UIElement *element)sw::UIElement
RemoveChild(UIElement &element)sw::UIElement
RemoveChildAt(int index)sw::UIElement
ResetCursor()sw::UIElement
ResetHandle()sw::Controlprotected
ScrollHorizontal(double offset)sw::Layer
ScrollToBottom()sw::Layer
ScrollToLeft()sw::Layer
ScrollToRight()sw::Layer
ScrollToTop()sw::Layer
ScrollVertical(double offset)sw::Layer
SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase
SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement
SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual
SetColumns(std::initializer_list< GridColumn > cols)sw::Grid
SetCursor(HCURSOR hCursor)sw::UIElement
SetCursor(StandardCursor cursor)sw::UIElement
SetDesireSize(const Size &size) overridesw::UIElementvirtual
SetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
SetExtendedStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetGridLayoutTag(UIElement &element, const GridLayoutTag &tag)sw::Gridstatic
SetHorizontalScrollPageSize(double pageSize)sw::Layer
SetHorizontalScrollRange(double min, double max)sw::Layer
SetNextTabStopFocus()sw::UIElementprotected
SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual
SetRows(std::initializer_list< GridRow > rows)sw::Grid
SetStyle(LONG_PTR style)sw::WndBaseprotected
SetStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetTag(uint64_t tag) overridesw::UIElementvirtual
SetText(const std::wstring &value)sw::WndBaseprotectedvirtual
SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual
SetVerticalScrollPageSize(double pageSize)sw::Layer
SetVerticalScrollRange(double min, double max)sw::Layer
Show(int nCmdShow)sw::WndBase
ShowContextMenu(const Point &point)sw::UIElement
TabStopsw::UIElement
Tagsw::UIElement
Textsw::WndBase
TextColorsw::UIElement
Topsw::WndBase
Transparentsw::UIElement
UIElement()sw::UIElementprotected
UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement
Update()sw::WndBase
UpdateChildrenZOrder()sw::UIElementprotected
UpdateFont()sw::WndBase
UpdateLayout()sw::Layerprotected
UpdateScrollRange()sw::Layer
UpdateSiblingsZOrder()sw::UIElementprotected
UpdateText()sw::WndBaseprotected
VerticalAlignmentsw::UIElement
VerticalScrollBarsw::Layer
VerticalScrollLimitsw::Layer
VerticalScrollPossw::Layer
Visiblesw::WndBase
VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual
Widthsw::WndBase
WndBase()sw::WndBaseprotected
WndBase(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndBase(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual
~Control()=0sw::Controlpure virtual
~Layer()=0sw::Layerpure virtual
~PanelBase()=0sw::PanelBasepure virtual
~UIElement()=0sw::UIElementpure virtual
~WndBase()=0sw::WndBasepure virtual
+
+ + + + diff --git a/docs/classsw_1_1_grid.html b/docs/classsw_1_1_grid.html new file mode 100644 index 00000000..ec62f65f --- /dev/null +++ b/docs/classsw_1_1_grid.html @@ -0,0 +1,989 @@ + + + + + + + +SimpleWindow: sw::Grid Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+ +

由列和行组成的灵活的网格区域 + More...

+ +

#include <Grid.h>

+
+Inheritance diagram for sw::Grid:
+
+
+ + +sw::Panel +sw::PanelBase +sw::Control +sw::Layer +sw::UIElement +sw::UIElement +sw::WndBase +sw::ILayout +sw::ITag +sw::WndBase +sw::ILayout +sw::ITag + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

Grid ()
 初始化Grid
 
+void AddRow (const GridRow &row)
 添加行
 
+void SetRows (std::initializer_list< GridRow > rows)
 设置行信息
 
+void AddColumn (const GridColumn &col)
 添加列
 
+void SetColumns (std::initializer_list< GridColumn > cols)
 设置列信息
 
+void ClearRows ()
 清空行
 
+void ClearColumns ()
 清空列
 
- Public Member Functions inherited from sw::Panel
Panel ()
 初始化面板
 
- Public Member Functions inherited from sw::PanelBase
+virtual ~PanelBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const sw::Rect &finalPosition) override
 安排控件位置
 
- Public Member Functions inherited from sw::Control
+virtual ~Control ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
- Public Member Functions inherited from sw::UIElement
+virtual ~UIElement ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
void RegisterRoutedEvent (RoutedEventType eventType, const RoutedEvent &handler)
 注册路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename T >
void RegisterRoutedEvent (RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))
 注册成员函数作为路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename TEventArgs , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (std::function< void(UIElement &, TEventArgs &)> handler)
 根据事件参数类型注册路由事件
 
template<typename TEventArgs , typename THandleObj , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))
 根据事件参数类型注册成员函数作为路由事件
 
void UnregisterRoutedEvent (RoutedEventType eventType)
 取消对应类型路由事件的注册
 
bool IsRoutedEventRegistered (RoutedEventType eventType)
 判断路由事件是否已被注册
 
bool AddChild (UIElement *element)
 添加子控件
 
bool AddChild (UIElement &element)
 添加子控件
 
bool AddChild (UIElement *element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool AddChild (UIElement &element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool RemoveChildAt (int index)
 移除指定索引处的子控件
 
bool RemoveChild (UIElement *element)
 移除子控件
 
bool RemoveChild (UIElement &element)
 移除子控件
 
+void ClearChildren ()
 移除所有子控件
 
int IndexOf (UIElement *element)
 获取指定元素的索引
 
int IndexOf (UIElement &element)
 获取指定元素的索引
 
+UIElementoperator[] (int index) const
 通过索引获取子控件
 
void ShowContextMenu (const Point &point)
 弹出当前元素的上下文菜单
 
+void MoveToTop ()
 移动到界面顶部
 
+void MoveToBottom ()
 移动到界面底部
 
+bool IsRootElement ()
 判断当前元素是否为根节点
 
+UIElementGetRootElement ()
 获取当前元素所在界面树的根节点
 
+UIElementGetNextElement ()
 获取当前元素在界面树上的下一个节点,若已是最后一个节点则返回根节点
 
+UIElementGetNextTabStopElement ()
 获取下一个TabStop属性为true的元素
 
+Color GetRealBackColor ()
 获取当前要显示的背景颜色:当Transparent为true时获取到祖先节点中首个Transparent为false的背景颜色,否则返回当前元素的背景颜色
 
+Color GetRealTextColor ()
 获取当前要显示的文本颜色:当InheritTextColor为true时获取到祖先节点中首个InheritTextColor为false的文本颜色,否则返回当前元素的文本颜色
 
void SetCursor (HCURSOR hCursor)
 设置鼠标样式
 
void SetCursor (StandardCursor cursor)
 设置鼠标样式
 
+void ResetCursor ()
 将鼠标样式设置为默认样式
 
void SetAlignment (sw::HorizontalAlignment horz, sw::VerticalAlignment vert)
 设置对齐方式
 
virtual uint64_t GetTag () override
 获取Tag
 
virtual void SetTag (uint64_t tag) override
 设置Tag
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取参与布局的子控件数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取对应索引处的子控件,使用此函数前必须先调用GetChildLayoutCount
 
virtual Size GetDesireSize () override
 获取控件所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置当前控件所需的尺寸
 
- Public Member Functions inherited from sw::WndBase
+virtual ~WndBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void Show (int nCmdShow)
 该函数调用ShowWindow
 
+void Close ()
 发送关闭消息
 
+void Update ()
 该函数调用UpdateWindow
 
+void UpdateFont ()
 更新字体
 
void Redraw (bool erase=false)
 重画
 
+bool IsControl ()
 判断当前对象是否是控件
 
+bool IsVisible ()
 判断当前对象在界面中是否可视,与Visible属性不同的是该函数返回值会受父窗口的影响
 
Point PointToScreen (const Point &point)
 获取用户区点在屏幕上点的位置
 
Point PointFromScreen (const Point &screenPoint)
 获取屏幕上点在当前用户区点的位置
 
+LRESULT SendMessageW (UINT uMsg, WPARAM wParam, LPARAM lParam)
 发送消息
 
HitTestResult NcHitTest (const Point &testPoint)
 测试指定点在窗口的哪一部分
 
- Public Member Functions inherited from sw::Layer
+virtual ~Layer ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void DisableLayout ()
 禁用布局
 
+void EnableLayout ()
 启用布局
 
void GetHorizontalScrollRange (double &refMin, double &refMax)
 获取横向滚动条的范围
 
void GetVerticalScrollRange (double &refMin, double &refMax)
 获取纵向滚动条的范围
 
void SetHorizontalScrollRange (double min, double max)
 设置横向滚动条的范围
 
void SetVerticalScrollRange (double min, double max)
 设置纵向滚动条的范围
 
+double GetHorizontalScrollPageSize ()
 获取水平滚动条滚动页面大小
 
+double GetVerticalScrollPageSize ()
 获取垂直滚动条滚动页面大小
 
+void SetHorizontalScrollPageSize (double pageSize)
 设置水平滚动条滚动页面大小
 
+void SetVerticalScrollPageSize (double pageSize)
 设置垂直滚动条滚动页面大小
 
+void UpdateScrollRange ()
 根据子元素更新滚动条范围,未设定布局方式时该函数无效
 
+void ScrollToTop ()
 将垂直滚动条移动到顶部
 
+void ScrollToBottom ()
 将垂直滚动条移动到底部
 
+void ScrollToLeft ()
 将水平滚动条移动到最左
 
+void ScrollToRight ()
 将水平滚动条移动到最右
 
void ScrollHorizontal (double offset)
 水平滚动
 
void ScrollVertical (double offset)
 垂直滚动
 
+ + + + + + + + + + + +

+Static Public Member Functions

+static GridLayoutTag GetGridLayoutTag (UIElement &element)
 获取指定元素的网格布局标记
 
+static void SetGridLayoutTag (UIElement &element, const GridLayoutTag &tag)
 给指定元素设置网格布局标记
 
- Static Public Member Functions inherited from sw::WndBase
static WndBaseGetWndBase (HWND hwnd)
 通过窗口句柄获取WndBase
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Protected Member Functions

virtual LayoutHostGetDefaultLayout () override
 获取默认布局对象
 
- Protected Member Functions inherited from sw::Panel
virtual bool OnPaint () override
 接收到WM_PAINT时调用该函数
 
virtual bool OnSize (Size newClientSize) override
 接收到WM_SIZE时调用该函数
 
- Protected Member Functions inherited from sw::PanelBase
PanelBase ()
 初始化PanelBase
 
virtual bool OnVerticalScroll (int event, int pos) override
 接收到WM_VSCROLL时调用目标控件的该函数
 
virtual bool OnHorizontalScroll (int event, int pos) override
 接收到WM_HSCROLL时调用目标控件的该函数
 
- Protected Member Functions inherited from sw::Control
Control ()
 初始化控件
 
+void ResetHandle ()
 销毁控件句柄并重新初始化,该操作会创建新的句柄并设置样式、文本、字体等
 
+virtual void HandleChenged ()
 控件句柄发生改变时调用该函数
 
- Protected Member Functions inherited from sw::UIElement
UIElement ()
 初始化UIElement
 
void RaiseRoutedEvent (RoutedEventType eventType)
 触发路由事件
 
void RaiseRoutedEvent (RoutedEventArgs &eventArgs)
 触发路由事件
 
+void NotifyLayoutUpdated ()
 通知顶级窗口布局改变
 
+doubleGetArrangeOffsetX ()
 获取Arrange时子元素的水平偏移量
 
+doubleGetArrangeOffsetY ()
 获取Arrange时子元素的垂直偏移量
 
double GetChildRightmost (bool update)
 获取所有子元素在当前元素中最右边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
double GetChildBottommost (bool update)
 获取所有子元素在当前元素中最底边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
+void UpdateChildrenZOrder ()
 更新子元素的Z轴位置
 
+void UpdateSiblingsZOrder ()
 更新兄弟元素的Z轴位置
 
+void SetNextTabStopFocus ()
 设置下一个TabStop属性为true的元素为焦点元素
 
virtual void SetBackColor (Color color, bool redraw)
 设置背景颜色
 
virtual void SetTextColor (Color color, bool redraw)
 设置文本颜色
 
virtual void OnAddedChild (UIElement &element)
 添加子元素后调用该函数
 
virtual void OnRemovedChild (UIElement &element)
 移除子元素后调用该函数
 
+virtual void OnTabStop ()
 通过tab键将焦点移动到当前元素时调用该函数
 
virtual void OnDrawFocusRect ()
 绘制虚线框时调用该函数
 
virtual bool SetParent (WndBase *parent) override
 设置父窗口
 
virtual void ParentChanged (WndBase *newParent) override
 父窗口改变时调用此函数
 
virtual void OnEndPaint () override
 在OnPaint函数完成之后调用该函数
 
virtual bool OnClose () override
 接收到WM_CLOSE时调用该函数
 
virtual bool OnMove (Point newClientPosition) override
 接收到WM_MOVE时调用该函数
 
virtual void OnTextChanged () override
 Text属性更改时调用此函数
 
virtual void VisibleChanged (bool newVisible) override
 Visible属性改变时调用此函数
 
virtual bool OnSetFocus (HWND hPrevFocus) override
 接收到WM_SETFOCUS时调用该函数
 
virtual bool OnKillFocus (HWND hNextFocus) override
 接收到WM_KILLFOCUS时调用该函数
 
virtual bool OnChar (wchar_t ch, KeyFlags flags) override
 接收到WM_CHAR时调用该函数
 
virtual bool OnKeyDown (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYDOWN时调用该函数
 
virtual bool OnKeyUp (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYUP时调用该函数
 
virtual bool OnMouseMove (Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEMOVE时调用该函数
 
virtual bool OnMouseLeave () override
 接收到WM_MOUSELEAVE时调用该函数
 
virtual bool OnMouseWheel (int wheelDelta, Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEWHEEL时调用该函数
 
virtual bool OnMouseLeftButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONDOWN时调用该函数
 
virtual bool OnMouseLeftButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONUP时调用该函数
 
virtual bool OnMouseRightButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONDOWN时调用该函数
 
virtual bool OnMouseRightButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONUP时调用该函数
 
virtual bool OnMouseMiddleButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONDOWN时调用该函数
 
virtual bool OnMouseMiddleButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONUP时调用该函数
 
virtual bool OnContextMenu (bool isKeyboardMsg, Point mousePosition) override
 接收到WM_CONTEXTMENU后调用目标控件的该函数
 
virtual void OnMenuCommand (int id) override
 当WM_COMMAND接收到菜单命令时调用该函数
 
virtual bool OnColor (HDC hdc, HBRUSH &hRetBrush) override
 父窗口接收到WM_CTLCOLORxxx时调用对应控件的该函数
 
virtual bool OnSetCursor (HWND hwnd, HitTestResult hitTest, int message, bool &result) override
 接收到WM_SETCURSOR消息时调用该函数
 
- Protected Member Functions inherited from sw::WndBase
WndBase ()
 初始化WndBase
 
WndBase (const WndBase &)=delete
 
WndBase (WndBase &&)=delete
 
+WndBaseoperator= (const WndBase &)=delete
 
+WndBaseoperator= (WndBase &&)=delete
 
+void InitWindow (LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为窗口,该函数会调用CreateWindowExW
 
+void InitControl (LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为控件,该函数会调用CreateWindowExW
 
+LONG_PTR GetStyle ()
 获取窗口样式
 
+void SetStyle (LONG_PTR style)
 设置窗口样式
 
+bool GetStyle (LONG_PTR style)
 获取窗口的某个样式
 
+void SetStyle (LONG_PTR style, bool value)
 设置窗口的某个样式
 
+LONG_PTR GetExtendedStyle ()
 获取扩展窗口样式
 
+void SetExtendedStyle (LONG_PTR style)
 设置扩展窗口样式
 
+bool GetExtendedStyle (LONG_PTR style)
 获取窗口的某个扩展样式
 
+void SetExtendedStyle (LONG_PTR style, bool value)
 设置窗口的某个扩展样式
 
+HFONT GetFontHandle ()
 获取字体句柄
 
+LRESULT DefaultWndProc (const ProcMsg &refMsg)
 调用默认的WndProc,对于窗口则调用DefWindowProcW,控件则调用_controlOldWndProc
 
virtual LRESULT WndProc (const ProcMsg &refMsg)
 对WndProc的封装
 
+void UpdateText ()
 更新_text字段
 
virtual std::wstring & GetText ()
 获取窗口文本
 
virtual void SetText (const std::wstring &value)
 调用SetWindowTextW设置窗口文本
 
virtual bool OnCreate ()
 接收到WM_CREATE时调用该函数
 
virtual bool OnDestroy ()
 接收到WM_DESTROY时调用该函数
 
virtual bool OnMouseLeftButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_LBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseRightButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_RBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseMiddleButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_MBUTTONDBLCLK时调用该函数
 
virtual bool OnDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_DEADCHAR时调用该函数
 
virtual bool OnSysChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSCHAR时调用该函数
 
virtual bool OnSysDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSDEADCHAR时调用该函数
 
virtual bool OnSysKeyDown (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYDOWN时调用该函数
 
virtual bool OnSysKeyUp (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYUP时调用该函数
 
virtual void OnCommand (int code)
 当父窗口接收到控件的WM_COMMAND时调用该函数
 
virtual void OnControlCommand (WndBase *pControl, int code, int id)
 当WM_COMMAND接收到控件命令时调用该函数
 
virtual void OnAcceleratorCommand (int id)
 当WM_COMMAND接收到快捷键命令时调用该函数
 
virtual void HandleInitialized (HWND hwnd)
 窗口句柄初始化完成
 
virtual void FontChanged (HFONT hfont)
 字体改变时调用该函数
 
virtual bool OnNotify (NMHDR *pNMHDR)
 接收到WM_NOTIFY后调用该函数
 
virtual void OnNotified (NMHDR *pNMHDR)
 父窗口接收到WM_NOTIFY后调用发出通知控件的该函数
 
virtual bool OnEnabledChanged (bool newValue)
 接收到WM_ENABLE时调用该函数
 
virtual bool OnCtlColor (WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)
 接收到WM_CTLCOLORxxx时调用该函数
 
virtual void OnNcHitTest (const Point &testPoint, HitTestResult &result)
 接收到WM_NCHITTEST后调用该函数
 
virtual bool OnEraseBackground (int &result)
 接收到WM_ERASEBKGND时调用该函数
 
virtual bool OnDrawItem (int id, DRAWITEMSTRUCT *pDrawItem)
 接收到WM_DRAWITEM时调用该函数
 
- Protected Member Functions inherited from sw::Layer
Layer ()
 初始化Layer
 
+void UpdateLayout ()
 更新布局
 
virtual void OnScroll (ScrollOrientation scrollbar, ScrollEvent event, double pos)
 触发滚动条相关事件时调用该函数
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Additional Inherited Members

- Public Attributes inherited from sw::Panel
+const Property< sw::BorderStyle > BorderStyle
 边框样式
 
- Public Attributes inherited from sw::UIElement
+const Property< ThicknessMargin
 边距
 
+const Property< HorizontalAlignment > HorizontalAlignment
 水平对齐方式
 
+const Property< VerticalAlignment > VerticalAlignment
 垂直对齐方式
 
+const ReadOnlyProperty< intChildCount
 子控件数量
 
+const Property< boolCollapseWhenHide
 是否在不可见时不参与布局
 
+const ReadOnlyProperty< UIElement * > Parent
 指向父元素的指针,当前元素为顶级窗口时该值为nullptr
 
+const Property< uint64_tTag
 储存用户自定义信息的标记
 
+const Property< uint64_tLayoutTag
 布局标记,对于不同的布局有不同含义
 
+const Property< sw::ContextMenu * > ContextMenu
 右键按下时弹出的菜单
 
+const Property< boolFloat
 元素是否悬浮,若元素悬浮则该元素不会随滚动条滚动而改变位置
 
+const Property< boolTabStop
 表示用户是否可以通过按下Tab键将焦点移动到当前元素
 
+const Property< ColorBackColor
 背景颜色,修改该属性会同时将Transparent属性设为false,对于部分控件该属性可能不生效
 
+const Property< ColorTextColor
 文本颜色,修改该属性会同时将InheritTextColor属性设为false,对于部分控件该属性可能不生效
 
+const Property< boolTransparent
 是否使用透明背景(此属性并非真正意义上的透明,将该属性设为true可继承父元素的背景颜色)
 
+const Property< boolInheritTextColor
 是否继承父元素的文本颜色
 
- Public Attributes inherited from sw::WndBase
+const ReadOnlyProperty< HWNDHandle
 窗口句柄
 
+const Property< sw::FontFont
 字体
 
+const Property< std::wstring > FontName
 字体名称
 
+const Property< doubleFontSize
 字体大小
 
+const Property< sw::FontWeight > FontWeight
 字体粗细
 
+const Property< sw::RectRect
 位置和尺寸
 
+const Property< doubleLeft
 左边
 
+const Property< doubleTop
 顶边
 
+const Property< doubleWidth
 宽度
 
+const Property< doubleHeight
 高度
 
+const ReadOnlyProperty< sw::RectClientRect
 用户区尺寸
 
+const ReadOnlyProperty< doubleClientWidth
 用户区宽度
 
+const ReadOnlyProperty< doubleClientHeight
 用户区高度
 
+const Property< boolEnabled
 窗口或控件是否可用
 
+const Property< boolVisible
 窗口或控件是否可见
 
+const Property< std::wstring > Text
 窗口标题或控件文本
 
+const Property< boolFocused
 窗口是否拥有焦点
 
+const ReadOnlyProperty< WndBase * > Parent
 父窗口
 
+const ReadOnlyProperty< boolIsDestroyed
 是否已销毁,当该值为true时不应该继续使用当前对象
 
- Public Attributes inherited from sw::Layer
+const Property< LayoutHost * > Layout
 自定义的布局方式,赋值后将自动与所指向的布局关联,每个布局只能关联一个对象,设为nullptr可恢复默认布局
 
+const Property< boolAutoSize
 是否按照布局方式与子元素自动调整尺寸,该属性仅在当前元素已设置布局方式并且非顶级元素时有效
 
+const Property< boolHorizontalScrollBar
 是否显示横向滚动条
 
+const Property< boolVerticalScrollBar
 是否显示纵向滚动条
 
+const Property< doubleHorizontalScrollPos
 横向滚动条位置
 
+const Property< doubleVerticalScrollPos
 纵向滚动条位置
 
+const ReadOnlyProperty< doubleHorizontalScrollLimit
 横向滚动条可设置的最大位置
 
+const ReadOnlyProperty< doubleVerticalScrollLimit
 纵向滚动条可设置的最大位置
 
+

Detailed Description

+

由列和行组成的灵活的网格区域

+

Member Function Documentation

+ +

◆ GetDefaultLayout()

+ +
+
+ + + + + +
+ + + + + + + +
virtual LayoutHost * sw::Grid::GetDefaultLayout ()
+
+overrideprotectedvirtual
+
+ +

获取默认布局对象

+ +

Reimplemented from sw::Layer.

+ +
+
+
The documentation for this class was generated from the following file:
    +
  • D:/code/GitHub/sw/sw/inc/Grid.h
  • +
+
+
+ + + + diff --git a/docs/classsw_1_1_grid.js b/docs/classsw_1_1_grid.js new file mode 100644 index 00000000..ff5052a9 --- /dev/null +++ b/docs/classsw_1_1_grid.js @@ -0,0 +1,11 @@ +var classsw_1_1_grid = +[ + [ "Grid", "classsw_1_1_grid.html#afbb7806a3fabedee2c10c0775076f8bb", null ], + [ "AddColumn", "classsw_1_1_grid.html#ab4dd516b400e34b39674ab220a538da3", null ], + [ "AddRow", "classsw_1_1_grid.html#a4878fb93660714d7f0a70a6a131852a1", null ], + [ "ClearColumns", "classsw_1_1_grid.html#a9889b8f4e5cc9c290c444a25594e9e5a", null ], + [ "ClearRows", "classsw_1_1_grid.html#affdc4e3a683b4577a3f82e2986dd7b2d", null ], + [ "GetDefaultLayout", "classsw_1_1_grid.html#aa7e060ae29483d32a5fdfa8b8cc6420d", null ], + [ "SetColumns", "classsw_1_1_grid.html#ae79bb614d8319f8abfd6018f40c11e73", null ], + [ "SetRows", "classsw_1_1_grid.html#a58863e85b90d1e4253937f46cc30b8aa", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_grid.png b/docs/classsw_1_1_grid.png new file mode 100644 index 0000000000000000000000000000000000000000..6df7fba5b036f29a719162e11865c43753803e61 GIT binary patch literal 3282 zcmdT{4Ny~87Dgnj{8d*mGN_=GvPB`FA}A^;R*E745neE0$di>8tPl$XL@;Pz)s_mP z4m1Ree-M2Eg8T)EfDtX$fW)5&1Vi`{kc1F0BoRZ*zK30Bc6Mev-RbVkzM1!O&b@ce zJ?}f;ckavgdxHF}%x%q$jEt;y?cA}~$jBHpGMeYUU_LzZmuK6~z(33P1cvz;3r{hYT(fLfYb4BE(QcH!P_if_`{Zt7o=w%xYnQSk>^2rTv1t2<{|n` z=+L=gTo_<=J_drk^|xZq0|1cY5(?|${Sr+OvIR$IYP>Dy>oHMZYcuHCn$@*B z7HP1-z(B7i8u+Rw4s6jzY;!$1VQ?&3TRy>jH(Lr#bQY9HRd8p6naT=C_T(A7KTC)w zR8-TsFGXuqg6QR!GOw&@~_JDY+J?n>X^!~@L~@v+#l3KV(lH(&M&bH0}zL!Hx2bI=YFa#RKZs zqV;AKw?O$wi$M0GS8cVmQcV?OF`CWnv|)q0f?27Z?t>t^Cb7d3aj%dXq+=>FAIg$@ zW;SrL^waA(w`?^`mcG+*!aiO9T<6mK{&5X2j;YC$yM{MpXfk^omP7!e4cPjJ5JY;u z=@c7^N}F*rNMa)Jvl6&Sm&6gVnW=c!5PdWro7xC9Vhwbfo_IwsB5d?iGYl%Z1cFPE zSqf$nVl!uIInX;tK^Q=J_g8@<8=fJQK~ShU9uPSpqXB#f5+9^PP>}OJ0AL_=7~59` zQziuMwGQ{pBcOm@7AKo-D?FK}agQoE8N}GRV<*j?4TK&s%}jv><|Mgg)Q7IOcM%Q^790&{^;WV{TpT?{oCj7U?1za*I^yW%8cF zXfS(wVX^I8j4QrKz(3d#Ppu=`x1?JxFA(-$Xq^gaYdaC%U6ySc|Fd76g7%q5tUCsx z#RtR+585sRa8-V0R^q^+tKuX4#kL-sW7O{oQdwP+8A>X31qtg{%gFO0R%M$qSJoU$ zlDB~vg5=W%|EWRs(HZqo0cv-wFuGYZf$#uvDX6-{NyV&y_w>%|vFarpE4% zC1IZMJ>gw9_)`L2B??&i)Rj|R`I#NE_oA&WD>#k&H`z04$iZkRPro!%#MG&mgKK@rG;K(wGGbd-=celwFek*`t%Xb zV>O#%J2QHw@|xaLM*j25YsH+-mfB~W%eZ^|I_cV`l45`To42#yCOv0h_HEDV%q4V?nxs@oA`Dlp z%`(xvdS|$b--X0CfN+98<{aupKmqrMp?WV0FaP3!fr`K!cqtu5e*i&0@zJ3@VZC#) zDzzJk_Np<`=2NZ#vF`WmjK%Q$h4Rax+q0Z>$M4ZFa74$ouaP+GplsB(k3?ZR{^6|o zFA#E!_a&n&&epU(wx}%5ru!Vyz7^#&cgfx=2=YXv%yM(> zo_Ko$ikSIsWPoNpzODv>xXm@-=w-X7i0J!v@$G87aZo76OJ0o0I-Gi2mN=$hk=?p^ z{S)&_h$&e~$pEl6(yhB2>8xL}yCLXBb97E1zrU_9@)f&3mob?5TAJDpL3JI=4%=x8Pcmuzg~1jYrv}mE zG%^toWw~`bFn^p>}T zf;{R2@^2&37sM6{FXP~rW@c41t~Il0bo@xPwi}Dl(>r5@NKec*tvGL;47Y|4PW<_$ zzu(d5^gi(2{3nyy);BE+=6!h`T;#sP-1I**&X&a$ojQ3!xeO z)XskxN5iY;j`sGcvs@($Ttv3;Gys6Q^(Lt73+As%Ky5jDH8eZ{kK$QEl9{WzC!N}G zGQ5sUE0HImD(h-LZJdpX86jS$jzG>6$u88Y$`7WCx^W) zQkrMml(1GOUsL!&7i7~D9gVwrDy9m6@!NV#lDqr+1Qf3}KBQ{q{&B(96`!!bK_DaY z6E^a+vh_9Sr1;H!@P-FIL#jv3$-q~Mex}3ZOyXF0D$f^|tcUq%r>uYIm;WOD6$Fm9 zwhkOQdJZm@uFCIyF}|&)@T6yCJGXV9>KH7H;lB9%)2#!O281rZC5;4buho31B9pQS WIJ2^TBohAjVYJIHXh-FCkoI>ZeGN(g literal 0 HcmV?d00001 diff --git a/docs/classsw_1_1_grid_layout-members.html b/docs/classsw_1_1_grid_layout-members.html new file mode 100644 index 00000000..0649016b --- /dev/null +++ b/docs/classsw_1_1_grid_layout-members.html @@ -0,0 +1,125 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::GridLayout Member List
+
+
+ +

This is the complete list of members for sw::GridLayout, including all inherited members.

+ + + + + + + + + + + + + + + + + +
Arrange(const Rect &finalPosition) overridesw::LayoutHostvirtual
ArrangeOverride(Size &finalSize) overridesw::GridLayoutvirtual
Associate(ILayout *obj)sw::LayoutHost
cells (defined in sw::GridLayout)sw::GridLayout
childrenInfo (defined in sw::GridLayout)sw::GridLayout
colsInfo (defined in sw::GridLayout)sw::GridLayout
columnssw::GridLayout
GetChildLayoutAt(int index) overridesw::LayoutHostvirtual
GetChildLayoutCount() overridesw::LayoutHostvirtual
GetDesireSize() overridesw::LayoutHostvirtual
GetLayoutTag() overridesw::LayoutHostvirtual
Measure(const Size &availableSize) overridesw::LayoutHostvirtual
MeasureOverride(Size &availableSize) overridesw::GridLayoutvirtual
rowssw::GridLayout
rowsInfo (defined in sw::GridLayout)sw::GridLayout
SetDesireSize(const Size &size) overridesw::LayoutHostvirtual
+
+ + + + diff --git a/docs/classsw_1_1_grid_layout.html b/docs/classsw_1_1_grid_layout.html new file mode 100644 index 00000000..12bdde7b --- /dev/null +++ b/docs/classsw_1_1_grid_layout.html @@ -0,0 +1,236 @@ + + + + + + + +SimpleWindow: sw::GridLayout Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
sw::GridLayout Class Reference
+
+
+ +

网格布局方式 + More...

+ +

#include <GridLayout.h>

+
+Inheritance diagram for sw::GridLayout:
+
+
+ + +sw::LayoutHost +sw::ILayout + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

virtual void MeasureOverride (Size &availableSize) override
 计算所需尺寸
 
virtual void ArrangeOverride (Size &finalSize) override
 安排控件
 
- Public Member Functions inherited from sw::LayoutHost
void Associate (ILayout *obj)
 设置关联的对象,每个LayoutHost只能关联一个对象
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取关联对象子控件的数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取关联对象对应索引处的子控件
 
virtual Size GetDesireSize () override
 获取关联对象所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置关联对象所需的尺寸
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const Rect &finalPosition) override
 安排控件位置
 
+ + + + + + + +

+Public Attributes

+List< GridRowrows
 行定义
 
+List< GridColumncolumns
 列定义
 
+

Detailed Description

+

网格布局方式

+

Member Function Documentation

+ +

◆ ArrangeOverride()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::GridLayout::ArrangeOverride (Size & finalSize)
+
+overridevirtual
+
+ +

安排控件

+ +

Implements sw::LayoutHost.

+ +
+
+ +

◆ MeasureOverride()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::GridLayout::MeasureOverride (Size & availableSize)
+
+overridevirtual
+
+ +

计算所需尺寸

+ +

Implements sw::LayoutHost.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_grid_layout.js b/docs/classsw_1_1_grid_layout.js new file mode 100644 index 00000000..cd07b3b5 --- /dev/null +++ b/docs/classsw_1_1_grid_layout.js @@ -0,0 +1,7 @@ +var classsw_1_1_grid_layout = +[ + [ "ArrangeOverride", "classsw_1_1_grid_layout.html#a77f696d86389ff0360bd65629a5edab4", null ], + [ "MeasureOverride", "classsw_1_1_grid_layout.html#aac702cbbed9459c559d85c337313d3a9", null ], + [ "columns", "classsw_1_1_grid_layout.html#a31dc19020481d77169ecad187bad886e", null ], + [ "rows", "classsw_1_1_grid_layout.html#a5ac3f18d6079d89b414a9f0a342670ea", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_grid_layout.png b/docs/classsw_1_1_grid_layout.png new file mode 100644 index 0000000000000000000000000000000000000000..bd94b2fa6e50525d0d23a89fba92b488e2de51e8 GIT binary patch literal 706 zcmeAS@N?(olHy`uVBq!ia0vp^2|(Pz!3-qz1Ld9qDd_;85ZC|z{{xvX-h3_XKeXJ! zK(jz%`k5CG9y|bwo1P6@0+iz{3GxeO0P?}WoN4wI1_mZyPZ!6K3dXl{U-!LM;Av@h z?5g;$ZpXWwL08Z7_1(p5Zub-&{Knoq`TmD{)xHNOFPX>VFlo_0`G#(GPp>MzpRx_7 zuXeFD+&f;rpKQBmS@=^6Lm#xXYB`x+;`tzGf!{}T3J%bkn~e+ + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::GroupBox Member List
+
+
+ +

This is the complete list of members for sw::GroupBox, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AddChild(UIElement *element)sw::UIElement
AddChild(UIElement &element)sw::UIElement
AddChild(UIElement *element, uint64_t layoutTag)sw::UIElement
AddChild(UIElement &element, uint64_t layoutTag)sw::UIElement
Arrange(const sw::Rect &finalPosition) overridesw::PanelBasevirtual
AutoSizesw::Layer
BackColorsw::UIElement
ChildCountsw::UIElement
ClearChildren()sw::UIElement
ClientHeightsw::WndBase
ClientRectsw::WndBase
ClientWidthsw::WndBase
Close()sw::WndBase
CollapseWhenHidesw::UIElement
ContextMenusw::UIElement
Control()sw::Controlprotected
DefaultWndProc(const ProcMsg &refMsg)sw::WndBaseprotected
DisableLayout()sw::Layer
Enabledsw::WndBase
EnableLayout()sw::Layer
Floatsw::UIElement
Focusedsw::WndBase
Fontsw::WndBase
FontChanged(HFONT hfont)sw::WndBaseprotectedvirtual
FontNamesw::WndBase
FontSizesw::WndBase
FontWeightsw::WndBase
GetArrangeOffsetX()sw::UIElementprotected
GetArrangeOffsetY()sw::UIElementprotected
GetChildBottommost(bool update)sw::UIElementprotected
GetChildLayoutAt(int index) overridesw::UIElementvirtual
GetChildLayoutCount() overridesw::UIElementvirtual
GetChildRightmost(bool update)sw::UIElementprotected
GetDefaultLayout()sw::Layerprotectedvirtual
GetDesireSize() overridesw::UIElementvirtual
GetExtendedStyle()sw::WndBaseprotected
GetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
GetFontHandle()sw::WndBaseprotected
GetHorizontalScrollPageSize()sw::Layer
GetHorizontalScrollRange(double &refMin, double &refMax)sw::Layer
GetLayoutTag() overridesw::UIElementvirtual
GetNextElement()sw::UIElement
GetNextTabStopElement()sw::UIElement
GetRealBackColor()sw::UIElement
GetRealTextColor()sw::UIElement
GetRootElement()sw::UIElement
GetStyle()sw::WndBaseprotected
GetStyle(LONG_PTR style)sw::WndBaseprotected
GetTag() overridesw::UIElementvirtual
GetText()sw::WndBaseprotectedvirtual
GetVerticalScrollPageSize()sw::Layer
GetVerticalScrollRange(double &refMin, double &refMax)sw::Layer
GetWndBase(HWND hwnd)sw::WndBasestatic
GroupBox()sw::GroupBox
Handlesw::WndBase
HandleChenged()sw::Controlprotectedvirtual
HandleInitialized(HWND hwnd)sw::WndBaseprotectedvirtual
Heightsw::WndBase
HorizontalAlignmentsw::UIElement
HorizontalScrollBarsw::Layer
HorizontalScrollLimitsw::Layer
HorizontalScrollPossw::Layer
IndexOf(UIElement *element)sw::UIElement
IndexOf(UIElement &element)sw::UIElement
InheritTextColorsw::UIElement
InitControl(LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
InitWindow(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
IsControl()sw::WndBase
IsDestroyedsw::WndBase
IsRootElement()sw::UIElement
IsRoutedEventRegistered(RoutedEventType eventType)sw::UIElement
IsVisible()sw::WndBase
Layer()sw::Layerprotected
Layoutsw::Layer
LayoutTagsw::UIElement
Leftsw::WndBase
Marginsw::UIElement
Measure(const Size &availableSize) overridesw::PanelBasevirtual
MoveToBottom()sw::UIElement
MoveToTop()sw::UIElement
NcHitTest(const Point &testPoint)sw::WndBase
NotifyLayoutUpdated()sw::UIElementprotected
OnAcceleratorCommand(int id)sw::WndBaseprotectedvirtual
OnAddedChild(UIElement &element)sw::UIElementprotectedvirtual
OnChar(wchar_t ch, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnClose() overridesw::UIElementprotectedvirtual
OnColor(HDC hdc, HBRUSH &hRetBrush) overridesw::UIElementprotectedvirtual
OnCommand(int code)sw::WndBaseprotectedvirtual
OnContextMenu(bool isKeyboardMsg, Point mousePosition) overridesw::UIElementprotectedvirtual
OnControlCommand(WndBase *pControl, int code, int id)sw::WndBaseprotectedvirtual
OnCreate()sw::WndBaseprotectedvirtual
OnCtlColor(WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)sw::WndBaseprotectedvirtual
OnDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnDestroy()sw::WndBaseprotectedvirtual
OnDrawFocusRect()sw::UIElementprotectedvirtual
OnDrawItem(int id, DRAWITEMSTRUCT *pDrawItem)sw::WndBaseprotectedvirtual
OnEnabledChanged(bool newValue)sw::WndBaseprotectedvirtual
OnEndPaint() overridesw::UIElementprotectedvirtual
OnEraseBackground(int &result)sw::WndBaseprotectedvirtual
OnHorizontalScroll(int event, int pos) overridesw::PanelBaseprotectedvirtual
OnKeyDown(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKeyUp(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKillFocus(HWND hNextFocus) overridesw::UIElementprotectedvirtual
OnMenuCommand(int id) overridesw::UIElementprotectedvirtual
OnMouseLeave() overridesw::UIElementprotectedvirtual
OnMouseLeftButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseLeftButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseMiddleButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMove(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseRightButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseWheel(int wheelDelta, Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMove(Point newClientPosition) overridesw::UIElementprotectedvirtual
OnNcHitTest(const Point &testPoint, HitTestResult &result)sw::WndBaseprotectedvirtual
OnNotified(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnNotify(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnPaint()sw::WndBaseprotectedvirtual
OnRemovedChild(UIElement &element)sw::UIElementprotectedvirtual
OnScroll(ScrollOrientation scrollbar, ScrollEvent event, double pos)sw::Layerprotectedvirtual
OnSetCursor(HWND hwnd, HitTestResult hitTest, int message, bool &result) overridesw::UIElementprotectedvirtual
OnSetFocus(HWND hPrevFocus) overridesw::UIElementprotectedvirtual
OnSize(Size newClientSize) overridesw::UIElementprotectedvirtual
OnSysChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyDown(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyUp(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnTabStop()sw::UIElementprotectedvirtual
OnTextChanged() overridesw::UIElementprotectedvirtual
OnVerticalScroll(int event, int pos) overridesw::PanelBaseprotectedvirtual
operator=(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator=(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator[](int index) constsw::UIElement
PanelBase()sw::PanelBaseprotected
Parentsw::UIElement
ParentChanged(WndBase *newParent) overridesw::UIElementprotectedvirtual
PointFromScreen(const Point &screenPoint)sw::WndBase
PointToScreen(const Point &point)sw::WndBase
RaiseRoutedEvent(RoutedEventType eventType)sw::UIElementprotected
RaiseRoutedEvent(RoutedEventArgs &eventArgs)sw::UIElementprotected
Rectsw::WndBase
Redraw(bool erase=false)sw::WndBase
RegisterRoutedEvent(RoutedEventType eventType, const RoutedEvent &handler)sw::UIElement
RegisterRoutedEvent(RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))sw::UIElementinline
RegisterRoutedEvent(std::function< void(UIElement &, TEventArgs &)> handler)sw::UIElementinline
RegisterRoutedEvent(THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))sw::UIElementinline
RemoveChild(UIElement *element)sw::UIElement
RemoveChild(UIElement &element)sw::UIElement
RemoveChildAt(int index)sw::UIElement
ResetCursor()sw::UIElement
ResetHandle()sw::Controlprotected
ScrollHorizontal(double offset)sw::Layer
ScrollToBottom()sw::Layer
ScrollToLeft()sw::Layer
ScrollToRight()sw::Layer
ScrollToTop()sw::Layer
ScrollVertical(double offset)sw::Layer
SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase
SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement
SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual
SetCursor(HCURSOR hCursor)sw::UIElement
SetCursor(StandardCursor cursor)sw::UIElement
SetDesireSize(const Size &size) overridesw::UIElementvirtual
SetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
SetExtendedStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetHorizontalScrollPageSize(double pageSize)sw::Layer
SetHorizontalScrollRange(double min, double max)sw::Layer
SetNextTabStopFocus()sw::UIElementprotected
SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual
SetStyle(LONG_PTR style)sw::WndBaseprotected
SetStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetTag(uint64_t tag) overridesw::UIElementvirtual
SetText(const std::wstring &value)sw::WndBaseprotectedvirtual
SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual
SetVerticalScrollPageSize(double pageSize)sw::Layer
SetVerticalScrollRange(double min, double max)sw::Layer
Show(int nCmdShow)sw::WndBase
ShowContextMenu(const Point &point)sw::UIElement
TabStopsw::UIElement
Tagsw::UIElement
Textsw::WndBase
TextColorsw::UIElement
Topsw::WndBase
Transparentsw::UIElement
UIElement()sw::UIElementprotected
UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement
Update()sw::WndBase
UpdateChildrenZOrder()sw::UIElementprotected
UpdateFont()sw::WndBase
UpdateLayout()sw::Layerprotected
UpdateScrollRange()sw::Layer
UpdateSiblingsZOrder()sw::UIElementprotected
UpdateText()sw::WndBaseprotected
VerticalAlignmentsw::UIElement
VerticalScrollBarsw::Layer
VerticalScrollLimitsw::Layer
VerticalScrollPossw::Layer
Visiblesw::WndBase
VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual
Widthsw::WndBase
WndBase()sw::WndBaseprotected
WndBase(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndBase(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual
~Control()=0sw::Controlpure virtual
~Layer()=0sw::Layerpure virtual
~PanelBase()=0sw::PanelBasepure virtual
~UIElement()=0sw::UIElementpure virtual
~WndBase()=0sw::WndBasepure virtual
+
+ + + + diff --git a/docs/classsw_1_1_group_box.html b/docs/classsw_1_1_group_box.html new file mode 100644 index 00000000..087cbf9d --- /dev/null +++ b/docs/classsw_1_1_group_box.html @@ -0,0 +1,907 @@ + + + + + + + +SimpleWindow: sw::GroupBox Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
sw::GroupBox Class Reference
+
+
+ +

组合框 + More...

+ +

#include <GroupBox.h>

+
+Inheritance diagram for sw::GroupBox:
+
+
+ + +sw::PanelBase +sw::Control +sw::Layer +sw::UIElement +sw::UIElement +sw::WndBase +sw::ILayout +sw::ITag +sw::WndBase +sw::ILayout +sw::ITag + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

GroupBox ()
 初始化组合框
 
- Public Member Functions inherited from sw::PanelBase
+virtual ~PanelBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const sw::Rect &finalPosition) override
 安排控件位置
 
- Public Member Functions inherited from sw::Control
+virtual ~Control ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
- Public Member Functions inherited from sw::UIElement
+virtual ~UIElement ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
void RegisterRoutedEvent (RoutedEventType eventType, const RoutedEvent &handler)
 注册路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename T >
void RegisterRoutedEvent (RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))
 注册成员函数作为路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename TEventArgs , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (std::function< void(UIElement &, TEventArgs &)> handler)
 根据事件参数类型注册路由事件
 
template<typename TEventArgs , typename THandleObj , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))
 根据事件参数类型注册成员函数作为路由事件
 
void UnregisterRoutedEvent (RoutedEventType eventType)
 取消对应类型路由事件的注册
 
bool IsRoutedEventRegistered (RoutedEventType eventType)
 判断路由事件是否已被注册
 
bool AddChild (UIElement *element)
 添加子控件
 
bool AddChild (UIElement &element)
 添加子控件
 
bool AddChild (UIElement *element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool AddChild (UIElement &element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool RemoveChildAt (int index)
 移除指定索引处的子控件
 
bool RemoveChild (UIElement *element)
 移除子控件
 
bool RemoveChild (UIElement &element)
 移除子控件
 
+void ClearChildren ()
 移除所有子控件
 
int IndexOf (UIElement *element)
 获取指定元素的索引
 
int IndexOf (UIElement &element)
 获取指定元素的索引
 
+UIElementoperator[] (int index) const
 通过索引获取子控件
 
void ShowContextMenu (const Point &point)
 弹出当前元素的上下文菜单
 
+void MoveToTop ()
 移动到界面顶部
 
+void MoveToBottom ()
 移动到界面底部
 
+bool IsRootElement ()
 判断当前元素是否为根节点
 
+UIElementGetRootElement ()
 获取当前元素所在界面树的根节点
 
+UIElementGetNextElement ()
 获取当前元素在界面树上的下一个节点,若已是最后一个节点则返回根节点
 
+UIElementGetNextTabStopElement ()
 获取下一个TabStop属性为true的元素
 
+Color GetRealBackColor ()
 获取当前要显示的背景颜色:当Transparent为true时获取到祖先节点中首个Transparent为false的背景颜色,否则返回当前元素的背景颜色
 
+Color GetRealTextColor ()
 获取当前要显示的文本颜色:当InheritTextColor为true时获取到祖先节点中首个InheritTextColor为false的文本颜色,否则返回当前元素的文本颜色
 
void SetCursor (HCURSOR hCursor)
 设置鼠标样式
 
void SetCursor (StandardCursor cursor)
 设置鼠标样式
 
+void ResetCursor ()
 将鼠标样式设置为默认样式
 
void SetAlignment (sw::HorizontalAlignment horz, sw::VerticalAlignment vert)
 设置对齐方式
 
virtual uint64_t GetTag () override
 获取Tag
 
virtual void SetTag (uint64_t tag) override
 设置Tag
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取参与布局的子控件数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取对应索引处的子控件,使用此函数前必须先调用GetChildLayoutCount
 
virtual Size GetDesireSize () override
 获取控件所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置当前控件所需的尺寸
 
- Public Member Functions inherited from sw::WndBase
+virtual ~WndBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void Show (int nCmdShow)
 该函数调用ShowWindow
 
+void Close ()
 发送关闭消息
 
+void Update ()
 该函数调用UpdateWindow
 
+void UpdateFont ()
 更新字体
 
void Redraw (bool erase=false)
 重画
 
+bool IsControl ()
 判断当前对象是否是控件
 
+bool IsVisible ()
 判断当前对象在界面中是否可视,与Visible属性不同的是该函数返回值会受父窗口的影响
 
Point PointToScreen (const Point &point)
 获取用户区点在屏幕上点的位置
 
Point PointFromScreen (const Point &screenPoint)
 获取屏幕上点在当前用户区点的位置
 
+LRESULT SendMessageW (UINT uMsg, WPARAM wParam, LPARAM lParam)
 发送消息
 
HitTestResult NcHitTest (const Point &testPoint)
 测试指定点在窗口的哪一部分
 
- Public Member Functions inherited from sw::Layer
+virtual ~Layer ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void DisableLayout ()
 禁用布局
 
+void EnableLayout ()
 启用布局
 
void GetHorizontalScrollRange (double &refMin, double &refMax)
 获取横向滚动条的范围
 
void GetVerticalScrollRange (double &refMin, double &refMax)
 获取纵向滚动条的范围
 
void SetHorizontalScrollRange (double min, double max)
 设置横向滚动条的范围
 
void SetVerticalScrollRange (double min, double max)
 设置纵向滚动条的范围
 
+double GetHorizontalScrollPageSize ()
 获取水平滚动条滚动页面大小
 
+double GetVerticalScrollPageSize ()
 获取垂直滚动条滚动页面大小
 
+void SetHorizontalScrollPageSize (double pageSize)
 设置水平滚动条滚动页面大小
 
+void SetVerticalScrollPageSize (double pageSize)
 设置垂直滚动条滚动页面大小
 
+void UpdateScrollRange ()
 根据子元素更新滚动条范围,未设定布局方式时该函数无效
 
+void ScrollToTop ()
 将垂直滚动条移动到顶部
 
+void ScrollToBottom ()
 将垂直滚动条移动到底部
 
+void ScrollToLeft ()
 将水平滚动条移动到最左
 
+void ScrollToRight ()
 将水平滚动条移动到最右
 
void ScrollHorizontal (double offset)
 水平滚动
 
void ScrollVertical (double offset)
 垂直滚动
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Additional Inherited Members

- Static Public Member Functions inherited from sw::WndBase
static WndBaseGetWndBase (HWND hwnd)
 通过窗口句柄获取WndBase
 
- Public Attributes inherited from sw::UIElement
+const Property< ThicknessMargin
 边距
 
+const Property< HorizontalAlignment > HorizontalAlignment
 水平对齐方式
 
+const Property< VerticalAlignment > VerticalAlignment
 垂直对齐方式
 
+const ReadOnlyProperty< intChildCount
 子控件数量
 
+const Property< boolCollapseWhenHide
 是否在不可见时不参与布局
 
+const ReadOnlyProperty< UIElement * > Parent
 指向父元素的指针,当前元素为顶级窗口时该值为nullptr
 
+const Property< uint64_tTag
 储存用户自定义信息的标记
 
+const Property< uint64_tLayoutTag
 布局标记,对于不同的布局有不同含义
 
+const Property< sw::ContextMenu * > ContextMenu
 右键按下时弹出的菜单
 
+const Property< boolFloat
 元素是否悬浮,若元素悬浮则该元素不会随滚动条滚动而改变位置
 
+const Property< boolTabStop
 表示用户是否可以通过按下Tab键将焦点移动到当前元素
 
+const Property< ColorBackColor
 背景颜色,修改该属性会同时将Transparent属性设为false,对于部分控件该属性可能不生效
 
+const Property< ColorTextColor
 文本颜色,修改该属性会同时将InheritTextColor属性设为false,对于部分控件该属性可能不生效
 
+const Property< boolTransparent
 是否使用透明背景(此属性并非真正意义上的透明,将该属性设为true可继承父元素的背景颜色)
 
+const Property< boolInheritTextColor
 是否继承父元素的文本颜色
 
- Public Attributes inherited from sw::WndBase
+const ReadOnlyProperty< HWNDHandle
 窗口句柄
 
+const Property< sw::FontFont
 字体
 
+const Property< std::wstring > FontName
 字体名称
 
+const Property< doubleFontSize
 字体大小
 
+const Property< sw::FontWeight > FontWeight
 字体粗细
 
+const Property< sw::RectRect
 位置和尺寸
 
+const Property< doubleLeft
 左边
 
+const Property< doubleTop
 顶边
 
+const Property< doubleWidth
 宽度
 
+const Property< doubleHeight
 高度
 
+const ReadOnlyProperty< sw::RectClientRect
 用户区尺寸
 
+const ReadOnlyProperty< doubleClientWidth
 用户区宽度
 
+const ReadOnlyProperty< doubleClientHeight
 用户区高度
 
+const Property< boolEnabled
 窗口或控件是否可用
 
+const Property< boolVisible
 窗口或控件是否可见
 
+const Property< std::wstring > Text
 窗口标题或控件文本
 
+const Property< boolFocused
 窗口是否拥有焦点
 
+const ReadOnlyProperty< WndBase * > Parent
 父窗口
 
+const ReadOnlyProperty< boolIsDestroyed
 是否已销毁,当该值为true时不应该继续使用当前对象
 
- Public Attributes inherited from sw::Layer
+const Property< LayoutHost * > Layout
 自定义的布局方式,赋值后将自动与所指向的布局关联,每个布局只能关联一个对象,设为nullptr可恢复默认布局
 
+const Property< boolAutoSize
 是否按照布局方式与子元素自动调整尺寸,该属性仅在当前元素已设置布局方式并且非顶级元素时有效
 
+const Property< boolHorizontalScrollBar
 是否显示横向滚动条
 
+const Property< boolVerticalScrollBar
 是否显示纵向滚动条
 
+const Property< doubleHorizontalScrollPos
 横向滚动条位置
 
+const Property< doubleVerticalScrollPos
 纵向滚动条位置
 
+const ReadOnlyProperty< doubleHorizontalScrollLimit
 横向滚动条可设置的最大位置
 
+const ReadOnlyProperty< doubleVerticalScrollLimit
 纵向滚动条可设置的最大位置
 
- Protected Member Functions inherited from sw::PanelBase
PanelBase ()
 初始化PanelBase
 
virtual bool OnVerticalScroll (int event, int pos) override
 接收到WM_VSCROLL时调用目标控件的该函数
 
virtual bool OnHorizontalScroll (int event, int pos) override
 接收到WM_HSCROLL时调用目标控件的该函数
 
- Protected Member Functions inherited from sw::Control
Control ()
 初始化控件
 
+void ResetHandle ()
 销毁控件句柄并重新初始化,该操作会创建新的句柄并设置样式、文本、字体等
 
+virtual void HandleChenged ()
 控件句柄发生改变时调用该函数
 
- Protected Member Functions inherited from sw::UIElement
UIElement ()
 初始化UIElement
 
void RaiseRoutedEvent (RoutedEventType eventType)
 触发路由事件
 
void RaiseRoutedEvent (RoutedEventArgs &eventArgs)
 触发路由事件
 
+void NotifyLayoutUpdated ()
 通知顶级窗口布局改变
 
+doubleGetArrangeOffsetX ()
 获取Arrange时子元素的水平偏移量
 
+doubleGetArrangeOffsetY ()
 获取Arrange时子元素的垂直偏移量
 
double GetChildRightmost (bool update)
 获取所有子元素在当前元素中最右边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
double GetChildBottommost (bool update)
 获取所有子元素在当前元素中最底边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
+void UpdateChildrenZOrder ()
 更新子元素的Z轴位置
 
+void UpdateSiblingsZOrder ()
 更新兄弟元素的Z轴位置
 
+void SetNextTabStopFocus ()
 设置下一个TabStop属性为true的元素为焦点元素
 
virtual void SetBackColor (Color color, bool redraw)
 设置背景颜色
 
virtual void SetTextColor (Color color, bool redraw)
 设置文本颜色
 
virtual void OnAddedChild (UIElement &element)
 添加子元素后调用该函数
 
virtual void OnRemovedChild (UIElement &element)
 移除子元素后调用该函数
 
+virtual void OnTabStop ()
 通过tab键将焦点移动到当前元素时调用该函数
 
virtual void OnDrawFocusRect ()
 绘制虚线框时调用该函数
 
virtual bool SetParent (WndBase *parent) override
 设置父窗口
 
virtual void ParentChanged (WndBase *newParent) override
 父窗口改变时调用此函数
 
virtual void OnEndPaint () override
 在OnPaint函数完成之后调用该函数
 
virtual bool OnClose () override
 接收到WM_CLOSE时调用该函数
 
virtual bool OnMove (Point newClientPosition) override
 接收到WM_MOVE时调用该函数
 
virtual bool OnSize (Size newClientSize) override
 接收到WM_SIZE时调用该函数
 
virtual void OnTextChanged () override
 Text属性更改时调用此函数
 
virtual void VisibleChanged (bool newVisible) override
 Visible属性改变时调用此函数
 
virtual bool OnSetFocus (HWND hPrevFocus) override
 接收到WM_SETFOCUS时调用该函数
 
virtual bool OnKillFocus (HWND hNextFocus) override
 接收到WM_KILLFOCUS时调用该函数
 
virtual bool OnChar (wchar_t ch, KeyFlags flags) override
 接收到WM_CHAR时调用该函数
 
virtual bool OnKeyDown (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYDOWN时调用该函数
 
virtual bool OnKeyUp (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYUP时调用该函数
 
virtual bool OnMouseMove (Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEMOVE时调用该函数
 
virtual bool OnMouseLeave () override
 接收到WM_MOUSELEAVE时调用该函数
 
virtual bool OnMouseWheel (int wheelDelta, Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEWHEEL时调用该函数
 
virtual bool OnMouseLeftButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONDOWN时调用该函数
 
virtual bool OnMouseLeftButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONUP时调用该函数
 
virtual bool OnMouseRightButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONDOWN时调用该函数
 
virtual bool OnMouseRightButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONUP时调用该函数
 
virtual bool OnMouseMiddleButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONDOWN时调用该函数
 
virtual bool OnMouseMiddleButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONUP时调用该函数
 
virtual bool OnContextMenu (bool isKeyboardMsg, Point mousePosition) override
 接收到WM_CONTEXTMENU后调用目标控件的该函数
 
virtual void OnMenuCommand (int id) override
 当WM_COMMAND接收到菜单命令时调用该函数
 
virtual bool OnColor (HDC hdc, HBRUSH &hRetBrush) override
 父窗口接收到WM_CTLCOLORxxx时调用对应控件的该函数
 
virtual bool OnSetCursor (HWND hwnd, HitTestResult hitTest, int message, bool &result) override
 接收到WM_SETCURSOR消息时调用该函数
 
- Protected Member Functions inherited from sw::WndBase
WndBase ()
 初始化WndBase
 
WndBase (const WndBase &)=delete
 
WndBase (WndBase &&)=delete
 
+WndBaseoperator= (const WndBase &)=delete
 
+WndBaseoperator= (WndBase &&)=delete
 
+void InitWindow (LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为窗口,该函数会调用CreateWindowExW
 
+void InitControl (LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为控件,该函数会调用CreateWindowExW
 
+LONG_PTR GetStyle ()
 获取窗口样式
 
+void SetStyle (LONG_PTR style)
 设置窗口样式
 
+bool GetStyle (LONG_PTR style)
 获取窗口的某个样式
 
+void SetStyle (LONG_PTR style, bool value)
 设置窗口的某个样式
 
+LONG_PTR GetExtendedStyle ()
 获取扩展窗口样式
 
+void SetExtendedStyle (LONG_PTR style)
 设置扩展窗口样式
 
+bool GetExtendedStyle (LONG_PTR style)
 获取窗口的某个扩展样式
 
+void SetExtendedStyle (LONG_PTR style, bool value)
 设置窗口的某个扩展样式
 
+HFONT GetFontHandle ()
 获取字体句柄
 
+LRESULT DefaultWndProc (const ProcMsg &refMsg)
 调用默认的WndProc,对于窗口则调用DefWindowProcW,控件则调用_controlOldWndProc
 
virtual LRESULT WndProc (const ProcMsg &refMsg)
 对WndProc的封装
 
+void UpdateText ()
 更新_text字段
 
virtual std::wstring & GetText ()
 获取窗口文本
 
virtual void SetText (const std::wstring &value)
 调用SetWindowTextW设置窗口文本
 
virtual bool OnCreate ()
 接收到WM_CREATE时调用该函数
 
virtual bool OnDestroy ()
 接收到WM_DESTROY时调用该函数
 
virtual bool OnPaint ()
 接收到WM_PAINT时调用该函数
 
virtual bool OnMouseLeftButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_LBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseRightButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_RBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseMiddleButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_MBUTTONDBLCLK时调用该函数
 
virtual bool OnDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_DEADCHAR时调用该函数
 
virtual bool OnSysChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSCHAR时调用该函数
 
virtual bool OnSysDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSDEADCHAR时调用该函数
 
virtual bool OnSysKeyDown (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYDOWN时调用该函数
 
virtual bool OnSysKeyUp (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYUP时调用该函数
 
virtual void OnCommand (int code)
 当父窗口接收到控件的WM_COMMAND时调用该函数
 
virtual void OnControlCommand (WndBase *pControl, int code, int id)
 当WM_COMMAND接收到控件命令时调用该函数
 
virtual void OnAcceleratorCommand (int id)
 当WM_COMMAND接收到快捷键命令时调用该函数
 
virtual void HandleInitialized (HWND hwnd)
 窗口句柄初始化完成
 
virtual void FontChanged (HFONT hfont)
 字体改变时调用该函数
 
virtual bool OnNotify (NMHDR *pNMHDR)
 接收到WM_NOTIFY后调用该函数
 
virtual void OnNotified (NMHDR *pNMHDR)
 父窗口接收到WM_NOTIFY后调用发出通知控件的该函数
 
virtual bool OnEnabledChanged (bool newValue)
 接收到WM_ENABLE时调用该函数
 
virtual bool OnCtlColor (WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)
 接收到WM_CTLCOLORxxx时调用该函数
 
virtual void OnNcHitTest (const Point &testPoint, HitTestResult &result)
 接收到WM_NCHITTEST后调用该函数
 
virtual bool OnEraseBackground (int &result)
 接收到WM_ERASEBKGND时调用该函数
 
virtual bool OnDrawItem (int id, DRAWITEMSTRUCT *pDrawItem)
 接收到WM_DRAWITEM时调用该函数
 
- Protected Member Functions inherited from sw::Layer
Layer ()
 初始化Layer
 
+void UpdateLayout ()
 更新布局
 
virtual LayoutHostGetDefaultLayout ()
 获取默认布局对象
 
virtual void OnScroll (ScrollOrientation scrollbar, ScrollEvent event, double pos)
 触发滚动条相关事件时调用该函数
 
+

Detailed Description

+

组合框

+

The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_group_box.js b/docs/classsw_1_1_group_box.js new file mode 100644 index 00000000..f1d8b626 --- /dev/null +++ b/docs/classsw_1_1_group_box.js @@ -0,0 +1,4 @@ +var classsw_1_1_group_box = +[ + [ "GroupBox", "classsw_1_1_group_box.html#a6241500d4cd923499613dc0162a38275", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_group_box.png b/docs/classsw_1_1_group_box.png new file mode 100644 index 0000000000000000000000000000000000000000..fe88d582dd42f8c73d686e345c08f75e745d364b GIT binary patch literal 2908 zcmcImdpwl+8lOQz6uGWkLYq~QL^--xA!cK=<(&~?)TYK|qzD&KF{;}zHi!L zq??+Gz6uNmQ$x7B9D%{)Fc3elBo9%%F*pn@8xDJTyGo@}h#eEmMw1!~?X4}&>Sg~j z*5BU`>Ft=PJjkXTbp&}72FWYWZaMNB7))gp;o{^S3m0;`&prHQz3Y1~#N`81(k3@E zxloWl$R9HfKft)02?8P0@w#zy@BZI9hmA>)Th-f6fm3o&h@U5A26Gf z;wRy-C!bs)O^jJ;V(T@^3JDhg%l*7@9XHYxGK-2%uQuvKf9&MW*ksH(^(>F;8j9+%CgY2%+uhcnsqvR; zDkF40mUFo5<)Zc&AX-}f>>?1c;Fa42Wz)iff)G8e>{jO9b7)|MdqTB6aO~WyPnhKZ z?fAZ8kx%U&OvW6lhlJxzhP)O=l=8p9IMWD&{ONnqDH4KzEl3-iBWRVmPbhKvG|@Yw zC6e=K(Mw0G!DUmU^nFp{E@?gvy`8`BxF5haD{Xc0JxPE2iZIH***hy|6k0nqNBVhx z^_{I!CmO+bYP<&ojpFP~&4k6}xm?NVMPq*oZja+k567#zsu}DiOwKua_8G?~@N0Dg z>u193gj~tvcTXCJy9qX?X2l@?3&(@s0qpIaoMb8(@Ns&(lxt(DO`v%I?4y;Ng}e*w z2YlV*%Xg!oGAx~zn~Ok*3y<3sEi$D`7kvTtz)YYr$8odJcxny+a@}u(AX4Ic`xyv^ zn4AJZ2Lv4idsejT%Rq3~kpd9RQg{S{SAQx3`9peT*gFN^ZqwP}$+Erj)9nH*f2cJ3 zdy*h%uZ27%?16{BlevYwr$9tFrTw1@17pcln>z1ZeU^y)iv{5`&n{sMDd>fZK7QbA zAOD#e=f$ox+cPKcg5j&Tb>90v5>%-~;bz59hpVHFysY1-S*7D5Pvo^rf_+( zhDV_dO0phs@ipT_SAG1*7@yfmI$>2ZsWQ1GKtQ4el4u5H?nyc$`9{3*r(~9|mzcFM zBjJbKADBnwwDYvuUKVN=j{3i8SUDOMZFBC}bWwhw-%`bJ;Bjssb7nHOYq)t~J`abg zcn=*>9vRBa{?bZ|S-cGP*Kh-vVkIBLzJ1SyvaapWqm9^@^ITAZc0D32JPpaHgl-tlwT?(sCIbh&qRxWem=A1+&R(eexPk zUn?0wPtinvkl?gt(AyBRk`$7iEU$y@XtoD>Wd`{{Z|$%w_oU4Qkzh!oC6rgQ?Y~`` zUa>c>I5nIunYdlji(f=v3rcs<{}Hne-UGG3tmK|7a8BHkX!Us>(jI~>iAJBr8@K-Q zS@|2raHu*Tx^!ytl`XcOENhH21kOnu9CTY1Gl&pC%Sd$Q|K+Ch;k|}55Y%>T+uL`Y zxX*zKUSz~53byeZP!NpIUQ-afW)~f$)b#npKev6t9WG%M(|C3JFjGz3Rg@}^q^HlJ zV83-7%bjSe&R~tMHRx>JW1^=(#UdV{zf1E|@-6s)C5RJ=Onp?<#nW5h;!Tq`DnZaL zaEGa;bu5#ivG7e_K5C%jKxGQs5}zs!ws-JJ~p>+lV!kHAIkx^Nd1 zP&*n|0P-cDaEuOyEMQyEvX7KIMAE$u)yZJ(po}0_0PYWPyL4AjkFEpZoxUR8GG3_z zndh`2auvlz-}W)jO(#kN+abfQ3`I`^z*Xm;>c5J`O&ptNa;hfqB$%^1edC{1+1fyJq^k6xRyINI^nM27w|m6umT|Gr zcr<@(?43~7yG(l;}bRjS<~ zD5KH%^y|_pQe_%O7y+8h#q5$E7qhPyx zFO3LZs-+)30J(A>=ByH&T?Z_gmPAqxGuE*O8_0oA + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::ILayout Member List
+
+
+ +

This is the complete list of members for sw::ILayout, including all inherited members.

+ + + + + + + + +
Arrange(const Rect &finalPosition)=0sw::ILayoutpure virtual
GetChildLayoutAt(int index)=0sw::ILayoutpure virtual
GetChildLayoutCount()=0sw::ILayoutpure virtual
GetDesireSize()=0sw::ILayoutpure virtual
GetLayoutTag()=0sw::ILayoutpure virtual
Measure(const Size &availableSize)=0sw::ILayoutpure virtual
SetDesireSize(const Size &size)=0sw::ILayoutpure virtual
+
+ + + + diff --git a/docs/classsw_1_1_i_layout.html b/docs/classsw_1_1_i_layout.html new file mode 100644 index 00000000..44340fe9 --- /dev/null +++ b/docs/classsw_1_1_i_layout.html @@ -0,0 +1,382 @@ + + + + + + + +SimpleWindow: sw::ILayout Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
sw::ILayout Class Referenceabstract
+
+
+ +

布局接口 + More...

+ +

#include <ILayout.h>

+
+Inheritance diagram for sw::ILayout:
+
+
+ + +sw::LayoutHost +sw::UIElement +sw::CanvasLayout +sw::DockLayout +sw::FillLayout +sw::GridLayout +sw::StackLayoutH +sw::StackLayoutV +sw::UniformGridLayout +sw::WrapLayoutH +sw::WrapLayoutV +sw::Control +sw::Layer + +
+ + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

virtual uint64_t GetLayoutTag ()=0
 获取布局标记
 
virtual int GetChildLayoutCount ()=0
 获取子控件的数量
 
virtual ILayoutGetChildLayoutAt (int index)=0
 获取对应索引处的子控件
 
virtual Size GetDesireSize ()=0
 获取控件所需尺寸
 
virtual void SetDesireSize (const Size &size)=0
 设置当前控件所需的尺寸
 
virtual void Measure (const Size &availableSize)=0
 测量控件所需尺寸
 
virtual void Arrange (const Rect &finalPosition)=0
 安排控件位置
 
+

Detailed Description

+

布局接口

+

Member Function Documentation

+ +

◆ Arrange()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::ILayout::Arrange (const Rect & finalPosition)
+
+pure virtual
+
+ +

安排控件位置

+
Parameters
+ + +
finalPosition最终控件所安排的位置
+
+
+ +

Implemented in sw::LayoutHost, sw::Layer, sw::PanelBase, sw::TabControl, and sw::UIElement.

+ +
+
+ +

◆ GetChildLayoutAt()

+ +
+
+ + + + + +
+ + + + + + + +
virtual ILayout & sw::ILayout::GetChildLayoutAt (int index)
+
+pure virtual
+
+ +

获取对应索引处的子控件

+ +

Implemented in sw::LayoutHost, and sw::UIElement.

+ +
+
+ +

◆ GetChildLayoutCount()

+ +
+
+ + + + + +
+ + + + + + + +
virtual int sw::ILayout::GetChildLayoutCount ()
+
+pure virtual
+
+ +

获取子控件的数量

+ +

Implemented in sw::LayoutHost, and sw::UIElement.

+ +
+
+ +

◆ GetDesireSize()

+ +
+
+ + + + + +
+ + + + + + + +
virtual Size sw::ILayout::GetDesireSize ()
+
+pure virtual
+
+ +

获取控件所需尺寸

+ +

Implemented in sw::LayoutHost, and sw::UIElement.

+ +
+
+ +

◆ GetLayoutTag()

+ +
+
+ + + + + +
+ + + + + + + +
virtual uint64_t sw::ILayout::GetLayoutTag ()
+
+pure virtual
+
+ +

获取布局标记

+ +

Implemented in sw::LayoutHost, and sw::UIElement.

+ +
+
+ +

◆ Measure()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::ILayout::Measure (const Size & availableSize)
+
+pure virtual
+
+ +

测量控件所需尺寸

+
Parameters
+ + +
availableSize可用的尺寸
+
+
+ +

Implemented in sw::Label, sw::Layer, sw::LayoutHost, sw::PanelBase, and sw::UIElement.

+ +
+
+ +

◆ SetDesireSize()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::ILayout::SetDesireSize (const Size & size)
+
+pure virtual
+
+ +

设置当前控件所需的尺寸

+ +

Implemented in sw::LayoutHost, and sw::UIElement.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_i_layout.js b/docs/classsw_1_1_i_layout.js new file mode 100644 index 00000000..d5dcb443 --- /dev/null +++ b/docs/classsw_1_1_i_layout.js @@ -0,0 +1,10 @@ +var classsw_1_1_i_layout = +[ + [ "Arrange", "classsw_1_1_i_layout.html#a5616892d25adc2666e83211036db7d80", null ], + [ "GetChildLayoutAt", "classsw_1_1_i_layout.html#ab6a7ef612525020012594123732d24d4", null ], + [ "GetChildLayoutCount", "classsw_1_1_i_layout.html#aa07f4408aab5c6b088b69ede010fccd9", null ], + [ "GetDesireSize", "classsw_1_1_i_layout.html#a081e12b24d148735bfeeb5cc97b230f1", null ], + [ "GetLayoutTag", "classsw_1_1_i_layout.html#a5b95a9aba620f4f42447869f5e7f75c3", null ], + [ "Measure", "classsw_1_1_i_layout.html#afcdbdecd5f99cdb25b891c7dc3093fdb", null ], + [ "SetDesireSize", "classsw_1_1_i_layout.html#ab5c5df73b4a3e76840c5d16ab1dfb7fc", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_i_layout.png b/docs/classsw_1_1_i_layout.png new file mode 100644 index 0000000000000000000000000000000000000000..dd112cce01c5153899b101dc902094258b0053bc GIT binary patch literal 5658 zcmd^DdsI_rw#SN<>Qx4-*ds!wHB>tma0v2#)Ka1`0t!|{UeZDW$V(039V%YSx)7y3 zDrh30Mu-%7NaPtHMJ`5!Kw}6o1Ok?~Av}bDAtagaP}?1Ocj=E{JTCg0S zRK#UJWZLfeDE7VFj`6|4L15p@J9Y=$dxzxZ;jII%R}P!E=-oOxTMBWX?K_&VO5Xq6 z>&1c17x*I{TSinav%CKMHX0j)F(5hIGurf)w}~@b`>;PTDJiL5|M1LL`S}F}1=IU5 z>HCG$n8*R)YR9hk_Q3r1WX{Zjg$6}4aQu#-yJmG0jW4)=-DWG~)Yzn< zv`kLUEGxlrmZxVT^buvI8catu>?NhBX0Nuk%z-15pqu?d2IbwhZ5(O%mY|!~9dBLb zX_+Lhmj*>*XP7B_8G|ET<@(_O)7S=Z-t0Kjp+g*RAF4!Wr&mpnXMDIOGWCARPCG zfrDl+(aOGdvkbQRw0g3U^H+v?I{Dfofo5#|kRSUNq@JKQ**67U<4X#<=*sdstt2Te zj=Zq6?8IoqJBj-A3Jbx;>LqaSB09WUkPZe&tB&DB2& z!xE37ER&4dn&_;#D#$4ki+Z$2yVs?CeCF)JlbEis;A3;={MGGCwk>GimpAFXUf5i3 zWy)Ur)T6M!!pOR+%aW#^;O&nmYw#HRQelQ7DW5N1QeU7_R7KT}B_;IUtECzdfz;HU zV#Z(@Yo4sjNBcNwimLaNlt50Vb6nK3Zf842KKRO(1$=` zWzvqoDa{uB;Fcj+-aCcGRo;b6+v*8d&{@A}U<;@Kr>VF4$^mF99gbk*I%lC>^X*G( zd*VDQLTY3wC*8+%v+PZdi|m@=+zFC%#qFO7Gx)CY#(y=Xepil?hGq{5toqm1-U46S zpXB&YFf%)!FKG9K?=3wH@QGFmp@6*p)~n?k7WtT7ZBEeA=ky~mi>nZ;7pQ^SGl6Nv zHe;OO=lZhnG?6MQgHtW2QeK>MkV=$( z&eFt7@pE;LzD2-xxC6!6!HDUa5?n{O74Cl$7T9{#bkWt2l|`)4v{Id~_X~ZOd#E0M z0tGcNXOIPLk7u>e&8@3grZS6=dFABPM~wdH8ul%;a|dQoUp}W%WK>4+45hO-m1(gD+XXF zTgRpwu+u1eEv4{xrN+M`AO7?I@PENj&Ib&pr~qvjUrQRffF@>-_)!wELD$^jdn#in z0EGja+qK+J4b06G4QP0Y7TnJ#Vr}~p>nG&BlaJ1q;Kk+bVTrLK;+*|8v=ZLm9_Ete zyNcx{<&x|>uw>=ak@s=VOHNR#Wv$Fr9G{C0n*9n&Jx(kmkZ3KD@1;313Y!B8cs1mP zjJ|HoM~vLUC3RGq1;g|0csqKFI6LHlL{7H3g2rEJpNo_QJ{f;fM6RyXeu8E9N5{M3 zUWVe&vn}aag@3_0E54%la@`gmyhyqGrLGSRwsWf&T`m6pmYbkqs8z>J&E&; zICUviQ+L}Xmv6IE!L(dj%+w4P<)DKWxYku@2qd3Jp_!XCW34av+I09R79VPBIXTAD{A8eEC)S2nv zpRE4RFAu){g-%f6qM{~n@Oqw}^_(80c6H>m_r~t`+5eO` z*7()_zk=tLlA0e#@#yl*5EP>8rUZU8gUC@Xrk5Lg04xYJK_w)cJ zT~)0pA_I+5I(7To-2avi03B-rszbk-X@A? z5NgFX#W^Fu@ocKvLr3By_U*FRrTXi}ozftu8@y;7yas^93dQ1HmOBR|!NZ>dd>jv8 z2TJck&14f$+kCpICmpgYi%r|&0l5zSz1&9v=KIp0;_Gn51tX&Fnl${cANYp`;g1Qi z*r64@w0d*o^B#~>oWg+rZzyq8`}oAjnBtq^$pl09`{K=XU z*FRZkx9c+_JS@6=m@BQ0R|Gazzxwem+}i=}rnnp=C43n&FV6(z9DCn#iLw%me@23l z3$Vp-FpOe=H6;`a$~t&9renP7HlU#L0wmv!P{)sGllJK@(dY-Yg?zle)h{$jF8d-j-HU`%r zx}ps3c{GCe*~rtQ^jd@J8Y(p`_O)OtCca>RjUTJ-?Jf(MH)#n!zw`}%qR`ih)pA;X z@TYJG)wKo`KVzE`ajwR&-OW&BQ^j(>4>jkB3EryORRLY&q+q}e;i+2y0g3p3#@HMD z)Y=t{&4e)82f^*%5@RF6JZWi+v@}nlg=i9zly=EOnu-Kfs}|JCuPNq?_RHw$>}&vf zt&i3lTaIs|)Lj?Oh|6=UBVYqM|~_r*RrtADTguX zsCk#@i1ScDU=wH`Q$RvRRU*KXnoexjuoJOFNhmNaaH1mS9Gmj^r+pka4f*^@5LR@h zi%pgOsaDGFdc9G_i%F?c$a=WIEH8*%zT?Y?DTr+VUR7(DK!&fL#s|Qx{YbJVVcU_o z?c70}$E}3+GZ5PTqTh;$nia`mj!2Fh2Ah}7-UyjL-thg!mHMF%>W3fk3VQJ-&?;|C zOeh~SnAd@7R!6{#Tx9T2CY8MQFB0YpW_K45F)nGnHnT}0nSjOiASSa|qA{M{RI?!@ z-(l}L`hYfRbS;#el5}WD-Bgl6&|N&qpqe)+Ta?c^b6X;Eo(QwXAY%$V?1e;ob#Wg#5d%}Sws{VKfOaY=wn{AuJT>88_F{~frs+? zh15Y}R84V!`L3-{<5WSXy1V!MZcbX4RS4$XgK(+sQkmkw1&PjwXzqDz#Rdi zC_aRoj5#k8t>@;LsqdD@H#$49Wu$5w2Z>A2R0SesABSmE3wEA8;l5zdk!kDfR6R=> z`0*A}6n8P^A}@`BkoLLjyTiu;rDNVK^hNR^iT+fv_BJxczfUZ2x|{x>TBI5Gl&BRg(d34N z`sr8uRHvp}fE?)xo)Wd{*}9 H$@ISg*!7+3 literal 0 HcmV?d00001 diff --git a/docs/classsw_1_1_i_tag-members.html b/docs/classsw_1_1_i_tag-members.html new file mode 100644 index 00000000..9cb07b6b --- /dev/null +++ b/docs/classsw_1_1_i_tag-members.html @@ -0,0 +1,111 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::ITag Member List
+
+
+ +

This is the complete list of members for sw::ITag, including all inherited members.

+ + + +
GetTag()=0sw::ITagpure virtual
SetTag(uint64_t tag)=0sw::ITagpure virtual
+
+ + + + diff --git a/docs/classsw_1_1_i_tag.html b/docs/classsw_1_1_i_tag.html new file mode 100644 index 00000000..8cd30013 --- /dev/null +++ b/docs/classsw_1_1_i_tag.html @@ -0,0 +1,212 @@ + + + + + + + +SimpleWindow: sw::ITag Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
sw::ITag Class Referenceabstract
+
+
+ +

Tag接口 + More...

+ +

#include <ITag.h>

+
+Inheritance diagram for sw::ITag:
+
+
+ + +sw::MenuItem +sw::UIElement +sw::Control +sw::Layer +sw::ItemsControl< StrList > +sw::ButtonBase +sw::ItemsControl< TItem > +sw::PanelBase +sw::ProgressBar +sw::Slider +sw::StaticControl +sw::TabControl +sw::TextBoxBase +sw::PanelBase +sw::Window + +
+ + + + + + + + +

+Public Member Functions

virtual uint64_t GetTag ()=0
 获取Tag
 
virtual void SetTag (uint64_t tag)=0
 设置Tag
 
+

Detailed Description

+

Tag接口

+

Member Function Documentation

+ +

◆ GetTag()

+ +
+
+ + + + + +
+ + + + + + + +
virtual uint64_t sw::ITag::GetTag ()
+
+pure virtual
+
+ +

获取Tag

+ +

Implemented in sw::MenuItem, and sw::UIElement.

+ +
+
+ +

◆ SetTag()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::ITag::SetTag (uint64_t tag)
+
+pure virtual
+
+ +

设置Tag

+ +

Implemented in sw::MenuItem, and sw::UIElement.

+ +
+
+
The documentation for this class was generated from the following file:
    +
  • D:/code/GitHub/sw/sw/inc/ITag.h
  • +
+
+
+ + + + diff --git a/docs/classsw_1_1_i_tag.js b/docs/classsw_1_1_i_tag.js new file mode 100644 index 00000000..40a98e36 --- /dev/null +++ b/docs/classsw_1_1_i_tag.js @@ -0,0 +1,5 @@ +var classsw_1_1_i_tag = +[ + [ "GetTag", "classsw_1_1_i_tag.html#ad50507cafd55b2d9c18cc5c74a0ed946", null ], + [ "SetTag", "classsw_1_1_i_tag.html#a814b2084a60df545ba5d47e96f7928d3", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_i_tag.png b/docs/classsw_1_1_i_tag.png new file mode 100644 index 0000000000000000000000000000000000000000..0b7cf702137555d7fac5bff4ff37f1cb9ac5ddb3 GIT binary patch literal 6594 zcmd^E3se(l+Ez=eORMqdvZ%F2Yg@Nc3tKPL3yc*j;)S&05Je&O0^Wg2xRZ=ZY1*x8 zs#H-^i4*}Dlqe{X1Q-!pRKy?{5#taL1d_lEw`53$nfza%`fsnhdv?3${O8X(z?Yft z`)1zveV+GyzLziF^YyeYvZgn&@HG%8%s{>Didw&qF^A8vSz7KsoN6GGv7%_RR-|~0X z$Bpd5P3v^4#;4qQ9C+kQ3VD=F_CD+3;s08WvgO$ghyCvK#rM0iXmwcO@hMJDFBHTl zCML=@s3dz2)p|Jz4-+#^r3yJCPo7R3)A6y8k}0d3dn^{qf~Afb-^U`hUhvJ5XqYx? zg>CJ(>a`+@O_dQ+8B5m-24@XlKCEufqAMg#wM@?~;y5v5%LL5C9=2%9&3WePrY`W2 zfoC1)|MC?MJy3~9G;+bZ>|U_VcU%^aMy&6Fryu(+;&91wk#&w#rPsSQf{%DQ?sH`& z)}8D_k50?4tJpQ)ZTmG5s!a9|AU= zWH94cX=y35`IikYY}l3k+{lrs50))mIuYzUr6GKxw^RQi;FUvECm3FI4Aa*C;GkD< zpQR3)7x_`+Yy7~L{y+8MKx&b$t7!h1ZCSJ`C$VGJKU~o9t9xz=wzfn#*h?=(geYosD~!eLx^YNLm_6>1hPk~2Or~gplNUD_2uGiLpVEY#B$`Rv zJ(WDBFjYrTI-EYu4jv>)Lb-S1$f7@1_pl_GO`w3rYj6bXx z+taNnm9K%da~&I=Bq&;&oC1-e_GnB%M^CVCqqvM!YN2HiC4LL6TS<8|Dpe3)e7}`c zVW+#x|74GdwU^87XMQ}zqVBtS?r3;)tM|ZYPaC47Irc#SLiCJHG zH^A1s-gFTdE&#*+!^Xd(>aU_^h|O3L9p&O4LYLXYeQT5ikZ0DJCV0a?!s|Enwpwj%-OT1XL zOh);_+9R@=lWz@>%Y+wR!An9?rs=~dsPS1j;9$BrvVa>SXQqjbqunlI z6^)ORO8SU0#qG1V*mGL zPNb6D3Gvj(3C9~*SLfob=iOCE%?~R zz%eTvH$e&sNJefCA#BT6bDUoI`f1Q7>cR_`djvj(#+pvizJlc*>z`h@HOKVK?}(M( z34%|y4Y|B*$oTr}zzvGc87TS%lL?}`_6nNP5&be*b? zT9h;>E;E+f?_Hqruf3-ZhQIHc6Sy)hecJ&x1_OM1i1ikx11a`M4V9)3gEAiV>?6-C-WYV(oE6d&cG!>M4e5 zYhE1;3szH=E{h%~T+9uEI5SAODKl-G#uV!xS9(G4r`CZw8`_s*qOXKLYj4Mqd6evi zLV(K!*csFoq{4)V*F9633^hl2J%XD(H`NO~Lb zJgR$aj!O{k6QPFISQ8*bMbk2p`5VKgh1|5uW9@eyx^wqxi?AR`UCp=%h#AC8Vl^Hv zXen4$xrt~lO2o$EyDZQHG9tXjL?{r0yn$5ex-9e4NjA9{@pz!+<^84cRz7NczJZjw z3Art>QHILeySgDl?9x+-3&^-U=}mhQX5U6|BVMO){aHU)%dcg&r;N)Do~6c$3G!4u zcYi>2CH0NJT!DEfi1?8H7@um>ma0(WO?wF~Z4*zc@9~cO=HB+}d3U%H@uFbZd`W0O z=^&Hbf`E!?)T{=aS+Sbx-uVM(%)uG20!WOt+|0fD=iU5mexRHtmkLpjRrM|jf>VzC zeRpS$bLPC@41AO$`5X#a0#C|nckXiivtwPq5v&8)0txSU`Oc3)T6N7IKkvv>iv4$z z?i0lShjaOFZ|j;rRJNMtgJjd-#yR4!!BcEbBcKyxCg;M)W`iKRaoW`!dMf3s&u@GmHh(I#cRHUO zg&EmGM(kqiDM}hBvXy}Pl;uZp+GWHr)CCzW=LXJ?(|552-yu=QLmHSEHD2~TrAFrI zwfDUVw(TXr=_;|k)%jd)aD;DKlib7_52L6%Gt=!;bDs`}z9D^au7v4!OkC|SoAoY9 z?-#SAwB<&{o=$$Nu&S)MRao8gE)ZQOg!afXjv5+A&#Mq}^i=8)&TAbYg=XPfhl+t1 zWI5=SfE0mA#~cR52tYqdQR5hWwwel1)FfIQLgbT~V_^#q19v*<7Q+vFmkCa287 z-Kz@LjAa)NWl?MC`NT0}j;;D7&HL*T_J5BSzpYn>P9Oiul=u&*q1W0g4ru_2_gbyj zyd!^qk{Q|yQP9=wM%aA4jd>rAe%yB5T!k-=iLeb)*@>U~srB;W#msgpFE%T2%)k}7 zL9C1=KU}h~zgS<(p>3fu@3PHZk1BUcA#Q$2u~9`!FePdXQc1Gel~m4V=>pi)KBJY1 z67_HHZSJ=|(#mejb7_XPP>mrchztd!W#F$o-95pygjoU?aa7d?(F@)t)@CnJEx~;P zkkhnJxKyq8%Ky+Sg;_(@zc>I>N{lKS6mr(?2B7-#tO^QM*<+P@eaU5O6Q|ck)3JloY2i^jmGFOgK6| zU5#`n=ArpniQ9}CM{+v}9tEr)4xmUa0B+P4(XZk@{9rYr@dj_XR;>?}6B)VbI9bS} zYVNwJ1wgY-cIxlDO3awPW%h3#hW>lNXiXVL>nK}%=x`FMS^qPruF)}J6cF*P%(a~M zJhbdiwLsACP< z?HH5}u?Mx14AdB4n0DepxKigDUq*j)U4nSx`rZAevFx5lMj@=N2cei>A;wT@0^ul- z6yG-=0lc5(xb8z;TKH~~&fMH;@IJ4^Vq(SAP7V1*K-6A;`Te+3k0Oa6Za_x^Bj z8##@KiHviThvJ%WbNCzfkO@y~G$-tF=?SCEmk(ixD6*s9+>~+^6TqCJ`&Njf zzubVkf%9FGfs8>ux0bbOM{kKLX^r%`yijPfiCg=3Ai)62mFyk>Y)!)KHWZ!Z*n(?d zOX`6J0oLXsp`hcjVk;nO9^$9~<-eE@6`kUZM?=HL*Jz$sOZM)~b+ml`m8AQtO^<(b z7uOgJ92Mt}>1aPPtj~P_H-6G%>6Hqxc%-weOHMxn!&s`r=uBGlIIW}3%W1GC32@fZ z(kRYPG>ee9sKJ=QC4-$lUx8T$l|DygVAt8QXgrE(9%ycKq_fFt!Dw;xiyK}NM+N}J zd=OA&Z9TKQ$uo9;G^O?h{wD7`xM}@>s=Uat-}Bt3CKSYY7}h(UY_QO)>+?>LD!^C@ zK*Y-(K%_1jly62K-*0 ze$wdsXQS>ugqR%wF>b@>cS-h78(tkBe@}RlQe0WJ&-`Vd)uHMRJ`}tMM}sO7Ffj(> zS!SC}pYz)Dc9_>tm2{W7W{5 z1fgyG)Nf0ZUb(Hw(_Jx`jh)GPC^~I5pqzjd2V1nen@ULi=E!eL(Bk=k6RyC-e3PCJV*8AoFn8h1Vn81*!AdLj+r=2Dl~kE(&|3B990uCF6v8*&o2 zp<5}svkq8tlK>68u;)fHCI9yXRB8;iaLH}=`bwY~9!@RBPNBvSATio-vfi35ZbUHC zBG92N4C@dpQ^*g!Hnu0;*L%`C@6F;%CtnA``MEt00*P;P%ufp+U7 zTeq<=6%TAA5I-qpL;TU`_gbum&Zoyjs=qP_aE$9RGH)J*F>r!%Lvq14L_fSO+-& zxvvBP`k5^FQ5ppD0SL>v$v{}%_i}Pt0|NdJI==sA@&gwBGwQeGJPi(+x$i866rIDp z-xI5T)`PaH^i!w7mlDdbq{#l{WYB&E2H*XfW<)pC1ovco+H50_oBeTr|r> zP>ZcII&o?HHGXBpxM^a&^#_ds7^oi&gw75=G%W@XzHm{UvsbIB9jXAK3BMwTVibEtKv)hNKJ4EW*=aC zmlwAu77qyMN@!{P6y^iQR?Br mCqw*nI&g8Q^h`29ublj(mD9qx2L9VJ!tY)G<@w9D?EfD@Cj_ + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::IconHelper Member List
+
+
+ +

This is the complete list of members for sw::IconHelper, including all inherited members.

+ + + + + +
GetIconHandle(StandardIcon icon)sw::IconHelperstatic
GetIconHandle(HINSTANCE hInstance, int resourceId)sw::IconHelperstatic
GetIconHandle(HINSTANCE hInstance, const std::wstring &iconName)sw::IconHelperstatic
GetIconHandle(const std::wstring &fileName)sw::IconHelperstatic
+
+ + + + diff --git a/docs/classsw_1_1_icon_helper.html b/docs/classsw_1_1_icon_helper.html new file mode 100644 index 00000000..4ebbab4a --- /dev/null +++ b/docs/classsw_1_1_icon_helper.html @@ -0,0 +1,283 @@ + + + + + + + +SimpleWindow: sw::IconHelper Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
sw::IconHelper Class Reference
+
+
+ +

用于获取图标句柄的工具类 + More...

+ +

#include <Icon.h>

+ + + + + + + + + + + + + + +

+Static Public Member Functions

static HICON GetIconHandle (StandardIcon icon)
 获取系统标准图标句柄
 
static HICON GetIconHandle (HINSTANCE hInstance, int resourceId)
 从指定模块中获取图标句柄
 
static HICON GetIconHandle (HINSTANCE hInstance, const std::wstring &iconName)
 从指定模块中获取图标句柄
 
static HICON GetIconHandle (const std::wstring &fileName)
 从文件加载图标句柄
 
+

Detailed Description

+

用于获取图标句柄的工具类

+

Member Function Documentation

+ +

◆ GetIconHandle() [1/4]

+ +
+
+ + + + + +
+ + + + + + + +
static HICON sw::IconHelper::GetIconHandle (const std::wstring & fileName)
+
+static
+
+ +

从文件加载图标句柄

+
Parameters
+ + +
fileName图标文件的路径
+
+
+
Returns
成功则返回图标句柄,否则返回NULL
+ +
+
+ +

◆ GetIconHandle() [2/4]

+ +
+
+ + + + + +
+ + + + + + + + + + + +
static HICON sw::IconHelper::GetIconHandle (HINSTANCE hInstance,
const std::wstring & iconName )
+
+static
+
+ +

从指定模块中获取图标句柄

+
Parameters
+ + + +
hInstanceDLL或EXE的模块句柄
iconName图标的资源名称
+
+
+
Returns
成功则返回图标句柄,否则返回NULL
+ +
+
+ +

◆ GetIconHandle() [3/4]

+ +
+
+ + + + + +
+ + + + + + + + + + + +
static HICON sw::IconHelper::GetIconHandle (HINSTANCE hInstance,
int resourceId )
+
+static
+
+ +

从指定模块中获取图标句柄

+
Parameters
+ + + +
hInstanceDLL或EXE的模块句柄
resourceId图标的资源序号
+
+
+
Returns
成功则返回图标句柄,否则返回NULL
+ +
+
+ +

◆ GetIconHandle() [4/4]

+ +
+
+ + + + + +
+ + + + + + + +
static HICON sw::IconHelper::GetIconHandle (StandardIcon icon)
+
+static
+
+ +

获取系统标准图标句柄

+
Parameters
+ + +
icon图标样式
+
+
+
Returns
图标句柄
+ +
+
+
The documentation for this class was generated from the following file:
    +
  • D:/code/GitHub/sw/sw/inc/Icon.h
  • +
+
+
+ + + + diff --git a/docs/classsw_1_1_items_control-members.html b/docs/classsw_1_1_items_control-members.html new file mode 100644 index 00000000..1769e2f5 --- /dev/null +++ b/docs/classsw_1_1_items_control-members.html @@ -0,0 +1,303 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::ItemsControl< TItem > Member List
+
+
+ +

This is the complete list of members for sw::ItemsControl< TItem >, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AddChild(UIElement *element)sw::UIElement
AddChild(UIElement &element)sw::UIElement
AddChild(UIElement *element, uint64_t layoutTag)sw::UIElement
AddChild(UIElement &element, uint64_t layoutTag)sw::UIElement
AddItem(const TItem &item)=0sw::ItemsControl< TItem >pure virtual
Arrange(const sw::Rect &finalPosition) overridesw::UIElementvirtual
BackColorsw::UIElement
ChildCountsw::UIElement
Clear()=0sw::ItemsControl< TItem >pure virtual
ClearChildren()sw::UIElement
ClientHeightsw::WndBase
ClientRectsw::WndBase
ClientWidthsw::WndBase
Close()sw::WndBase
CollapseWhenHidesw::UIElement
ContextMenusw::UIElement
Control()sw::Controlprotected
DefaultWndProc(const ProcMsg &refMsg)sw::WndBaseprotected
Enabledsw::WndBase
Floatsw::UIElement
Focusedsw::WndBase
Fontsw::WndBase
FontChanged(HFONT hfont)sw::WndBaseprotectedvirtual
FontNamesw::WndBase
FontSizesw::WndBase
FontWeightsw::WndBase
GetArrangeOffsetX()sw::UIElementprotected
GetArrangeOffsetY()sw::UIElementprotected
GetChildBottommost(bool update)sw::UIElementprotected
GetChildLayoutAt(int index) overridesw::UIElementvirtual
GetChildLayoutCount() overridesw::UIElementvirtual
GetChildRightmost(bool update)sw::UIElementprotected
GetDesireSize() overridesw::UIElementvirtual
GetExtendedStyle()sw::WndBaseprotected
GetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
GetFontHandle()sw::WndBaseprotected
GetItemAt(int index)=0sw::ItemsControl< TItem >pure virtual
GetItemsCount()=0sw::ItemsControl< TItem >protectedpure virtual
GetLayoutTag() overridesw::UIElementvirtual
GetNextElement()sw::UIElement
GetNextTabStopElement()sw::UIElement
GetRealBackColor()sw::UIElement
GetRealTextColor()sw::UIElement
GetRootElement()sw::UIElement
GetSelectedIndex()=0sw::ItemsControl< TItem >protectedpure virtual
GetSelectedItem()=0sw::ItemsControl< TItem >protectedpure virtual
GetStyle()sw::WndBaseprotected
GetStyle(LONG_PTR style)sw::WndBaseprotected
GetTag() overridesw::UIElementvirtual
GetText()sw::WndBaseprotectedvirtual
GetWndBase(HWND hwnd)sw::WndBasestatic
Handlesw::WndBase
HandleChenged()sw::Controlprotectedvirtual
HandleInitialized(HWND hwnd)sw::WndBaseprotectedvirtual
Heightsw::WndBase
HorizontalAlignmentsw::UIElement
IndexOf(UIElement *element)sw::UIElement
IndexOf(UIElement &element)sw::UIElement
InheritTextColorsw::UIElement
InitControl(LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
InitWindow(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
InsertItem(int index, const TItem &item)=0sw::ItemsControl< TItem >pure virtual
IsControl()sw::WndBase
IsDestroyedsw::WndBase
IsRootElement()sw::UIElement
IsRoutedEventRegistered(RoutedEventType eventType)sw::UIElement
IsVisible()sw::WndBase
ItemsControl()sw::ItemsControl< TItem >inlineprotected
ItemsCountsw::ItemsControl< TItem >
LayoutTagsw::UIElement
Leftsw::WndBase
Marginsw::UIElement
Measure(const Size &availableSize) overridesw::UIElementvirtual
MoveToBottom()sw::UIElement
MoveToTop()sw::UIElement
NcHitTest(const Point &testPoint)sw::WndBase
NotifyLayoutUpdated()sw::UIElementprotected
OnAcceleratorCommand(int id)sw::WndBaseprotectedvirtual
OnAddedChild(UIElement &element)sw::UIElementprotectedvirtual
OnChar(wchar_t ch, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnClose() overridesw::UIElementprotectedvirtual
OnColor(HDC hdc, HBRUSH &hRetBrush) overridesw::UIElementprotectedvirtual
OnCommand(int code)sw::WndBaseprotectedvirtual
OnContextMenu(bool isKeyboardMsg, Point mousePosition) overridesw::UIElementprotectedvirtual
OnControlCommand(WndBase *pControl, int code, int id)sw::WndBaseprotectedvirtual
OnCreate()sw::WndBaseprotectedvirtual
OnCtlColor(WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)sw::WndBaseprotectedvirtual
OnDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnDestroy()sw::WndBaseprotectedvirtual
OnDrawFocusRect()sw::UIElementprotectedvirtual
OnDrawItem(int id, DRAWITEMSTRUCT *pDrawItem)sw::WndBaseprotectedvirtual
OnEnabledChanged(bool newValue)sw::WndBaseprotectedvirtual
OnEndPaint() overridesw::UIElementprotectedvirtual
OnEraseBackground(int &result)sw::WndBaseprotectedvirtual
OnHorizontalScroll(int event, int pos)sw::WndBaseprotectedvirtual
OnKeyDown(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKeyUp(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKillFocus(HWND hNextFocus) overridesw::UIElementprotectedvirtual
OnMenuCommand(int id) overridesw::UIElementprotectedvirtual
OnMouseLeave() overridesw::UIElementprotectedvirtual
OnMouseLeftButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseLeftButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseMiddleButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMove(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseRightButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseWheel(int wheelDelta, Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMove(Point newClientPosition) overridesw::UIElementprotectedvirtual
OnNcHitTest(const Point &testPoint, HitTestResult &result)sw::WndBaseprotectedvirtual
OnNotified(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnNotify(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnPaint()sw::WndBaseprotectedvirtual
OnRemovedChild(UIElement &element)sw::UIElementprotectedvirtual
OnSelectionChanged()sw::ItemsControl< TItem >inlineprotectedvirtual
OnSetCursor(HWND hwnd, HitTestResult hitTest, int message, bool &result) overridesw::UIElementprotectedvirtual
OnSetFocus(HWND hPrevFocus) overridesw::UIElementprotectedvirtual
OnSize(Size newClientSize) overridesw::UIElementprotectedvirtual
OnSysChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyDown(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyUp(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnTabStop()sw::UIElementprotectedvirtual
OnTextChanged() overridesw::UIElementprotectedvirtual
OnVerticalScroll(int event, int pos)sw::WndBaseprotectedvirtual
operator=(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator=(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator[](int index) constsw::UIElement
Parentsw::UIElement
ParentChanged(WndBase *newParent) overridesw::UIElementprotectedvirtual
PointFromScreen(const Point &screenPoint)sw::WndBase
PointToScreen(const Point &point)sw::WndBase
RaiseRoutedEvent(RoutedEventType eventType)sw::UIElementprotected
RaiseRoutedEvent(RoutedEventArgs &eventArgs)sw::UIElementprotected
Rectsw::WndBase
Redraw(bool erase=false)sw::WndBase
RegisterRoutedEvent(RoutedEventType eventType, const RoutedEvent &handler)sw::UIElement
RegisterRoutedEvent(RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))sw::UIElementinline
RegisterRoutedEvent(std::function< void(UIElement &, TEventArgs &)> handler)sw::UIElementinline
RegisterRoutedEvent(THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))sw::UIElementinline
RemoveChild(UIElement *element)sw::UIElement
RemoveChild(UIElement &element)sw::UIElement
RemoveChildAt(int index)sw::UIElement
RemoveItemAt(int index)=0sw::ItemsControl< TItem >pure virtual
ResetCursor()sw::UIElement
ResetHandle()sw::Controlprotected
SelectedIndexsw::ItemsControl< TItem >
SelectedItemsw::ItemsControl< TItem >
SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase
SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement
SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual
SetCursor(HCURSOR hCursor)sw::UIElement
SetCursor(StandardCursor cursor)sw::UIElement
SetDesireSize(const Size &size) overridesw::UIElementvirtual
SetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
SetExtendedStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetNextTabStopFocus()sw::UIElementprotected
SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual
SetSelectedIndex(int index)=0sw::ItemsControl< TItem >protectedpure virtual
SetStyle(LONG_PTR style)sw::WndBaseprotected
SetStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetTag(uint64_t tag) overridesw::UIElementvirtual
SetText(const std::wstring &value)sw::WndBaseprotectedvirtual
SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual
Show(int nCmdShow)sw::WndBase
ShowContextMenu(const Point &point)sw::UIElement
TabStopsw::UIElement
Tagsw::UIElement
Textsw::WndBase
TextColorsw::UIElement
Topsw::WndBase
Transparentsw::UIElement
UIElement()sw::UIElementprotected
UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement
Update()sw::WndBase
UpdateChildrenZOrder()sw::UIElementprotected
UpdateFont()sw::WndBase
UpdateItem(int index, const TItem &newValue)=0sw::ItemsControl< TItem >pure virtual
UpdateSiblingsZOrder()sw::UIElementprotected
UpdateText()sw::WndBaseprotected
VerticalAlignmentsw::UIElement
Visiblesw::WndBase
VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual
Widthsw::WndBase
WndBase()sw::WndBaseprotected
WndBase(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndBase(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual
~Control()=0sw::Controlpure virtual
~UIElement()=0sw::UIElementpure virtual
~WndBase()=0sw::WndBasepure virtual
+
+ + + + diff --git a/docs/classsw_1_1_items_control.html b/docs/classsw_1_1_items_control.html new file mode 100644 index 00000000..8385de46 --- /dev/null +++ b/docs/classsw_1_1_items_control.html @@ -0,0 +1,1218 @@ + + + + + + + +SimpleWindow: sw::ItemsControl< TItem > Class Template Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
sw::ItemsControl< TItem > Class Template Referenceabstract
+
+
+ +

表示可用于呈现一组项的控件 + More...

+ +

#include <ItemsControl.h>

+
+Inheritance diagram for sw::ItemsControl< TItem >:
+
+
+ + +sw::Control +sw::UIElement +sw::WndBase +sw::ILayout +sw::ITag +sw::ComboBox +sw::ListBox + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

virtual void Clear ()=0
 清空所有子项
 
virtual TItem GetItemAt (int index)=0
 获取指定索引处子项的值
 
virtual bool AddItem (const TItem &item)=0
 添加新的子项
 
virtual bool InsertItem (int index, const TItem &item)=0
 添加子项到指定索引
 
virtual bool UpdateItem (int index, const TItem &newValue)=0
 更新指定位置的子项
 
virtual bool RemoveItemAt (int index)=0
 移除指定索引处的子项
 
- Public Member Functions inherited from sw::Control
+virtual ~Control ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
- Public Member Functions inherited from sw::UIElement
+virtual ~UIElement ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
void RegisterRoutedEvent (RoutedEventType eventType, const RoutedEvent &handler)
 注册路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename T >
void RegisterRoutedEvent (RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))
 注册成员函数作为路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename TEventArgs , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (std::function< void(UIElement &, TEventArgs &)> handler)
 根据事件参数类型注册路由事件
 
template<typename TEventArgs , typename THandleObj , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))
 根据事件参数类型注册成员函数作为路由事件
 
void UnregisterRoutedEvent (RoutedEventType eventType)
 取消对应类型路由事件的注册
 
bool IsRoutedEventRegistered (RoutedEventType eventType)
 判断路由事件是否已被注册
 
bool AddChild (UIElement *element)
 添加子控件
 
bool AddChild (UIElement &element)
 添加子控件
 
bool AddChild (UIElement *element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool AddChild (UIElement &element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool RemoveChildAt (int index)
 移除指定索引处的子控件
 
bool RemoveChild (UIElement *element)
 移除子控件
 
bool RemoveChild (UIElement &element)
 移除子控件
 
+void ClearChildren ()
 移除所有子控件
 
int IndexOf (UIElement *element)
 获取指定元素的索引
 
int IndexOf (UIElement &element)
 获取指定元素的索引
 
+UIElementoperator[] (int index) const
 通过索引获取子控件
 
void ShowContextMenu (const Point &point)
 弹出当前元素的上下文菜单
 
+void MoveToTop ()
 移动到界面顶部
 
+void MoveToBottom ()
 移动到界面底部
 
+bool IsRootElement ()
 判断当前元素是否为根节点
 
+UIElementGetRootElement ()
 获取当前元素所在界面树的根节点
 
+UIElementGetNextElement ()
 获取当前元素在界面树上的下一个节点,若已是最后一个节点则返回根节点
 
+UIElementGetNextTabStopElement ()
 获取下一个TabStop属性为true的元素
 
+Color GetRealBackColor ()
 获取当前要显示的背景颜色:当Transparent为true时获取到祖先节点中首个Transparent为false的背景颜色,否则返回当前元素的背景颜色
 
+Color GetRealTextColor ()
 获取当前要显示的文本颜色:当InheritTextColor为true时获取到祖先节点中首个InheritTextColor为false的文本颜色,否则返回当前元素的文本颜色
 
void SetCursor (HCURSOR hCursor)
 设置鼠标样式
 
void SetCursor (StandardCursor cursor)
 设置鼠标样式
 
+void ResetCursor ()
 将鼠标样式设置为默认样式
 
void SetAlignment (sw::HorizontalAlignment horz, sw::VerticalAlignment vert)
 设置对齐方式
 
virtual uint64_t GetTag () override
 获取Tag
 
virtual void SetTag (uint64_t tag) override
 设置Tag
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取参与布局的子控件数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取对应索引处的子控件,使用此函数前必须先调用GetChildLayoutCount
 
virtual Size GetDesireSize () override
 获取控件所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置当前控件所需的尺寸
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const sw::Rect &finalPosition) override
 安排控件位置
 
- Public Member Functions inherited from sw::WndBase
+virtual ~WndBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void Show (int nCmdShow)
 该函数调用ShowWindow
 
+void Close ()
 发送关闭消息
 
+void Update ()
 该函数调用UpdateWindow
 
+void UpdateFont ()
 更新字体
 
void Redraw (bool erase=false)
 重画
 
+bool IsControl ()
 判断当前对象是否是控件
 
+bool IsVisible ()
 判断当前对象在界面中是否可视,与Visible属性不同的是该函数返回值会受父窗口的影响
 
Point PointToScreen (const Point &point)
 获取用户区点在屏幕上点的位置
 
Point PointFromScreen (const Point &screenPoint)
 获取屏幕上点在当前用户区点的位置
 
+LRESULT SendMessageW (UINT uMsg, WPARAM wParam, LPARAM lParam)
 发送消息
 
HitTestResult NcHitTest (const Point &testPoint)
 测试指定点在窗口的哪一部分
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Attributes

+const ReadOnlyProperty< intItemsCount
 项数
 
+const Property< intSelectedIndex
 选中项的索引,当无选中项时为-1
 
+const ReadOnlyProperty< TItemSelectedItem
 选中项
 
- Public Attributes inherited from sw::UIElement
+const Property< ThicknessMargin
 边距
 
+const Property< HorizontalAlignment > HorizontalAlignment
 水平对齐方式
 
+const Property< VerticalAlignment > VerticalAlignment
 垂直对齐方式
 
+const ReadOnlyProperty< intChildCount
 子控件数量
 
+const Property< boolCollapseWhenHide
 是否在不可见时不参与布局
 
+const ReadOnlyProperty< UIElement * > Parent
 指向父元素的指针,当前元素为顶级窗口时该值为nullptr
 
+const Property< uint64_tTag
 储存用户自定义信息的标记
 
+const Property< uint64_tLayoutTag
 布局标记,对于不同的布局有不同含义
 
+const Property< sw::ContextMenu * > ContextMenu
 右键按下时弹出的菜单
 
+const Property< boolFloat
 元素是否悬浮,若元素悬浮则该元素不会随滚动条滚动而改变位置
 
+const Property< boolTabStop
 表示用户是否可以通过按下Tab键将焦点移动到当前元素
 
+const Property< ColorBackColor
 背景颜色,修改该属性会同时将Transparent属性设为false,对于部分控件该属性可能不生效
 
+const Property< ColorTextColor
 文本颜色,修改该属性会同时将InheritTextColor属性设为false,对于部分控件该属性可能不生效
 
+const Property< boolTransparent
 是否使用透明背景(此属性并非真正意义上的透明,将该属性设为true可继承父元素的背景颜色)
 
+const Property< boolInheritTextColor
 是否继承父元素的文本颜色
 
- Public Attributes inherited from sw::WndBase
+const ReadOnlyProperty< HWNDHandle
 窗口句柄
 
+const Property< sw::FontFont
 字体
 
+const Property< std::wstring > FontName
 字体名称
 
+const Property< doubleFontSize
 字体大小
 
+const Property< sw::FontWeight > FontWeight
 字体粗细
 
+const Property< sw::RectRect
 位置和尺寸
 
+const Property< doubleLeft
 左边
 
+const Property< doubleTop
 顶边
 
+const Property< doubleWidth
 宽度
 
+const Property< doubleHeight
 高度
 
+const ReadOnlyProperty< sw::RectClientRect
 用户区尺寸
 
+const ReadOnlyProperty< doubleClientWidth
 用户区宽度
 
+const ReadOnlyProperty< doubleClientHeight
 用户区高度
 
+const Property< boolEnabled
 窗口或控件是否可用
 
+const Property< boolVisible
 窗口或控件是否可见
 
+const Property< std::wstring > Text
 窗口标题或控件文本
 
+const Property< boolFocused
 窗口是否拥有焦点
 
+const ReadOnlyProperty< WndBase * > Parent
 父窗口
 
+const ReadOnlyProperty< boolIsDestroyed
 是否已销毁,当该值为true时不应该继续使用当前对象
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Protected Member Functions

ItemsControl ()
 初始化ItemsControl
 
virtual void OnSelectionChanged ()
 选中项改变时调用该函数
 
virtual int GetItemsCount ()=0
 获取子项数
 
virtual int GetSelectedIndex ()=0
 选中项的索引,当无选中项时为-1
 
virtual void SetSelectedIndex (int index)=0
 设置选中项索引
 
virtual TItem GetSelectedItem ()=0
 获取选中项
 
- Protected Member Functions inherited from sw::Control
Control ()
 初始化控件
 
+void ResetHandle ()
 销毁控件句柄并重新初始化,该操作会创建新的句柄并设置样式、文本、字体等
 
+virtual void HandleChenged ()
 控件句柄发生改变时调用该函数
 
- Protected Member Functions inherited from sw::UIElement
UIElement ()
 初始化UIElement
 
void RaiseRoutedEvent (RoutedEventType eventType)
 触发路由事件
 
void RaiseRoutedEvent (RoutedEventArgs &eventArgs)
 触发路由事件
 
+void NotifyLayoutUpdated ()
 通知顶级窗口布局改变
 
+doubleGetArrangeOffsetX ()
 获取Arrange时子元素的水平偏移量
 
+doubleGetArrangeOffsetY ()
 获取Arrange时子元素的垂直偏移量
 
double GetChildRightmost (bool update)
 获取所有子元素在当前元素中最右边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
double GetChildBottommost (bool update)
 获取所有子元素在当前元素中最底边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
+void UpdateChildrenZOrder ()
 更新子元素的Z轴位置
 
+void UpdateSiblingsZOrder ()
 更新兄弟元素的Z轴位置
 
+void SetNextTabStopFocus ()
 设置下一个TabStop属性为true的元素为焦点元素
 
virtual void SetBackColor (Color color, bool redraw)
 设置背景颜色
 
virtual void SetTextColor (Color color, bool redraw)
 设置文本颜色
 
virtual void OnAddedChild (UIElement &element)
 添加子元素后调用该函数
 
virtual void OnRemovedChild (UIElement &element)
 移除子元素后调用该函数
 
+virtual void OnTabStop ()
 通过tab键将焦点移动到当前元素时调用该函数
 
virtual void OnDrawFocusRect ()
 绘制虚线框时调用该函数
 
virtual bool SetParent (WndBase *parent) override
 设置父窗口
 
virtual void ParentChanged (WndBase *newParent) override
 父窗口改变时调用此函数
 
virtual void OnEndPaint () override
 在OnPaint函数完成之后调用该函数
 
virtual bool OnClose () override
 接收到WM_CLOSE时调用该函数
 
virtual bool OnMove (Point newClientPosition) override
 接收到WM_MOVE时调用该函数
 
virtual bool OnSize (Size newClientSize) override
 接收到WM_SIZE时调用该函数
 
virtual void OnTextChanged () override
 Text属性更改时调用此函数
 
virtual void VisibleChanged (bool newVisible) override
 Visible属性改变时调用此函数
 
virtual bool OnSetFocus (HWND hPrevFocus) override
 接收到WM_SETFOCUS时调用该函数
 
virtual bool OnKillFocus (HWND hNextFocus) override
 接收到WM_KILLFOCUS时调用该函数
 
virtual bool OnChar (wchar_t ch, KeyFlags flags) override
 接收到WM_CHAR时调用该函数
 
virtual bool OnKeyDown (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYDOWN时调用该函数
 
virtual bool OnKeyUp (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYUP时调用该函数
 
virtual bool OnMouseMove (Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEMOVE时调用该函数
 
virtual bool OnMouseLeave () override
 接收到WM_MOUSELEAVE时调用该函数
 
virtual bool OnMouseWheel (int wheelDelta, Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEWHEEL时调用该函数
 
virtual bool OnMouseLeftButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONDOWN时调用该函数
 
virtual bool OnMouseLeftButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONUP时调用该函数
 
virtual bool OnMouseRightButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONDOWN时调用该函数
 
virtual bool OnMouseRightButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONUP时调用该函数
 
virtual bool OnMouseMiddleButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONDOWN时调用该函数
 
virtual bool OnMouseMiddleButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONUP时调用该函数
 
virtual bool OnContextMenu (bool isKeyboardMsg, Point mousePosition) override
 接收到WM_CONTEXTMENU后调用目标控件的该函数
 
virtual void OnMenuCommand (int id) override
 当WM_COMMAND接收到菜单命令时调用该函数
 
virtual bool OnColor (HDC hdc, HBRUSH &hRetBrush) override
 父窗口接收到WM_CTLCOLORxxx时调用对应控件的该函数
 
virtual bool OnSetCursor (HWND hwnd, HitTestResult hitTest, int message, bool &result) override
 接收到WM_SETCURSOR消息时调用该函数
 
- Protected Member Functions inherited from sw::WndBase
WndBase ()
 初始化WndBase
 
WndBase (const WndBase &)=delete
 
WndBase (WndBase &&)=delete
 
+WndBaseoperator= (const WndBase &)=delete
 
+WndBaseoperator= (WndBase &&)=delete
 
+void InitWindow (LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为窗口,该函数会调用CreateWindowExW
 
+void InitControl (LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为控件,该函数会调用CreateWindowExW
 
+LONG_PTR GetStyle ()
 获取窗口样式
 
+void SetStyle (LONG_PTR style)
 设置窗口样式
 
+bool GetStyle (LONG_PTR style)
 获取窗口的某个样式
 
+void SetStyle (LONG_PTR style, bool value)
 设置窗口的某个样式
 
+LONG_PTR GetExtendedStyle ()
 获取扩展窗口样式
 
+void SetExtendedStyle (LONG_PTR style)
 设置扩展窗口样式
 
+bool GetExtendedStyle (LONG_PTR style)
 获取窗口的某个扩展样式
 
+void SetExtendedStyle (LONG_PTR style, bool value)
 设置窗口的某个扩展样式
 
+HFONT GetFontHandle ()
 获取字体句柄
 
+LRESULT DefaultWndProc (const ProcMsg &refMsg)
 调用默认的WndProc,对于窗口则调用DefWindowProcW,控件则调用_controlOldWndProc
 
virtual LRESULT WndProc (const ProcMsg &refMsg)
 对WndProc的封装
 
+void UpdateText ()
 更新_text字段
 
virtual std::wstring & GetText ()
 获取窗口文本
 
virtual void SetText (const std::wstring &value)
 调用SetWindowTextW设置窗口文本
 
virtual bool OnCreate ()
 接收到WM_CREATE时调用该函数
 
virtual bool OnDestroy ()
 接收到WM_DESTROY时调用该函数
 
virtual bool OnPaint ()
 接收到WM_PAINT时调用该函数
 
virtual bool OnMouseLeftButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_LBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseRightButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_RBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseMiddleButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_MBUTTONDBLCLK时调用该函数
 
virtual bool OnDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_DEADCHAR时调用该函数
 
virtual bool OnSysChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSCHAR时调用该函数
 
virtual bool OnSysDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSDEADCHAR时调用该函数
 
virtual bool OnSysKeyDown (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYDOWN时调用该函数
 
virtual bool OnSysKeyUp (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYUP时调用该函数
 
virtual void OnCommand (int code)
 当父窗口接收到控件的WM_COMMAND时调用该函数
 
virtual void OnControlCommand (WndBase *pControl, int code, int id)
 当WM_COMMAND接收到控件命令时调用该函数
 
virtual void OnAcceleratorCommand (int id)
 当WM_COMMAND接收到快捷键命令时调用该函数
 
virtual void HandleInitialized (HWND hwnd)
 窗口句柄初始化完成
 
virtual void FontChanged (HFONT hfont)
 字体改变时调用该函数
 
virtual bool OnNotify (NMHDR *pNMHDR)
 接收到WM_NOTIFY后调用该函数
 
virtual void OnNotified (NMHDR *pNMHDR)
 父窗口接收到WM_NOTIFY后调用发出通知控件的该函数
 
virtual bool OnVerticalScroll (int event, int pos)
 接收到WM_VSCROLL时调用目标控件的该函数
 
virtual bool OnHorizontalScroll (int event, int pos)
 接收到WM_HSCROLL时调用目标控件的该函数
 
virtual bool OnEnabledChanged (bool newValue)
 接收到WM_ENABLE时调用该函数
 
virtual bool OnCtlColor (WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)
 接收到WM_CTLCOLORxxx时调用该函数
 
virtual void OnNcHitTest (const Point &testPoint, HitTestResult &result)
 接收到WM_NCHITTEST后调用该函数
 
virtual bool OnEraseBackground (int &result)
 接收到WM_ERASEBKGND时调用该函数
 
virtual bool OnDrawItem (int id, DRAWITEMSTRUCT *pDrawItem)
 接收到WM_DRAWITEM时调用该函数
 
+ + + + + +

+Additional Inherited Members

- Static Public Member Functions inherited from sw::WndBase
static WndBaseGetWndBase (HWND hwnd)
 通过窗口句柄获取WndBase
 
+

Detailed Description

+
template<typename TItem>
+class sw::ItemsControl< TItem >

表示可用于呈现一组项的控件

+

Member Function Documentation

+ +

◆ AddItem()

+ +
+
+
+template<typename TItem >
+ + + + + +
+ + + + + + + +
virtual bool sw::ItemsControl< TItem >::AddItem (const TItem & item)
+
+pure virtual
+
+ +

添加新的子项

+
Parameters
+ + +
item要添加的子项
+
+
+
Returns
是否添加成功
+ +

Implemented in sw::ListView.

+ +
+
+ +

◆ Clear()

+ +
+
+
+template<typename TItem >
+ + + + + +
+ + + + + + + +
virtual void sw::ItemsControl< TItem >::Clear ()
+
+pure virtual
+
+ +

清空所有子项

+ +

Implemented in sw::ComboBox, sw::ListBox, and sw::ListView.

+ +
+
+ +

◆ GetItemAt()

+ +
+
+
+template<typename TItem >
+ + + + + +
+ + + + + + + +
virtual TItem sw::ItemsControl< TItem >::GetItemAt (int index)
+
+pure virtual
+
+ +

获取指定索引处子项的值

+
Parameters
+ + +
index子项的索引
+
+
+ +

Implemented in sw::ComboBox, sw::ListBox, and sw::ListView.

+ +
+
+ +

◆ GetItemsCount()

+ +
+
+
+template<typename TItem >
+ + + + + +
+ + + + + + + +
virtual int sw::ItemsControl< TItem >::GetItemsCount ()
+
+protectedpure virtual
+
+ +

获取子项数

+ +

Implemented in sw::ComboBox, sw::ListBox, and sw::ListView.

+ +
+
+ +

◆ GetSelectedIndex()

+ +
+
+
+template<typename TItem >
+ + + + + +
+ + + + + + + +
virtual int sw::ItemsControl< TItem >::GetSelectedIndex ()
+
+protectedpure virtual
+
+ +

选中项的索引,当无选中项时为-1

+ +

Implemented in sw::ComboBox, sw::ListBox, and sw::ListView.

+ +
+
+ +

◆ GetSelectedItem()

+ +
+
+
+template<typename TItem >
+ + + + + +
+ + + + + + + +
virtual TItem sw::ItemsControl< TItem >::GetSelectedItem ()
+
+protectedpure virtual
+
+ +

获取选中项

+ +

Implemented in sw::ComboBox, sw::ListBox, and sw::ListView.

+ +
+
+ +

◆ InsertItem()

+ +
+
+
+template<typename TItem >
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::ItemsControl< TItem >::InsertItem (int index,
const TItem & item )
+
+pure virtual
+
+ +

添加子项到指定索引

+
Parameters
+ + + +
index要插入的位置
item要添加的子项
+
+
+
Returns
是否添加成功
+ +

Implemented in sw::ListView.

+ +
+
+ +

◆ OnSelectionChanged()

+ +
+
+
+template<typename TItem >
+ + + + + +
+ + + + + + + +
virtual void sw::ItemsControl< TItem >::OnSelectionChanged ()
+
+inlineprotectedvirtual
+
+ +

选中项改变时调用该函数

+ +

Reimplemented in sw::ComboBox.

+ +
+
+ +

◆ RemoveItemAt()

+ +
+
+
+template<typename TItem >
+ + + + + +
+ + + + + + + +
virtual bool sw::ItemsControl< TItem >::RemoveItemAt (int index)
+
+pure virtual
+
+ +

移除指定索引处的子项

+
Parameters
+ + +
index要移除子项的索引
+
+
+
Returns
操作是否成功
+ +

Implemented in sw::ComboBox, sw::ListBox, and sw::ListView.

+ +
+
+ +

◆ SetSelectedIndex()

+ +
+
+
+template<typename TItem >
+ + + + + +
+ + + + + + + +
virtual void sw::ItemsControl< TItem >::SetSelectedIndex (int index)
+
+protectedpure virtual
+
+ +

设置选中项索引

+ +

Implemented in sw::ComboBox, sw::ListBox, and sw::ListView.

+ +
+
+ +

◆ UpdateItem()

+ +
+
+
+template<typename TItem >
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::ItemsControl< TItem >::UpdateItem (int index,
const TItem & newValue )
+
+pure virtual
+
+ +

更新指定位置的子项

+
Parameters
+ + + +
index要更新子项的位置
newValue子项的新值
+
+
+
Returns
操作是否成功
+ +

Implemented in sw::ListView.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_items_control.js b/docs/classsw_1_1_items_control.js new file mode 100644 index 00000000..953a62d4 --- /dev/null +++ b/docs/classsw_1_1_items_control.js @@ -0,0 +1,18 @@ +var classsw_1_1_items_control = +[ + [ "ItemsControl", "classsw_1_1_items_control.html#a35e8ff864ec4faded2e2ff54f02e85b5", null ], + [ "AddItem", "classsw_1_1_items_control.html#a5fab112663e10fe37cf901fc6288bcff", null ], + [ "Clear", "classsw_1_1_items_control.html#a36312564b15eb327474696bf407b7864", null ], + [ "GetItemAt", "classsw_1_1_items_control.html#a34a19d40a81adc967b14e84689e8a7e4", null ], + [ "GetItemsCount", "classsw_1_1_items_control.html#a22321dbf927a5b508a3614e2565c76c2", null ], + [ "GetSelectedIndex", "classsw_1_1_items_control.html#ac8b269a4d6bd5b46f6f7026d5470b2c5", null ], + [ "GetSelectedItem", "classsw_1_1_items_control.html#a8cbd0b52306bcf3cec2d96be0c6dd0ba", null ], + [ "InsertItem", "classsw_1_1_items_control.html#ab4f053e3c099caf009fab48f7370ad96", null ], + [ "OnSelectionChanged", "classsw_1_1_items_control.html#aaf5eb0f69c26b57da81fe8a22f962ec6", null ], + [ "RemoveItemAt", "classsw_1_1_items_control.html#a8ee8ced8a1134133fa7066ee4e29b7eb", null ], + [ "SetSelectedIndex", "classsw_1_1_items_control.html#aa23a550b08ca55e7d1c412f462124527", null ], + [ "UpdateItem", "classsw_1_1_items_control.html#af169d6e1cce32846f8d0043a69ab69b1", null ], + [ "ItemsCount", "classsw_1_1_items_control.html#a765b2e51cb5f439c464abbe031b0db09", null ], + [ "SelectedIndex", "classsw_1_1_items_control.html#ae78a074093f7746f18c1ece3654fdcf6", null ], + [ "SelectedItem", "classsw_1_1_items_control.html#a81efc45fe838c47908e37e241614c672", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_items_control.png b/docs/classsw_1_1_items_control.png new file mode 100644 index 0000000000000000000000000000000000000000..1b5d1b602df7bb1c2d6996213201493661029eb2 GIT binary patch literal 2454 zcmb7GeK^y58y7i6QFO#2WsXDIs!f!TWGf;(AvSNJr6S8~US>)frI0+Ehempmy2==$ z=4GK0KMhCcG-0!tmt$fhtl4&cO4qrb>v_&|b$)-`_vgO9_w~Jg-_QN>{a$r*Ijp9- zNmW5XLCw(tbxc8F1s}u?^Z7cm9Cq!2U;$dgK$jnDJHAAbnmWh=XEF@V}pZ( zpx^w>@q6H!O7t-ocLmV?^6gP9cnkUr98q>2aVsVVc#({K>kkNvfa@(1TcH+u<+-wh zv}A@KsV8s!7_0E)jOV+U0T+ay-@6zq{)LsjXp|r)UeOR5+qP4sQd38Ro?oe_LB9lw z?v!t6*(@WkGu!y@G~TszZ`Yxf>UL<9_2@vJd?%3R^h52)w7jPNXPgG2PX3htM(h(3 z@9i~zJVYA!=|;~8xs@L$l^hz>)m%9Gpr8BYUlcrqT5G=M_YA5j9hXe+L%yT2inGhzd*dDJ7Or$?MU z71BQ2yb5khVt72=2?QLH=tx$<0?5Ar8l6nYqsp>VNMFAAeVhEZ5M$&wPBgxWH|!sLzTL z%ed08_-j_s4`?hE2tY|(S$ttpKU}^FXsH%Iv)=8VI`yOAjh2MNgFisr_d)A%F*n;z zX-N?8;|Y}4``zh=(EW!Cf^;;5n?tMSy0_}Skd(srWG`9*TlP`FwRSo6`NkaErxfnK zNoY{4eDd064f@Rh&67sEph4z1OK6Z1DDEnML(8Ty0H#xNlKh-D!AKGTDXC?8fm0sY z6_<`|tv=Cer=P{#dRgnIusfQo;p~X)(yqCpCRI%fHUEno@Wkza(wyltnEm!I(vZ<`{h77d5S86@#I#d4SBMOL*SHLFM6`$^W|ADqj~U8 z{GC6eSbi;A13MUeXJJyyXx`JYYkc?jPsp^w~DQc|@= zmF+Tr_Lo+wW$xqzgs`n=h}5uybVkE@s8$ve!km@wGdW>4km1M_bcFU&DMBBNKdays zUW$Gue+UP1gPGrU~H3K4pc%VWf|!9y2TyK4eW>f$`nBxP{us57{^fal;h0@Y-C-c?yng z6UyT2M!i{=03Zb^o>~$+4lnw~q@YbO9_fifEjobpR3EU^qjn(5#l3dHkOcp&zMf_7 zrG~15Gln#*msJ9Z1dHF&xUB?o3C>8Yo+ED;$sCTZjvfqmijA6+-o zAsX+!)tc7x>wFS(F#KfiW{!@3f@}a}6mw3zILs5e168%{NW%3{Mp}~PVq+vdf;UBmPZ~^PqJn1e9xLEM2lkMt&bKq>@K_0 z+CY#Gq&;+dekz=-JQDL&7HK22e_43nW=z^Favc>lM^b^V z+qeWu3Jdqi7fU%y`}pd@eN`frsW&N+#k!K23*p@PnL3!gZleR9J1;-k95g#GP?%?VmsnwDa<~$9r;(Pg|=5et5vF` z{CLRgrwUlh4}Tr{KeuU7A7{`)U(qKRGzb&sz~1hMda>hQKAGukqpwqaDW`_eJG(7qc_B1GB!dFL?P+d$OEluXq!Q@3QL2Y&f|nHSy}O=9~9jIoSQ9gX9{g zBO_0yj>%c`xkD4vVMF~5;3Wmuh1sr|UyopVT_L{{1w-{=ogp3h!s&uI#H~J9vhK&- z)dtlaT8U+RK1rO)58=5Ogsp}@;y+Z)OzTYmiXN~#o0Hh1o^)-?Iz(q*QVwx1rMw|M zeKgF5GSwm#`Vwub-)bcmGMwa*;5m@V8N8Q|v%F=;N literal 0 HcmV?d00001 diff --git a/docs/classsw_1_1_label-members.html b/docs/classsw_1_1_label-members.html new file mode 100644 index 00000000..e54724ed --- /dev/null +++ b/docs/classsw_1_1_label-members.html @@ -0,0 +1,295 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::Label Member List
+
+
+ +

This is the complete list of members for sw::Label, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AddChild(UIElement *element)sw::UIElement
AddChild(UIElement &element)sw::UIElement
AddChild(UIElement *element, uint64_t layoutTag)sw::UIElement
AddChild(UIElement &element, uint64_t layoutTag)sw::UIElement
Arrange(const sw::Rect &finalPosition) overridesw::UIElementvirtual
AutoSizesw::Label
AutoWrapsw::Label
BackColorsw::UIElement
ChildCountsw::UIElement
ClearChildren()sw::UIElement
ClientHeightsw::WndBase
ClientRectsw::WndBase
ClientWidthsw::WndBase
Close()sw::WndBase
CollapseWhenHidesw::UIElement
ContextMenusw::UIElement
Control()sw::Controlprotected
DefaultWndProc(const ProcMsg &refMsg)sw::WndBaseprotected
Enabledsw::WndBase
Floatsw::UIElement
Focusedsw::WndBase
Fontsw::WndBase
FontChanged(HFONT hfont) overridesw::Labelprotectedvirtual
FontNamesw::WndBase
FontSizesw::WndBase
FontWeightsw::WndBase
GetArrangeOffsetX()sw::UIElementprotected
GetArrangeOffsetY()sw::UIElementprotected
GetChildBottommost(bool update)sw::UIElementprotected
GetChildLayoutAt(int index) overridesw::UIElementvirtual
GetChildLayoutCount() overridesw::UIElementvirtual
GetChildRightmost(bool update)sw::UIElementprotected
GetDesireSize() overridesw::UIElementvirtual
GetExtendedStyle()sw::WndBaseprotected
GetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
GetFontHandle()sw::WndBaseprotected
GetLayoutTag() overridesw::UIElementvirtual
GetNextElement()sw::UIElement
GetNextTabStopElement()sw::UIElement
GetRealBackColor()sw::UIElement
GetRealTextColor()sw::UIElement
GetRootElement()sw::UIElement
GetStyle()sw::WndBaseprotected
GetStyle(LONG_PTR style)sw::WndBaseprotected
GetTag() overridesw::UIElementvirtual
GetText()sw::WndBaseprotectedvirtual
GetWndBase(HWND hwnd)sw::WndBasestatic
Handlesw::WndBase
HandleChenged()sw::Controlprotectedvirtual
HandleInitialized(HWND hwnd)sw::WndBaseprotectedvirtual
Heightsw::WndBase
HorizontalAlignmentsw::UIElement
HorizontalContentAlignmentsw::Label
IndexOf(UIElement *element)sw::UIElement
IndexOf(UIElement &element)sw::UIElement
InheritTextColorsw::UIElement
InitControl(LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
InitWindow(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
IsControl()sw::WndBase
IsDestroyedsw::WndBase
IsRootElement()sw::UIElement
IsRoutedEventRegistered(RoutedEventType eventType)sw::UIElement
IsVisible()sw::WndBase
Label()sw::Label
LayoutTagsw::UIElement
Leftsw::WndBase
Marginsw::UIElement
Measure(const Size &availableSize) overridesw::Labelprotectedvirtual
MoveToBottom()sw::UIElement
MoveToTop()sw::UIElement
NcHitTest(const Point &testPoint)sw::WndBase
NotifyLayoutUpdated()sw::UIElementprotected
OnAcceleratorCommand(int id)sw::WndBaseprotectedvirtual
OnAddedChild(UIElement &element)sw::UIElementprotectedvirtual
OnChar(wchar_t ch, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnClose() overridesw::UIElementprotectedvirtual
OnColor(HDC hdc, HBRUSH &hRetBrush) overridesw::UIElementprotectedvirtual
OnCommand(int code)sw::WndBaseprotectedvirtual
OnContextMenu(bool isKeyboardMsg, Point mousePosition) overridesw::UIElementprotectedvirtual
OnControlCommand(WndBase *pControl, int code, int id)sw::WndBaseprotectedvirtual
OnCreate()sw::WndBaseprotectedvirtual
OnCtlColor(WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)sw::WndBaseprotectedvirtual
OnDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnDestroy()sw::WndBaseprotectedvirtual
OnDrawFocusRect()sw::UIElementprotectedvirtual
OnDrawItem(int id, DRAWITEMSTRUCT *pDrawItem)sw::WndBaseprotectedvirtual
OnEnabledChanged(bool newValue)sw::WndBaseprotectedvirtual
OnEndPaint() overridesw::UIElementprotectedvirtual
OnEraseBackground(int &result)sw::WndBaseprotectedvirtual
OnHorizontalScroll(int event, int pos)sw::WndBaseprotectedvirtual
OnKeyDown(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKeyUp(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKillFocus(HWND hNextFocus) overridesw::UIElementprotectedvirtual
OnMenuCommand(int id) overridesw::UIElementprotectedvirtual
OnMouseLeave() overridesw::UIElementprotectedvirtual
OnMouseLeftButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseLeftButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseMiddleButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMove(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseRightButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseWheel(int wheelDelta, Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMove(Point newClientPosition) overridesw::UIElementprotectedvirtual
OnNcHitTest(const Point &testPoint, HitTestResult &result)sw::WndBaseprotectedvirtual
OnNotified(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnNotify(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnPaint()sw::WndBaseprotectedvirtual
OnRemovedChild(UIElement &element)sw::UIElementprotectedvirtual
OnSetCursor(HWND hwnd, HitTestResult hitTest, int message, bool &result) overridesw::UIElementprotectedvirtual
OnSetFocus(HWND hPrevFocus) overridesw::UIElementprotectedvirtual
OnSize(Size newClientSize) overridesw::UIElementprotectedvirtual
OnSysChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyDown(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyUp(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnTabStop()sw::UIElementprotectedvirtual
OnTextChanged() overridesw::Labelprotectedvirtual
OnVerticalScroll(int event, int pos)sw::WndBaseprotectedvirtual
operator=(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator=(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator[](int index) constsw::UIElement
Parentsw::UIElement
ParentChanged(WndBase *newParent) overridesw::UIElementprotectedvirtual
PointFromScreen(const Point &screenPoint)sw::WndBase
PointToScreen(const Point &point)sw::WndBase
RaiseRoutedEvent(RoutedEventType eventType)sw::UIElementprotected
RaiseRoutedEvent(RoutedEventArgs &eventArgs)sw::UIElementprotected
Rectsw::WndBase
Redraw(bool erase=false)sw::WndBase
RegisterRoutedEvent(RoutedEventType eventType, const RoutedEvent &handler)sw::UIElement
RegisterRoutedEvent(RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))sw::UIElementinline
RegisterRoutedEvent(std::function< void(UIElement &, TEventArgs &)> handler)sw::UIElementinline
RegisterRoutedEvent(THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))sw::UIElementinline
RemoveChild(UIElement *element)sw::UIElement
RemoveChild(UIElement &element)sw::UIElement
RemoveChildAt(int index)sw::UIElement
ResetCursor()sw::UIElement
ResetHandle()sw::Controlprotected
SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase
SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement
SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual
SetCursor(HCURSOR hCursor)sw::UIElement
SetCursor(StandardCursor cursor)sw::UIElement
SetDesireSize(const Size &size) overridesw::UIElementvirtual
SetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
SetExtendedStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetNextTabStopFocus()sw::UIElementprotected
SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual
SetStyle(LONG_PTR style)sw::WndBaseprotected
SetStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetTag(uint64_t tag) overridesw::UIElementvirtual
SetText(const std::wstring &value)sw::WndBaseprotectedvirtual
SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual
Show(int nCmdShow)sw::WndBase
ShowContextMenu(const Point &point)sw::UIElement
StaticControl()sw::StaticControl
TabStopsw::UIElement
Tagsw::UIElement
Textsw::WndBase
TextColorsw::UIElement
TextTrimmingsw::Label
Topsw::WndBase
Transparentsw::UIElement
UIElement()sw::UIElementprotected
UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement
Update()sw::WndBase
UpdateChildrenZOrder()sw::UIElementprotected
UpdateFont()sw::WndBase
UpdateSiblingsZOrder()sw::UIElementprotected
UpdateText()sw::WndBaseprotected
VerticalAlignmentsw::UIElement
VerticalContentAlignmentsw::Label
Visiblesw::WndBase
VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual
Widthsw::WndBase
WndBase()sw::WndBaseprotected
WndBase(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndBase(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual
~Control()=0sw::Controlpure virtual
~UIElement()=0sw::UIElementpure virtual
~WndBase()=0sw::WndBasepure virtual
+
+ + + + diff --git a/docs/classsw_1_1_label.html b/docs/classsw_1_1_label.html new file mode 100644 index 00000000..2a8f5097 --- /dev/null +++ b/docs/classsw_1_1_label.html @@ -0,0 +1,910 @@ + + + + + + + +SimpleWindow: sw::Label Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+ +

标签 + More...

+ +

#include <Label.h>

+
+Inheritance diagram for sw::Label:
+
+
+ + +sw::StaticControl +sw::Control +sw::UIElement +sw::WndBase +sw::ILayout +sw::ITag + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

Label ()
 初始化标签
 
- Public Member Functions inherited from sw::StaticControl
StaticControl ()
 初始化静态控件
 
- Public Member Functions inherited from sw::Control
+virtual ~Control ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
- Public Member Functions inherited from sw::UIElement
+virtual ~UIElement ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
void RegisterRoutedEvent (RoutedEventType eventType, const RoutedEvent &handler)
 注册路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename T >
void RegisterRoutedEvent (RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))
 注册成员函数作为路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename TEventArgs , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (std::function< void(UIElement &, TEventArgs &)> handler)
 根据事件参数类型注册路由事件
 
template<typename TEventArgs , typename THandleObj , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))
 根据事件参数类型注册成员函数作为路由事件
 
void UnregisterRoutedEvent (RoutedEventType eventType)
 取消对应类型路由事件的注册
 
bool IsRoutedEventRegistered (RoutedEventType eventType)
 判断路由事件是否已被注册
 
bool AddChild (UIElement *element)
 添加子控件
 
bool AddChild (UIElement &element)
 添加子控件
 
bool AddChild (UIElement *element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool AddChild (UIElement &element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool RemoveChildAt (int index)
 移除指定索引处的子控件
 
bool RemoveChild (UIElement *element)
 移除子控件
 
bool RemoveChild (UIElement &element)
 移除子控件
 
+void ClearChildren ()
 移除所有子控件
 
int IndexOf (UIElement *element)
 获取指定元素的索引
 
int IndexOf (UIElement &element)
 获取指定元素的索引
 
+UIElementoperator[] (int index) const
 通过索引获取子控件
 
void ShowContextMenu (const Point &point)
 弹出当前元素的上下文菜单
 
+void MoveToTop ()
 移动到界面顶部
 
+void MoveToBottom ()
 移动到界面底部
 
+bool IsRootElement ()
 判断当前元素是否为根节点
 
+UIElementGetRootElement ()
 获取当前元素所在界面树的根节点
 
+UIElementGetNextElement ()
 获取当前元素在界面树上的下一个节点,若已是最后一个节点则返回根节点
 
+UIElementGetNextTabStopElement ()
 获取下一个TabStop属性为true的元素
 
+Color GetRealBackColor ()
 获取当前要显示的背景颜色:当Transparent为true时获取到祖先节点中首个Transparent为false的背景颜色,否则返回当前元素的背景颜色
 
+Color GetRealTextColor ()
 获取当前要显示的文本颜色:当InheritTextColor为true时获取到祖先节点中首个InheritTextColor为false的文本颜色,否则返回当前元素的文本颜色
 
void SetCursor (HCURSOR hCursor)
 设置鼠标样式
 
void SetCursor (StandardCursor cursor)
 设置鼠标样式
 
+void ResetCursor ()
 将鼠标样式设置为默认样式
 
void SetAlignment (sw::HorizontalAlignment horz, sw::VerticalAlignment vert)
 设置对齐方式
 
virtual uint64_t GetTag () override
 获取Tag
 
virtual void SetTag (uint64_t tag) override
 设置Tag
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取参与布局的子控件数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取对应索引处的子控件,使用此函数前必须先调用GetChildLayoutCount
 
virtual Size GetDesireSize () override
 获取控件所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置当前控件所需的尺寸
 
virtual void Arrange (const sw::Rect &finalPosition) override
 安排控件位置
 
- Public Member Functions inherited from sw::WndBase
+virtual ~WndBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void Show (int nCmdShow)
 该函数调用ShowWindow
 
+void Close ()
 发送关闭消息
 
+void Update ()
 该函数调用UpdateWindow
 
+void UpdateFont ()
 更新字体
 
void Redraw (bool erase=false)
 重画
 
+bool IsControl ()
 判断当前对象是否是控件
 
+bool IsVisible ()
 判断当前对象在界面中是否可视,与Visible属性不同的是该函数返回值会受父窗口的影响
 
Point PointToScreen (const Point &point)
 获取用户区点在屏幕上点的位置
 
Point PointFromScreen (const Point &screenPoint)
 获取屏幕上点在当前用户区点的位置
 
+LRESULT SendMessageW (UINT uMsg, WPARAM wParam, LPARAM lParam)
 发送消息
 
HitTestResult NcHitTest (const Point &testPoint)
 测试指定点在窗口的哪一部分
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Attributes

+const Property< sw::HorizontalAlignment > HorizontalContentAlignment
 文本的水平对齐方式,可设为左对齐、中心对齐、右对齐
 
+const Property< sw::VerticalAlignment > VerticalContentAlignment
 文本的垂直对齐方式,仅支持顶部对齐和中心对齐,当使用中心对齐时会使自动换行失效
 
+const Property< sw::TextTrimming > TextTrimming
 文本过长时末尾的处理方式,当使用截断时水平对齐和自动换行将失效
 
+const Property< boolAutoWrap
 是否自动换行
 
+const Property< boolAutoSize
 是否根据文本自动调整尺寸
 
- Public Attributes inherited from sw::UIElement
+const Property< ThicknessMargin
 边距
 
+const Property< HorizontalAlignment > HorizontalAlignment
 水平对齐方式
 
+const Property< VerticalAlignment > VerticalAlignment
 垂直对齐方式
 
+const ReadOnlyProperty< intChildCount
 子控件数量
 
+const Property< boolCollapseWhenHide
 是否在不可见时不参与布局
 
+const ReadOnlyProperty< UIElement * > Parent
 指向父元素的指针,当前元素为顶级窗口时该值为nullptr
 
+const Property< uint64_tTag
 储存用户自定义信息的标记
 
+const Property< uint64_tLayoutTag
 布局标记,对于不同的布局有不同含义
 
+const Property< sw::ContextMenu * > ContextMenu
 右键按下时弹出的菜单
 
+const Property< boolFloat
 元素是否悬浮,若元素悬浮则该元素不会随滚动条滚动而改变位置
 
+const Property< boolTabStop
 表示用户是否可以通过按下Tab键将焦点移动到当前元素
 
+const Property< ColorBackColor
 背景颜色,修改该属性会同时将Transparent属性设为false,对于部分控件该属性可能不生效
 
+const Property< ColorTextColor
 文本颜色,修改该属性会同时将InheritTextColor属性设为false,对于部分控件该属性可能不生效
 
+const Property< boolTransparent
 是否使用透明背景(此属性并非真正意义上的透明,将该属性设为true可继承父元素的背景颜色)
 
+const Property< boolInheritTextColor
 是否继承父元素的文本颜色
 
- Public Attributes inherited from sw::WndBase
+const ReadOnlyProperty< HWNDHandle
 窗口句柄
 
+const Property< sw::FontFont
 字体
 
+const Property< std::wstring > FontName
 字体名称
 
+const Property< doubleFontSize
 字体大小
 
+const Property< sw::FontWeight > FontWeight
 字体粗细
 
+const Property< sw::RectRect
 位置和尺寸
 
+const Property< doubleLeft
 左边
 
+const Property< doubleTop
 顶边
 
+const Property< doubleWidth
 宽度
 
+const Property< doubleHeight
 高度
 
+const ReadOnlyProperty< sw::RectClientRect
 用户区尺寸
 
+const ReadOnlyProperty< doubleClientWidth
 用户区宽度
 
+const ReadOnlyProperty< doubleClientHeight
 用户区高度
 
+const Property< boolEnabled
 窗口或控件是否可用
 
+const Property< boolVisible
 窗口或控件是否可见
 
+const Property< std::wstring > Text
 窗口标题或控件文本
 
+const Property< boolFocused
 窗口是否拥有焦点
 
+const ReadOnlyProperty< WndBase * > Parent
 父窗口
 
+const ReadOnlyProperty< boolIsDestroyed
 是否已销毁,当该值为true时不应该继续使用当前对象
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Protected Member Functions

virtual void OnTextChanged () override
 Text属性更改时调用此函数
 
virtual void FontChanged (HFONT hfont) override
 字体改变时调用该函数
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
- Protected Member Functions inherited from sw::Control
Control ()
 初始化控件
 
+void ResetHandle ()
 销毁控件句柄并重新初始化,该操作会创建新的句柄并设置样式、文本、字体等
 
+virtual void HandleChenged ()
 控件句柄发生改变时调用该函数
 
- Protected Member Functions inherited from sw::UIElement
UIElement ()
 初始化UIElement
 
void RaiseRoutedEvent (RoutedEventType eventType)
 触发路由事件
 
void RaiseRoutedEvent (RoutedEventArgs &eventArgs)
 触发路由事件
 
+void NotifyLayoutUpdated ()
 通知顶级窗口布局改变
 
+doubleGetArrangeOffsetX ()
 获取Arrange时子元素的水平偏移量
 
+doubleGetArrangeOffsetY ()
 获取Arrange时子元素的垂直偏移量
 
double GetChildRightmost (bool update)
 获取所有子元素在当前元素中最右边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
double GetChildBottommost (bool update)
 获取所有子元素在当前元素中最底边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
+void UpdateChildrenZOrder ()
 更新子元素的Z轴位置
 
+void UpdateSiblingsZOrder ()
 更新兄弟元素的Z轴位置
 
+void SetNextTabStopFocus ()
 设置下一个TabStop属性为true的元素为焦点元素
 
virtual void SetBackColor (Color color, bool redraw)
 设置背景颜色
 
virtual void SetTextColor (Color color, bool redraw)
 设置文本颜色
 
virtual void OnAddedChild (UIElement &element)
 添加子元素后调用该函数
 
virtual void OnRemovedChild (UIElement &element)
 移除子元素后调用该函数
 
+virtual void OnTabStop ()
 通过tab键将焦点移动到当前元素时调用该函数
 
virtual void OnDrawFocusRect ()
 绘制虚线框时调用该函数
 
virtual bool SetParent (WndBase *parent) override
 设置父窗口
 
virtual void ParentChanged (WndBase *newParent) override
 父窗口改变时调用此函数
 
virtual void OnEndPaint () override
 在OnPaint函数完成之后调用该函数
 
virtual bool OnClose () override
 接收到WM_CLOSE时调用该函数
 
virtual bool OnMove (Point newClientPosition) override
 接收到WM_MOVE时调用该函数
 
virtual bool OnSize (Size newClientSize) override
 接收到WM_SIZE时调用该函数
 
virtual void VisibleChanged (bool newVisible) override
 Visible属性改变时调用此函数
 
virtual bool OnSetFocus (HWND hPrevFocus) override
 接收到WM_SETFOCUS时调用该函数
 
virtual bool OnKillFocus (HWND hNextFocus) override
 接收到WM_KILLFOCUS时调用该函数
 
virtual bool OnChar (wchar_t ch, KeyFlags flags) override
 接收到WM_CHAR时调用该函数
 
virtual bool OnKeyDown (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYDOWN时调用该函数
 
virtual bool OnKeyUp (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYUP时调用该函数
 
virtual bool OnMouseMove (Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEMOVE时调用该函数
 
virtual bool OnMouseLeave () override
 接收到WM_MOUSELEAVE时调用该函数
 
virtual bool OnMouseWheel (int wheelDelta, Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEWHEEL时调用该函数
 
virtual bool OnMouseLeftButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONDOWN时调用该函数
 
virtual bool OnMouseLeftButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONUP时调用该函数
 
virtual bool OnMouseRightButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONDOWN时调用该函数
 
virtual bool OnMouseRightButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONUP时调用该函数
 
virtual bool OnMouseMiddleButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONDOWN时调用该函数
 
virtual bool OnMouseMiddleButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONUP时调用该函数
 
virtual bool OnContextMenu (bool isKeyboardMsg, Point mousePosition) override
 接收到WM_CONTEXTMENU后调用目标控件的该函数
 
virtual void OnMenuCommand (int id) override
 当WM_COMMAND接收到菜单命令时调用该函数
 
virtual bool OnColor (HDC hdc, HBRUSH &hRetBrush) override
 父窗口接收到WM_CTLCOLORxxx时调用对应控件的该函数
 
virtual bool OnSetCursor (HWND hwnd, HitTestResult hitTest, int message, bool &result) override
 接收到WM_SETCURSOR消息时调用该函数
 
- Protected Member Functions inherited from sw::WndBase
WndBase ()
 初始化WndBase
 
WndBase (const WndBase &)=delete
 
WndBase (WndBase &&)=delete
 
+WndBaseoperator= (const WndBase &)=delete
 
+WndBaseoperator= (WndBase &&)=delete
 
+void InitWindow (LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为窗口,该函数会调用CreateWindowExW
 
+void InitControl (LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为控件,该函数会调用CreateWindowExW
 
+LONG_PTR GetStyle ()
 获取窗口样式
 
+void SetStyle (LONG_PTR style)
 设置窗口样式
 
+bool GetStyle (LONG_PTR style)
 获取窗口的某个样式
 
+void SetStyle (LONG_PTR style, bool value)
 设置窗口的某个样式
 
+LONG_PTR GetExtendedStyle ()
 获取扩展窗口样式
 
+void SetExtendedStyle (LONG_PTR style)
 设置扩展窗口样式
 
+bool GetExtendedStyle (LONG_PTR style)
 获取窗口的某个扩展样式
 
+void SetExtendedStyle (LONG_PTR style, bool value)
 设置窗口的某个扩展样式
 
+HFONT GetFontHandle ()
 获取字体句柄
 
+LRESULT DefaultWndProc (const ProcMsg &refMsg)
 调用默认的WndProc,对于窗口则调用DefWindowProcW,控件则调用_controlOldWndProc
 
virtual LRESULT WndProc (const ProcMsg &refMsg)
 对WndProc的封装
 
+void UpdateText ()
 更新_text字段
 
virtual std::wstring & GetText ()
 获取窗口文本
 
virtual void SetText (const std::wstring &value)
 调用SetWindowTextW设置窗口文本
 
virtual bool OnCreate ()
 接收到WM_CREATE时调用该函数
 
virtual bool OnDestroy ()
 接收到WM_DESTROY时调用该函数
 
virtual bool OnPaint ()
 接收到WM_PAINT时调用该函数
 
virtual bool OnMouseLeftButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_LBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseRightButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_RBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseMiddleButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_MBUTTONDBLCLK时调用该函数
 
virtual bool OnDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_DEADCHAR时调用该函数
 
virtual bool OnSysChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSCHAR时调用该函数
 
virtual bool OnSysDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSDEADCHAR时调用该函数
 
virtual bool OnSysKeyDown (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYDOWN时调用该函数
 
virtual bool OnSysKeyUp (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYUP时调用该函数
 
virtual void OnCommand (int code)
 当父窗口接收到控件的WM_COMMAND时调用该函数
 
virtual void OnControlCommand (WndBase *pControl, int code, int id)
 当WM_COMMAND接收到控件命令时调用该函数
 
virtual void OnAcceleratorCommand (int id)
 当WM_COMMAND接收到快捷键命令时调用该函数
 
virtual void HandleInitialized (HWND hwnd)
 窗口句柄初始化完成
 
virtual bool OnNotify (NMHDR *pNMHDR)
 接收到WM_NOTIFY后调用该函数
 
virtual void OnNotified (NMHDR *pNMHDR)
 父窗口接收到WM_NOTIFY后调用发出通知控件的该函数
 
virtual bool OnVerticalScroll (int event, int pos)
 接收到WM_VSCROLL时调用目标控件的该函数
 
virtual bool OnHorizontalScroll (int event, int pos)
 接收到WM_HSCROLL时调用目标控件的该函数
 
virtual bool OnEnabledChanged (bool newValue)
 接收到WM_ENABLE时调用该函数
 
virtual bool OnCtlColor (WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)
 接收到WM_CTLCOLORxxx时调用该函数
 
virtual void OnNcHitTest (const Point &testPoint, HitTestResult &result)
 接收到WM_NCHITTEST后调用该函数
 
virtual bool OnEraseBackground (int &result)
 接收到WM_ERASEBKGND时调用该函数
 
virtual bool OnDrawItem (int id, DRAWITEMSTRUCT *pDrawItem)
 接收到WM_DRAWITEM时调用该函数
 
+ + + + + +

+Additional Inherited Members

- Static Public Member Functions inherited from sw::WndBase
static WndBaseGetWndBase (HWND hwnd)
 通过窗口句柄获取WndBase
 
+

Detailed Description

+

标签

+

Member Function Documentation

+ +

◆ FontChanged()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::Label::FontChanged (HFONT hfont)
+
+overrideprotectedvirtual
+
+ +

字体改变时调用该函数

+
Parameters
+ + +
hfont字体句柄
+
+
+ +

Reimplemented from sw::WndBase.

+ +
+
+ +

◆ Measure()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::Label::Measure (const Size & availableSize)
+
+overrideprotectedvirtual
+
+ +

测量控件所需尺寸

+
Parameters
+ + +
availableSize可用的尺寸
+
+
+ +

Reimplemented from sw::UIElement.

+ +
+
+ +

◆ OnTextChanged()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::Label::OnTextChanged ()
+
+overrideprotectedvirtual
+
+ +

Text属性更改时调用此函数

+ +

Reimplemented from sw::UIElement.

+ +
+
+
The documentation for this class was generated from the following file:
    +
  • D:/code/GitHub/sw/sw/inc/Label.h
  • +
+
+
+ + + + diff --git a/docs/classsw_1_1_label.js b/docs/classsw_1_1_label.js new file mode 100644 index 00000000..c0f5efde --- /dev/null +++ b/docs/classsw_1_1_label.js @@ -0,0 +1,12 @@ +var classsw_1_1_label = +[ + [ "Label", "classsw_1_1_label.html#ae1ee6644b4de352317836eb2a4c00c3c", null ], + [ "FontChanged", "classsw_1_1_label.html#af5e6d5d4530ee12b52ce2ab16f180aac", null ], + [ "Measure", "classsw_1_1_label.html#aa7fe8e679f9d35eaf5691403ed5c9a96", null ], + [ "OnTextChanged", "classsw_1_1_label.html#af90d6f76f8d674ae945193f3f4f630e9", null ], + [ "AutoSize", "classsw_1_1_label.html#a18a52422a3d9c21f2025a4830533b088", null ], + [ "AutoWrap", "classsw_1_1_label.html#af94d8f66f1119690c6c2dbca2f794de6", null ], + [ "HorizontalContentAlignment", "classsw_1_1_label.html#a83b3ae20c61b09a613cc07dddc1c9179", null ], + [ "TextTrimming", "classsw_1_1_label.html#a967e6a7cfc9341958f362ae94c56f583", null ], + [ "VerticalContentAlignment", "classsw_1_1_label.html#ab127ad68d85e658bb2e8cb271df5cedc", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_label.png b/docs/classsw_1_1_label.png new file mode 100644 index 0000000000000000000000000000000000000000..db75255fe3587b5cedeeba10da22c524feedace6 GIT binary patch literal 2024 zcmd5-eN>ZG7=MRw2#g5GQ(?*}P(%$<;UHn}iVr6Un+}sezDx~pd?*7Y_6|mxLJ8>j zSOxRV_$pznnh1-JEzyCXTL|(ETTXj{4d%8s-T~Ws%jz6E*6H+D_m6v@`}^JJp6C9a z=RCJ?50PMJ>ud`EfL+M0ATj{pNSKX2wE~+DG?ekNW%Zu0eZgk488fGqx~!6G_1jaU!`Gs65CE*HAwh5L%f`*I=Q4Qhj+W!q8(H(_ zkL;xd_Wnfi>H4YHP8V-JAJx!*)JzWbU>hmLE%4zLR<_TzC`?m7L_nWB|HIY?|6X*dwGyHmOvYz!|C0_sj z)9vNDN|1EOCGTbny_hRI1c!G@8W!4j(JNHxP_g~wPqlqW!$^3ic?9`((YNx3rjZI$ zzKk4LI-JohJPYL+_peLtYnkm&Ru1^>zOyM#33sb5qRT}_s`&wz?kNahUWKUU9fheQ zc*L=T{;D-hrNa?z=@r>{u4+jbUf^*p>V|G`p>!nm$`&z66U$UWn+$F`v&B$ zH3|?dm3;!na|q1C-QN84>7Th09zBdqHCbz8nV=j#eU228;eg5Q`iI=&M335-x3=-g zq5Kc>oE>F>7lC0-eW1vlQG{qUqsE!@YMX@Wm6;SZ3dFCcAChT$U9~~c&*}Fe2mMT_E9aG3;y8-+U(b-F(i97zB|#9G=IulK z@e?Jlj_>U=JZx%grh5w4Y)CBUOP$Uhj%U({`lx}+G=8TZxjP0f?9_Fz_4_jFYEpgk zeZFduS12fXyr{4_Hk7s>shXgE2yZkrCW~h~$Mcf(W3~9C*!b=rrh1SjM>CQ3JRDQ4 zCF+c}*u&q?7yBF90}`!TS71V%ysTpFLowhBw@DE)7}lLJI%WM7V0{t52?HRDk!;ZQ zIbkqnOlR)gz$nC$=veurto@73{7t?e^ORL#wPeXyy~l0F;$8$3x?b;QC?JJselNS^ z?rMLx&lkpQ{#K($=G8HE-~~DBL^$?$PhI z__^dXm@s5bb(vGqYPfPeDCk{4Ez$K}ivBXqp|Ngvp?mu%zUA(hU#ZkK$HZ+AK52F% zI)jOZEKdCO8#bV zYnG3cHCUzg^K3poJC{>6cF@7od1yp)Kn?@UzW<9WV_n((i-|{a9_`< z9yCTnR~-z~)TY>5K^#?|v5v_-GBc%%W#*Ru+Ohvm-|keXg50|buw<+tF@S`ZL0rlX z*uhrz3T9-!j@4xlWU;+4{LjwuSS9_nt^6nQm{_jPjIX7%+2${KdPQqP~ zr26!lY#tVSX*;sMtJCl4KPwnKnec`bp>djXo)A$(3EJ4a-$flo;ehveL(%jJ5%TLx daKanQ_V-y+U7TgcUF=T=LV}4wO#ulX`~t8}7hwPZ literal 0 HcmV?d00001 diff --git a/docs/classsw_1_1_layer-members.html b/docs/classsw_1_1_layer-members.html new file mode 100644 index 00000000..54e109d9 --- /dev/null +++ b/docs/classsw_1_1_layer-members.html @@ -0,0 +1,314 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::Layer Member List
+
+
+ +

This is the complete list of members for sw::Layer, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AddChild(UIElement *element)sw::UIElement
AddChild(UIElement &element)sw::UIElement
AddChild(UIElement *element, uint64_t layoutTag)sw::UIElement
AddChild(UIElement &element, uint64_t layoutTag)sw::UIElement
Arrange(const sw::Rect &finalPosition) overridesw::Layervirtual
AutoSizesw::Layer
BackColorsw::UIElement
ChildCountsw::UIElement
ClearChildren()sw::UIElement
ClientHeightsw::WndBase
ClientRectsw::WndBase
ClientWidthsw::WndBase
Close()sw::WndBase
CollapseWhenHidesw::UIElement
ContextMenusw::UIElement
DefaultWndProc(const ProcMsg &refMsg)sw::WndBaseprotected
DisableLayout()sw::Layer
Enabledsw::WndBase
EnableLayout()sw::Layer
Floatsw::UIElement
Focusedsw::WndBase
Fontsw::WndBase
FontChanged(HFONT hfont)sw::WndBaseprotectedvirtual
FontNamesw::WndBase
FontSizesw::WndBase
FontWeightsw::WndBase
GetArrangeOffsetX()sw::UIElementprotected
GetArrangeOffsetY()sw::UIElementprotected
GetChildBottommost(bool update)sw::UIElementprotected
GetChildLayoutAt(int index) overridesw::UIElementvirtual
GetChildLayoutCount() overridesw::UIElementvirtual
GetChildRightmost(bool update)sw::UIElementprotected
GetDefaultLayout()sw::Layerprotectedvirtual
GetDesireSize() overridesw::UIElementvirtual
GetExtendedStyle()sw::WndBaseprotected
GetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
GetFontHandle()sw::WndBaseprotected
GetHorizontalScrollPageSize()sw::Layer
GetHorizontalScrollRange(double &refMin, double &refMax)sw::Layer
GetLayoutTag() overridesw::UIElementvirtual
GetNextElement()sw::UIElement
GetNextTabStopElement()sw::UIElement
GetRealBackColor()sw::UIElement
GetRealTextColor()sw::UIElement
GetRootElement()sw::UIElement
GetStyle()sw::WndBaseprotected
GetStyle(LONG_PTR style)sw::WndBaseprotected
GetTag() overridesw::UIElementvirtual
GetText()sw::WndBaseprotectedvirtual
GetVerticalScrollPageSize()sw::Layer
GetVerticalScrollRange(double &refMin, double &refMax)sw::Layer
GetWndBase(HWND hwnd)sw::WndBasestatic
Handlesw::WndBase
HandleInitialized(HWND hwnd)sw::WndBaseprotectedvirtual
Heightsw::WndBase
HorizontalAlignmentsw::UIElement
HorizontalScrollBarsw::Layer
HorizontalScrollLimitsw::Layer
HorizontalScrollPossw::Layer
IndexOf(UIElement *element)sw::UIElement
IndexOf(UIElement &element)sw::UIElement
InheritTextColorsw::UIElement
InitControl(LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
InitWindow(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
IsControl()sw::WndBase
IsDestroyedsw::WndBase
IsRootElement()sw::UIElement
IsRoutedEventRegistered(RoutedEventType eventType)sw::UIElement
IsVisible()sw::WndBase
Layer()sw::Layerprotected
Layoutsw::Layer
LayoutTagsw::UIElement
Leftsw::WndBase
Marginsw::UIElement
Measure(const Size &availableSize) overridesw::Layervirtual
MoveToBottom()sw::UIElement
MoveToTop()sw::UIElement
NcHitTest(const Point &testPoint)sw::WndBase
NotifyLayoutUpdated()sw::UIElementprotected
OnAcceleratorCommand(int id)sw::WndBaseprotectedvirtual
OnAddedChild(UIElement &element)sw::UIElementprotectedvirtual
OnChar(wchar_t ch, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnClose() overridesw::UIElementprotectedvirtual
OnColor(HDC hdc, HBRUSH &hRetBrush) overridesw::UIElementprotectedvirtual
OnCommand(int code)sw::WndBaseprotectedvirtual
OnContextMenu(bool isKeyboardMsg, Point mousePosition) overridesw::UIElementprotectedvirtual
OnControlCommand(WndBase *pControl, int code, int id)sw::WndBaseprotectedvirtual
OnCreate()sw::WndBaseprotectedvirtual
OnCtlColor(WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)sw::WndBaseprotectedvirtual
OnDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnDestroy()sw::WndBaseprotectedvirtual
OnDrawFocusRect()sw::UIElementprotectedvirtual
OnDrawItem(int id, DRAWITEMSTRUCT *pDrawItem)sw::WndBaseprotectedvirtual
OnEnabledChanged(bool newValue)sw::WndBaseprotectedvirtual
OnEndPaint() overridesw::UIElementprotectedvirtual
OnEraseBackground(int &result)sw::WndBaseprotectedvirtual
OnHorizontalScroll(int event, int pos) overridesw::Layerprotectedvirtual
OnKeyDown(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKeyUp(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKillFocus(HWND hNextFocus) overridesw::UIElementprotectedvirtual
OnMenuCommand(int id) overridesw::UIElementprotectedvirtual
OnMouseLeave() overridesw::UIElementprotectedvirtual
OnMouseLeftButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseLeftButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseMiddleButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMove(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseRightButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseWheel(int wheelDelta, Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMove(Point newClientPosition) overridesw::UIElementprotectedvirtual
OnNcHitTest(const Point &testPoint, HitTestResult &result)sw::WndBaseprotectedvirtual
OnNotified(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnNotify(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnPaint()sw::WndBaseprotectedvirtual
OnRemovedChild(UIElement &element)sw::UIElementprotectedvirtual
OnScroll(ScrollOrientation scrollbar, ScrollEvent event, double pos)sw::Layerprotectedvirtual
OnSetCursor(HWND hwnd, HitTestResult hitTest, int message, bool &result) overridesw::UIElementprotectedvirtual
OnSetFocus(HWND hPrevFocus) overridesw::UIElementprotectedvirtual
OnSize(Size newClientSize) overridesw::UIElementprotectedvirtual
OnSysChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyDown(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyUp(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnTabStop()sw::UIElementprotectedvirtual
OnTextChanged() overridesw::UIElementprotectedvirtual
OnVerticalScroll(int event, int pos) overridesw::Layerprotectedvirtual
operator=(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator=(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator[](int index) constsw::UIElement
Parentsw::UIElement
ParentChanged(WndBase *newParent) overridesw::UIElementprotectedvirtual
PointFromScreen(const Point &screenPoint)sw::WndBase
PointToScreen(const Point &point)sw::WndBase
RaiseRoutedEvent(RoutedEventType eventType)sw::UIElementprotected
RaiseRoutedEvent(RoutedEventArgs &eventArgs)sw::UIElementprotected
Rectsw::WndBase
Redraw(bool erase=false)sw::WndBase
RegisterRoutedEvent(RoutedEventType eventType, const RoutedEvent &handler)sw::UIElement
RegisterRoutedEvent(RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))sw::UIElementinline
RegisterRoutedEvent(std::function< void(UIElement &, TEventArgs &)> handler)sw::UIElementinline
RegisterRoutedEvent(THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))sw::UIElementinline
RemoveChild(UIElement *element)sw::UIElement
RemoveChild(UIElement &element)sw::UIElement
RemoveChildAt(int index)sw::UIElement
ResetCursor()sw::UIElement
ScrollHorizontal(double offset)sw::Layer
ScrollToBottom()sw::Layer
ScrollToLeft()sw::Layer
ScrollToRight()sw::Layer
ScrollToTop()sw::Layer
ScrollVertical(double offset)sw::Layer
SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase
SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement
SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual
SetCursor(HCURSOR hCursor)sw::UIElement
SetCursor(StandardCursor cursor)sw::UIElement
SetDesireSize(const Size &size) overridesw::UIElementvirtual
SetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
SetExtendedStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetHorizontalScrollPageSize(double pageSize)sw::Layer
SetHorizontalScrollRange(double min, double max)sw::Layer
SetNextTabStopFocus()sw::UIElementprotected
SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual
SetStyle(LONG_PTR style)sw::WndBaseprotected
SetStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetTag(uint64_t tag) overridesw::UIElementvirtual
SetText(const std::wstring &value)sw::WndBaseprotectedvirtual
SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual
SetVerticalScrollPageSize(double pageSize)sw::Layer
SetVerticalScrollRange(double min, double max)sw::Layer
Show(int nCmdShow)sw::WndBase
ShowContextMenu(const Point &point)sw::UIElement
TabStopsw::UIElement
Tagsw::UIElement
Textsw::WndBase
TextColorsw::UIElement
Topsw::WndBase
Transparentsw::UIElement
UIElement()sw::UIElementprotected
UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement
Update()sw::WndBase
UpdateChildrenZOrder()sw::UIElementprotected
UpdateFont()sw::WndBase
UpdateLayout()sw::Layerprotected
UpdateScrollRange()sw::Layer
UpdateSiblingsZOrder()sw::UIElementprotected
UpdateText()sw::WndBaseprotected
VerticalAlignmentsw::UIElement
VerticalScrollBarsw::Layer
VerticalScrollLimitsw::Layer
VerticalScrollPossw::Layer
Visiblesw::WndBase
VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual
Widthsw::WndBase
WndBase()sw::WndBaseprotected
WndBase(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndBase(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual
~Layer()=0sw::Layerpure virtual
~UIElement()=0sw::UIElementpure virtual
~WndBase()=0sw::WndBasepure virtual
+
+ + + + diff --git a/docs/classsw_1_1_layer.html b/docs/classsw_1_1_layer.html new file mode 100644 index 00000000..f4fffbf9 --- /dev/null +++ b/docs/classsw_1_1_layer.html @@ -0,0 +1,1287 @@ + + + + + + + +SimpleWindow: sw::Layer Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+ +

表示可以设置布局方式的元素类型,如窗口、面板等 + More...

+ +

#include <Layer.h>

+
+Inheritance diagram for sw::Layer:
+
+
+ + +sw::UIElement +sw::WndBase +sw::ILayout +sw::ITag +sw::PanelBase +sw::Window +sw::GroupBox +sw::Panel +sw::Canvas +sw::DockPanel +sw::Grid +sw::StackPanel +sw::UniformGrid +sw::WrapPanel + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

+virtual ~Layer ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const sw::Rect &finalPosition) override
 安排控件位置
 
+void DisableLayout ()
 禁用布局
 
+void EnableLayout ()
 启用布局
 
void GetHorizontalScrollRange (double &refMin, double &refMax)
 获取横向滚动条的范围
 
void GetVerticalScrollRange (double &refMin, double &refMax)
 获取纵向滚动条的范围
 
void SetHorizontalScrollRange (double min, double max)
 设置横向滚动条的范围
 
void SetVerticalScrollRange (double min, double max)
 设置纵向滚动条的范围
 
+double GetHorizontalScrollPageSize ()
 获取水平滚动条滚动页面大小
 
+double GetVerticalScrollPageSize ()
 获取垂直滚动条滚动页面大小
 
+void SetHorizontalScrollPageSize (double pageSize)
 设置水平滚动条滚动页面大小
 
+void SetVerticalScrollPageSize (double pageSize)
 设置垂直滚动条滚动页面大小
 
+void UpdateScrollRange ()
 根据子元素更新滚动条范围,未设定布局方式时该函数无效
 
+void ScrollToTop ()
 将垂直滚动条移动到顶部
 
+void ScrollToBottom ()
 将垂直滚动条移动到底部
 
+void ScrollToLeft ()
 将水平滚动条移动到最左
 
+void ScrollToRight ()
 将水平滚动条移动到最右
 
void ScrollHorizontal (double offset)
 水平滚动
 
void ScrollVertical (double offset)
 垂直滚动
 
- Public Member Functions inherited from sw::UIElement
+virtual ~UIElement ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
void RegisterRoutedEvent (RoutedEventType eventType, const RoutedEvent &handler)
 注册路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename T >
void RegisterRoutedEvent (RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))
 注册成员函数作为路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename TEventArgs , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (std::function< void(UIElement &, TEventArgs &)> handler)
 根据事件参数类型注册路由事件
 
template<typename TEventArgs , typename THandleObj , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))
 根据事件参数类型注册成员函数作为路由事件
 
void UnregisterRoutedEvent (RoutedEventType eventType)
 取消对应类型路由事件的注册
 
bool IsRoutedEventRegistered (RoutedEventType eventType)
 判断路由事件是否已被注册
 
bool AddChild (UIElement *element)
 添加子控件
 
bool AddChild (UIElement &element)
 添加子控件
 
bool AddChild (UIElement *element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool AddChild (UIElement &element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool RemoveChildAt (int index)
 移除指定索引处的子控件
 
bool RemoveChild (UIElement *element)
 移除子控件
 
bool RemoveChild (UIElement &element)
 移除子控件
 
+void ClearChildren ()
 移除所有子控件
 
int IndexOf (UIElement *element)
 获取指定元素的索引
 
int IndexOf (UIElement &element)
 获取指定元素的索引
 
+UIElementoperator[] (int index) const
 通过索引获取子控件
 
void ShowContextMenu (const Point &point)
 弹出当前元素的上下文菜单
 
+void MoveToTop ()
 移动到界面顶部
 
+void MoveToBottom ()
 移动到界面底部
 
+bool IsRootElement ()
 判断当前元素是否为根节点
 
+UIElementGetRootElement ()
 获取当前元素所在界面树的根节点
 
+UIElementGetNextElement ()
 获取当前元素在界面树上的下一个节点,若已是最后一个节点则返回根节点
 
+UIElementGetNextTabStopElement ()
 获取下一个TabStop属性为true的元素
 
+Color GetRealBackColor ()
 获取当前要显示的背景颜色:当Transparent为true时获取到祖先节点中首个Transparent为false的背景颜色,否则返回当前元素的背景颜色
 
+Color GetRealTextColor ()
 获取当前要显示的文本颜色:当InheritTextColor为true时获取到祖先节点中首个InheritTextColor为false的文本颜色,否则返回当前元素的文本颜色
 
void SetCursor (HCURSOR hCursor)
 设置鼠标样式
 
void SetCursor (StandardCursor cursor)
 设置鼠标样式
 
+void ResetCursor ()
 将鼠标样式设置为默认样式
 
void SetAlignment (sw::HorizontalAlignment horz, sw::VerticalAlignment vert)
 设置对齐方式
 
virtual uint64_t GetTag () override
 获取Tag
 
virtual void SetTag (uint64_t tag) override
 设置Tag
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取参与布局的子控件数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取对应索引处的子控件,使用此函数前必须先调用GetChildLayoutCount
 
virtual Size GetDesireSize () override
 获取控件所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置当前控件所需的尺寸
 
- Public Member Functions inherited from sw::WndBase
+virtual ~WndBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void Show (int nCmdShow)
 该函数调用ShowWindow
 
+void Close ()
 发送关闭消息
 
+void Update ()
 该函数调用UpdateWindow
 
+void UpdateFont ()
 更新字体
 
void Redraw (bool erase=false)
 重画
 
+bool IsControl ()
 判断当前对象是否是控件
 
+bool IsVisible ()
 判断当前对象在界面中是否可视,与Visible属性不同的是该函数返回值会受父窗口的影响
 
Point PointToScreen (const Point &point)
 获取用户区点在屏幕上点的位置
 
Point PointFromScreen (const Point &screenPoint)
 获取屏幕上点在当前用户区点的位置
 
+LRESULT SendMessageW (UINT uMsg, WPARAM wParam, LPARAM lParam)
 发送消息
 
HitTestResult NcHitTest (const Point &testPoint)
 测试指定点在窗口的哪一部分
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Attributes

+const Property< LayoutHost * > Layout
 自定义的布局方式,赋值后将自动与所指向的布局关联,每个布局只能关联一个对象,设为nullptr可恢复默认布局
 
+const Property< boolAutoSize
 是否按照布局方式与子元素自动调整尺寸,该属性仅在当前元素已设置布局方式并且非顶级元素时有效
 
+const Property< boolHorizontalScrollBar
 是否显示横向滚动条
 
+const Property< boolVerticalScrollBar
 是否显示纵向滚动条
 
+const Property< doubleHorizontalScrollPos
 横向滚动条位置
 
+const Property< doubleVerticalScrollPos
 纵向滚动条位置
 
+const ReadOnlyProperty< doubleHorizontalScrollLimit
 横向滚动条可设置的最大位置
 
+const ReadOnlyProperty< doubleVerticalScrollLimit
 纵向滚动条可设置的最大位置
 
- Public Attributes inherited from sw::UIElement
+const Property< ThicknessMargin
 边距
 
+const Property< HorizontalAlignment > HorizontalAlignment
 水平对齐方式
 
+const Property< VerticalAlignment > VerticalAlignment
 垂直对齐方式
 
+const ReadOnlyProperty< intChildCount
 子控件数量
 
+const Property< boolCollapseWhenHide
 是否在不可见时不参与布局
 
+const ReadOnlyProperty< UIElement * > Parent
 指向父元素的指针,当前元素为顶级窗口时该值为nullptr
 
+const Property< uint64_tTag
 储存用户自定义信息的标记
 
+const Property< uint64_tLayoutTag
 布局标记,对于不同的布局有不同含义
 
+const Property< sw::ContextMenu * > ContextMenu
 右键按下时弹出的菜单
 
+const Property< boolFloat
 元素是否悬浮,若元素悬浮则该元素不会随滚动条滚动而改变位置
 
+const Property< boolTabStop
 表示用户是否可以通过按下Tab键将焦点移动到当前元素
 
+const Property< ColorBackColor
 背景颜色,修改该属性会同时将Transparent属性设为false,对于部分控件该属性可能不生效
 
+const Property< ColorTextColor
 文本颜色,修改该属性会同时将InheritTextColor属性设为false,对于部分控件该属性可能不生效
 
+const Property< boolTransparent
 是否使用透明背景(此属性并非真正意义上的透明,将该属性设为true可继承父元素的背景颜色)
 
+const Property< boolInheritTextColor
 是否继承父元素的文本颜色
 
- Public Attributes inherited from sw::WndBase
+const ReadOnlyProperty< HWNDHandle
 窗口句柄
 
+const Property< sw::FontFont
 字体
 
+const Property< std::wstring > FontName
 字体名称
 
+const Property< doubleFontSize
 字体大小
 
+const Property< sw::FontWeight > FontWeight
 字体粗细
 
+const Property< sw::RectRect
 位置和尺寸
 
+const Property< doubleLeft
 左边
 
+const Property< doubleTop
 顶边
 
+const Property< doubleWidth
 宽度
 
+const Property< doubleHeight
 高度
 
+const ReadOnlyProperty< sw::RectClientRect
 用户区尺寸
 
+const ReadOnlyProperty< doubleClientWidth
 用户区宽度
 
+const ReadOnlyProperty< doubleClientHeight
 用户区高度
 
+const Property< boolEnabled
 窗口或控件是否可用
 
+const Property< boolVisible
 窗口或控件是否可见
 
+const Property< std::wstring > Text
 窗口标题或控件文本
 
+const Property< boolFocused
 窗口是否拥有焦点
 
+const ReadOnlyProperty< WndBase * > Parent
 父窗口
 
+const ReadOnlyProperty< boolIsDestroyed
 是否已销毁,当该值为true时不应该继续使用当前对象
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Protected Member Functions

Layer ()
 初始化Layer
 
+void UpdateLayout ()
 更新布局
 
virtual LayoutHostGetDefaultLayout ()
 获取默认布局对象
 
virtual void OnScroll (ScrollOrientation scrollbar, ScrollEvent event, double pos)
 触发滚动条相关事件时调用该函数
 
virtual bool OnVerticalScroll (int event, int pos) override
 接收到WM_VSCROLL时调用目标控件的该函数
 
virtual bool OnHorizontalScroll (int event, int pos) override
 接收到WM_HSCROLL时调用目标控件的该函数
 
- Protected Member Functions inherited from sw::UIElement
UIElement ()
 初始化UIElement
 
void RaiseRoutedEvent (RoutedEventType eventType)
 触发路由事件
 
void RaiseRoutedEvent (RoutedEventArgs &eventArgs)
 触发路由事件
 
+void NotifyLayoutUpdated ()
 通知顶级窗口布局改变
 
+doubleGetArrangeOffsetX ()
 获取Arrange时子元素的水平偏移量
 
+doubleGetArrangeOffsetY ()
 获取Arrange时子元素的垂直偏移量
 
double GetChildRightmost (bool update)
 获取所有子元素在当前元素中最右边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
double GetChildBottommost (bool update)
 获取所有子元素在当前元素中最底边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
+void UpdateChildrenZOrder ()
 更新子元素的Z轴位置
 
+void UpdateSiblingsZOrder ()
 更新兄弟元素的Z轴位置
 
+void SetNextTabStopFocus ()
 设置下一个TabStop属性为true的元素为焦点元素
 
virtual void SetBackColor (Color color, bool redraw)
 设置背景颜色
 
virtual void SetTextColor (Color color, bool redraw)
 设置文本颜色
 
virtual void OnAddedChild (UIElement &element)
 添加子元素后调用该函数
 
virtual void OnRemovedChild (UIElement &element)
 移除子元素后调用该函数
 
+virtual void OnTabStop ()
 通过tab键将焦点移动到当前元素时调用该函数
 
virtual void OnDrawFocusRect ()
 绘制虚线框时调用该函数
 
virtual bool SetParent (WndBase *parent) override
 设置父窗口
 
virtual void ParentChanged (WndBase *newParent) override
 父窗口改变时调用此函数
 
virtual void OnEndPaint () override
 在OnPaint函数完成之后调用该函数
 
virtual bool OnClose () override
 接收到WM_CLOSE时调用该函数
 
virtual bool OnMove (Point newClientPosition) override
 接收到WM_MOVE时调用该函数
 
virtual bool OnSize (Size newClientSize) override
 接收到WM_SIZE时调用该函数
 
virtual void OnTextChanged () override
 Text属性更改时调用此函数
 
virtual void VisibleChanged (bool newVisible) override
 Visible属性改变时调用此函数
 
virtual bool OnSetFocus (HWND hPrevFocus) override
 接收到WM_SETFOCUS时调用该函数
 
virtual bool OnKillFocus (HWND hNextFocus) override
 接收到WM_KILLFOCUS时调用该函数
 
virtual bool OnChar (wchar_t ch, KeyFlags flags) override
 接收到WM_CHAR时调用该函数
 
virtual bool OnKeyDown (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYDOWN时调用该函数
 
virtual bool OnKeyUp (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYUP时调用该函数
 
virtual bool OnMouseMove (Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEMOVE时调用该函数
 
virtual bool OnMouseLeave () override
 接收到WM_MOUSELEAVE时调用该函数
 
virtual bool OnMouseWheel (int wheelDelta, Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEWHEEL时调用该函数
 
virtual bool OnMouseLeftButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONDOWN时调用该函数
 
virtual bool OnMouseLeftButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONUP时调用该函数
 
virtual bool OnMouseRightButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONDOWN时调用该函数
 
virtual bool OnMouseRightButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONUP时调用该函数
 
virtual bool OnMouseMiddleButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONDOWN时调用该函数
 
virtual bool OnMouseMiddleButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONUP时调用该函数
 
virtual bool OnContextMenu (bool isKeyboardMsg, Point mousePosition) override
 接收到WM_CONTEXTMENU后调用目标控件的该函数
 
virtual void OnMenuCommand (int id) override
 当WM_COMMAND接收到菜单命令时调用该函数
 
virtual bool OnColor (HDC hdc, HBRUSH &hRetBrush) override
 父窗口接收到WM_CTLCOLORxxx时调用对应控件的该函数
 
virtual bool OnSetCursor (HWND hwnd, HitTestResult hitTest, int message, bool &result) override
 接收到WM_SETCURSOR消息时调用该函数
 
- Protected Member Functions inherited from sw::WndBase
WndBase ()
 初始化WndBase
 
WndBase (const WndBase &)=delete
 
WndBase (WndBase &&)=delete
 
+WndBaseoperator= (const WndBase &)=delete
 
+WndBaseoperator= (WndBase &&)=delete
 
+void InitWindow (LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为窗口,该函数会调用CreateWindowExW
 
+void InitControl (LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为控件,该函数会调用CreateWindowExW
 
+LONG_PTR GetStyle ()
 获取窗口样式
 
+void SetStyle (LONG_PTR style)
 设置窗口样式
 
+bool GetStyle (LONG_PTR style)
 获取窗口的某个样式
 
+void SetStyle (LONG_PTR style, bool value)
 设置窗口的某个样式
 
+LONG_PTR GetExtendedStyle ()
 获取扩展窗口样式
 
+void SetExtendedStyle (LONG_PTR style)
 设置扩展窗口样式
 
+bool GetExtendedStyle (LONG_PTR style)
 获取窗口的某个扩展样式
 
+void SetExtendedStyle (LONG_PTR style, bool value)
 设置窗口的某个扩展样式
 
+HFONT GetFontHandle ()
 获取字体句柄
 
+LRESULT DefaultWndProc (const ProcMsg &refMsg)
 调用默认的WndProc,对于窗口则调用DefWindowProcW,控件则调用_controlOldWndProc
 
virtual LRESULT WndProc (const ProcMsg &refMsg)
 对WndProc的封装
 
+void UpdateText ()
 更新_text字段
 
virtual std::wstring & GetText ()
 获取窗口文本
 
virtual void SetText (const std::wstring &value)
 调用SetWindowTextW设置窗口文本
 
virtual bool OnCreate ()
 接收到WM_CREATE时调用该函数
 
virtual bool OnDestroy ()
 接收到WM_DESTROY时调用该函数
 
virtual bool OnPaint ()
 接收到WM_PAINT时调用该函数
 
virtual bool OnMouseLeftButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_LBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseRightButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_RBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseMiddleButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_MBUTTONDBLCLK时调用该函数
 
virtual bool OnDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_DEADCHAR时调用该函数
 
virtual bool OnSysChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSCHAR时调用该函数
 
virtual bool OnSysDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSDEADCHAR时调用该函数
 
virtual bool OnSysKeyDown (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYDOWN时调用该函数
 
virtual bool OnSysKeyUp (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYUP时调用该函数
 
virtual void OnCommand (int code)
 当父窗口接收到控件的WM_COMMAND时调用该函数
 
virtual void OnControlCommand (WndBase *pControl, int code, int id)
 当WM_COMMAND接收到控件命令时调用该函数
 
virtual void OnAcceleratorCommand (int id)
 当WM_COMMAND接收到快捷键命令时调用该函数
 
virtual void HandleInitialized (HWND hwnd)
 窗口句柄初始化完成
 
virtual void FontChanged (HFONT hfont)
 字体改变时调用该函数
 
virtual bool OnNotify (NMHDR *pNMHDR)
 接收到WM_NOTIFY后调用该函数
 
virtual void OnNotified (NMHDR *pNMHDR)
 父窗口接收到WM_NOTIFY后调用发出通知控件的该函数
 
virtual bool OnEnabledChanged (bool newValue)
 接收到WM_ENABLE时调用该函数
 
virtual bool OnCtlColor (WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)
 接收到WM_CTLCOLORxxx时调用该函数
 
virtual void OnNcHitTest (const Point &testPoint, HitTestResult &result)
 接收到WM_NCHITTEST后调用该函数
 
virtual bool OnEraseBackground (int &result)
 接收到WM_ERASEBKGND时调用该函数
 
virtual bool OnDrawItem (int id, DRAWITEMSTRUCT *pDrawItem)
 接收到WM_DRAWITEM时调用该函数
 
+ + + + + +

+Additional Inherited Members

- Static Public Member Functions inherited from sw::WndBase
static WndBaseGetWndBase (HWND hwnd)
 通过窗口句柄获取WndBase
 
+

Detailed Description

+

表示可以设置布局方式的元素类型,如窗口、面板等

+

Member Function Documentation

+ +

◆ Arrange()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::Layer::Arrange (const sw::Rect & finalPosition)
+
+overridevirtual
+
+ +

安排控件位置

+
Parameters
+ + +
finalSize最终控件所安排的位置
+
+
+ +

Reimplemented from sw::UIElement.

+ +

Reimplemented in sw::PanelBase.

+ +
+
+ +

◆ GetDefaultLayout()

+ +
+
+ + + + + +
+ + + + + + + +
virtual LayoutHost * sw::Layer::GetDefaultLayout ()
+
+protectedvirtual
+
+ +

获取默认布局对象

+ +

Reimplemented in sw::Canvas, sw::DockPanel, sw::Grid, sw::StackPanel, sw::UniformGrid, sw::Window, and sw::WrapPanel.

+ +
+
+ +

◆ GetHorizontalScrollRange()

+ +
+
+ + + + + + + + + + + +
void sw::Layer::GetHorizontalScrollRange (double & refMin,
double & refMax )
+
+ +

获取横向滚动条的范围

+
Parameters
+ + + +
refMin滚动范围最小值
refMax滚动范围最大值
+
+
+ +
+
+ +

◆ GetVerticalScrollRange()

+ +
+
+ + + + + + + + + + + +
void sw::Layer::GetVerticalScrollRange (double & refMin,
double & refMax )
+
+ +

获取纵向滚动条的范围

+
Parameters
+ + + +
refMin滚动范围最小值
refMax滚动范围最大值
+
+
+ +
+
+ +

◆ Measure()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::Layer::Measure (const Size & availableSize)
+
+overridevirtual
+
+ +

测量控件所需尺寸

+
Parameters
+ + +
availableSize可用的尺寸
+
+
+ +

Reimplemented from sw::UIElement.

+ +

Reimplemented in sw::PanelBase.

+ +
+
+ +

◆ OnHorizontalScroll()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::Layer::OnHorizontalScroll (int event,
int pos )
+
+overrideprotectedvirtual
+
+ +

接收到WM_HSCROLL时调用目标控件的该函数

+
Parameters
+ + + +
event事件类型,即消息wParam的低字
pos当前滚动条的位置,仅当event为SB_THUMBPOSITION或SB_THUMBTRACK时有效
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented from sw::WndBase.

+ +

Reimplemented in sw::PanelBase.

+ +
+
+ +

◆ OnScroll()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + +
virtual void sw::Layer::OnScroll (ScrollOrientation scrollbar,
ScrollEvent event,
double pos )
+
+protectedvirtual
+
+ +

触发滚动条相关事件时调用该函数

+
Parameters
+ + + + +
scrollbar滚动条类型
event滚动条事件
pos当event为ThumbPosition或ThubmTrack时表示当前滚动条位置,其他情况固定为0
+
+
+ +
+
+ +

◆ OnVerticalScroll()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::Layer::OnVerticalScroll (int event,
int pos )
+
+overrideprotectedvirtual
+
+ +

接收到WM_VSCROLL时调用目标控件的该函数

+
Parameters
+ + + +
event事件类型,即消息wParam的低字
pos当前滚动条的位置,仅当event为SB_THUMBPOSITION或SB_THUMBTRACK时有效
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented from sw::WndBase.

+ +

Reimplemented in sw::PanelBase.

+ +
+
+ +

◆ ScrollHorizontal()

+ +
+
+ + + + + + + +
void sw::Layer::ScrollHorizontal (double offset)
+
+ +

水平滚动

+
Parameters
+ + +
offset滚动的偏移量
+
+
+ +
+
+ +

◆ ScrollVertical()

+ +
+
+ + + + + + + +
void sw::Layer::ScrollVertical (double offset)
+
+ +

垂直滚动

+
Parameters
+ + +
offset滚动的偏移量
+
+
+ +
+
+ +

◆ SetHorizontalScrollRange()

+ +
+
+ + + + + + + + + + + +
void sw::Layer::SetHorizontalScrollRange (double min,
double max )
+
+ +

设置横向滚动条的范围

+
Parameters
+ + + +
min滚动范围最小值
max滚动范围最大值
+
+
+ +
+
+ +

◆ SetVerticalScrollRange()

+ +
+
+ + + + + + + + + + + +
void sw::Layer::SetVerticalScrollRange (double min,
double max )
+
+ +

设置纵向滚动条的范围

+
Parameters
+ + + +
min滚动范围最小值
max滚动范围最大值
+
+
+ +
+
+
The documentation for this class was generated from the following file:
    +
  • D:/code/GitHub/sw/sw/inc/Layer.h
  • +
+
+
+ + + + diff --git a/docs/classsw_1_1_layer.js b/docs/classsw_1_1_layer.js new file mode 100644 index 00000000..f00db940 --- /dev/null +++ b/docs/classsw_1_1_layer.js @@ -0,0 +1,37 @@ +var classsw_1_1_layer = +[ + [ "Layer", "classsw_1_1_layer.html#a61030d006cafc26525bc07bced899b92", null ], + [ "~Layer", "classsw_1_1_layer.html#a9704f14ac77a0e0902b79058a2d29c8d", null ], + [ "Arrange", "classsw_1_1_layer.html#a418f1f936414fd657ad11a0c0f437cdb", null ], + [ "DisableLayout", "classsw_1_1_layer.html#a4c9e94621cab7abd5ca2e10f5691c3c1", null ], + [ "EnableLayout", "classsw_1_1_layer.html#a5965bfa865e07371ad9e2e773f720653", null ], + [ "GetDefaultLayout", "classsw_1_1_layer.html#a57498353e1b1b74f708ec8da81b48605", null ], + [ "GetHorizontalScrollPageSize", "classsw_1_1_layer.html#a465cbfd99c23c60b746529372a071274", null ], + [ "GetHorizontalScrollRange", "classsw_1_1_layer.html#a61a3007c7519de5b677dcc61b723034a", null ], + [ "GetVerticalScrollPageSize", "classsw_1_1_layer.html#af373e47fda965795550b31e622839a7f", null ], + [ "GetVerticalScrollRange", "classsw_1_1_layer.html#a3f5248e4483b277a2f99c9b3cde086b7", null ], + [ "Measure", "classsw_1_1_layer.html#a3ac4fcba5970f01d5c944c0376a354c7", null ], + [ "OnHorizontalScroll", "classsw_1_1_layer.html#ab199e8fc6b90975b7dcb5fdb4e5f2853", null ], + [ "OnScroll", "classsw_1_1_layer.html#af21620044342125a8e59671a6fb222e8", null ], + [ "OnVerticalScroll", "classsw_1_1_layer.html#ac06c5746cd104b7f8f9ab4d9ea9c5833", null ], + [ "ScrollHorizontal", "classsw_1_1_layer.html#a8c9c171806dc6021ea15c6a444a74efa", null ], + [ "ScrollToBottom", "classsw_1_1_layer.html#a6a371d0a4688e0ec05ad508572df3866", null ], + [ "ScrollToLeft", "classsw_1_1_layer.html#aa86cca7662b17b6a03467d0e7d1975da", null ], + [ "ScrollToRight", "classsw_1_1_layer.html#aed843519d2ebd313ff0fb598548414aa", null ], + [ "ScrollToTop", "classsw_1_1_layer.html#ac2826d1b12341d63b5b6be854dffd419", null ], + [ "ScrollVertical", "classsw_1_1_layer.html#a64d09c3003a00ede215ebf5b52efd328", null ], + [ "SetHorizontalScrollPageSize", "classsw_1_1_layer.html#aead2fa34ba3641781a849d3abd7f5839", null ], + [ "SetHorizontalScrollRange", "classsw_1_1_layer.html#aac08647d3f15d95e874a2c84c6237dde", null ], + [ "SetVerticalScrollPageSize", "classsw_1_1_layer.html#a764863242261f4373f2ec3da99ef0310", null ], + [ "SetVerticalScrollRange", "classsw_1_1_layer.html#a53bc897b0a8c50761ccc6c2daf4e2e02", null ], + [ "UpdateLayout", "classsw_1_1_layer.html#a76769d6a5eb98783dfe42b1473560996", null ], + [ "UpdateScrollRange", "classsw_1_1_layer.html#ab71b81212d598db06271a1338b42ff1e", null ], + [ "AutoSize", "classsw_1_1_layer.html#ad4a741e4ddddbd9886cefb88efd9e3e0", null ], + [ "HorizontalScrollBar", "classsw_1_1_layer.html#a4bb56843061a3db9497703f16e58f4ba", null ], + [ "HorizontalScrollLimit", "classsw_1_1_layer.html#a5af8ff318d2438eab8f8b325cf8e66da", null ], + [ "HorizontalScrollPos", "classsw_1_1_layer.html#ae738d7ede2ba0d5547553df25f8d8ed8", null ], + [ "Layout", "classsw_1_1_layer.html#accb80d7a016d5a56b1c744db4ef96059", null ], + [ "VerticalScrollBar", "classsw_1_1_layer.html#aecfdee30e69119db86f0824d35a50ea4", null ], + [ "VerticalScrollLimit", "classsw_1_1_layer.html#ae79ad98e8d7f2fe5f66132ce797e9f70", null ], + [ "VerticalScrollPos", "classsw_1_1_layer.html#adac6ce15772ba5e2dcf2bfeed126e9d7", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_layer.png b/docs/classsw_1_1_layer.png new file mode 100644 index 0000000000000000000000000000000000000000..7243067b2c6baa7e213508671765b205a7e77b30 GIT binary patch literal 3861 zcmb_fdpwkB`$v9g+Yz;1UW5>DlaSMpbFmVU!y`mai#E&{3=@q}`Z!DuzfGG;m{9b{ zDRw8PQJAb!*l1{sVU(H3slg0mc%R4a``gd&xBJ`A`+hzw2#HdtLW+ zWuJC)LVTh8g_xKa!uf=Qr=6?))6;gk_&mUM*^m#DbGSAqsEwfKUeFQ=3%hP!vxbU-{vLwEs z$`@EM^N@eLAL#?MpYpzn%OU{)X0JlXzOqnYnBm~)o2mOC$~ZUy7ccMz4)gL{91!?pBY45AU&9`g2GGeR8CpPM1?y9SR_;Dxw zEtc!FmPJJ9xh<=_r0`g?W`cD!JKzDQz~;WAX}RX3E_{pIk1O%kv5R`0E74>&_qI^P zyR2GpBt=2^ta3MCx^DB39WXR0(W>JQn8Kz$@xoS&f0+5mD&CpdKWDa@N8%spDIqw~ zdaL*gatf2ut|nX#plZT>Sz_^-wK_9;vzjh&)5#}^N&xDK9T zDT5>KBNb}-AD-l2q?0-HV*sL~A2i>KGa3ZJZ_6M91Jl)91=mT1)?s?j-+!`35Actu zSK|qnLFLp^%s_#M?%o>kjt;W(sH-WLA>z2vy25(=j`G=ElSiW{qP1oz!Xba#^^1#C zYzfi0yw?S>ZZl)}`rt9|tLls7Yycp<;2mxRFWhuI;FG`l%~+Mp>|%eFpdxz~G@oYy z017?~q9ZNxRKUeER?E;yTEJFyydhVEC1gJnnMECs25=?@nmq3P2uv=5Hjq=O2FGEO z9B3d&$tKmy2GVh?=`DGL#755HjhqfughZRO_f@f&Q8dvah-k6R2^sNsk4tORU(;4!dkYcX!YT{+&g0C|-y@dVzJUNZ0dO@fokSXC*bSR|y zT0#)2;V6X2n4i`8+EJ$dCwp3Wfm!C%G=5CgRyd`#1J%WY48A#1EeOUiQj$CyP|@GK z8^UhkiE0Y_pK59qtezeBXiq z>Zn%TR3fzeOXfg#fp1|=%*YQyeXG>@}t0QiVEUBy%SQINt2D= zW?rMuTUps|K0;Z*ep*GY>ZEd%;BO5=VWq_-`aa|KmTOA-PXFStKKiK~l3eh2kpFyO z=>UP*4LR&@7FB}4ZQT1$&PkgA26cGYUoFx5?a~rq8r+;S(?6E>V0+k}jg^;Z+UAUd z!=E$ck5Bsl(C9x0`Ghx)MpF@zGKO6d6viCY1>%Ow@7dbtf~0a{{zvB5Y9_SIEKxIBq#ZlNw;$)>NY`Y>Us0?iLK0i5X1Ev$n4>!S>yCfUGK5E z#MXmQ4ETmN*!Mqtg6S0%cfnzWF+Mc#gH!4H@@bj}YhLsl?4CUXA@Fs%w~QsZGiD8Ps@cYkvk<3Cw_QBSK-7%$6pc zN&bcXCEf7s@?K4P0j9Lg=WG!Lu*$(lSP9Bcd&qBks6Bk5{gie?`pTt>Pyj)Nrv9YbXoF*ow5EFzJ3Y@Z4@pUqx!q2Z#Z z@t<#y3OstImhDq^LWsj(Bl8fJ3mE!7bVVRH>4gDEu#ofKJn3bDq?W=0PHDq*rk8(3ui9JzXE@$QLUm-377dIq z3@D0cFy7oHO$9EY>yja6I2C(g>yNNRn#j(MzL<11H(r(3!os<;(@W7KpaI_?>`Nif z7_qK1Q$fnq6^=k^zAAuk4r?`2E(or`yTV8N2TA!iSJuw9VBR2=B?aYwWf*To{>Yd! zi>5H1DN1bI7~1!Bh4x~KXOhx)*PkvpGeaCsN_6PrGUX5M+$i~Lg{42^0{O}e=&K6T zh*{8sF5n%wT=xdLRSSu3(B-$VM`1GKPj%|fP)CU%7-3;mzt~;sgFV6@Rq>EV;{*6% z){23b7Q0zK*n|8knSLWs7(!5gkrWc}`qkvZ8@1R7;)iwaQvOS^a%X`t^7T#59pQb= zbRz&@%0o&+nC@|bQ3T|M9W7NyKl7PZc~QBA;1Ke4VdP^?N_ZBj{%J0WZ-h9rQA{da zXIUART(PZSJ6wF-%&K`_B~uqmCs%qudN-7nP1;>VXL)1qSw-q%6eGQ_Mm9ebHt#G} z9xOs`4okJ4F1bBti0o_}GvVHgE0-lyva!RvyIVH}ajS|d%Y=*5KwqtlK`e`mN$NOG z`8Z3Aw(8M!x9oNvnjOA;i`Zn(s{P46-KMT9-udyN&Ru#5zVExcC=Y;bFzhd4{^T1_RK}%QG4arpZUxjeRA+@=`rFIrh z%Js@;W#q_k{%i_w&Alc^KDa%^ga%v{I}8^O7V^If`TwWFfa;osQ8a~759Oo~sM?53 z!|)h~H3owbo54+A$-UJWoY>)M=bP@3zWaoD2x1SyM&rM(nw~Hbr2RF*<6Cgr%8jAp zm@eA>(7$!I8R;#|xR8?oz&Zfcjc+IDgPu>J(#yGN+kXI{{@>>TAPTO_Y&2ki2At~b z$^f9|*&!r)wG;#kFWTHco|Uas>0*q^%)fN*X-E!F{hD*fO~%mqI&JM`$s`}3|x6>RSuoOfG}RVCZ2x4n`bD!c3N zb@$ngJTry&8cTDF>5hr#m~_Wfe_Umj*ZxYcJG+gP7cL2nvPJE@UCa4x|L95A&fm&& zZ?9!{4)jn6md)Ac8yoWIb?JzxWM^~$MVJ%xqK0#4!tT4u>6p+KH|LxTwT)>{>gH#z z;SubcgRi7-D<$6g`O~hpmUumF3nc=zxzDjkb=~N-Q!mr0$UV&D1)grcmPlx9&I$S{ zMlR7P8`{X9mePpk3$fOmmi{tQy#4&S<(8aUf7ioTP!5%@?s+WXuaQCj7g2V zpgn1~jmG`rx+b2xKJVuwGS53%ei&}o<;2w5_gCYUFE$zJD+a|3)IBs`li)b8q6Qk5 zY(24YT#tyZGpPrfZ%c{pk>dYuTgs>*O=*`DQ$Bt?y3oa$?D;{t<8y2)m0?}@;nuFW zI`)a|-td(c(zPX9FKix&D$BI8?Ci?>tpW1WZNkex8a=e8lv!7pV=Zg zjbfh>#vG2bxsOs=cD;_8yAW4S93pePijsMi1x3*V*BYP;>&DWX=2s5|?6y~C+_MMt ztp%~F`X6{Iss_|CGA1fM8>_mI%uQn1KcePMwX_Y9E3d2ekDgyT1LWSugeJMnY?M`+ z^p8?+jRmBaTr(Zl&^K-GI9j~KYi1_WT=q;+h$fibcYJ~2N-LHT#JOKc`R4q!s3+hB z2dGV0Pjje-yB4Ua8vX+A5_X?}sVcxVeN_)N6MJgF3kbLsl-7m-%D(~NKJgbW*Pm&C s`pcJJdd{@eLhN~q3#3SO + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::LayoutHost Member List
+
+
+ +

This is the complete list of members for sw::LayoutHost, including all inherited members.

+ + + + + + + + + + + +
Arrange(const Rect &finalPosition) overridesw::LayoutHostvirtual
ArrangeOverride(Size &finalSize)=0sw::LayoutHostpure virtual
Associate(ILayout *obj)sw::LayoutHost
GetChildLayoutAt(int index) overridesw::LayoutHostvirtual
GetChildLayoutCount() overridesw::LayoutHostvirtual
GetDesireSize() overridesw::LayoutHostvirtual
GetLayoutTag() overridesw::LayoutHostvirtual
Measure(const Size &availableSize) overridesw::LayoutHostvirtual
MeasureOverride(Size &availableSize)=0sw::LayoutHostpure virtual
SetDesireSize(const Size &size) overridesw::LayoutHostvirtual
+
+ + + + diff --git a/docs/classsw_1_1_layout_host.html b/docs/classsw_1_1_layout_host.html new file mode 100644 index 00000000..205ee66e --- /dev/null +++ b/docs/classsw_1_1_layout_host.html @@ -0,0 +1,471 @@ + + + + + + + +SimpleWindow: sw::LayoutHost Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
sw::LayoutHost Class Referenceabstract
+
+
+ +

用于托管元素的布局方式的对象类型,是所有布局方式类型的基类 + More...

+ +

#include <LayoutHost.h>

+
+Inheritance diagram for sw::LayoutHost:
+
+
+ + +sw::ILayout +sw::CanvasLayout +sw::DockLayout +sw::FillLayout +sw::GridLayout +sw::StackLayoutH +sw::StackLayoutV +sw::UniformGridLayout +sw::WrapLayoutH +sw::WrapLayoutV + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

void Associate (ILayout *obj)
 设置关联的对象,每个LayoutHost只能关联一个对象
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取关联对象子控件的数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取关联对象对应索引处的子控件
 
virtual Size GetDesireSize () override
 获取关联对象所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置关联对象所需的尺寸
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const Rect &finalPosition) override
 安排控件位置
 
virtual void MeasureOverride (Size &availableSize)=0
 重写此函数计算所需尺寸
 
virtual void ArrangeOverride (Size &finalSize)=0
 重写此函数安排控件
 
+

Detailed Description

+

用于托管元素的布局方式的对象类型,是所有布局方式类型的基类

+

Member Function Documentation

+ +

◆ Arrange()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::LayoutHost::Arrange (const Rect & finalPosition)
+
+overridevirtual
+
+ +

安排控件位置

+
Parameters
+ + +
finalPosition最终控件所安排的位置
+
+
+ +

Implements sw::ILayout.

+ +
+
+ +

◆ ArrangeOverride()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::LayoutHost::ArrangeOverride (Size & finalSize)
+
+pure virtual
+
+
+ +

◆ Associate()

+ +
+
+ + + + + + + +
void sw::LayoutHost::Associate (ILayout * obj)
+
+ +

设置关联的对象,每个LayoutHost只能关联一个对象

+
Parameters
+ + +
obj要关联的对象
+
+
+ +
+
+ +

◆ GetChildLayoutAt()

+ +
+
+ + + + + +
+ + + + + + + +
virtual ILayout & sw::LayoutHost::GetChildLayoutAt (int index)
+
+overridevirtual
+
+ +

获取关联对象对应索引处的子控件

+ +

Implements sw::ILayout.

+ +
+
+ +

◆ GetChildLayoutCount()

+ +
+
+ + + + + +
+ + + + + + + +
virtual int sw::LayoutHost::GetChildLayoutCount ()
+
+overridevirtual
+
+ +

获取关联对象子控件的数量

+ +

Implements sw::ILayout.

+ +
+
+ +

◆ GetDesireSize()

+ +
+
+ + + + + +
+ + + + + + + +
virtual Size sw::LayoutHost::GetDesireSize ()
+
+overridevirtual
+
+ +

获取关联对象所需尺寸

+ +

Implements sw::ILayout.

+ +
+
+ +

◆ GetLayoutTag()

+ +
+
+ + + + + +
+ + + + + + + +
virtual uint64_t sw::LayoutHost::GetLayoutTag ()
+
+overridevirtual
+
+ +

获取布局标记

+ +

Implements sw::ILayout.

+ +
+
+ +

◆ Measure()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::LayoutHost::Measure (const Size & availableSize)
+
+overridevirtual
+
+ +

测量控件所需尺寸

+
Parameters
+ + +
availableSize可用的尺寸
+
+
+ +

Implements sw::ILayout.

+ +
+
+ +

◆ MeasureOverride()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::LayoutHost::MeasureOverride (Size & availableSize)
+
+pure virtual
+
+
+ +

◆ SetDesireSize()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::LayoutHost::SetDesireSize (const Size & size)
+
+overridevirtual
+
+ +

设置关联对象所需的尺寸

+ +

Implements sw::ILayout.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_layout_host.js b/docs/classsw_1_1_layout_host.js new file mode 100644 index 00000000..99691745 --- /dev/null +++ b/docs/classsw_1_1_layout_host.js @@ -0,0 +1,13 @@ +var classsw_1_1_layout_host = +[ + [ "Arrange", "classsw_1_1_layout_host.html#a52f5e12df00e032fd424db409fd73951", null ], + [ "ArrangeOverride", "classsw_1_1_layout_host.html#ac28cdcd081c105a2acedfddce436897d", null ], + [ "Associate", "classsw_1_1_layout_host.html#ace58d1aefa8427892f71bfa8b91e9281", null ], + [ "GetChildLayoutAt", "classsw_1_1_layout_host.html#abd04747a5d0395d5f95f06185e28b964", null ], + [ "GetChildLayoutCount", "classsw_1_1_layout_host.html#a0c6c9750b12c5816608d78d72225b872", null ], + [ "GetDesireSize", "classsw_1_1_layout_host.html#a7099b15d8916a42f58de10d0266e89f6", null ], + [ "GetLayoutTag", "classsw_1_1_layout_host.html#ab89962ec32dec364e4e18ea0afe44d52", null ], + [ "Measure", "classsw_1_1_layout_host.html#aa520181822f89994362a010237687b3f", null ], + [ "MeasureOverride", "classsw_1_1_layout_host.html#a4206d0a20d92581d33a4510fb2ba1871", null ], + [ "SetDesireSize", "classsw_1_1_layout_host.html#a035aefcab7040b1ac1503e4f25501e48", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_layout_host.png b/docs/classsw_1_1_layout_host.png new file mode 100644 index 0000000000000000000000000000000000000000..a197eba23f78aafabb8e0d6544ba4d9791644c4f GIT binary patch literal 3924 zcmd6qYg7~09>s&!VilyV1uSCd)mTJ}pg<@vKvfV%@SK31G0^D!wpn zv_=AidKH31ULwH+XcR=Q#UyH^0YZQjNDL$p2p9r{+zIyK>RtV2*Xn#YbIzGrv)0*X z|9@xCxj=s(<7F1h5D0`Z=<5}PKo}qqh(*3j7sE3rH)LIgZ>t0M?DN*?ba3~jd@7CD zO#9s4CV3V4$;)x3SJ-(EBZjMZTlbtg=i#&es7VN zcqr7gb=Gsdh8Z5!eXic+x$ub@uoo@*~3V9g6 z&sW{D?#@mzW>;Z^=^`8FFd;)R;xWI3Ea}=Ur2q}Gs5D$1MmV|`f@`MFGq)UPDE}Q+a>B25NR&58))WlruUX_wU#qMNJFkN}E-vgi8ql*LCXR)F( zX*J=npJ4dwsk7rg0uP#4mR!y>3fo9))2JroN=w$vk>lU)V{;z{^U`D8ZkI+z7aBLM z<=ypW;AbKy6Vv?EiXjQbwuUWEppoL2JX)hFoVa&{b)iKK!sGPl)ld|VLmej zBPJ^VHeVA;jTz1!laOu}>x=A-nseKrU;kQo{rQIdyWXO4|GEs^R9Aw2+OlZ6u?dfo zEq$ZD^vXw{lD?WI-Nb84@=Q>i{e=HIK@9119zZ-iagE#AbKpyF?R6^`V~eVg#j|K~ zuM3`~33Z^qL&fs1Z;c|{1$>{gR!-dhx%E?C_0u>U+athJnj@Aa^{FZ}@qi!S(d|>P z@_=wMQo5e^NJ7DIcI)B5%uK0>i;l#oF4kv)5gA-g9p#s4Ww-}(MjDipu2bJ~HMTs5 zN)X8)ltkKrobu&gR8m zEjKx7`!@}Q`LqS5N)?=SAdHFEH2rm>72ARO(cP>NJ20~&U`ORchpgESpk-rzIgJ(J zE}~?vsN&A3Nrzmm1Dw@Iuj2BS@a(xr)Z?@W>XexU)}1BOP{tTZVi{U+UfL?j+&`TJ zQA!ii_mK8G%c}^)rontnb5d7S`)buJFrbJgMaB0)^kAOh%O$em>u020%)I8%DLs< z*5Czh8{dyb={@+p5kwTIX6$>AsD#?!i9ITc2otyIkh|JWEDLQl<0ZD+N_zY5NgF2Y z@UQjEZkZoecP2q`S>qE0$MCV#bV1_i2we0ui?!egm&Lr={zHT6NwL3nF4rw+N(PZB zXM9PrZvfI{Ra4YP(%qL0P;ZB3GqpbLM+|&|x&5iS)?9&Ivf_jLQpJDH0+*gp|s^*)A@1QshCipF{1_4oF>Bj^oUTprwO@|BHljTbfE6yL^8?u6*8L>xW8lYPb zw)-=fXo!ka)OVWkCim90&8JQ|`tjx0P!+4u9H{E%ub_@}L) z^7UzX)`H9|BjR=OV<-3frPAlh<4u%OpPnyLjgjC?wcjEz<%B6u=o-_i`jJbtk?dgugASJ_U;-LI7p5@}_Fn5&N zw)Nw%pFSsxJ8iEM))?m!R%V37)=)_wb0cNRT=VX+HM`aj)^6ct!n;)zLtt218WmNSG zK2l1DdIg$092hA3V0M)1wHKwqy#n`CxQ$G6H5{@jxw7LOCEiVih`RN+!xy$XCSIQn zcOr`Gor$P5*WXCAdb+8`drEUk`9jscAT3M8j`QqXBUiTO3@rlMSAsl2ro03~=FDL6 z`)Vy|*(2thfu~hJi2psG^=jR~(5QJR&=TN(Oo>NtX6;Z-F6HT@(&G8!h5k~U+&Ipt z_5p9Ch1c2g9#pF9(%2qC6ANy7cNk7B%jcb#y5RrF0b3jZT_u|r9GhA_@40XWqIDye zGAt~f^-Gmemx+3MTH!9pNXO*Q2uzHmYd zQVc$W&iFi=9<&&>8Bisxa-RE-7|eiwG-eJL;OfZh6B>SZICCQrr3i#2&ff*ci&O#J z!@PQ`Z#!g`|2&Y>;nXG!TkjsD{+G6lQzK>?@i5nRarPGXv6vn^-Fvw^{o-MmsC#Fr zXK4j(3p!t>$GJAHk<3}fn~?kSaYj!0*VhPbqb9H$2bp76op`A=&1Jbp>@P@? z-(m8snjKe*pOYI5~0-Cz2HJ{+8#H=IZ# WL@d9642S=J5umrfSLODvPW=yR&2cdR literal 0 HcmV?d00001 diff --git a/docs/classsw_1_1_list-members.html b/docs/classsw_1_1_list-members.html new file mode 100644 index 00000000..b0e580ae --- /dev/null +++ b/docs/classsw_1_1_list-members.html @@ -0,0 +1,131 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::List< T > Member List
+
+
+ +

This is the complete list of members for sw::List< T >, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + +
Append(const T &value) constsw::List< T >inline
begin() constsw::List< T >inline
Capacity() constsw::List< T >inline
Clear() constsw::List< T >inline
Contains(const T &value) constsw::List< T >inline
Copy() constsw::List< T >inline
Count() constsw::List< T >inline
end() constsw::List< T >inline
IndexOf(const T &value) constsw::List< T >inline
Insert(int index, const T &value) constsw::List< T >inline
IsEmpty() constsw::List< T >inline
List()sw::List< T >inline
List(std::initializer_list< T > list)sw::List< T >inline
List(int capacity)sw::List< T >inline
operator!=sw::List< T >friend
operator<<sw::List< T >friend
operator==sw::List< T >friend
operator[](int index) constsw::List< T >inline
rbegin() constsw::List< T >inline
Remove(const T &value) constsw::List< T >inline
RemoveAt(int index) constsw::List< T >inline
rend() constsw::List< T >inline
+
+ + + + diff --git a/docs/classsw_1_1_list.html b/docs/classsw_1_1_list.html new file mode 100644 index 00000000..ff6da3bd --- /dev/null +++ b/docs/classsw_1_1_list.html @@ -0,0 +1,356 @@ + + + + + + + +SimpleWindow: sw::List< T > Class Template Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
sw::List< T > Class Template Reference
+
+
+ +

列表类,内部维护了一个指向std::vector的智能指针 + More...

+ +

#include <List.h>

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

List ()
 初始化列表
 
List (std::initializer_list< T > list)
 使用初始化列表
 
List (int capacity)
 初始化列表并指定容量
 
+auto begin () const
 正向迭代器开始
 
+auto end () const
 正向迭代器结束
 
+auto rbegin () const
 反向迭代器开始
 
+auto rend () const
 反向迭代器结束
 
+autooperator[] (int index) const
 获取或设置列表中指定位置的值
 
+int Capacity () const
 列表当前的容量
 
+int Count () const
 获取元素个数
 
+bool IsEmpty () const
 列表是否为空
 
+autoAppend (const T &value) const
 添加一个值到列表末尾
 
+void Insert (int index, const T &value) const
 在指定位置插入值
 
bool Contains (const T &value) const
 列表是否包含某个值
 
int IndexOf (const T &value) const
 查找值在列表中的索引
 
bool Remove (const T &value) const
 移除列表中第一个指定的值
 
void RemoveAt (int index) const
 移除指定索引处的值
 
+void Clear () const
 清空列表
 
+List Copy () const
 复制当前列表
 
+ + + + + + + + + + +

+Friends

+bool operator== (const List &left, const List &right)
 判断是否为同一个列表
 
+bool operator!= (const List &left, const List &right)
 判断是否不是同一个列表
 
+std::wostream & operator<< (std::wostream &wos, const List &list)
 支持Utils::BuildStr
 
+

Detailed Description

+
template<typename T>
+class sw::List< T >

列表类,内部维护了一个指向std::vector的智能指针

+

Member Function Documentation

+ +

◆ Contains()

+ +
+
+
+template<typename T >
+ + + + + +
+ + + + + + + +
bool sw::List< T >::Contains (const T & value) const
+
+inline
+
+ +

列表是否包含某个值

+
Parameters
+ + +
value要查找的值
+
+
+ +
+
+ +

◆ IndexOf()

+ +
+
+
+template<typename T >
+ + + + + +
+ + + + + + + +
int sw::List< T >::IndexOf (const T & value) const
+
+inline
+
+ +

查找值在列表中的索引

+
Parameters
+ + +
value要查找的值
+
+
+
Returns
若列表中包含该值则返回其索引,否则返回-1
+ +
+
+ +

◆ Remove()

+ +
+
+
+template<typename T >
+ + + + + +
+ + + + + + + +
bool sw::List< T >::Remove (const T & value) const
+
+inline
+
+ +

移除列表中第一个指定的值

+
Parameters
+ + +
value要移除的值
+
+
+
Returns
是否成功移除
+ +
+
+ +

◆ RemoveAt()

+ +
+
+
+template<typename T >
+ + + + + +
+ + + + + + + +
void sw::List< T >::RemoveAt (int index) const
+
+inline
+
+ +

移除指定索引处的值

+
Parameters
+ + +
index要移除元素的索引
+
+
+ +
+
+
The documentation for this class was generated from the following file:
    +
  • D:/code/GitHub/sw/sw/inc/List.h
  • +
+
+
+ + + + diff --git a/docs/classsw_1_1_list.js b/docs/classsw_1_1_list.js new file mode 100644 index 00000000..4410c0c5 --- /dev/null +++ b/docs/classsw_1_1_list.js @@ -0,0 +1,25 @@ +var classsw_1_1_list = +[ + [ "List", "classsw_1_1_list.html#ad84dc17e0d073e18e2f44871c27025de", null ], + [ "List", "classsw_1_1_list.html#abfff18bc7387d154bc89481259f847a0", null ], + [ "List", "classsw_1_1_list.html#a4e4501c96b9e786d67b420312cafb8cc", null ], + [ "Append", "classsw_1_1_list.html#aa14a40283db35522ff884cd737762720", null ], + [ "begin", "classsw_1_1_list.html#a39b94e22ea344de135667df991fbbe11", null ], + [ "Capacity", "classsw_1_1_list.html#a6998243269a9ad3bc5f4c9bdb6d90f99", null ], + [ "Clear", "classsw_1_1_list.html#a9a9a3e947b9591f2a0e7fde6fb2ac9a8", null ], + [ "Contains", "classsw_1_1_list.html#a459de7b71327cf474c1ac24909b49773", null ], + [ "Copy", "classsw_1_1_list.html#a765086d760ea625121500730a2579d28", null ], + [ "Count", "classsw_1_1_list.html#ac06d9081e817d6c808453928dd33525a", null ], + [ "end", "classsw_1_1_list.html#a9630ceee45943beca3b53931b7864095", null ], + [ "IndexOf", "classsw_1_1_list.html#a53adb5e4e7172f03bf87113443e9d2b5", null ], + [ "Insert", "classsw_1_1_list.html#a68c7aaae99a0e18274de59cad82c5743", null ], + [ "IsEmpty", "classsw_1_1_list.html#aed38231dffce414f40d272aba6e7099c", null ], + [ "operator[]", "classsw_1_1_list.html#a56e16552c6690d1c808646c4232dd992", null ], + [ "rbegin", "classsw_1_1_list.html#a5d1e8dcbb8c1b4ba128cb011ee401f3a", null ], + [ "Remove", "classsw_1_1_list.html#ae0f77fc0d146ee739725da4cc337bbe4", null ], + [ "RemoveAt", "classsw_1_1_list.html#a61b8b974966080702d94323ef0e46f85", null ], + [ "rend", "classsw_1_1_list.html#a926521f6a537069d6e398306b9f870fb", null ], + [ "operator!=", "classsw_1_1_list.html#ab3818bbafce8936cc4a4f7a43dc163aa", null ], + [ "operator<<", "classsw_1_1_list.html#ab50f6f7c37c3c4649e332d596d5bda2f", null ], + [ "operator==", "classsw_1_1_list.html#a6c5f217b25ad01a2af3b311520bcfc8e", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_list_box-members.html b/docs/classsw_1_1_list_box-members.html new file mode 100644 index 00000000..a62905a8 --- /dev/null +++ b/docs/classsw_1_1_list_box-members.html @@ -0,0 +1,315 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::ListBox Member List
+
+
+ +

This is the complete list of members for sw::ListBox, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AddChild(UIElement *element)sw::UIElement
AddChild(UIElement &element)sw::UIElement
AddChild(UIElement *element, uint64_t layoutTag)sw::UIElement
AddChild(UIElement &element, uint64_t layoutTag)sw::UIElement
AddItem(const std::wstring &item) overridesw::ListBoxvirtual
sw::ItemsControl::AddItem(const TItem &item)=0sw::ItemsControl< TItem >pure virtual
Arrange(const sw::Rect &finalPosition) overridesw::UIElementvirtual
BackColorsw::UIElement
ChildCountsw::UIElement
Clear() overridesw::ListBoxvirtual
ClearChildren()sw::UIElement
ClientHeightsw::WndBase
ClientRectsw::WndBase
ClientWidthsw::WndBase
Close()sw::WndBase
CollapseWhenHidesw::UIElement
ContextMenusw::UIElement
Control()sw::Controlprotected
DefaultWndProc(const ProcMsg &refMsg)sw::WndBaseprotected
Enabledsw::WndBase
Floatsw::UIElement
Focusedsw::WndBase
Fontsw::WndBase
FontChanged(HFONT hfont)sw::WndBaseprotectedvirtual
FontNamesw::WndBase
FontSizesw::WndBase
FontWeightsw::WndBase
GetArrangeOffsetX()sw::UIElementprotected
GetArrangeOffsetY()sw::UIElementprotected
GetChildBottommost(bool update)sw::UIElementprotected
GetChildLayoutAt(int index) overridesw::UIElementvirtual
GetChildLayoutCount() overridesw::UIElementvirtual
GetChildRightmost(bool update)sw::UIElementprotected
GetDesireSize() overridesw::UIElementvirtual
GetExtendedStyle()sw::WndBaseprotected
GetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
GetFontHandle()sw::WndBaseprotected
GetItemAt(int index) overridesw::ListBoxvirtual
GetItemIndexFromPoint(const Point &point)sw::ListBox
GetItemsCount() overridesw::ListBoxprotectedvirtual
GetItemSelectionState(int index)sw::ListBox
GetLayoutTag() overridesw::UIElementvirtual
GetNextElement()sw::UIElement
GetNextTabStopElement()sw::UIElement
GetRealBackColor()sw::UIElement
GetRealTextColor()sw::UIElement
GetRootElement()sw::UIElement
GetSelectedIndex() overridesw::ListBoxprotectedvirtual
GetSelectedIndices()sw::ListBox
GetSelectedItem() overridesw::ListBoxprotectedvirtual
GetSelectedItems()sw::ListBox
GetStyle()sw::WndBaseprotected
GetStyle(LONG_PTR style)sw::WndBaseprotected
GetTag() overridesw::UIElementvirtual
GetText()sw::WndBaseprotectedvirtual
GetWndBase(HWND hwnd)sw::WndBasestatic
Handlesw::WndBase
HandleChenged()sw::Controlprotectedvirtual
HandleInitialized(HWND hwnd)sw::WndBaseprotectedvirtual
Heightsw::WndBase
HorizontalAlignmentsw::UIElement
IndexOf(UIElement *element)sw::UIElement
IndexOf(UIElement &element)sw::UIElement
InheritTextColorsw::UIElement
InitControl(LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
InitWindow(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
InsertItem(int index, const std::wstring &item) overridesw::ListBoxvirtual
sw::ItemsControl::InsertItem(int index, const TItem &item)=0sw::ItemsControl< TItem >pure virtual
IsControl()sw::WndBase
IsDestroyedsw::WndBase
IsRootElement()sw::UIElement
IsRoutedEventRegistered(RoutedEventType eventType)sw::UIElement
IsVisible()sw::WndBase
ItemsControl()sw::ItemsControl< TItem >inlineprotected
ItemsCountsw::ItemsControl< TItem >
LayoutTagsw::UIElement
Leftsw::WndBase
ListBox()sw::ListBox
Marginsw::UIElement
Measure(const Size &availableSize) overridesw::UIElementvirtual
MoveToBottom()sw::UIElement
MoveToTop()sw::UIElement
MultiSelectsw::ListBox
NcHitTest(const Point &testPoint)sw::WndBase
NotifyLayoutUpdated()sw::UIElementprotected
OnAcceleratorCommand(int id)sw::WndBaseprotectedvirtual
OnAddedChild(UIElement &element)sw::UIElementprotectedvirtual
OnChar(wchar_t ch, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnClose() overridesw::UIElementprotectedvirtual
OnColor(HDC hdc, HBRUSH &hRetBrush) overridesw::UIElementprotectedvirtual
OnCommand(int code) overridesw::ListBoxprotectedvirtual
OnContextMenu(bool isKeyboardMsg, Point mousePosition) overridesw::ListBoxprotectedvirtual
OnControlCommand(WndBase *pControl, int code, int id)sw::WndBaseprotectedvirtual
OnCreate()sw::WndBaseprotectedvirtual
OnCtlColor(WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)sw::WndBaseprotectedvirtual
OnDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnDestroy()sw::WndBaseprotectedvirtual
OnDrawFocusRect()sw::UIElementprotectedvirtual
OnDrawItem(int id, DRAWITEMSTRUCT *pDrawItem)sw::WndBaseprotectedvirtual
OnEnabledChanged(bool newValue)sw::WndBaseprotectedvirtual
OnEndPaint() overridesw::UIElementprotectedvirtual
OnEraseBackground(int &result)sw::WndBaseprotectedvirtual
OnHorizontalScroll(int event, int pos)sw::WndBaseprotectedvirtual
OnKeyDown(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKeyUp(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKillFocus(HWND hNextFocus) overridesw::UIElementprotectedvirtual
OnMenuCommand(int id) overridesw::UIElementprotectedvirtual
OnMouseLeave() overridesw::UIElementprotectedvirtual
OnMouseLeftButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseLeftButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseMiddleButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMove(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseRightButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseWheel(int wheelDelta, Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMove(Point newClientPosition) overridesw::UIElementprotectedvirtual
OnNcHitTest(const Point &testPoint, HitTestResult &result)sw::WndBaseprotectedvirtual
OnNotified(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnNotify(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnPaint()sw::WndBaseprotectedvirtual
OnRemovedChild(UIElement &element)sw::UIElementprotectedvirtual
OnSelectionChanged()sw::ItemsControl< TItem >inlineprotectedvirtual
OnSetCursor(HWND hwnd, HitTestResult hitTest, int message, bool &result) overridesw::UIElementprotectedvirtual
OnSetFocus(HWND hPrevFocus) overridesw::UIElementprotectedvirtual
OnSize(Size newClientSize) overridesw::UIElementprotectedvirtual
OnSysChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyDown(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyUp(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnTabStop()sw::UIElementprotectedvirtual
OnTextChanged() overridesw::UIElementprotectedvirtual
OnVerticalScroll(int event, int pos)sw::WndBaseprotectedvirtual
operator=(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator=(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator[](int index) constsw::UIElement
Parentsw::UIElement
ParentChanged(WndBase *newParent) overridesw::UIElementprotectedvirtual
PointFromScreen(const Point &screenPoint)sw::WndBase
PointToScreen(const Point &point)sw::WndBase
RaiseRoutedEvent(RoutedEventType eventType)sw::UIElementprotected
RaiseRoutedEvent(RoutedEventArgs &eventArgs)sw::UIElementprotected
Rectsw::WndBase
Redraw(bool erase=false)sw::WndBase
RegisterRoutedEvent(RoutedEventType eventType, const RoutedEvent &handler)sw::UIElement
RegisterRoutedEvent(RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))sw::UIElementinline
RegisterRoutedEvent(std::function< void(UIElement &, TEventArgs &)> handler)sw::UIElementinline
RegisterRoutedEvent(THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))sw::UIElementinline
RemoveChild(UIElement *element)sw::UIElement
RemoveChild(UIElement &element)sw::UIElement
RemoveChildAt(int index)sw::UIElement
RemoveItemAt(int index) overridesw::ListBoxvirtual
ResetCursor()sw::UIElement
ResetHandle()sw::Controlprotected
SelectedCountsw::ListBox
SelectedIndexsw::ItemsControl< TItem >
SelectedItemsw::ItemsControl< TItem >
SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase
SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement
SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual
SetCursor(HCURSOR hCursor)sw::UIElement
SetCursor(StandardCursor cursor)sw::UIElement
SetDesireSize(const Size &size) overridesw::UIElementvirtual
SetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
SetExtendedStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetItemSelectionState(int index, bool value)sw::ListBox
SetNextTabStopFocus()sw::UIElementprotected
SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual
SetSelectedIndex(int index) overridesw::ListBoxprotectedvirtual
SetStyle(LONG_PTR style)sw::WndBaseprotected
SetStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetTag(uint64_t tag) overridesw::UIElementvirtual
SetText(const std::wstring &value)sw::WndBaseprotectedvirtual
SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual
Show(int nCmdShow)sw::WndBase
ShowContextMenu(const Point &point)sw::UIElement
TabStopsw::UIElement
Tagsw::UIElement
Textsw::WndBase
TextColorsw::UIElement
Topsw::WndBase
TopIndexsw::ListBox
Transparentsw::UIElement
UIElement()sw::UIElementprotected
UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement
Update()sw::WndBase
UpdateChildrenZOrder()sw::UIElementprotected
UpdateFont()sw::WndBase
UpdateItem(int index, const std::wstring &newValue) overridesw::ListBoxvirtual
sw::ItemsControl::UpdateItem(int index, const TItem &newValue)=0sw::ItemsControl< TItem >pure virtual
UpdateSiblingsZOrder()sw::UIElementprotected
UpdateText()sw::WndBaseprotected
VerticalAlignmentsw::UIElement
Visiblesw::WndBase
VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual
Widthsw::WndBase
WndBase()sw::WndBaseprotected
WndBase(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndBase(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual
~Control()=0sw::Controlpure virtual
~UIElement()=0sw::UIElementpure virtual
~WndBase()=0sw::WndBasepure virtual
+
+ + + + diff --git a/docs/classsw_1_1_list_box.html b/docs/classsw_1_1_list_box.html new file mode 100644 index 00000000..75a2044e --- /dev/null +++ b/docs/classsw_1_1_list_box.html @@ -0,0 +1,1399 @@ + + + + + + + +SimpleWindow: sw::ListBox Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+ +

列表框 + More...

+ +

#include <ListBox.h>

+
+Inheritance diagram for sw::ListBox:
+
+
+ + +sw::ItemsControl< TItem > +sw::Control +sw::UIElement +sw::WndBase +sw::ILayout +sw::ITag + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

ListBox ()
 初始化列表框
 
virtual void Clear () override
 清空所有子项
 
virtual std::wstring GetItemAt (int index) override
 获取指定索引处子项的值
 
virtual bool AddItem (const std::wstring &item) override
 添加新的子项
 
virtual bool InsertItem (int index, const std::wstring &item) override
 添加子项到指定索引
 
virtual bool UpdateItem (int index, const std::wstring &newValue) override
 更新指定位置的子项
 
virtual bool RemoveItemAt (int index) override
 移除指定索引处的子项
 
int GetItemIndexFromPoint (const Point &point)
 获取指定点处子项的索引
 
List< intGetSelectedIndices ()
 多选状态下可通过该函数获取所有选中项的索引
 
StrList GetSelectedItems ()
 多选状态下可通过该函数获取所有选中项的内容
 
bool GetItemSelectionState (int index)
 获取指定索引处子项的选中状态
 
void SetItemSelectionState (int index, bool value)
 多选状态下设置指定索引处子项的选中状态
 
- Public Member Functions inherited from sw::ItemsControl< TItem >
virtual bool AddItem (const TItem &item)=0
 添加新的子项
 
virtual bool InsertItem (int index, const TItem &item)=0
 添加子项到指定索引
 
virtual bool UpdateItem (int index, const TItem &newValue)=0
 更新指定位置的子项
 
- Public Member Functions inherited from sw::Control
+virtual ~Control ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
- Public Member Functions inherited from sw::UIElement
+virtual ~UIElement ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
void RegisterRoutedEvent (RoutedEventType eventType, const RoutedEvent &handler)
 注册路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename T >
void RegisterRoutedEvent (RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))
 注册成员函数作为路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename TEventArgs , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (std::function< void(UIElement &, TEventArgs &)> handler)
 根据事件参数类型注册路由事件
 
template<typename TEventArgs , typename THandleObj , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))
 根据事件参数类型注册成员函数作为路由事件
 
void UnregisterRoutedEvent (RoutedEventType eventType)
 取消对应类型路由事件的注册
 
bool IsRoutedEventRegistered (RoutedEventType eventType)
 判断路由事件是否已被注册
 
bool AddChild (UIElement *element)
 添加子控件
 
bool AddChild (UIElement &element)
 添加子控件
 
bool AddChild (UIElement *element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool AddChild (UIElement &element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool RemoveChildAt (int index)
 移除指定索引处的子控件
 
bool RemoveChild (UIElement *element)
 移除子控件
 
bool RemoveChild (UIElement &element)
 移除子控件
 
+void ClearChildren ()
 移除所有子控件
 
int IndexOf (UIElement *element)
 获取指定元素的索引
 
int IndexOf (UIElement &element)
 获取指定元素的索引
 
+UIElementoperator[] (int index) const
 通过索引获取子控件
 
void ShowContextMenu (const Point &point)
 弹出当前元素的上下文菜单
 
+void MoveToTop ()
 移动到界面顶部
 
+void MoveToBottom ()
 移动到界面底部
 
+bool IsRootElement ()
 判断当前元素是否为根节点
 
+UIElementGetRootElement ()
 获取当前元素所在界面树的根节点
 
+UIElementGetNextElement ()
 获取当前元素在界面树上的下一个节点,若已是最后一个节点则返回根节点
 
+UIElementGetNextTabStopElement ()
 获取下一个TabStop属性为true的元素
 
+Color GetRealBackColor ()
 获取当前要显示的背景颜色:当Transparent为true时获取到祖先节点中首个Transparent为false的背景颜色,否则返回当前元素的背景颜色
 
+Color GetRealTextColor ()
 获取当前要显示的文本颜色:当InheritTextColor为true时获取到祖先节点中首个InheritTextColor为false的文本颜色,否则返回当前元素的文本颜色
 
void SetCursor (HCURSOR hCursor)
 设置鼠标样式
 
void SetCursor (StandardCursor cursor)
 设置鼠标样式
 
+void ResetCursor ()
 将鼠标样式设置为默认样式
 
void SetAlignment (sw::HorizontalAlignment horz, sw::VerticalAlignment vert)
 设置对齐方式
 
virtual uint64_t GetTag () override
 获取Tag
 
virtual void SetTag (uint64_t tag) override
 设置Tag
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取参与布局的子控件数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取对应索引处的子控件,使用此函数前必须先调用GetChildLayoutCount
 
virtual Size GetDesireSize () override
 获取控件所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置当前控件所需的尺寸
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const sw::Rect &finalPosition) override
 安排控件位置
 
- Public Member Functions inherited from sw::WndBase
+virtual ~WndBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void Show (int nCmdShow)
 该函数调用ShowWindow
 
+void Close ()
 发送关闭消息
 
+void Update ()
 该函数调用UpdateWindow
 
+void UpdateFont ()
 更新字体
 
void Redraw (bool erase=false)
 重画
 
+bool IsControl ()
 判断当前对象是否是控件
 
+bool IsVisible ()
 判断当前对象在界面中是否可视,与Visible属性不同的是该函数返回值会受父窗口的影响
 
Point PointToScreen (const Point &point)
 获取用户区点在屏幕上点的位置
 
Point PointFromScreen (const Point &screenPoint)
 获取屏幕上点在当前用户区点的位置
 
+LRESULT SendMessageW (UINT uMsg, WPARAM wParam, LPARAM lParam)
 发送消息
 
HitTestResult NcHitTest (const Point &testPoint)
 测试指定点在窗口的哪一部分
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Attributes

+const Property< intTopIndex
 当前列表框页面第一个子项的索引
 
+const Property< boolMultiSelect
 是否允许多选,更新该属性会导致已添加的子项被清空
 
+const ReadOnlyProperty< intSelectedCount
 多选状态下可通过该属性获取选中项的个数
 
- Public Attributes inherited from sw::ItemsControl< TItem >
+const ReadOnlyProperty< intItemsCount
 项数
 
+const Property< intSelectedIndex
 选中项的索引,当无选中项时为-1
 
+const ReadOnlyProperty< TItemSelectedItem
 选中项
 
- Public Attributes inherited from sw::UIElement
+const Property< ThicknessMargin
 边距
 
+const Property< HorizontalAlignment > HorizontalAlignment
 水平对齐方式
 
+const Property< VerticalAlignment > VerticalAlignment
 垂直对齐方式
 
+const ReadOnlyProperty< intChildCount
 子控件数量
 
+const Property< boolCollapseWhenHide
 是否在不可见时不参与布局
 
+const ReadOnlyProperty< UIElement * > Parent
 指向父元素的指针,当前元素为顶级窗口时该值为nullptr
 
+const Property< uint64_tTag
 储存用户自定义信息的标记
 
+const Property< uint64_tLayoutTag
 布局标记,对于不同的布局有不同含义
 
+const Property< sw::ContextMenu * > ContextMenu
 右键按下时弹出的菜单
 
+const Property< boolFloat
 元素是否悬浮,若元素悬浮则该元素不会随滚动条滚动而改变位置
 
+const Property< boolTabStop
 表示用户是否可以通过按下Tab键将焦点移动到当前元素
 
+const Property< ColorBackColor
 背景颜色,修改该属性会同时将Transparent属性设为false,对于部分控件该属性可能不生效
 
+const Property< ColorTextColor
 文本颜色,修改该属性会同时将InheritTextColor属性设为false,对于部分控件该属性可能不生效
 
+const Property< boolTransparent
 是否使用透明背景(此属性并非真正意义上的透明,将该属性设为true可继承父元素的背景颜色)
 
+const Property< boolInheritTextColor
 是否继承父元素的文本颜色
 
- Public Attributes inherited from sw::WndBase
+const ReadOnlyProperty< HWNDHandle
 窗口句柄
 
+const Property< sw::FontFont
 字体
 
+const Property< std::wstring > FontName
 字体名称
 
+const Property< doubleFontSize
 字体大小
 
+const Property< sw::FontWeight > FontWeight
 字体粗细
 
+const Property< sw::RectRect
 位置和尺寸
 
+const Property< doubleLeft
 左边
 
+const Property< doubleTop
 顶边
 
+const Property< doubleWidth
 宽度
 
+const Property< doubleHeight
 高度
 
+const ReadOnlyProperty< sw::RectClientRect
 用户区尺寸
 
+const ReadOnlyProperty< doubleClientWidth
 用户区宽度
 
+const ReadOnlyProperty< doubleClientHeight
 用户区高度
 
+const Property< boolEnabled
 窗口或控件是否可用
 
+const Property< boolVisible
 窗口或控件是否可见
 
+const Property< std::wstring > Text
 窗口标题或控件文本
 
+const Property< boolFocused
 窗口是否拥有焦点
 
+const ReadOnlyProperty< WndBase * > Parent
 父窗口
 
+const ReadOnlyProperty< boolIsDestroyed
 是否已销毁,当该值为true时不应该继续使用当前对象
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Protected Member Functions

virtual int GetItemsCount () override
 获取子项数
 
virtual int GetSelectedIndex () override
 选中项的索引,当无选中项时为-1
 
virtual void SetSelectedIndex (int index) override
 设置选中项索引
 
virtual std::wstring GetSelectedItem () override
 获取选中项
 
virtual bool OnContextMenu (bool isKeyboardMsg, Point mousePosition) override
 接收到WM_CONTEXTMENU后调用目标控件的该函数
 
virtual void OnCommand (int code) override
 当父窗口接收到控件的WM_COMMAND时调用该函数
 
- Protected Member Functions inherited from sw::ItemsControl< TItem >
ItemsControl ()
 初始化ItemsControl
 
virtual void OnSelectionChanged ()
 选中项改变时调用该函数
 
- Protected Member Functions inherited from sw::Control
Control ()
 初始化控件
 
+void ResetHandle ()
 销毁控件句柄并重新初始化,该操作会创建新的句柄并设置样式、文本、字体等
 
+virtual void HandleChenged ()
 控件句柄发生改变时调用该函数
 
- Protected Member Functions inherited from sw::UIElement
UIElement ()
 初始化UIElement
 
void RaiseRoutedEvent (RoutedEventType eventType)
 触发路由事件
 
void RaiseRoutedEvent (RoutedEventArgs &eventArgs)
 触发路由事件
 
+void NotifyLayoutUpdated ()
 通知顶级窗口布局改变
 
+doubleGetArrangeOffsetX ()
 获取Arrange时子元素的水平偏移量
 
+doubleGetArrangeOffsetY ()
 获取Arrange时子元素的垂直偏移量
 
double GetChildRightmost (bool update)
 获取所有子元素在当前元素中最右边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
double GetChildBottommost (bool update)
 获取所有子元素在当前元素中最底边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
+void UpdateChildrenZOrder ()
 更新子元素的Z轴位置
 
+void UpdateSiblingsZOrder ()
 更新兄弟元素的Z轴位置
 
+void SetNextTabStopFocus ()
 设置下一个TabStop属性为true的元素为焦点元素
 
virtual void SetBackColor (Color color, bool redraw)
 设置背景颜色
 
virtual void SetTextColor (Color color, bool redraw)
 设置文本颜色
 
virtual void OnAddedChild (UIElement &element)
 添加子元素后调用该函数
 
virtual void OnRemovedChild (UIElement &element)
 移除子元素后调用该函数
 
+virtual void OnTabStop ()
 通过tab键将焦点移动到当前元素时调用该函数
 
virtual void OnDrawFocusRect ()
 绘制虚线框时调用该函数
 
virtual bool SetParent (WndBase *parent) override
 设置父窗口
 
virtual void ParentChanged (WndBase *newParent) override
 父窗口改变时调用此函数
 
virtual void OnEndPaint () override
 在OnPaint函数完成之后调用该函数
 
virtual bool OnClose () override
 接收到WM_CLOSE时调用该函数
 
virtual bool OnMove (Point newClientPosition) override
 接收到WM_MOVE时调用该函数
 
virtual bool OnSize (Size newClientSize) override
 接收到WM_SIZE时调用该函数
 
virtual void OnTextChanged () override
 Text属性更改时调用此函数
 
virtual void VisibleChanged (bool newVisible) override
 Visible属性改变时调用此函数
 
virtual bool OnSetFocus (HWND hPrevFocus) override
 接收到WM_SETFOCUS时调用该函数
 
virtual bool OnKillFocus (HWND hNextFocus) override
 接收到WM_KILLFOCUS时调用该函数
 
virtual bool OnChar (wchar_t ch, KeyFlags flags) override
 接收到WM_CHAR时调用该函数
 
virtual bool OnKeyDown (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYDOWN时调用该函数
 
virtual bool OnKeyUp (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYUP时调用该函数
 
virtual bool OnMouseMove (Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEMOVE时调用该函数
 
virtual bool OnMouseLeave () override
 接收到WM_MOUSELEAVE时调用该函数
 
virtual bool OnMouseWheel (int wheelDelta, Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEWHEEL时调用该函数
 
virtual bool OnMouseLeftButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONDOWN时调用该函数
 
virtual bool OnMouseLeftButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONUP时调用该函数
 
virtual bool OnMouseRightButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONDOWN时调用该函数
 
virtual bool OnMouseRightButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONUP时调用该函数
 
virtual bool OnMouseMiddleButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONDOWN时调用该函数
 
virtual bool OnMouseMiddleButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONUP时调用该函数
 
virtual void OnMenuCommand (int id) override
 当WM_COMMAND接收到菜单命令时调用该函数
 
virtual bool OnColor (HDC hdc, HBRUSH &hRetBrush) override
 父窗口接收到WM_CTLCOLORxxx时调用对应控件的该函数
 
virtual bool OnSetCursor (HWND hwnd, HitTestResult hitTest, int message, bool &result) override
 接收到WM_SETCURSOR消息时调用该函数
 
- Protected Member Functions inherited from sw::WndBase
WndBase ()
 初始化WndBase
 
WndBase (const WndBase &)=delete
 
WndBase (WndBase &&)=delete
 
+WndBaseoperator= (const WndBase &)=delete
 
+WndBaseoperator= (WndBase &&)=delete
 
+void InitWindow (LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为窗口,该函数会调用CreateWindowExW
 
+void InitControl (LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为控件,该函数会调用CreateWindowExW
 
+LONG_PTR GetStyle ()
 获取窗口样式
 
+void SetStyle (LONG_PTR style)
 设置窗口样式
 
+bool GetStyle (LONG_PTR style)
 获取窗口的某个样式
 
+void SetStyle (LONG_PTR style, bool value)
 设置窗口的某个样式
 
+LONG_PTR GetExtendedStyle ()
 获取扩展窗口样式
 
+void SetExtendedStyle (LONG_PTR style)
 设置扩展窗口样式
 
+bool GetExtendedStyle (LONG_PTR style)
 获取窗口的某个扩展样式
 
+void SetExtendedStyle (LONG_PTR style, bool value)
 设置窗口的某个扩展样式
 
+HFONT GetFontHandle ()
 获取字体句柄
 
+LRESULT DefaultWndProc (const ProcMsg &refMsg)
 调用默认的WndProc,对于窗口则调用DefWindowProcW,控件则调用_controlOldWndProc
 
virtual LRESULT WndProc (const ProcMsg &refMsg)
 对WndProc的封装
 
+void UpdateText ()
 更新_text字段
 
virtual std::wstring & GetText ()
 获取窗口文本
 
virtual void SetText (const std::wstring &value)
 调用SetWindowTextW设置窗口文本
 
virtual bool OnCreate ()
 接收到WM_CREATE时调用该函数
 
virtual bool OnDestroy ()
 接收到WM_DESTROY时调用该函数
 
virtual bool OnPaint ()
 接收到WM_PAINT时调用该函数
 
virtual bool OnMouseLeftButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_LBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseRightButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_RBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseMiddleButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_MBUTTONDBLCLK时调用该函数
 
virtual bool OnDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_DEADCHAR时调用该函数
 
virtual bool OnSysChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSCHAR时调用该函数
 
virtual bool OnSysDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSDEADCHAR时调用该函数
 
virtual bool OnSysKeyDown (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYDOWN时调用该函数
 
virtual bool OnSysKeyUp (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYUP时调用该函数
 
virtual void OnControlCommand (WndBase *pControl, int code, int id)
 当WM_COMMAND接收到控件命令时调用该函数
 
virtual void OnAcceleratorCommand (int id)
 当WM_COMMAND接收到快捷键命令时调用该函数
 
virtual void HandleInitialized (HWND hwnd)
 窗口句柄初始化完成
 
virtual void FontChanged (HFONT hfont)
 字体改变时调用该函数
 
virtual bool OnNotify (NMHDR *pNMHDR)
 接收到WM_NOTIFY后调用该函数
 
virtual void OnNotified (NMHDR *pNMHDR)
 父窗口接收到WM_NOTIFY后调用发出通知控件的该函数
 
virtual bool OnVerticalScroll (int event, int pos)
 接收到WM_VSCROLL时调用目标控件的该函数
 
virtual bool OnHorizontalScroll (int event, int pos)
 接收到WM_HSCROLL时调用目标控件的该函数
 
virtual bool OnEnabledChanged (bool newValue)
 接收到WM_ENABLE时调用该函数
 
virtual bool OnCtlColor (WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)
 接收到WM_CTLCOLORxxx时调用该函数
 
virtual void OnNcHitTest (const Point &testPoint, HitTestResult &result)
 接收到WM_NCHITTEST后调用该函数
 
virtual bool OnEraseBackground (int &result)
 接收到WM_ERASEBKGND时调用该函数
 
virtual bool OnDrawItem (int id, DRAWITEMSTRUCT *pDrawItem)
 接收到WM_DRAWITEM时调用该函数
 
+ + + + + +

+Additional Inherited Members

- Static Public Member Functions inherited from sw::WndBase
static WndBaseGetWndBase (HWND hwnd)
 通过窗口句柄获取WndBase
 
+

Detailed Description

+

列表框

+

Member Function Documentation

+ +

◆ AddItem()

+ +
+
+ + + + + +
+ + + + + + + +
virtual bool sw::ListBox::AddItem (const std::wstring & item)
+
+overridevirtual
+
+ +

添加新的子项

+
Parameters
+ + +
item要添加的子项
+
+
+
Returns
是否添加成功
+ +
+
+ +

◆ Clear()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::ListBox::Clear ()
+
+overridevirtual
+
+ +

清空所有子项

+ +

Implements sw::ItemsControl< TItem >.

+ +
+
+ +

◆ GetItemAt()

+ +
+
+ + + + + +
+ + + + + + + +
virtual std::wstring sw::ListBox::GetItemAt (int index)
+
+overridevirtual
+
+ +

获取指定索引处子项的值

+
Parameters
+ + +
index子项的索引
+
+
+ +

Implements sw::ItemsControl< TItem >.

+ +
+
+ +

◆ GetItemIndexFromPoint()

+ +
+
+ + + + + + + +
int sw::ListBox::GetItemIndexFromPoint (const Point & point)
+
+ +

获取指定点处子项的索引

+
Parameters
+ + +
point相对于列表框用户区左上角点的位置
+
+
+ +
+
+ +

◆ GetItemsCount()

+ +
+
+ + + + + +
+ + + + + + + +
virtual int sw::ListBox::GetItemsCount ()
+
+overrideprotectedvirtual
+
+ +

获取子项数

+ +

Implements sw::ItemsControl< TItem >.

+ +
+
+ +

◆ GetItemSelectionState()

+ +
+
+ + + + + + + +
bool sw::ListBox::GetItemSelectionState (int index)
+
+ +

获取指定索引处子项的选中状态

+
Parameters
+ + +
index子项的索引
+
+
+
Returns
若子项选中则返回true,否则返回false
+ +
+
+ +

◆ GetSelectedIndex()

+ +
+
+ + + + + +
+ + + + + + + +
virtual int sw::ListBox::GetSelectedIndex ()
+
+overrideprotectedvirtual
+
+ +

选中项的索引,当无选中项时为-1

+ +

Implements sw::ItemsControl< TItem >.

+ +
+
+ +

◆ GetSelectedIndices()

+ +
+
+ + + + + + + +
List< int > sw::ListBox::GetSelectedIndices ()
+
+ +

多选状态下可通过该函数获取所有选中项的索引

+
Returns
所有选中项的索引
+ +
+
+ +

◆ GetSelectedItem()

+ +
+
+ + + + + +
+ + + + + + + +
virtual std::wstring sw::ListBox::GetSelectedItem ()
+
+overrideprotectedvirtual
+
+ +

获取选中项

+ +

Implements sw::ItemsControl< TItem >.

+ +
+
+ +

◆ GetSelectedItems()

+ +
+
+ + + + + + + +
StrList sw::ListBox::GetSelectedItems ()
+
+ +

多选状态下可通过该函数获取所有选中项的内容

+
Returns
所有选中项的内容
+ +
+
+ +

◆ InsertItem()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::ListBox::InsertItem (int index,
const std::wstring & item )
+
+overridevirtual
+
+ +

添加子项到指定索引

+
Parameters
+ + + +
index要插入的位置
item要添加的子项
+
+
+
Returns
是否添加成功
+ +
+
+ +

◆ OnCommand()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::ListBox::OnCommand (int code)
+
+overrideprotectedvirtual
+
+ +

当父窗口接收到控件的WM_COMMAND时调用该函数

+
Parameters
+ + +
code通知代码
+
+
+ +

Reimplemented from sw::WndBase.

+ +
+
+ +

◆ OnContextMenu()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::ListBox::OnContextMenu (bool isKeyboardMsg,
Point mousePosition )
+
+overrideprotectedvirtual
+
+ +

接收到WM_CONTEXTMENU后调用目标控件的该函数

+
Parameters
+ + + +
isKeyboardMsg消息是否由按下快捷键(Shift+F10、VK_APPS)产生
mousePosition鼠标在屏幕中的位置
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented from sw::UIElement.

+ +
+
+ +

◆ RemoveItemAt()

+ +
+
+ + + + + +
+ + + + + + + +
virtual bool sw::ListBox::RemoveItemAt (int index)
+
+overridevirtual
+
+ +

移除指定索引处的子项

+
Parameters
+ + +
index要移除子项的索引
+
+
+
Returns
操作是否成功
+ +

Implements sw::ItemsControl< TItem >.

+ +
+
+ +

◆ SetItemSelectionState()

+ +
+
+ + + + + + + + + + + +
void sw::ListBox::SetItemSelectionState (int index,
bool value )
+
+ +

多选状态下设置指定索引处子项的选中状态

+
Parameters
+ + + +
index子项的索引,输入-1可设置所有子项的选中状态
value要设置的子项状态
+
+
+ +
+
+ +

◆ SetSelectedIndex()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::ListBox::SetSelectedIndex (int index)
+
+overrideprotectedvirtual
+
+ +

设置选中项索引

+ +

Implements sw::ItemsControl< TItem >.

+ +
+
+ +

◆ UpdateItem()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::ListBox::UpdateItem (int index,
const std::wstring & newValue )
+
+overridevirtual
+
+ +

更新指定位置的子项

+
Parameters
+ + + +
index要更新子项的位置
newValue子项的新值
+
+
+
Returns
操作是否成功
+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_list_box.js b/docs/classsw_1_1_list_box.js new file mode 100644 index 00000000..d5d72a0a --- /dev/null +++ b/docs/classsw_1_1_list_box.js @@ -0,0 +1,24 @@ +var classsw_1_1_list_box = +[ + [ "ListBox", "classsw_1_1_list_box.html#a479eeef30684198f09eaaa472def8550", null ], + [ "AddItem", "classsw_1_1_list_box.html#ac46c5faa96a5e3e28e9652f40a7e7486", null ], + [ "Clear", "classsw_1_1_list_box.html#af8f7832d3773fc8e9ddafbcfa617457f", null ], + [ "GetItemAt", "classsw_1_1_list_box.html#a3a55067d310d058f12c6bae420ca50e9", null ], + [ "GetItemIndexFromPoint", "classsw_1_1_list_box.html#aa6dd58ecf150a782c5c3ec8f4f3c0355", null ], + [ "GetItemsCount", "classsw_1_1_list_box.html#a0f6d69e679814a36523d091d81e839d7", null ], + [ "GetItemSelectionState", "classsw_1_1_list_box.html#aa8db114872f69e0be2f32bebba134b20", null ], + [ "GetSelectedIndex", "classsw_1_1_list_box.html#a016fb10dca302d2636bee60c8eabf6d9", null ], + [ "GetSelectedIndices", "classsw_1_1_list_box.html#a32f2ac7b969a63bf52d0d6f320e7f17c", null ], + [ "GetSelectedItem", "classsw_1_1_list_box.html#a8082569a03ff936208ac5e07dfcf3ae8", null ], + [ "GetSelectedItems", "classsw_1_1_list_box.html#a7de3b077cac741f297c0d5639e8a9edb", null ], + [ "InsertItem", "classsw_1_1_list_box.html#abaa05ef08a38822976373307156029b2", null ], + [ "OnCommand", "classsw_1_1_list_box.html#a018949ce98442934f04da456de5c6db1", null ], + [ "OnContextMenu", "classsw_1_1_list_box.html#a1708816955c247ec4b7e0a1291486088", null ], + [ "RemoveItemAt", "classsw_1_1_list_box.html#a7bc0ff18482d6a90f643e9b4d796c9ed", null ], + [ "SetItemSelectionState", "classsw_1_1_list_box.html#a1b4104d35b0bbe19239fdaa4f43dd956", null ], + [ "SetSelectedIndex", "classsw_1_1_list_box.html#aaea8164e80a16084fb2fa47c894a16db", null ], + [ "UpdateItem", "classsw_1_1_list_box.html#a6a75757143482d8024559027fe6ee524", null ], + [ "MultiSelect", "classsw_1_1_list_box.html#ae9db46dd55f8f156d31cf5fa9ea3409c", null ], + [ "SelectedCount", "classsw_1_1_list_box.html#a6f921779be05ff24d598701feffd1705", null ], + [ "TopIndex", "classsw_1_1_list_box.html#a3fa1be9a1a9752e54d61cb6cadd1bc4a", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_list_box.png b/docs/classsw_1_1_list_box.png new file mode 100644 index 0000000000000000000000000000000000000000..8d15607d8e7531e473f5db2af5327ca3a4e4cf88 GIT binary patch literal 2308 zcmc&$X;4#H76!U$mImpdj4TFhkO3uv9cUIKL`)b2WRW!iSu{j&Y*}Or9UuxdA&MFc zhotDRDfWP36B2>224ss6GzhZqNym_ z(WZ94nVOmc=6`(Ve;32q^a3m_*(3kBZ&AvedvhA@|#ddI|z&m$M7qkkcqbE@L z@5t^q)+$DPW|bTwH-C8fTMGs)g^qBB;9;8^2kkE<_cKadCrimBac(|XqQqq#sZJH~ z&{FdeKaRABU(5Q*nzY$OxRk6SPGL$lz!C}F((si_AWHhz5sMF%gj}+0>02&m zh`KBrU#85}7#SAa?`Lm2RT9EO^<|yobF#2xRP_Wk^X#pa9AaZVW)gNLT^AF0^p&_< zFZZVbhCy*KCn;;u5)3nZ6<2wI2m(#6Mh!UVhG*bp7r5#N2+u{C8+;OpEFzdx{9{IA zK;%{*jC}N*P>*p&F3wn}Fg3M7tJYXM!*fc2xu^IEeH`xP1`j51!gHF-1$7t^RZ#_R z*ZShY{ta3yX!M-0>6hT^d9r}>%MLDaabzrebQ~9uMC4X%*#r*l)TC#;#Gu~I> zdl*)S=|lPN-E>X->)88tdnyX0m)rQZW6FwFQ>EElXyvONYjqFyaE85sjYK5*cAlo( zRnOqFuzAGQc(CW-Yp8T%4ErQ**@D|c%;LW@6I$KK7;&1QYg!nzzn>*V+;Pxaz}DPq zT^Hc$9Xj;f-J$SIjYX&PFh*_gQfCOaW91>m=$nS z`h)~MVAE$Sw$B)QE^RI(W+#nj%~c;;=X1&H`VKrglS-bMV?Ypk=9EIWEe?mNcGLFZ z%oPRQ7~f8NU?0V<=G>m^?=4AKnl0I-I^_PxnIU$9q#vl`xNfS(kxYeK?K-L_Poar3 zdAwhBE(3Jg?d|+k#~T1}zV@G@?@thYB|dl%yvH=mCK%cF{Xu{;rrPj9?(O`K&YI#$ zH8MQcI-bK(1eDxG~BhRmWZ~PF*}FSoZHN8GSg~J0E~1!rQVaCb32~ z{KrkJ9b)4%5nSiflxf~d9e;TEZ^91Ic~kC6L~;p+iWSpv{i3nT=$rMB*6HMk&=Azc zw4NZ!^mh&Y41<|`bB=Af@R2a8={kuNy3^SpED_meV){jopF5u4c|g6I8MX-dYrrP* z)@rQ~QC-jjbA|x;dlz)3WFI223mRSm`JcOew*h@;C@3!eD~n`%0IM_N^&fIuyTk8W zzd;gT?*pEap_n8r3|yeCzqQ#2WQwZ!g8a-;cwmUVA7vVIijrBk&l?{5IQH;h&@*#m zTaN&(qvc@2r2oWkBY{#;BZ%R!b15s2b?VqTJ>t=-1-0y>`1$Iwnu<7qY{K&I zy-c-BC`fcK!NwlQNysTrnW)Ohd0PmXOjt=yMiZ?c!8U9tnV919eOUxXLu^A;ifjVL z1KK%)E}(7n+OrgdsX zRi!khZdwMhDQ{uV0dA)KxB=KKKJ7`nXe*EN>>hhrQnGVzZ6NTUM^O_(t|i?@9nf5K z!s7B_dNloFEu_`pHGhWZjvvD>LjpL&;?)7*#GN?OE|HZ0s7%?ZM#s?IEodvf42uv> zYO + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::ListView Member List
+
+
+ +

This is the complete list of members for sw::ListView, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AddChild(UIElement *element)sw::UIElement
AddChild(UIElement &element)sw::UIElement
AddChild(UIElement *element, uint64_t layoutTag)sw::UIElement
AddChild(UIElement &element, uint64_t layoutTag)sw::UIElement
AddColumn(const ListViewColumn &column)sw::ListView
AddColumn(const std::wstring &header)sw::ListView
AddItem(const StrList &item) overridesw::ListViewvirtual
Arrange(const sw::Rect &finalPosition) overridesw::UIElementvirtual
BackColorsw::UIElement
CheckBoxessw::ListView
ChildCountsw::UIElement
Clear() overridesw::ListViewvirtual
ClearChildren()sw::UIElement
ClientHeightsw::WndBase
ClientRectsw::WndBase
ClientWidthsw::WndBase
Close()sw::WndBase
CollapseWhenHidesw::UIElement
ColumnsCountsw::ListView
ContextMenusw::UIElement
Control()sw::Controlprotected
DefaultWndProc(const ProcMsg &refMsg)sw::WndBaseprotected
Enabledsw::WndBase
Floatsw::UIElement
Focusedsw::WndBase
Fontsw::WndBase
FontChanged(HFONT hfont)sw::WndBaseprotectedvirtual
FontNamesw::WndBase
FontSizesw::WndBase
FontWeightsw::WndBase
GetArrangeOffsetX()sw::UIElementprotected
GetArrangeOffsetY()sw::UIElementprotected
GetCheckedIndices()sw::ListView
GetChildBottommost(bool update)sw::UIElementprotected
GetChildLayoutAt(int index) overridesw::UIElementvirtual
GetChildLayoutCount() overridesw::UIElementvirtual
GetChildRightmost(bool update)sw::UIElementprotected
GetColumnWidth(int index)sw::ListView
GetDesireSize() overridesw::UIElementvirtual
GetExtendedStyle()sw::WndBaseprotected
GetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
GetFontHandle()sw::WndBaseprotected
GetItemAt(int index) overridesw::ListViewvirtual
GetItemAt(int row, int col)sw::ListView
GetItemCheckState(int index)sw::ListView
GetItemIndexFromPoint(const Point &point)sw::ListView
GetItemsCount() overridesw::ListViewprotectedvirtual
GetLayoutTag() overridesw::UIElementvirtual
GetNextElement()sw::UIElement
GetNextTabStopElement()sw::UIElement
GetRealBackColor()sw::UIElement
GetRealTextColor()sw::UIElement
GetRootElement()sw::UIElement
GetSelectedIndex() overridesw::ListViewprotectedvirtual
GetSelectedIndices()sw::ListView
GetSelectedItem() overridesw::ListViewprotectedvirtual
GetStyle()sw::WndBaseprotected
GetStyle(LONG_PTR style)sw::WndBaseprotected
GetTag() overridesw::UIElementvirtual
GetText()sw::WndBaseprotectedvirtual
GetWndBase(HWND hwnd)sw::WndBasestatic
GridLinessw::ListView
Handlesw::WndBase
HandleChenged()sw::Controlprotectedvirtual
HandleInitialized(HWND hwnd)sw::WndBaseprotectedvirtual
Heightsw::WndBase
HorizontalAlignmentsw::UIElement
IndexOf(UIElement *element)sw::UIElement
IndexOf(UIElement &element)sw::UIElement
InheritTextColorsw::UIElement
InitControl(LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
InitWindow(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
InsertColumn(int index, const ListViewColumn &column)sw::ListView
InsertColumn(int index, const std::wstring &header)sw::ListView
InsertItem(int index, const StrList &item) overridesw::ListViewvirtual
IsControl()sw::WndBase
IsDestroyedsw::WndBase
IsRootElement()sw::UIElement
IsRoutedEventRegistered(RoutedEventType eventType)sw::UIElement
IsVisible()sw::WndBase
ItemsControl()sw::ItemsControl< StrList >inlineprotected
ItemsCountsw::ItemsControl< StrList >
LayoutTagsw::UIElement
Leftsw::WndBase
ListView()sw::ListView
Marginsw::UIElement
Measure(const Size &availableSize) overridesw::UIElementvirtual
MoveToBottom()sw::UIElement
MoveToTop()sw::UIElement
MultiSelectsw::ListView
NcHitTest(const Point &testPoint)sw::WndBase
NotifyLayoutUpdated()sw::UIElementprotected
OnAcceleratorCommand(int id)sw::WndBaseprotectedvirtual
OnAddedChild(UIElement &element)sw::UIElementprotectedvirtual
OnChar(wchar_t ch, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnCheckStateChanged(int index)sw::ListViewprotectedvirtual
OnClose() overridesw::UIElementprotectedvirtual
OnColor(HDC hdc, HBRUSH &hRetBrush) overridesw::UIElementprotectedvirtual
OnCommand(int code)sw::WndBaseprotectedvirtual
OnContextMenu(bool isKeyboardMsg, Point mousePosition) overridesw::UIElementprotectedvirtual
OnControlCommand(WndBase *pControl, int code, int id)sw::WndBaseprotectedvirtual
OnCreate()sw::WndBaseprotectedvirtual
OnCtlColor(WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)sw::WndBaseprotectedvirtual
OnDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnDestroy()sw::WndBaseprotectedvirtual
OnDrawFocusRect()sw::UIElementprotectedvirtual
OnDrawItem(int id, DRAWITEMSTRUCT *pDrawItem)sw::WndBaseprotectedvirtual
OnEnabledChanged(bool newValue)sw::WndBaseprotectedvirtual
OnEndPaint() overridesw::UIElementprotectedvirtual
OnEraseBackground(int &result)sw::WndBaseprotectedvirtual
OnHeaderItemClicked(NMHEADERW *pNMH)sw::ListViewprotectedvirtual
OnHeaderItemDoubleClicked(NMHEADERW *pNMH)sw::ListViewprotectedvirtual
OnHorizontalScroll(int event, int pos)sw::WndBaseprotectedvirtual
OnItemChanged(NMLISTVIEW *pNMLV)sw::ListViewprotectedvirtual
OnItemClicked(NMITEMACTIVATE *pNMIA)sw::ListViewprotectedvirtual
OnItemDoubleClicked(NMITEMACTIVATE *pNMIA)sw::ListViewprotectedvirtual
OnKeyDown(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKeyUp(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKillFocus(HWND hNextFocus) overridesw::UIElementprotectedvirtual
OnMenuCommand(int id) overridesw::UIElementprotectedvirtual
OnMouseLeave() overridesw::UIElementprotectedvirtual
OnMouseLeftButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseLeftButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseMiddleButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMove(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseRightButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseWheel(int wheelDelta, Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMove(Point newClientPosition) overridesw::UIElementprotectedvirtual
OnNcHitTest(const Point &testPoint, HitTestResult &result)sw::WndBaseprotectedvirtual
OnNotified(NMHDR *pNMHDR) overridesw::ListViewprotectedvirtual
OnNotify(NMHDR *pNMHDR) overridesw::ListViewprotectedvirtual
OnPaint()sw::WndBaseprotectedvirtual
OnRemovedChild(UIElement &element)sw::UIElementprotectedvirtual
OnSelectionChanged()sw::ItemsControl< StrList >inlineprotectedvirtual
OnSetCursor(HWND hwnd, HitTestResult hitTest, int message, bool &result) overridesw::UIElementprotectedvirtual
OnSetFocus(HWND hPrevFocus) overridesw::UIElementprotectedvirtual
OnSize(Size newClientSize) overridesw::UIElementprotectedvirtual
OnSysChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyDown(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyUp(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnTabStop()sw::UIElementprotectedvirtual
OnTextChanged() overridesw::UIElementprotectedvirtual
OnVerticalScroll(int event, int pos)sw::WndBaseprotectedvirtual
operator=(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator=(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator[](int index) constsw::UIElement
Parentsw::UIElement
ParentChanged(WndBase *newParent) overridesw::UIElementprotectedvirtual
PointFromScreen(const Point &screenPoint)sw::WndBase
PointToScreen(const Point &point)sw::WndBase
RaiseRoutedEvent(RoutedEventType eventType)sw::UIElementprotected
RaiseRoutedEvent(RoutedEventArgs &eventArgs)sw::UIElementprotected
Rectsw::WndBase
Redraw(bool erase=false)sw::WndBase
RegisterRoutedEvent(RoutedEventType eventType, const RoutedEvent &handler)sw::UIElement
RegisterRoutedEvent(RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))sw::UIElementinline
RegisterRoutedEvent(std::function< void(UIElement &, TEventArgs &)> handler)sw::UIElementinline
RegisterRoutedEvent(THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))sw::UIElementinline
RemoveChild(UIElement *element)sw::UIElement
RemoveChild(UIElement &element)sw::UIElement
RemoveChildAt(int index)sw::UIElement
RemoveColumnAt(int index)sw::ListView
RemoveItemAt(int index) overridesw::ListViewvirtual
ResetCursor()sw::UIElement
ResetHandle()sw::Controlprotected
SelectedCountsw::ListView
SelectedIndexsw::ItemsControl< StrList >
SelectedItemsw::ItemsControl< StrList >
SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase
SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement
SetBackColor(Color color, bool redraw) overridesw::ListViewprotectedvirtual
SetColumnHeader(int index, const std::wstring &header)sw::ListView
SetColumnWidth(int index, double width)sw::ListView
SetCursor(HCURSOR hCursor)sw::UIElement
SetCursor(StandardCursor cursor)sw::UIElement
SetDesireSize(const Size &size) overridesw::UIElementvirtual
SetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
SetExtendedStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetItemCheckState(int index, bool value)sw::ListView
SetNextTabStopFocus()sw::UIElementprotected
SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual
SetSelectedIndex(int index) overridesw::ListViewprotectedvirtual
SetStyle(LONG_PTR style)sw::WndBaseprotected
SetStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetTag(uint64_t tag) overridesw::UIElementvirtual
SetText(const std::wstring &value)sw::WndBaseprotectedvirtual
SetTextColor(Color color, bool redraw) overridesw::ListViewprotectedvirtual
Show(int nCmdShow)sw::WndBase
ShowContextMenu(const Point &point)sw::UIElement
TabStopsw::UIElement
Tagsw::UIElement
Textsw::WndBase
TextColorsw::UIElement
Topsw::WndBase
TopIndexsw::ListView
Transparentsw::UIElement
UIElement()sw::UIElementprotected
UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement
Update()sw::WndBase
UpdateChildrenZOrder()sw::UIElementprotected
UpdateFont()sw::WndBase
UpdateItem(int index, const StrList &newValue) overridesw::ListViewvirtual
UpdateItem(int row, int col, const std::wstring &newValue)sw::ListView
UpdateSiblingsZOrder()sw::UIElementprotected
UpdateText()sw::WndBaseprotected
VerticalAlignmentsw::UIElement
Visiblesw::WndBase
VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual
Widthsw::WndBase
WndBase()sw::WndBaseprotected
WndBase(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndBase(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual
~Control()=0sw::Controlpure virtual
~UIElement()=0sw::UIElementpure virtual
~WndBase()=0sw::WndBasepure virtual
+
+ + + + diff --git a/docs/classsw_1_1_list_view.html b/docs/classsw_1_1_list_view.html new file mode 100644 index 00000000..963e68bc --- /dev/null +++ b/docs/classsw_1_1_list_view.html @@ -0,0 +1,1766 @@ + + + + + + + +SimpleWindow: sw::ListView Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+ +

列表视图 + More...

+ +

#include <ListView.h>

+
+Inheritance diagram for sw::ListView:
+
+
+ + +sw::ItemsControl< StrList > +sw::Control +sw::UIElement +sw::WndBase +sw::ILayout +sw::ITag + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

ListView ()
 初始化ListView
 
virtual void Clear () override
 清空所有子项
 
virtual StrList GetItemAt (int index) override
 获取指定索引处子项的值
 
virtual bool AddItem (const StrList &item) override
 添加新的子项
 
virtual bool InsertItem (int index, const StrList &item) override
 添加子项到指定索引
 
virtual bool UpdateItem (int index, const StrList &newValue) override
 更新指定位置的子项
 
virtual bool RemoveItemAt (int index) override
 移除指定索引处的子项
 
std::wstring GetItemAt (int row, int col)
 获取指定位置处文本
 
bool UpdateItem (int row, int col, const std::wstring &newValue)
 更新指定位置处文本
 
bool AddColumn (const ListViewColumn &column)
 添加新的列
 
bool AddColumn (const std::wstring &header)
 添加新的列
 
bool InsertColumn (int index, const ListViewColumn &column)
 添加新的列到指定索引
 
bool InsertColumn (int index, const std::wstring &header)
 添加新的列到指定索引
 
bool SetColumnHeader (int index, const std::wstring &header)
 设置指定列的标题
 
double GetColumnWidth (int index)
 获取指定列的宽度
 
bool SetColumnWidth (int index, double width)
 设置指定列的宽度
 
bool RemoveColumnAt (int index)
 移除指定列
 
+List< intGetSelectedIndices ()
 获取所有选中项的索引
 
+List< intGetCheckedIndices ()
 获取所有复选框选中的项的索引
 
+bool GetItemCheckState (int index)
 获取指定索引项的复选框是否选中
 
+void SetItemCheckState (int index, bool value)
 设置指定索引项复选框的选中状态
 
int GetItemIndexFromPoint (const Point &point)
 获取指定点处子项的索引
 
- Public Member Functions inherited from sw::Control
+virtual ~Control ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
- Public Member Functions inherited from sw::UIElement
+virtual ~UIElement ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
void RegisterRoutedEvent (RoutedEventType eventType, const RoutedEvent &handler)
 注册路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename T >
void RegisterRoutedEvent (RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))
 注册成员函数作为路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename TEventArgs , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (std::function< void(UIElement &, TEventArgs &)> handler)
 根据事件参数类型注册路由事件
 
template<typename TEventArgs , typename THandleObj , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))
 根据事件参数类型注册成员函数作为路由事件
 
void UnregisterRoutedEvent (RoutedEventType eventType)
 取消对应类型路由事件的注册
 
bool IsRoutedEventRegistered (RoutedEventType eventType)
 判断路由事件是否已被注册
 
bool AddChild (UIElement *element)
 添加子控件
 
bool AddChild (UIElement &element)
 添加子控件
 
bool AddChild (UIElement *element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool AddChild (UIElement &element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool RemoveChildAt (int index)
 移除指定索引处的子控件
 
bool RemoveChild (UIElement *element)
 移除子控件
 
bool RemoveChild (UIElement &element)
 移除子控件
 
+void ClearChildren ()
 移除所有子控件
 
int IndexOf (UIElement *element)
 获取指定元素的索引
 
int IndexOf (UIElement &element)
 获取指定元素的索引
 
+UIElementoperator[] (int index) const
 通过索引获取子控件
 
void ShowContextMenu (const Point &point)
 弹出当前元素的上下文菜单
 
+void MoveToTop ()
 移动到界面顶部
 
+void MoveToBottom ()
 移动到界面底部
 
+bool IsRootElement ()
 判断当前元素是否为根节点
 
+UIElementGetRootElement ()
 获取当前元素所在界面树的根节点
 
+UIElementGetNextElement ()
 获取当前元素在界面树上的下一个节点,若已是最后一个节点则返回根节点
 
+UIElementGetNextTabStopElement ()
 获取下一个TabStop属性为true的元素
 
+Color GetRealBackColor ()
 获取当前要显示的背景颜色:当Transparent为true时获取到祖先节点中首个Transparent为false的背景颜色,否则返回当前元素的背景颜色
 
+Color GetRealTextColor ()
 获取当前要显示的文本颜色:当InheritTextColor为true时获取到祖先节点中首个InheritTextColor为false的文本颜色,否则返回当前元素的文本颜色
 
void SetCursor (HCURSOR hCursor)
 设置鼠标样式
 
void SetCursor (StandardCursor cursor)
 设置鼠标样式
 
+void ResetCursor ()
 将鼠标样式设置为默认样式
 
void SetAlignment (sw::HorizontalAlignment horz, sw::VerticalAlignment vert)
 设置对齐方式
 
virtual uint64_t GetTag () override
 获取Tag
 
virtual void SetTag (uint64_t tag) override
 设置Tag
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取参与布局的子控件数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取对应索引处的子控件,使用此函数前必须先调用GetChildLayoutCount
 
virtual Size GetDesireSize () override
 获取控件所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置当前控件所需的尺寸
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const sw::Rect &finalPosition) override
 安排控件位置
 
- Public Member Functions inherited from sw::WndBase
+virtual ~WndBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void Show (int nCmdShow)
 该函数调用ShowWindow
 
+void Close ()
 发送关闭消息
 
+void Update ()
 该函数调用UpdateWindow
 
+void UpdateFont ()
 更新字体
 
void Redraw (bool erase=false)
 重画
 
+bool IsControl ()
 判断当前对象是否是控件
 
+bool IsVisible ()
 判断当前对象在界面中是否可视,与Visible属性不同的是该函数返回值会受父窗口的影响
 
Point PointToScreen (const Point &point)
 获取用户区点在屏幕上点的位置
 
Point PointFromScreen (const Point &screenPoint)
 获取屏幕上点在当前用户区点的位置
 
+LRESULT SendMessageW (UINT uMsg, WPARAM wParam, LPARAM lParam)
 发送消息
 
HitTestResult NcHitTest (const Point &testPoint)
 测试指定点在窗口的哪一部分
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Attributes

+const ReadOnlyProperty< intColumnsCount
 列数
 
+const Property< boolGridLines
 是否显示网格线
 
+const Property< boolMultiSelect
 是否允许多选
 
+const ReadOnlyProperty< intSelectedCount
 多选状态下可通过该属性获取选中项的个数
 
+const Property< boolCheckBoxes
 是否在第一列显示复选框
 
+const ReadOnlyProperty< intTopIndex
 当前列表框页面第一个子项的索引
 
- Public Attributes inherited from sw::ItemsControl< StrList >
+const ReadOnlyProperty< intItemsCount
 项数
 
+const Property< intSelectedIndex
 选中项的索引,当无选中项时为-1
 
+const ReadOnlyProperty< StrListSelectedItem
 选中项
 
- Public Attributes inherited from sw::UIElement
+const Property< ThicknessMargin
 边距
 
+const Property< HorizontalAlignment > HorizontalAlignment
 水平对齐方式
 
+const Property< VerticalAlignment > VerticalAlignment
 垂直对齐方式
 
+const ReadOnlyProperty< intChildCount
 子控件数量
 
+const Property< boolCollapseWhenHide
 是否在不可见时不参与布局
 
+const ReadOnlyProperty< UIElement * > Parent
 指向父元素的指针,当前元素为顶级窗口时该值为nullptr
 
+const Property< uint64_tTag
 储存用户自定义信息的标记
 
+const Property< uint64_tLayoutTag
 布局标记,对于不同的布局有不同含义
 
+const Property< sw::ContextMenu * > ContextMenu
 右键按下时弹出的菜单
 
+const Property< boolFloat
 元素是否悬浮,若元素悬浮则该元素不会随滚动条滚动而改变位置
 
+const Property< boolTabStop
 表示用户是否可以通过按下Tab键将焦点移动到当前元素
 
+const Property< ColorBackColor
 背景颜色,修改该属性会同时将Transparent属性设为false,对于部分控件该属性可能不生效
 
+const Property< ColorTextColor
 文本颜色,修改该属性会同时将InheritTextColor属性设为false,对于部分控件该属性可能不生效
 
+const Property< boolTransparent
 是否使用透明背景(此属性并非真正意义上的透明,将该属性设为true可继承父元素的背景颜色)
 
+const Property< boolInheritTextColor
 是否继承父元素的文本颜色
 
- Public Attributes inherited from sw::WndBase
+const ReadOnlyProperty< HWNDHandle
 窗口句柄
 
+const Property< sw::FontFont
 字体
 
+const Property< std::wstring > FontName
 字体名称
 
+const Property< doubleFontSize
 字体大小
 
+const Property< sw::FontWeight > FontWeight
 字体粗细
 
+const Property< sw::RectRect
 位置和尺寸
 
+const Property< doubleLeft
 左边
 
+const Property< doubleTop
 顶边
 
+const Property< doubleWidth
 宽度
 
+const Property< doubleHeight
 高度
 
+const ReadOnlyProperty< sw::RectClientRect
 用户区尺寸
 
+const ReadOnlyProperty< doubleClientWidth
 用户区宽度
 
+const ReadOnlyProperty< doubleClientHeight
 用户区高度
 
+const Property< boolEnabled
 窗口或控件是否可用
 
+const Property< boolVisible
 窗口或控件是否可见
 
+const Property< std::wstring > Text
 窗口标题或控件文本
 
+const Property< boolFocused
 窗口是否拥有焦点
 
+const ReadOnlyProperty< WndBase * > Parent
 父窗口
 
+const ReadOnlyProperty< boolIsDestroyed
 是否已销毁,当该值为true时不应该继续使用当前对象
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Protected Member Functions

virtual int GetItemsCount () override
 获取子项数
 
virtual int GetSelectedIndex () override
 选中项的索引,当无选中项时为-1
 
virtual void SetSelectedIndex (int index) override
 设置选中项索引
 
virtual StrList GetSelectedItem () override
 获取选中项
 
virtual void SetBackColor (Color color, bool redraw) override
 设置背景颜色
 
virtual void SetTextColor (Color color, bool redraw) override
 设置文本颜色
 
virtual bool OnNotify (NMHDR *pNMHDR) override
 接收到WM_NOTIFY后调用该函数
 
virtual void OnNotified (NMHDR *pNMHDR) override
 父窗口接收到WM_NOTIFY后调用发出通知控件的该函数
 
+virtual void OnItemChanged (NMLISTVIEW *pNMLV)
 列表项某些属性发生变化时调用该函数
 
virtual void OnCheckStateChanged (int index)
 复选框选中状态发生改变
 
+virtual void OnHeaderItemClicked (NMHEADERW *pNMH)
 鼠标左键单击列标题时调用该函数
 
+virtual void OnHeaderItemDoubleClicked (NMHEADERW *pNMH)
 鼠标左键双击列标题时调用该函数
 
+virtual void OnItemClicked (NMITEMACTIVATE *pNMIA)
 鼠标左键单击某一项时调用该函数
 
+virtual void OnItemDoubleClicked (NMITEMACTIVATE *pNMIA)
 鼠标左键双击某一项调用该函数
 
- Protected Member Functions inherited from sw::ItemsControl< StrList >
ItemsControl ()
 初始化ItemsControl
 
+virtual void OnSelectionChanged ()
 选中项改变时调用该函数
 
- Protected Member Functions inherited from sw::Control
Control ()
 初始化控件
 
+void ResetHandle ()
 销毁控件句柄并重新初始化,该操作会创建新的句柄并设置样式、文本、字体等
 
+virtual void HandleChenged ()
 控件句柄发生改变时调用该函数
 
- Protected Member Functions inherited from sw::UIElement
UIElement ()
 初始化UIElement
 
void RaiseRoutedEvent (RoutedEventType eventType)
 触发路由事件
 
void RaiseRoutedEvent (RoutedEventArgs &eventArgs)
 触发路由事件
 
+void NotifyLayoutUpdated ()
 通知顶级窗口布局改变
 
+doubleGetArrangeOffsetX ()
 获取Arrange时子元素的水平偏移量
 
+doubleGetArrangeOffsetY ()
 获取Arrange时子元素的垂直偏移量
 
double GetChildRightmost (bool update)
 获取所有子元素在当前元素中最右边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
double GetChildBottommost (bool update)
 获取所有子元素在当前元素中最底边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
+void UpdateChildrenZOrder ()
 更新子元素的Z轴位置
 
+void UpdateSiblingsZOrder ()
 更新兄弟元素的Z轴位置
 
+void SetNextTabStopFocus ()
 设置下一个TabStop属性为true的元素为焦点元素
 
virtual void OnAddedChild (UIElement &element)
 添加子元素后调用该函数
 
virtual void OnRemovedChild (UIElement &element)
 移除子元素后调用该函数
 
+virtual void OnTabStop ()
 通过tab键将焦点移动到当前元素时调用该函数
 
virtual void OnDrawFocusRect ()
 绘制虚线框时调用该函数
 
virtual bool SetParent (WndBase *parent) override
 设置父窗口
 
virtual void ParentChanged (WndBase *newParent) override
 父窗口改变时调用此函数
 
virtual void OnEndPaint () override
 在OnPaint函数完成之后调用该函数
 
virtual bool OnClose () override
 接收到WM_CLOSE时调用该函数
 
virtual bool OnMove (Point newClientPosition) override
 接收到WM_MOVE时调用该函数
 
virtual bool OnSize (Size newClientSize) override
 接收到WM_SIZE时调用该函数
 
virtual void OnTextChanged () override
 Text属性更改时调用此函数
 
virtual void VisibleChanged (bool newVisible) override
 Visible属性改变时调用此函数
 
virtual bool OnSetFocus (HWND hPrevFocus) override
 接收到WM_SETFOCUS时调用该函数
 
virtual bool OnKillFocus (HWND hNextFocus) override
 接收到WM_KILLFOCUS时调用该函数
 
virtual bool OnChar (wchar_t ch, KeyFlags flags) override
 接收到WM_CHAR时调用该函数
 
virtual bool OnKeyDown (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYDOWN时调用该函数
 
virtual bool OnKeyUp (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYUP时调用该函数
 
virtual bool OnMouseMove (Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEMOVE时调用该函数
 
virtual bool OnMouseLeave () override
 接收到WM_MOUSELEAVE时调用该函数
 
virtual bool OnMouseWheel (int wheelDelta, Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEWHEEL时调用该函数
 
virtual bool OnMouseLeftButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONDOWN时调用该函数
 
virtual bool OnMouseLeftButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONUP时调用该函数
 
virtual bool OnMouseRightButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONDOWN时调用该函数
 
virtual bool OnMouseRightButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONUP时调用该函数
 
virtual bool OnMouseMiddleButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONDOWN时调用该函数
 
virtual bool OnMouseMiddleButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONUP时调用该函数
 
virtual bool OnContextMenu (bool isKeyboardMsg, Point mousePosition) override
 接收到WM_CONTEXTMENU后调用目标控件的该函数
 
virtual void OnMenuCommand (int id) override
 当WM_COMMAND接收到菜单命令时调用该函数
 
virtual bool OnColor (HDC hdc, HBRUSH &hRetBrush) override
 父窗口接收到WM_CTLCOLORxxx时调用对应控件的该函数
 
virtual bool OnSetCursor (HWND hwnd, HitTestResult hitTest, int message, bool &result) override
 接收到WM_SETCURSOR消息时调用该函数
 
- Protected Member Functions inherited from sw::WndBase
WndBase ()
 初始化WndBase
 
WndBase (const WndBase &)=delete
 
WndBase (WndBase &&)=delete
 
+WndBaseoperator= (const WndBase &)=delete
 
+WndBaseoperator= (WndBase &&)=delete
 
+void InitWindow (LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为窗口,该函数会调用CreateWindowExW
 
+void InitControl (LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为控件,该函数会调用CreateWindowExW
 
+LONG_PTR GetStyle ()
 获取窗口样式
 
+void SetStyle (LONG_PTR style)
 设置窗口样式
 
+bool GetStyle (LONG_PTR style)
 获取窗口的某个样式
 
+void SetStyle (LONG_PTR style, bool value)
 设置窗口的某个样式
 
+LONG_PTR GetExtendedStyle ()
 获取扩展窗口样式
 
+void SetExtendedStyle (LONG_PTR style)
 设置扩展窗口样式
 
+bool GetExtendedStyle (LONG_PTR style)
 获取窗口的某个扩展样式
 
+void SetExtendedStyle (LONG_PTR style, bool value)
 设置窗口的某个扩展样式
 
+HFONT GetFontHandle ()
 获取字体句柄
 
+LRESULT DefaultWndProc (const ProcMsg &refMsg)
 调用默认的WndProc,对于窗口则调用DefWindowProcW,控件则调用_controlOldWndProc
 
virtual LRESULT WndProc (const ProcMsg &refMsg)
 对WndProc的封装
 
+void UpdateText ()
 更新_text字段
 
virtual std::wstring & GetText ()
 获取窗口文本
 
virtual void SetText (const std::wstring &value)
 调用SetWindowTextW设置窗口文本
 
virtual bool OnCreate ()
 接收到WM_CREATE时调用该函数
 
virtual bool OnDestroy ()
 接收到WM_DESTROY时调用该函数
 
virtual bool OnPaint ()
 接收到WM_PAINT时调用该函数
 
virtual bool OnMouseLeftButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_LBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseRightButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_RBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseMiddleButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_MBUTTONDBLCLK时调用该函数
 
virtual bool OnDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_DEADCHAR时调用该函数
 
virtual bool OnSysChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSCHAR时调用该函数
 
virtual bool OnSysDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSDEADCHAR时调用该函数
 
virtual bool OnSysKeyDown (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYDOWN时调用该函数
 
virtual bool OnSysKeyUp (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYUP时调用该函数
 
virtual void OnCommand (int code)
 当父窗口接收到控件的WM_COMMAND时调用该函数
 
virtual void OnControlCommand (WndBase *pControl, int code, int id)
 当WM_COMMAND接收到控件命令时调用该函数
 
virtual void OnAcceleratorCommand (int id)
 当WM_COMMAND接收到快捷键命令时调用该函数
 
virtual void HandleInitialized (HWND hwnd)
 窗口句柄初始化完成
 
virtual void FontChanged (HFONT hfont)
 字体改变时调用该函数
 
virtual bool OnVerticalScroll (int event, int pos)
 接收到WM_VSCROLL时调用目标控件的该函数
 
virtual bool OnHorizontalScroll (int event, int pos)
 接收到WM_HSCROLL时调用目标控件的该函数
 
virtual bool OnEnabledChanged (bool newValue)
 接收到WM_ENABLE时调用该函数
 
virtual bool OnCtlColor (WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)
 接收到WM_CTLCOLORxxx时调用该函数
 
virtual void OnNcHitTest (const Point &testPoint, HitTestResult &result)
 接收到WM_NCHITTEST后调用该函数
 
virtual bool OnEraseBackground (int &result)
 接收到WM_ERASEBKGND时调用该函数
 
virtual bool OnDrawItem (int id, DRAWITEMSTRUCT *pDrawItem)
 接收到WM_DRAWITEM时调用该函数
 
+ + + + + +

+Additional Inherited Members

- Static Public Member Functions inherited from sw::WndBase
static WndBaseGetWndBase (HWND hwnd)
 通过窗口句柄获取WndBase
 
+

Detailed Description

+

列表视图

+

Member Function Documentation

+ +

◆ AddColumn() [1/2]

+ +
+
+ + + + + + + +
bool sw::ListView::AddColumn (const ListViewColumn & column)
+
+ +

添加新的列

+
Parameters
+ + +
column要添加的列信息
+
+
+
Returns
操作是否成功
+ +
+
+ +

◆ AddColumn() [2/2]

+ +
+
+ + + + + + + +
bool sw::ListView::AddColumn (const std::wstring & header)
+
+ +

添加新的列

+
Parameters
+ + +
header要添加列的标题
+
+
+
Returns
操作是否成功
+ +
+
+ +

◆ AddItem()

+ +
+
+ + + + + +
+ + + + + + + +
virtual bool sw::ListView::AddItem (const StrList & item)
+
+overridevirtual
+
+ +

添加新的子项

+
Parameters
+ + +
item要添加的子项
+
+
+
Returns
是否添加成功
+ +

Implements sw::ItemsControl< StrList >.

+ +
+
+ +

◆ Clear()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::ListView::Clear ()
+
+overridevirtual
+
+ +

清空所有子项

+ +

Implements sw::ItemsControl< StrList >.

+ +
+
+ +

◆ GetColumnWidth()

+ +
+
+ + + + + + + +
double sw::ListView::GetColumnWidth (int index)
+
+ +

获取指定列的宽度

+
Parameters
+ + +
index列的索引
+
+
+
Returns
列的宽度,若列不存在则返回-1
+ +
+
+ +

◆ GetItemAt() [1/2]

+ +
+
+ + + + + +
+ + + + + + + +
virtual StrList sw::ListView::GetItemAt (int index)
+
+overridevirtual
+
+ +

获取指定索引处子项的值

+
Parameters
+ + +
index子项的索引
+
+
+ +

Implements sw::ItemsControl< StrList >.

+ +
+
+ +

◆ GetItemAt() [2/2]

+ +
+
+ + + + + + + + + + + +
std::wstring sw::ListView::GetItemAt (int row,
int col )
+
+ +

获取指定位置处文本

+
Parameters
+ + + +
row所在行
col所在列
+
+
+
Returns
对应位置的文本,若获取失败则返回空字符串
+ +
+
+ +

◆ GetItemIndexFromPoint()

+ +
+
+ + + + + + + +
int sw::ListView::GetItemIndexFromPoint (const Point & point)
+
+ +

获取指定点处子项的索引

+
Parameters
+ + +
point相对于用户区左上角点的位置
+
+
+ +
+
+ +

◆ GetItemsCount()

+ +
+
+ + + + + +
+ + + + + + + +
virtual int sw::ListView::GetItemsCount ()
+
+overrideprotectedvirtual
+
+ +

获取子项数

+ +

Implements sw::ItemsControl< StrList >.

+ +
+
+ +

◆ GetSelectedIndex()

+ +
+
+ + + + + +
+ + + + + + + +
virtual int sw::ListView::GetSelectedIndex ()
+
+overrideprotectedvirtual
+
+ +

选中项的索引,当无选中项时为-1

+ +

Implements sw::ItemsControl< StrList >.

+ +
+
+ +

◆ GetSelectedItem()

+ +
+
+ + + + + +
+ + + + + + + +
virtual StrList sw::ListView::GetSelectedItem ()
+
+overrideprotectedvirtual
+
+ +

获取选中项

+ +

Implements sw::ItemsControl< StrList >.

+ +
+
+ +

◆ InsertColumn() [1/2]

+ +
+
+ + + + + + + + + + + +
bool sw::ListView::InsertColumn (int index,
const ListViewColumn & column )
+
+ +

添加新的列到指定索引

+
Parameters
+ + + +
index要插入的位置
column要添加的列信息
+
+
+
Returns
操作是否成功
+ +
+
+ +

◆ InsertColumn() [2/2]

+ +
+
+ + + + + + + + + + + +
bool sw::ListView::InsertColumn (int index,
const std::wstring & header )
+
+ +

添加新的列到指定索引

+
Parameters
+ + + +
index要插入的位置
header要添加列的标题
+
+
+
Returns
操作是否成功
+ +
+
+ +

◆ InsertItem()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::ListView::InsertItem (int index,
const StrList & item )
+
+overridevirtual
+
+ +

添加子项到指定索引

+
Parameters
+ + + +
index要插入的位置
item要添加的子项
+
+
+
Returns
是否添加成功
+ +

Implements sw::ItemsControl< StrList >.

+ +
+
+ +

◆ OnCheckStateChanged()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::ListView::OnCheckStateChanged (int index)
+
+protectedvirtual
+
+ +

复选框选中状态发生改变

+
Parameters
+ + +
index改变项的索引
+
+
+ +
+
+ +

◆ OnNotified()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::ListView::OnNotified (NMHDR * pNMHDR)
+
+overrideprotectedvirtual
+
+ +

父窗口接收到WM_NOTIFY后调用发出通知控件的该函数

+ +

Reimplemented from sw::WndBase.

+ +
+
+ +

◆ OnNotify()

+ +
+
+ + + + + +
+ + + + + + + +
virtual bool sw::ListView::OnNotify (NMHDR * pNMHDR)
+
+overrideprotectedvirtual
+
+ +

接收到WM_NOTIFY后调用该函数

+
Parameters
+ + +
pNMHDR包含有关通知消息的信息
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented from sw::WndBase.

+ +
+
+ +

◆ RemoveColumnAt()

+ +
+
+ + + + + + + +
bool sw::ListView::RemoveColumnAt (int index)
+
+ +

移除指定列

+
Parameters
+ + +
index列的索引
+
+
+
Returns
操作是否成功
+ +
+
+ +

◆ RemoveItemAt()

+ +
+
+ + + + + +
+ + + + + + + +
virtual bool sw::ListView::RemoveItemAt (int index)
+
+overridevirtual
+
+ +

移除指定索引处的子项

+
Parameters
+ + +
index要移除子项的索引
+
+
+
Returns
操作是否成功
+ +

Implements sw::ItemsControl< StrList >.

+ +
+
+ +

◆ SetBackColor()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual void sw::ListView::SetBackColor (Color color,
bool redraw )
+
+overrideprotectedvirtual
+
+ +

设置背景颜色

+
Parameters
+ + + +
color要设置的颜色
redraw是否重绘
+
+
+ +

Reimplemented from sw::UIElement.

+ +
+
+ +

◆ SetColumnHeader()

+ +
+
+ + + + + + + + + + + +
bool sw::ListView::SetColumnHeader (int index,
const std::wstring & header )
+
+ +

设置指定列的标题

+
Parameters
+ + +
index列的索引
+
+
+
Returns
操作是否成功
+ +
+
+ +

◆ SetColumnWidth()

+ +
+
+ + + + + + + + + + + +
bool sw::ListView::SetColumnWidth (int index,
double width )
+
+ +

设置指定列的宽度

+
Parameters
+ + + +
index列的索引
width要设置的宽度
+
+
+
Returns
操作是否成功
+ +
+
+ +

◆ SetSelectedIndex()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::ListView::SetSelectedIndex (int index)
+
+overrideprotectedvirtual
+
+ +

设置选中项索引

+ +

Implements sw::ItemsControl< StrList >.

+ +
+
+ +

◆ SetTextColor()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual void sw::ListView::SetTextColor (Color color,
bool redraw )
+
+overrideprotectedvirtual
+
+ +

设置文本颜色

+
Parameters
+ + + +
color要设置的颜色
redraw是否重绘
+
+
+ +

Reimplemented from sw::UIElement.

+ +
+
+ +

◆ UpdateItem() [1/2]

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::ListView::UpdateItem (int index,
const StrList & newValue )
+
+overridevirtual
+
+ +

更新指定位置的子项

+
Parameters
+ + + +
index要更新子项的位置
newValue子项的新值
+
+
+
Returns
操作是否成功
+ +

Implements sw::ItemsControl< StrList >.

+ +
+
+ +

◆ UpdateItem() [2/2]

+ +
+
+ + + + + + + + + + + + + + + + +
bool sw::ListView::UpdateItem (int row,
int col,
const std::wstring & newValue )
+
+ +

更新指定位置处文本

+
Parameters
+ + + + +
row所在行
col所在列
newValue要设置的文本
+
+
+
Returns
操作是否成功
+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_list_view.js b/docs/classsw_1_1_list_view.js new file mode 100644 index 00000000..17f45bb6 --- /dev/null +++ b/docs/classsw_1_1_list_view.js @@ -0,0 +1,45 @@ +var classsw_1_1_list_view = +[ + [ "ListView", "classsw_1_1_list_view.html#a6f491872e0416f1ab65cdb3866009293", null ], + [ "AddColumn", "classsw_1_1_list_view.html#abdc6fdb5bbe352fa0cfed2587260f6fc", null ], + [ "AddColumn", "classsw_1_1_list_view.html#a46f3f478e2f3bd4c1b3518eefd2a75fe", null ], + [ "AddItem", "classsw_1_1_list_view.html#a5b7f4ebd627de9cfcbfc9fa87dce183c", null ], + [ "Clear", "classsw_1_1_list_view.html#abb85e686c9e461b12b9184763a5bc76a", null ], + [ "GetCheckedIndices", "classsw_1_1_list_view.html#ac4de7a880d513d5fe78d9600304979d2", null ], + [ "GetColumnWidth", "classsw_1_1_list_view.html#a35e0f172950516ae97ab0bbbfddbab14", null ], + [ "GetItemAt", "classsw_1_1_list_view.html#a3c9979454e598336e819586d0cd8ea33", null ], + [ "GetItemAt", "classsw_1_1_list_view.html#ab9a96bf777e2b3662007f17b274a4a2e", null ], + [ "GetItemCheckState", "classsw_1_1_list_view.html#ac34d4382c8e43346da5a67ebcf78f97f", null ], + [ "GetItemIndexFromPoint", "classsw_1_1_list_view.html#aaa8be22cc91981886a241ca44c932c65", null ], + [ "GetItemsCount", "classsw_1_1_list_view.html#a5c953126fc14e93dc7479efc03ceb4f9", null ], + [ "GetSelectedIndex", "classsw_1_1_list_view.html#a65e4a2137e9cf7509adff246248732cc", null ], + [ "GetSelectedIndices", "classsw_1_1_list_view.html#a4ac92414b9424dc44aad14ed796ed943", null ], + [ "GetSelectedItem", "classsw_1_1_list_view.html#a95013292cf5b588ff83ceeb4865a2993", null ], + [ "InsertColumn", "classsw_1_1_list_view.html#a985c48bef310cdcb10b722c9aec8ebbf", null ], + [ "InsertColumn", "classsw_1_1_list_view.html#a0abf70d4eee217e060b84686f30b8a09", null ], + [ "InsertItem", "classsw_1_1_list_view.html#a34425690bf39e914861b2211004c2ce1", null ], + [ "OnCheckStateChanged", "classsw_1_1_list_view.html#a5b4b18df705396deeb3a2dc2fb0048cc", null ], + [ "OnHeaderItemClicked", "classsw_1_1_list_view.html#aebad3b5c7fafae2aa71f811beecfaeb8", null ], + [ "OnHeaderItemDoubleClicked", "classsw_1_1_list_view.html#a294d8b15fd8755f4b6aa303092d5290a", null ], + [ "OnItemChanged", "classsw_1_1_list_view.html#a9f6978e162ff25d4328cad8496205ee9", null ], + [ "OnItemClicked", "classsw_1_1_list_view.html#a60fce24f88dc39ab4b25a24edd44d940", null ], + [ "OnItemDoubleClicked", "classsw_1_1_list_view.html#aad1b3b081bf328350b93f1cfba68cd0e", null ], + [ "OnNotified", "classsw_1_1_list_view.html#aaad9cba6a7d80f3862720d2771cb28dc", null ], + [ "OnNotify", "classsw_1_1_list_view.html#a3d46f549079a2f75656de1e5903671cf", null ], + [ "RemoveColumnAt", "classsw_1_1_list_view.html#a739a22388145f5bdc9d694e0a7cdf060", null ], + [ "RemoveItemAt", "classsw_1_1_list_view.html#aa8794834f72d435f8b6dee8b34d1d59c", null ], + [ "SetBackColor", "classsw_1_1_list_view.html#a56b546d6ddeadd258522b2441ec9bcc4", null ], + [ "SetColumnHeader", "classsw_1_1_list_view.html#a8ee454faaa1351526c069174589f5403", null ], + [ "SetColumnWidth", "classsw_1_1_list_view.html#a71c4c33a03aa2811a3fee6d7a9d0c2c3", null ], + [ "SetItemCheckState", "classsw_1_1_list_view.html#affa13393f8c08a2e1f1b9b4018ceef3f", null ], + [ "SetSelectedIndex", "classsw_1_1_list_view.html#a281ac94e46cb287611a25f78a3b91a06", null ], + [ "SetTextColor", "classsw_1_1_list_view.html#acb06dc6710aafdb341e75fd92fc08af1", null ], + [ "UpdateItem", "classsw_1_1_list_view.html#ab3fba4c9cb19eb933b132ba4a7694cac", null ], + [ "UpdateItem", "classsw_1_1_list_view.html#ad51ae3ae4b5cf3b60d56867738a8b960", null ], + [ "CheckBoxes", "classsw_1_1_list_view.html#a6708aba4c056b8729c66fe39b4035b7b", null ], + [ "ColumnsCount", "classsw_1_1_list_view.html#a0b84ba1066f16317e48629059b94ded8", null ], + [ "GridLines", "classsw_1_1_list_view.html#ab3b05ee1d7f10c5abcc7b31facc5964b", null ], + [ "MultiSelect", "classsw_1_1_list_view.html#a07b5ecb6c37936ae7b6cef9d68d7a541", null ], + [ "SelectedCount", "classsw_1_1_list_view.html#ae1e499b6f04912769eb8f4fe732ad35c", null ], + [ "TopIndex", "classsw_1_1_list_view.html#a4158ee431cd207fc45ef4212baf7b37a", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_list_view.png b/docs/classsw_1_1_list_view.png new file mode 100644 index 0000000000000000000000000000000000000000..a693d20977ca6ea6f6340d06d6d2f497471675a9 GIT binary patch literal 2351 zcmd5;YgAKL8U-w)P=U!5>kJaI#8zY+ilxXakhB;+5pGqG-47A+x!j(?$_ybFrArOCTBe> zblGDY|L2^}nep*)czkcy(I4SCqoe@ezw5#Io5$H8Z$M9PQ_Vr#XMxH3^JCJhlP;S- zoiMwT)(&Cie`?(_V|B}9n~zUIvr9sBMy8$SIhjxy(-|~G9xGeD>sQO+Aj^GE;~Fzp zi~M$9M<9;uk|7Wo>!H;4SN1kNGp_mRR3f-11c6}PW;n2Wt*x2Ums&+Ln)tTU7wOEW zQ2J~-=XoK}(^qj-3xHvK0xh(QO>q4vn1-sHU6LhE=QTb8%C^4fOm$*tP#&RTtYVNUCU83KXtZHDk4KQI&A znBs7Pl1HFs7sRUiuIGmOIm07=096>mGMt2X)Qh^)} zUU?zHNuV88YR~e&T9?ur=QvsHSsLMmb1Ya-Zo{GC?yu}^DtT2Wt%>U?xjGD2Hj3vE z82uE%yJ)<{!oMwba1JvtC69S@yufqEU$6J(j2qK99O&+;uO)Go~Hw zc-!-mSD-_|UNO?b|CcuurWyDA3J}*0M<1cGy#nv`a(s4HNZtidSuNoS?p9fL7Yww% zAHJvX7j8$1k-r~!m*W7H8{6PSAGgeffJPR4(L5JSqp~SKk>)+jd%ueljXxwdWqG`n*|gMAE3FHw|A9{w7I@gmSZ>#BdTeH=69lXH(n3Qs9h1s-UQCrJ z!+6n{tOkuTxf(lb+1y``6>*<5xT6M5_{tg8mj)KfRMkWvammD~WfJo~6!s*PVynG4 zGp_~~uM`;=I!ffXnSGB19$T0Fr&n`*bpdK;rCh@<-fZ6ceN@V-*K|=3F-`qrVzPTk zG1Ng9=w{AeG#C+hlxfb@u=5!oDH8p;>+{3!D>adrn_BP6;EjfkcW5Dyc*(aZg`mzk z#UnV2h?2aW@~6k(Pq_%P@lfDEPa$1EU6@V$m^)`mylc(R=PuiiO1R-vw(16eO<2QV zzoR5?fCjDnJ`Gou)&ULZ7nLf7sqCa^gtqIJ-5BpNh&1ob{!O>c$2su&@X%U$E=d*{ zDh$(E7JLzyO*zmaKQ_62n;0ob5QI){|BD#u5HR@P)$sRMTZLcmHx~?Y1^aPx-z!Y# zZDn6)DNI*)y@hCrCcehn+9_nLngHL`-D2cOe>-%1He*O(N_%A}YpAx`?0YsNG*dJ2 z==GzdwWGo?l)H=(;CgQOo$@|;eU)=}d1PKT<%OX=m1`H5L;^^c6{fY5O>RWtL^`z| z3VCfW<^c_r@>4A0v2;EHmLUr`F-=Oc@*Q$1%P+}~0}tXFcVttddk&E?)|2~ShNrUW z*_2lAe}g2#(7eU2lSBW1I<9m<6Y49Rs+NhQ{kXGLHHmd6=}|QvnaUzGs}$Hr3so_h z=aefHSwA{R$a=X`j1)e5#c*Nw`-fEA$eK>_vI)!EQJdm!S62d@c8;8r2IU(kS>Ex9wUhR4EhOnbl+Vb>W9l4Oze$GOc)PddDP{FS zTX5g*o%K>vKH=egwbVL5I1yVSRhtRfG37>1Thu5a=@1yZuUgaBM2FpdSU4SkrHmEF z#*<$V-DJ}wu#Uv4=tcwIl3AkGmD28>j<{5joOgAl9DFTX{LG20^%<^i<-V&q|K4Gz z7RsOyW1-mFzx97H8f~lElt_*;f~^7kiidcM^_a7^FfzD zxwC}p#;B%q`AZBD-wT$?afz4TBZPP|ohO{R7fbf|+^m8nYZ;1(i-Q+o54;%;Tlt%@ zJ!Y${gWd#G01cRAAvChMOeMBM8K5+0jVD9hS~tagC6>lT;ce7FTva=IjveLEd55`_ zB4#AiDli^GU;t$3^k4%heOUas0dNg^?v(tn7Vat=?Vqm}FVvYU9(MP{+|A2-v*lfQ w%lrpQh6v=slF|N?WK;1jmgi0AMmqgHvquZFE7@uAuZ`Zp{l2&|&y!#N3{TwsOaK4? literal 0 HcmV?d00001 diff --git a/docs/classsw_1_1_menu-members.html b/docs/classsw_1_1_menu-members.html new file mode 100644 index 00000000..e2c2dfbd --- /dev/null +++ b/docs/classsw_1_1_menu-members.html @@ -0,0 +1,135 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::Menu Member List
+
+
+ +

This is the complete list of members for sw::Menu, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
AddItem(const MenuItem &item)sw::MenuBase
AddSubItem(MenuItem &item, const MenuItem &subItem)sw::MenuBase
GetChecked(MenuItem &item, bool &out)sw::MenuBase
GetEnabled(MenuItem &item, bool &out)sw::MenuBase
GetHandle()sw::MenuBase
GetMenuItem(int id)sw::MenuBase
GetMenuItem(std::initializer_list< int > path)sw::MenuBase
GetMenuItem(std::initializer_list< std::wstring > path)sw::MenuBase
GetParent(MenuItem &item)sw::MenuBase
IDToIndex(int id) overridesw::Menuprotectedvirtual
IndexToID(int index) overridesw::Menuprotectedvirtual
InitMenuBase(HMENU hMenu)sw::MenuBaseprotected
itemssw::MenuBase
Menu()sw::Menu
Menu(std::initializer_list< MenuItem > items)sw::Menu
MenuBase()sw::MenuBase
MenuBase(const MenuBase &menu)sw::MenuBase
operator=(const MenuBase &menu)sw::MenuBase
RemoveItem(MenuItem &item)sw::MenuBase
SetChecked(MenuItem &item, bool value)sw::MenuBase
SetEnabled(MenuItem &item, bool value)sw::MenuBase
SetItems(std::initializer_list< MenuItem > items)sw::MenuBase
SetSubItems(MenuItem &item, std::initializer_list< MenuItem > subItems)sw::MenuBase
SetText(MenuItem &item, const std::wstring &value)sw::MenuBase
Update()sw::MenuBase
~MenuBase()sw::MenuBase
+
+ + + + diff --git a/docs/classsw_1_1_menu.html b/docs/classsw_1_1_menu.html new file mode 100644 index 00000000..aabe8ee1 --- /dev/null +++ b/docs/classsw_1_1_menu.html @@ -0,0 +1,304 @@ + + + + + + + +SimpleWindow: sw::Menu Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+ +

菜单 + More...

+ +

#include <Menu.h>

+
+Inheritance diagram for sw::Menu:
+
+
+ + +sw::MenuBase + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

Menu ()
 初始化菜单
 
Menu (std::initializer_list< MenuItem > items)
 初始化菜单并设置菜单项
 
- Public Member Functions inherited from sw::MenuBase
MenuBase ()
 初始化菜单
 
MenuBase (const MenuBase &menu)
 重载拷贝构造
 
~MenuBase ()
 释放资源
 
+MenuBaseoperator= (const MenuBase &menu)
 重载拷贝赋值运算
 
+HMENU GetHandle ()
 获取菜单句柄
 
+void Update ()
 更新菜单
 
+void SetItems (std::initializer_list< MenuItem > items)
 初始化菜单并添加菜单项
 
bool SetSubItems (MenuItem &item, std::initializer_list< MenuItem > subItems)
 重新设置当前菜单中某个菜单项的子项
 
void AddItem (const MenuItem &item)
 添加新的菜单项到菜单
 
bool AddSubItem (MenuItem &item, const MenuItem &subItem)
 像当前菜单中的某个菜单项添加新的子项
 
bool RemoveItem (MenuItem &item)
 移除当前菜单中的某个子项
 
MenuItemGetMenuItem (int id)
 通过id获取菜单项
 
MenuItemGetMenuItem (std::initializer_list< int > path)
 通过索引来获取菜单项
 
MenuItemGetMenuItem (std::initializer_list< std::wstring > path)
 通过菜单项的text来获取菜单项
 
MenuItemGetParent (MenuItem &item)
 获取当前菜单中指定菜单项的直接父菜单项
 
bool GetEnabled (MenuItem &item, bool &out)
 获取一个值,表示菜单项是否可用
 
bool SetEnabled (MenuItem &item, bool value)
 设置菜单项是否可用
 
bool GetChecked (MenuItem &item, bool &out)
 获取一个值,表示菜单项是否选中
 
bool SetChecked (MenuItem &item, bool value)
 设置菜单项是否选中
 
bool SetText (MenuItem &item, const std::wstring &value)
 设置菜单项文本
 
+ + + + + + + + + + + +

+Protected Member Functions

virtual int IndexToID (int index) override
 根据索引获取ID
 
virtual int IDToIndex (int id) override
 根据ID获取索引
 
- Protected Member Functions inherited from sw::MenuBase
void InitMenuBase (HMENU hMenu)
 设置菜单句柄
 
+ + + + + +

+Additional Inherited Members

- Public Attributes inherited from sw::MenuBase
+std::vector< std::shared_ptr< MenuItem > > items
 菜单项集合
 
+

Detailed Description

+

菜单

+

Member Function Documentation

+ +

◆ IDToIndex()

+ +
+
+ + + + + +
+ + + + + + + +
virtual int sw::Menu::IDToIndex (int id)
+
+overrideprotectedvirtual
+
+ +

根据ID获取索引

+
Parameters
+ + +
id菜单项的ID
+
+
+
Returns
索引
+ +

Implements sw::MenuBase.

+ +
+
+ +

◆ IndexToID()

+ +
+
+ + + + + +
+ + + + + + + +
virtual int sw::Menu::IndexToID (int index)
+
+overrideprotectedvirtual
+
+ +

根据索引获取ID

+
Parameters
+ + +
index索引
+
+
+
Returns
菜单项的ID
+ +

Implements sw::MenuBase.

+ +
+
+
The documentation for this class was generated from the following file:
    +
  • D:/code/GitHub/sw/sw/inc/Menu.h
  • +
+
+
+ + + + diff --git a/docs/classsw_1_1_menu.js b/docs/classsw_1_1_menu.js new file mode 100644 index 00000000..5c61219e --- /dev/null +++ b/docs/classsw_1_1_menu.js @@ -0,0 +1,7 @@ +var classsw_1_1_menu = +[ + [ "Menu", "classsw_1_1_menu.html#a6fb318031278424d8e571ee05b6654bc", null ], + [ "Menu", "classsw_1_1_menu.html#ac24676f02acaac6350331a49ca2e6f44", null ], + [ "IDToIndex", "classsw_1_1_menu.html#a546af91c1b0778610d79ed7e56423dd1", null ], + [ "IndexToID", "classsw_1_1_menu.html#a522312cc29234ea9048d94fae7258027", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_menu.png b/docs/classsw_1_1_menu.png new file mode 100644 index 0000000000000000000000000000000000000000..3b4a04f35f2b07aca9edcf65fea96338e09f8a23 GIT binary patch literal 490 zcmVvTJr#LVva2S`&=-}Ys|Ns9r%~qrU000SeQchC<|NsC0|NsC0Hv*f~0004X zNklP%1E z&Tz2z;c&!*eO#iGi+v75-}il%eXn@7_cE$zO`@HtVZQ3|R-3CHc(L~qPdhVKVDx>y z(`jZ2TFIySuJ=9p#(er_bTsw7gqG2KGa@42PS{06EW$1#V&QJjIcF~b-~tZ-aKqL9 zczEhv?N7O*-q-%8-%Qv6z$EMdU=elzun0Q0?1%KSGY8+8Pv4A=u6Bkbze?Ci(jx36 gY2j{9DJ3sH0O$iw+9mS`w*UYD07*qoM6N<$f(0n-(*OVf literal 0 HcmV?d00001 diff --git a/docs/classsw_1_1_menu_base-members.html b/docs/classsw_1_1_menu_base-members.html new file mode 100644 index 00000000..a886b7c2 --- /dev/null +++ b/docs/classsw_1_1_menu_base-members.html @@ -0,0 +1,133 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::MenuBase Member List
+
+
+ +

This is the complete list of members for sw::MenuBase, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + +
AddItem(const MenuItem &item)sw::MenuBase
AddSubItem(MenuItem &item, const MenuItem &subItem)sw::MenuBase
GetChecked(MenuItem &item, bool &out)sw::MenuBase
GetEnabled(MenuItem &item, bool &out)sw::MenuBase
GetHandle()sw::MenuBase
GetMenuItem(int id)sw::MenuBase
GetMenuItem(std::initializer_list< int > path)sw::MenuBase
GetMenuItem(std::initializer_list< std::wstring > path)sw::MenuBase
GetParent(MenuItem &item)sw::MenuBase
IDToIndex(int id)=0sw::MenuBaseprotectedpure virtual
IndexToID(int index)=0sw::MenuBaseprotectedpure virtual
InitMenuBase(HMENU hMenu)sw::MenuBaseprotected
itemssw::MenuBase
MenuBase()sw::MenuBase
MenuBase(const MenuBase &menu)sw::MenuBase
operator=(const MenuBase &menu)sw::MenuBase
RemoveItem(MenuItem &item)sw::MenuBase
SetChecked(MenuItem &item, bool value)sw::MenuBase
SetEnabled(MenuItem &item, bool value)sw::MenuBase
SetItems(std::initializer_list< MenuItem > items)sw::MenuBase
SetSubItems(MenuItem &item, std::initializer_list< MenuItem > subItems)sw::MenuBase
SetText(MenuItem &item, const std::wstring &value)sw::MenuBase
Update()sw::MenuBase
~MenuBase()sw::MenuBase
+
+ + + + diff --git a/docs/classsw_1_1_menu_base.html b/docs/classsw_1_1_menu_base.html new file mode 100644 index 00000000..4c9889d7 --- /dev/null +++ b/docs/classsw_1_1_menu_base.html @@ -0,0 +1,700 @@ + + + + + + + +SimpleWindow: sw::MenuBase Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
sw::MenuBase Class Referenceabstract
+
+
+ +

菜单类型的基类 + More...

+ +

#include <MenuBase.h>

+
+Inheritance diagram for sw::MenuBase:
+
+
+ + +sw::ContextMenu +sw::Menu + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

MenuBase ()
 初始化菜单
 
MenuBase (const MenuBase &menu)
 重载拷贝构造
 
~MenuBase ()
 释放资源
 
+MenuBaseoperator= (const MenuBase &menu)
 重载拷贝赋值运算
 
+HMENU GetHandle ()
 获取菜单句柄
 
+void Update ()
 更新菜单
 
+void SetItems (std::initializer_list< MenuItem > items)
 初始化菜单并添加菜单项
 
bool SetSubItems (MenuItem &item, std::initializer_list< MenuItem > subItems)
 重新设置当前菜单中某个菜单项的子项
 
void AddItem (const MenuItem &item)
 添加新的菜单项到菜单
 
bool AddSubItem (MenuItem &item, const MenuItem &subItem)
 像当前菜单中的某个菜单项添加新的子项
 
bool RemoveItem (MenuItem &item)
 移除当前菜单中的某个子项
 
MenuItemGetMenuItem (int id)
 通过id获取菜单项
 
MenuItemGetMenuItem (std::initializer_list< int > path)
 通过索引来获取菜单项
 
MenuItemGetMenuItem (std::initializer_list< std::wstring > path)
 通过菜单项的text来获取菜单项
 
MenuItemGetParent (MenuItem &item)
 获取当前菜单中指定菜单项的直接父菜单项
 
bool GetEnabled (MenuItem &item, bool &out)
 获取一个值,表示菜单项是否可用
 
bool SetEnabled (MenuItem &item, bool value)
 设置菜单项是否可用
 
bool GetChecked (MenuItem &item, bool &out)
 获取一个值,表示菜单项是否选中
 
bool SetChecked (MenuItem &item, bool value)
 设置菜单项是否选中
 
bool SetText (MenuItem &item, const std::wstring &value)
 设置菜单项文本
 
+ + + + +

+Public Attributes

+std::vector< std::shared_ptr< MenuItem > > items
 菜单项集合
 
+ + + + + + + + + + +

+Protected Member Functions

void InitMenuBase (HMENU hMenu)
 设置菜单句柄
 
virtual int IndexToID (int index)=0
 根据索引获取ID
 
virtual int IDToIndex (int id)=0
 根据ID获取索引
 
+

Detailed Description

+

菜单类型的基类

+

Member Function Documentation

+ +

◆ AddItem()

+ +
+
+ + + + + + + +
void sw::MenuBase::AddItem (const MenuItem & item)
+
+ +

添加新的菜单项到菜单

+
Parameters
+ + +
item新的菜单项
+
+
+ +
+
+ +

◆ AddSubItem()

+ +
+
+ + + + + + + + + + + +
bool sw::MenuBase::AddSubItem (MenuItem & item,
const MenuItem & subItem )
+
+ +

像当前菜单中的某个菜单项添加新的子项

+
Parameters
+ + + +
item要添加子项的菜单项,当该项原本不含有子项时将会调用Update更新整个菜单
subItem要添加的子菜单项
+
+
+
Returns
返回一个bool值,表示操作是否成功
+ +
+
+ +

◆ GetChecked()

+ +
+
+ + + + + + + + + + + +
bool sw::MenuBase::GetChecked (MenuItem & item,
bool & out )
+
+ +

获取一个值,表示菜单项是否选中

+
Parameters
+ + + +
item要获取的菜单项
out输出值
+
+
+
Returns
函数是否成功
+ +
+
+ +

◆ GetEnabled()

+ +
+
+ + + + + + + + + + + +
bool sw::MenuBase::GetEnabled (MenuItem & item,
bool & out )
+
+ +

获取一个值,表示菜单项是否可用

+
Parameters
+ + + +
item要获取的菜单项
out输出值
+
+
+
Returns
函数是否成功
+ +
+
+ +

◆ GetMenuItem() [1/3]

+ +
+
+ + + + + + + +
MenuItem * sw::MenuBase::GetMenuItem (int id)
+
+ +

通过id获取菜单项

+
Parameters
+ + +
id要获取菜单项的id
+
+
+
Returns
若函数成功则返回菜单项的指针,否则返回nullptr
+ +
+
+ +

◆ GetMenuItem() [2/3]

+ +
+
+ + + + + + + +
MenuItem * sw::MenuBase::GetMenuItem (std::initializer_list< int > path)
+
+ +

通过索引来获取菜单项

+
Parameters
+ + +
path要找项所在下索引
+
+
+
Returns
若函数成功则返回菜单项的指针,否则返回nullptr
+ +
+
+ +

◆ GetMenuItem() [3/3]

+ +
+
+ + + + + + + +
MenuItem * sw::MenuBase::GetMenuItem (std::initializer_list< std::wstring > path)
+
+ +

通过菜单项的text来获取菜单项

+
Parameters
+ + +
path每层要找的text
+
+
+
Returns
若函数成功则返回菜单项的指针,否则返回nullptr
+ +
+
+ +

◆ GetParent()

+ +
+
+ + + + + + + +
MenuItem * sw::MenuBase::GetParent (MenuItem & item)
+
+ +

获取当前菜单中指定菜单项的直接父菜单项

+
Parameters
+ + +
item要查询的子菜单项
+
+
+
Returns
若函数成功则返回指向直接父菜单项的指针,否则返回nullptr
+ +
+
+ +

◆ IDToIndex()

+ +
+
+ + + + + +
+ + + + + + + +
virtual int sw::MenuBase::IDToIndex (int id)
+
+protectedpure virtual
+
+ +

根据ID获取索引

+
Parameters
+ + +
id菜单项的ID
+
+
+
Returns
索引
+ +

Implemented in sw::ContextMenu, and sw::Menu.

+ +
+
+ +

◆ IndexToID()

+ +
+
+ + + + + +
+ + + + + + + +
virtual int sw::MenuBase::IndexToID (int index)
+
+protectedpure virtual
+
+ +

根据索引获取ID

+
Parameters
+ + +
index索引
+
+
+
Returns
菜单项的ID
+ +

Implemented in sw::ContextMenu, and sw::Menu.

+ +
+
+ +

◆ InitMenuBase()

+ +
+
+ + + + + +
+ + + + + + + +
void sw::MenuBase::InitMenuBase (HMENU hMenu)
+
+protected
+
+ +

设置菜单句柄

+
Parameters
+ + +
hMenu菜单句柄
+
+
+ +
+
+ +

◆ RemoveItem()

+ +
+
+ + + + + + + +
bool sw::MenuBase::RemoveItem (MenuItem & item)
+
+ +

移除当前菜单中的某个子项

+
Parameters
+ + +
item要移除的菜单项
+
+
+
Returns
返回一个bool值,表示操作是否成功
+ +
+
+ +

◆ SetChecked()

+ +
+
+ + + + + + + + + + + +
bool sw::MenuBase::SetChecked (MenuItem & item,
bool value )
+
+ +

设置菜单项是否选中

+
Parameters
+ + + +
item要修改的菜单项
value设置的值
+
+
+
Returns
修改是否成功
+ +
+
+ +

◆ SetEnabled()

+ +
+
+ + + + + + + + + + + +
bool sw::MenuBase::SetEnabled (MenuItem & item,
bool value )
+
+ +

设置菜单项是否可用

+
Parameters
+ + + +
item要修改的菜单项
value设置的值
+
+
+
Returns
修改是否成功
+ +
+
+ +

◆ SetSubItems()

+ +
+
+ + + + + + + + + + + +
bool sw::MenuBase::SetSubItems (MenuItem & item,
std::initializer_list< MenuItem > subItems )
+
+ +

重新设置当前菜单中某个菜单项的子项

+
Parameters
+ + + +
item要修改的菜单项,当该项原先不含有子项时将会调用Update更新整个菜单
subItems新的子项列表
+
+
+
Returns
返回一个bool值,表示操作是否成功
+ +
+
+ +

◆ SetText()

+ +
+
+ + + + + + + + + + + +
bool sw::MenuBase::SetText (MenuItem & item,
const std::wstring & value )
+
+ +

设置菜单项文本

+
Parameters
+ + + +
item要修改的菜单项
value设置的值
+
+
+
Returns
修改是否成功
+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_menu_base.js b/docs/classsw_1_1_menu_base.js new file mode 100644 index 00000000..95d64124 --- /dev/null +++ b/docs/classsw_1_1_menu_base.js @@ -0,0 +1,27 @@ +var classsw_1_1_menu_base = +[ + [ "MenuBase", "classsw_1_1_menu_base.html#aae4c6660b8c5341160a67d88bca9bc18", null ], + [ "MenuBase", "classsw_1_1_menu_base.html#a48c5d3f04743099a94a1832fa7d9d31b", null ], + [ "~MenuBase", "classsw_1_1_menu_base.html#abde93ccb3c829385d8e15f6ee1a36d0f", null ], + [ "AddItem", "classsw_1_1_menu_base.html#a300bc76b5be03814cb8fa534a3a74cfe", null ], + [ "AddSubItem", "classsw_1_1_menu_base.html#aa48a89a167974e8a7397ffe6058c475f", null ], + [ "GetChecked", "classsw_1_1_menu_base.html#a2a631549b5be6a41f8a24342a880826d", null ], + [ "GetEnabled", "classsw_1_1_menu_base.html#ab610a8a98e4bf6f199fe7706dbb57f4d", null ], + [ "GetHandle", "classsw_1_1_menu_base.html#a7f18755d0245d1e8c536438b5ec99093", null ], + [ "GetMenuItem", "classsw_1_1_menu_base.html#a47fe9d419c9c50459389c46b410849d8", null ], + [ "GetMenuItem", "classsw_1_1_menu_base.html#a207341719edb495ca22be7090b3a8b37", null ], + [ "GetMenuItem", "classsw_1_1_menu_base.html#a09259eb19e71878bd77f4d3dece7fed8", null ], + [ "GetParent", "classsw_1_1_menu_base.html#a1cb75444ab44b6b4dc3599634b30b07e", null ], + [ "IDToIndex", "classsw_1_1_menu_base.html#a84c15b6a20df581e6aed4b9df9e84f9a", null ], + [ "IndexToID", "classsw_1_1_menu_base.html#a9f94aca19decada231feeed33ab19743", null ], + [ "InitMenuBase", "classsw_1_1_menu_base.html#aa105bc5eb9ecf6a59f1ccff4b075643c", null ], + [ "operator=", "classsw_1_1_menu_base.html#a6fcf63228e79f855d4fa11c083028fb5", null ], + [ "RemoveItem", "classsw_1_1_menu_base.html#a75c96dd59694d38a9ea59e3973cd5bea", null ], + [ "SetChecked", "classsw_1_1_menu_base.html#a114b4fe9eb2cd543c605479198d67517", null ], + [ "SetEnabled", "classsw_1_1_menu_base.html#a537663148790e0516c1a2aca7b02afd1", null ], + [ "SetItems", "classsw_1_1_menu_base.html#a1aec7eb5fee274eed8a9a49179383a94", null ], + [ "SetSubItems", "classsw_1_1_menu_base.html#a2f4d2832b6bcc759e291a99278b3eb12", null ], + [ "SetText", "classsw_1_1_menu_base.html#a9f9fb3eda715d2c71e3e4a1b0562bac8", null ], + [ "Update", "classsw_1_1_menu_base.html#aa5e31e8a7e3f1744fec35acfdce47b2e", null ], + [ "items", "classsw_1_1_menu_base.html#a661efe79f75f4e6ae0d5b166b7db4147", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_menu_base.png b/docs/classsw_1_1_menu_base.png new file mode 100644 index 0000000000000000000000000000000000000000..ad03f347a517c4e7ff4d9013f8d2aa19f35f9ae7 GIT binary patch literal 747 zcmeAS@N?(olHy`uVBq!ia0vp^4}ds;gBeJgTXrr3QqloFA+G=b{|7Q(y!l$%e`vXd zfo6fk^fNCWJa_;UH$5A+1SrQ@666=m0OW&#In(Sb3=B+Vo-U3d6^w7^KAf~zL4fUc zzgGA6`bXYP8Xfay%`Uz=ckSB_4#hUQB2fwFI*q0^V zYk2H`D>u`P$4!REGMbPXmrG;Ig&52ivR4@Si@*8ZE^Qb4;pz9B!^gR+#94Qk>v0sM z#|S()w?pB;+(O5O`ODw`{#V1`_sIR#gC+*I9SRMmdK?KY+)NRVF}Zg<4O#^FF1HID zO00Y4-K;X#NmIjf`GclODJ|SylT7!=ZK(e18FaMfN$LFdTPMw$svmg=9d3J|9w%Jl zY0#^?hgbQa>_^p=i9$8&YxU1xQCm47c9v;vkE@=r#`9?pzj5iMZBpK+V%pO*f5GLh zFS3tMJv{i~YB1B$`km|MRRb%7 literal 0 HcmV?d00001 diff --git a/docs/classsw_1_1_menu_item-members.html b/docs/classsw_1_1_menu_item-members.html new file mode 100644 index 00000000..7979ef48 --- /dev/null +++ b/docs/classsw_1_1_menu_item-members.html @@ -0,0 +1,120 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::MenuItem Member List
+
+
+ +

This is the complete list of members for sw::MenuItem, including all inherited members.

+ + + + + + + + + + + + +
CallCommand()sw::MenuItem
commandsw::MenuItem
GetTag() overridesw::MenuItemvirtual
IsSeparator() constsw::MenuItem
MenuItem(const std::wstring &text)sw::MenuItem
MenuItem(const std::wstring &text, std::initializer_list< MenuItem > subItems)sw::MenuItem
MenuItem(const std::wstring &text, const decltype(command) &command)sw::MenuItem
SetTag(uint64_t tag) overridesw::MenuItemvirtual
subItemssw::MenuItem
tagsw::MenuItem
textsw::MenuItem
+
+ + + + diff --git a/docs/classsw_1_1_menu_item.html b/docs/classsw_1_1_menu_item.html new file mode 100644 index 00000000..4fcf4d20 --- /dev/null +++ b/docs/classsw_1_1_menu_item.html @@ -0,0 +1,321 @@ + + + + + + + +SimpleWindow: sw::MenuItem Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
sw::MenuItem Class Reference
+
+
+ +

菜单项 + More...

+ +

#include <MenuItem.h>

+
+Inheritance diagram for sw::MenuItem:
+
+
+ + +sw::ITag + +
+ + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 MenuItem (const std::wstring &text)
 构造一个MenuItem,并设置文本
 
 MenuItem (const std::wstring &text, std::initializer_list< MenuItem > subItems)
 构造一个MenuItem,并设置其子项
 
 MenuItem (const std::wstring &text, const decltype(command) &command)
 构造一个MenuItem,并设置其回调函数
 
+bool IsSeparator () const
 获取一个值,表示当前菜单项是否为分隔条
 
+void CallCommand ()
 调用command
 
virtual uint64_t GetTag () override
 获取Tag
 
virtual void SetTag (uint64_t tag) override
 设置Tag
 
+ + + + + + + + + + + + + +

+Public Attributes

+uint64_t tag = 0
 储存用户自定义信息
 
+std::wstring text
 菜单项的文本,当值为“-”时表示当前项为分隔条
 
+std::vector< std::shared_ptr< MenuItem > > subItems
 子项
 
+std::function< void(MenuItem &) command )
 菜单项被单击时调用的函数
 
+

Detailed Description

+

菜单项

+

Constructor & Destructor Documentation

+ +

◆ MenuItem() [1/3]

+ +
+
+ + + + + + + +
sw::MenuItem::MenuItem (const std::wstring & text)
+
+ +

构造一个MenuItem,并设置文本

+
Parameters
+ + +
text菜单项的文本
+
+
+ +
+
+ +

◆ MenuItem() [2/3]

+ +
+
+ + + + + + + + + + + +
sw::MenuItem::MenuItem (const std::wstring & text,
std::initializer_list< MenuItem > subItems )
+
+ +

构造一个MenuItem,并设置其子项

+
Parameters
+ + + +
text菜单下的文本
subItems子项列表
+
+
+ +
+
+ +

◆ MenuItem() [3/3]

+ +
+
+ + + + + + + + + + + +
sw::MenuItem::MenuItem (const std::wstring & text,
const decltype(command) & command )
+
+ +

构造一个MenuItem,并设置其回调函数

+
Parameters
+ + + +
text菜单项的文本
command被单击时调用的函数
+
+
+ +
+
+

Member Function Documentation

+ +

◆ GetTag()

+ +
+
+ + + + + +
+ + + + + + + +
virtual uint64_t sw::MenuItem::GetTag ()
+
+overridevirtual
+
+ +

获取Tag

+ +

Implements sw::ITag.

+ +
+
+ +

◆ SetTag()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::MenuItem::SetTag (uint64_t tag)
+
+overridevirtual
+
+ +

设置Tag

+ +

Implements sw::ITag.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_menu_item.js b/docs/classsw_1_1_menu_item.js new file mode 100644 index 00000000..fae532b6 --- /dev/null +++ b/docs/classsw_1_1_menu_item.js @@ -0,0 +1,14 @@ +var classsw_1_1_menu_item = +[ + [ "MenuItem", "classsw_1_1_menu_item.html#a45cb03eb9423fbe1c187f237ec89377a", null ], + [ "MenuItem", "classsw_1_1_menu_item.html#af68934d85fe10b3b01bf4038d66275e4", null ], + [ "MenuItem", "classsw_1_1_menu_item.html#a7f24130f1770af6fce9792fb41cba522", null ], + [ "CallCommand", "classsw_1_1_menu_item.html#a1b1b34eaed41f83ca8e6072c0db486a0", null ], + [ "GetTag", "classsw_1_1_menu_item.html#a1187cb70902ab261b8302e7c0c561da9", null ], + [ "IsSeparator", "classsw_1_1_menu_item.html#a136e71998ffff40e3d165749ba7f7306", null ], + [ "SetTag", "classsw_1_1_menu_item.html#ab0b1236f09532f993324f76c07c7b8c7", null ], + [ "command", "classsw_1_1_menu_item.html#a7723b9fa2888c82ed5c61875ef077aad", null ], + [ "subItems", "classsw_1_1_menu_item.html#ac8e01802bb6cc6f1336025819050f3c4", null ], + [ "tag", "classsw_1_1_menu_item.html#a71e23c18ace7346f28415ed747d80905", null ], + [ "text", "classsw_1_1_menu_item.html#a0f67fc28cb879876a328495035031979", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_menu_item.png b/docs/classsw_1_1_menu_item.png new file mode 100644 index 0000000000000000000000000000000000000000..194816039ea5a5d5538c5c6c946828389628c296 GIT binary patch literal 437 zcmV;m0ZRUfP)vTJr#LVva2S`&=-}Ys|Ns9r%~qrU000SeQchC<|NsC0|NsC0Hv*f~0003% zNklC-rS7E~sx9U)a^Y9q)rzZ`T0;E=0n8v~K|LDbxRH{hfTRYm71LLqv2n z8xfH}gxqbDfrZ?i6@jJP*S!zws!K%qR99VfiHPc`tM0#XnVAJbY^}A+qwY7|*f$%q zw@ + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::MsgBox Member List
+
+
+ +

This is the complete list of members for sw::MsgBox, including all inherited members.

+ + + + + + + + + + + + + + + + +
OnCancel(const MsgBoxCallback &callback) const (defined in sw::MsgBox)sw::MsgBox
OnNo(const MsgBoxCallback &callback) const (defined in sw::MsgBox)sw::MsgBox
OnOk(const MsgBoxCallback &callback) const (defined in sw::MsgBox)sw::MsgBox
OnYes(const MsgBoxCallback &callback) const (defined in sw::MsgBox)sw::MsgBox
result (defined in sw::MsgBox)sw::MsgBox
Show(const WndBase *owner, const std::wstring &text=L"", const std::wstring &caption=L"", MsgBoxButton button=MsgBoxButton::Ok) (defined in sw::MsgBox)sw::MsgBoxstatic
Show(const WndBase &owner, const std::wstring &text=L"", const std::wstring &caption=L"", MsgBoxButton button=MsgBoxButton::Ok) (defined in sw::MsgBox)sw::MsgBoxstatic
ShowError(const WndBase *owner, const std::wstring &text=L"", const std::wstring &caption=L"", MsgBoxButton button=MsgBoxButton::Ok) (defined in sw::MsgBox)sw::MsgBoxstatic
ShowError(const WndBase &owner, const std::wstring &text=L"", const std::wstring &caption=L"", MsgBoxButton button=MsgBoxButton::Ok) (defined in sw::MsgBox)sw::MsgBoxstatic
ShowInfo(const WndBase *owner, const std::wstring &text=L"", const std::wstring &caption=L"", MsgBoxButton button=MsgBoxButton::Ok) (defined in sw::MsgBox)sw::MsgBoxstatic
ShowInfo(const WndBase &owner, const std::wstring &text=L"", const std::wstring &caption=L"", MsgBoxButton button=MsgBoxButton::Ok) (defined in sw::MsgBox)sw::MsgBoxstatic
ShowQuestion(const WndBase *owner, const std::wstring &text=L"", const std::wstring &caption=L"", MsgBoxButton button=MsgBoxButton::YesNo) (defined in sw::MsgBox)sw::MsgBoxstatic
ShowQuestion(const WndBase &owner, const std::wstring &text=L"", const std::wstring &caption=L"", MsgBoxButton button=MsgBoxButton::YesNo) (defined in sw::MsgBox)sw::MsgBoxstatic
ShowWarning(const WndBase *owner, const std::wstring &text=L"", const std::wstring &caption=L"", MsgBoxButton button=MsgBoxButton::Ok) (defined in sw::MsgBox)sw::MsgBoxstatic
ShowWarning(const WndBase &owner, const std::wstring &text=L"", const std::wstring &caption=L"", MsgBoxButton button=MsgBoxButton::Ok) (defined in sw::MsgBox)sw::MsgBoxstatic
+
+ + + + diff --git a/docs/classsw_1_1_msg_box.html b/docs/classsw_1_1_msg_box.html new file mode 100644 index 00000000..77bcdc75 --- /dev/null +++ b/docs/classsw_1_1_msg_box.html @@ -0,0 +1,177 @@ + + + + + + + +SimpleWindow: sw::MsgBox Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+ +

消息框类 + More...

+ +

#include <MsgBox.h>

+ + + + + + + + + + +

+Public Member Functions

+const MsgBoxOnOk (const MsgBoxCallback &callback) const
 
+const MsgBoxOnYes (const MsgBoxCallback &callback) const
 
+const MsgBoxOnNo (const MsgBoxCallback &callback) const
 
+const MsgBoxOnCancel (const MsgBoxCallback &callback) const
 
+ + + + + + + + + + + + + + + + + + + + + +

+Static Public Member Functions

+static MsgBox Show (const WndBase *owner, const std::wstring &text=L"", const std::wstring &caption=L"", MsgBoxButton button=MsgBoxButton::Ok)
 
+static MsgBox Show (const WndBase &owner, const std::wstring &text=L"", const std::wstring &caption=L"", MsgBoxButton button=MsgBoxButton::Ok)
 
+static MsgBox ShowInfo (const WndBase *owner, const std::wstring &text=L"", const std::wstring &caption=L"", MsgBoxButton button=MsgBoxButton::Ok)
 
+static MsgBox ShowInfo (const WndBase &owner, const std::wstring &text=L"", const std::wstring &caption=L"", MsgBoxButton button=MsgBoxButton::Ok)
 
+static MsgBox ShowError (const WndBase *owner, const std::wstring &text=L"", const std::wstring &caption=L"", MsgBoxButton button=MsgBoxButton::Ok)
 
+static MsgBox ShowError (const WndBase &owner, const std::wstring &text=L"", const std::wstring &caption=L"", MsgBoxButton button=MsgBoxButton::Ok)
 
+static MsgBox ShowWarning (const WndBase *owner, const std::wstring &text=L"", const std::wstring &caption=L"", MsgBoxButton button=MsgBoxButton::Ok)
 
+static MsgBox ShowWarning (const WndBase &owner, const std::wstring &text=L"", const std::wstring &caption=L"", MsgBoxButton button=MsgBoxButton::Ok)
 
+static MsgBox ShowQuestion (const WndBase *owner, const std::wstring &text=L"", const std::wstring &caption=L"", MsgBoxButton button=MsgBoxButton::YesNo)
 
+static MsgBox ShowQuestion (const WndBase &owner, const std::wstring &text=L"", const std::wstring &caption=L"", MsgBoxButton button=MsgBoxButton::YesNo)
 
+ + + +

+Public Attributes

+MsgBoxResult result
 
+

Detailed Description

+

消息框类

+

The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_panel-members.html b/docs/classsw_1_1_panel-members.html new file mode 100644 index 00000000..8bacdecf --- /dev/null +++ b/docs/classsw_1_1_panel-members.html @@ -0,0 +1,322 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::Panel Member List
+
+
+ +

This is the complete list of members for sw::Panel, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AddChild(UIElement *element)sw::UIElement
AddChild(UIElement &element)sw::UIElement
AddChild(UIElement *element, uint64_t layoutTag)sw::UIElement
AddChild(UIElement &element, uint64_t layoutTag)sw::UIElement
Arrange(const sw::Rect &finalPosition) overridesw::PanelBasevirtual
AutoSizesw::Layer
BackColorsw::UIElement
BorderStylesw::Panel
ChildCountsw::UIElement
ClearChildren()sw::UIElement
ClientHeightsw::WndBase
ClientRectsw::WndBase
ClientWidthsw::WndBase
Close()sw::WndBase
CollapseWhenHidesw::UIElement
ContextMenusw::UIElement
Control()sw::Controlprotected
DefaultWndProc(const ProcMsg &refMsg)sw::WndBaseprotected
DisableLayout()sw::Layer
Enabledsw::WndBase
EnableLayout()sw::Layer
Floatsw::UIElement
Focusedsw::WndBase
Fontsw::WndBase
FontChanged(HFONT hfont)sw::WndBaseprotectedvirtual
FontNamesw::WndBase
FontSizesw::WndBase
FontWeightsw::WndBase
GetArrangeOffsetX()sw::UIElementprotected
GetArrangeOffsetY()sw::UIElementprotected
GetChildBottommost(bool update)sw::UIElementprotected
GetChildLayoutAt(int index) overridesw::UIElementvirtual
GetChildLayoutCount() overridesw::UIElementvirtual
GetChildRightmost(bool update)sw::UIElementprotected
GetDefaultLayout()sw::Layerprotectedvirtual
GetDesireSize() overridesw::UIElementvirtual
GetExtendedStyle()sw::WndBaseprotected
GetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
GetFontHandle()sw::WndBaseprotected
GetHorizontalScrollPageSize()sw::Layer
GetHorizontalScrollRange(double &refMin, double &refMax)sw::Layer
GetLayoutTag() overridesw::UIElementvirtual
GetNextElement()sw::UIElement
GetNextTabStopElement()sw::UIElement
GetRealBackColor()sw::UIElement
GetRealTextColor()sw::UIElement
GetRootElement()sw::UIElement
GetStyle()sw::WndBaseprotected
GetStyle(LONG_PTR style)sw::WndBaseprotected
GetTag() overridesw::UIElementvirtual
GetText()sw::WndBaseprotectedvirtual
GetVerticalScrollPageSize()sw::Layer
GetVerticalScrollRange(double &refMin, double &refMax)sw::Layer
GetWndBase(HWND hwnd)sw::WndBasestatic
Handlesw::WndBase
HandleChenged()sw::Controlprotectedvirtual
HandleInitialized(HWND hwnd)sw::WndBaseprotectedvirtual
Heightsw::WndBase
HorizontalAlignmentsw::UIElement
HorizontalScrollBarsw::Layer
HorizontalScrollLimitsw::Layer
HorizontalScrollPossw::Layer
IndexOf(UIElement *element)sw::UIElement
IndexOf(UIElement &element)sw::UIElement
InheritTextColorsw::UIElement
InitControl(LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
InitWindow(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
IsControl()sw::WndBase
IsDestroyedsw::WndBase
IsRootElement()sw::UIElement
IsRoutedEventRegistered(RoutedEventType eventType)sw::UIElement
IsVisible()sw::WndBase
Layer()sw::Layerprotected
Layoutsw::Layer
LayoutTagsw::UIElement
Leftsw::WndBase
Marginsw::UIElement
Measure(const Size &availableSize) overridesw::PanelBasevirtual
MoveToBottom()sw::UIElement
MoveToTop()sw::UIElement
NcHitTest(const Point &testPoint)sw::WndBase
NotifyLayoutUpdated()sw::UIElementprotected
OnAcceleratorCommand(int id)sw::WndBaseprotectedvirtual
OnAddedChild(UIElement &element)sw::UIElementprotectedvirtual
OnChar(wchar_t ch, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnClose() overridesw::UIElementprotectedvirtual
OnColor(HDC hdc, HBRUSH &hRetBrush) overridesw::UIElementprotectedvirtual
OnCommand(int code)sw::WndBaseprotectedvirtual
OnContextMenu(bool isKeyboardMsg, Point mousePosition) overridesw::UIElementprotectedvirtual
OnControlCommand(WndBase *pControl, int code, int id)sw::WndBaseprotectedvirtual
OnCreate()sw::WndBaseprotectedvirtual
OnCtlColor(WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)sw::WndBaseprotectedvirtual
OnDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnDestroy()sw::WndBaseprotectedvirtual
OnDrawFocusRect()sw::UIElementprotectedvirtual
OnDrawItem(int id, DRAWITEMSTRUCT *pDrawItem)sw::WndBaseprotectedvirtual
OnEnabledChanged(bool newValue)sw::WndBaseprotectedvirtual
OnEndPaint() overridesw::UIElementprotectedvirtual
OnEraseBackground(int &result)sw::WndBaseprotectedvirtual
OnHorizontalScroll(int event, int pos) overridesw::PanelBaseprotectedvirtual
OnKeyDown(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKeyUp(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKillFocus(HWND hNextFocus) overridesw::UIElementprotectedvirtual
OnMenuCommand(int id) overridesw::UIElementprotectedvirtual
OnMouseLeave() overridesw::UIElementprotectedvirtual
OnMouseLeftButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseLeftButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseMiddleButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMove(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseRightButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseWheel(int wheelDelta, Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMove(Point newClientPosition) overridesw::UIElementprotectedvirtual
OnNcHitTest(const Point &testPoint, HitTestResult &result)sw::WndBaseprotectedvirtual
OnNotified(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnNotify(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnPaint() overridesw::Panelprotectedvirtual
OnRemovedChild(UIElement &element)sw::UIElementprotectedvirtual
OnScroll(ScrollOrientation scrollbar, ScrollEvent event, double pos)sw::Layerprotectedvirtual
OnSetCursor(HWND hwnd, HitTestResult hitTest, int message, bool &result) overridesw::UIElementprotectedvirtual
OnSetFocus(HWND hPrevFocus) overridesw::UIElementprotectedvirtual
OnSize(Size newClientSize) overridesw::Panelprotectedvirtual
OnSysChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyDown(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyUp(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnTabStop()sw::UIElementprotectedvirtual
OnTextChanged() overridesw::UIElementprotectedvirtual
OnVerticalScroll(int event, int pos) overridesw::PanelBaseprotectedvirtual
operator=(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator=(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator[](int index) constsw::UIElement
Panel()sw::Panel
PanelBase()sw::PanelBaseprotected
Parentsw::UIElement
ParentChanged(WndBase *newParent) overridesw::UIElementprotectedvirtual
PointFromScreen(const Point &screenPoint)sw::WndBase
PointToScreen(const Point &point)sw::WndBase
RaiseRoutedEvent(RoutedEventType eventType)sw::UIElementprotected
RaiseRoutedEvent(RoutedEventArgs &eventArgs)sw::UIElementprotected
Rectsw::WndBase
Redraw(bool erase=false)sw::WndBase
RegisterRoutedEvent(RoutedEventType eventType, const RoutedEvent &handler)sw::UIElement
RegisterRoutedEvent(RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))sw::UIElementinline
RegisterRoutedEvent(std::function< void(UIElement &, TEventArgs &)> handler)sw::UIElementinline
RegisterRoutedEvent(THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))sw::UIElementinline
RemoveChild(UIElement *element)sw::UIElement
RemoveChild(UIElement &element)sw::UIElement
RemoveChildAt(int index)sw::UIElement
ResetCursor()sw::UIElement
ResetHandle()sw::Controlprotected
ScrollHorizontal(double offset)sw::Layer
ScrollToBottom()sw::Layer
ScrollToLeft()sw::Layer
ScrollToRight()sw::Layer
ScrollToTop()sw::Layer
ScrollVertical(double offset)sw::Layer
SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase
SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement
SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual
SetCursor(HCURSOR hCursor)sw::UIElement
SetCursor(StandardCursor cursor)sw::UIElement
SetDesireSize(const Size &size) overridesw::UIElementvirtual
SetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
SetExtendedStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetHorizontalScrollPageSize(double pageSize)sw::Layer
SetHorizontalScrollRange(double min, double max)sw::Layer
SetNextTabStopFocus()sw::UIElementprotected
SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual
SetStyle(LONG_PTR style)sw::WndBaseprotected
SetStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetTag(uint64_t tag) overridesw::UIElementvirtual
SetText(const std::wstring &value)sw::WndBaseprotectedvirtual
SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual
SetVerticalScrollPageSize(double pageSize)sw::Layer
SetVerticalScrollRange(double min, double max)sw::Layer
Show(int nCmdShow)sw::WndBase
ShowContextMenu(const Point &point)sw::UIElement
TabStopsw::UIElement
Tagsw::UIElement
Textsw::WndBase
TextColorsw::UIElement
Topsw::WndBase
Transparentsw::UIElement
UIElement()sw::UIElementprotected
UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement
Update()sw::WndBase
UpdateChildrenZOrder()sw::UIElementprotected
UpdateFont()sw::WndBase
UpdateLayout()sw::Layerprotected
UpdateScrollRange()sw::Layer
UpdateSiblingsZOrder()sw::UIElementprotected
UpdateText()sw::WndBaseprotected
VerticalAlignmentsw::UIElement
VerticalScrollBarsw::Layer
VerticalScrollLimitsw::Layer
VerticalScrollPossw::Layer
Visiblesw::WndBase
VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual
Widthsw::WndBase
WndBase()sw::WndBaseprotected
WndBase(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndBase(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual
~Control()=0sw::Controlpure virtual
~Layer()=0sw::Layerpure virtual
~PanelBase()=0sw::PanelBasepure virtual
~UIElement()=0sw::UIElementpure virtual
~WndBase()=0sw::WndBasepure virtual
+
+ + + + diff --git a/docs/classsw_1_1_panel.html b/docs/classsw_1_1_panel.html new file mode 100644 index 00000000..7302982a --- /dev/null +++ b/docs/classsw_1_1_panel.html @@ -0,0 +1,992 @@ + + + + + + + +SimpleWindow: sw::Panel Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+ +

面板 + More...

+ +

#include <Panel.h>

+
+Inheritance diagram for sw::Panel:
+
+
+ + +sw::PanelBase +sw::Control +sw::Layer +sw::UIElement +sw::UIElement +sw::WndBase +sw::ILayout +sw::ITag +sw::WndBase +sw::ILayout +sw::ITag +sw::Canvas +sw::DockPanel +sw::Grid +sw::StackPanel +sw::UniformGrid +sw::WrapPanel + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

Panel ()
 初始化面板
 
- Public Member Functions inherited from sw::PanelBase
+virtual ~PanelBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const sw::Rect &finalPosition) override
 安排控件位置
 
- Public Member Functions inherited from sw::Control
+virtual ~Control ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
- Public Member Functions inherited from sw::UIElement
+virtual ~UIElement ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
void RegisterRoutedEvent (RoutedEventType eventType, const RoutedEvent &handler)
 注册路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename T >
void RegisterRoutedEvent (RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))
 注册成员函数作为路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename TEventArgs , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (std::function< void(UIElement &, TEventArgs &)> handler)
 根据事件参数类型注册路由事件
 
template<typename TEventArgs , typename THandleObj , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))
 根据事件参数类型注册成员函数作为路由事件
 
void UnregisterRoutedEvent (RoutedEventType eventType)
 取消对应类型路由事件的注册
 
bool IsRoutedEventRegistered (RoutedEventType eventType)
 判断路由事件是否已被注册
 
bool AddChild (UIElement *element)
 添加子控件
 
bool AddChild (UIElement &element)
 添加子控件
 
bool AddChild (UIElement *element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool AddChild (UIElement &element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool RemoveChildAt (int index)
 移除指定索引处的子控件
 
bool RemoveChild (UIElement *element)
 移除子控件
 
bool RemoveChild (UIElement &element)
 移除子控件
 
+void ClearChildren ()
 移除所有子控件
 
int IndexOf (UIElement *element)
 获取指定元素的索引
 
int IndexOf (UIElement &element)
 获取指定元素的索引
 
+UIElementoperator[] (int index) const
 通过索引获取子控件
 
void ShowContextMenu (const Point &point)
 弹出当前元素的上下文菜单
 
+void MoveToTop ()
 移动到界面顶部
 
+void MoveToBottom ()
 移动到界面底部
 
+bool IsRootElement ()
 判断当前元素是否为根节点
 
+UIElementGetRootElement ()
 获取当前元素所在界面树的根节点
 
+UIElementGetNextElement ()
 获取当前元素在界面树上的下一个节点,若已是最后一个节点则返回根节点
 
+UIElementGetNextTabStopElement ()
 获取下一个TabStop属性为true的元素
 
+Color GetRealBackColor ()
 获取当前要显示的背景颜色:当Transparent为true时获取到祖先节点中首个Transparent为false的背景颜色,否则返回当前元素的背景颜色
 
+Color GetRealTextColor ()
 获取当前要显示的文本颜色:当InheritTextColor为true时获取到祖先节点中首个InheritTextColor为false的文本颜色,否则返回当前元素的文本颜色
 
void SetCursor (HCURSOR hCursor)
 设置鼠标样式
 
void SetCursor (StandardCursor cursor)
 设置鼠标样式
 
+void ResetCursor ()
 将鼠标样式设置为默认样式
 
void SetAlignment (sw::HorizontalAlignment horz, sw::VerticalAlignment vert)
 设置对齐方式
 
virtual uint64_t GetTag () override
 获取Tag
 
virtual void SetTag (uint64_t tag) override
 设置Tag
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取参与布局的子控件数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取对应索引处的子控件,使用此函数前必须先调用GetChildLayoutCount
 
virtual Size GetDesireSize () override
 获取控件所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置当前控件所需的尺寸
 
- Public Member Functions inherited from sw::WndBase
+virtual ~WndBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void Show (int nCmdShow)
 该函数调用ShowWindow
 
+void Close ()
 发送关闭消息
 
+void Update ()
 该函数调用UpdateWindow
 
+void UpdateFont ()
 更新字体
 
void Redraw (bool erase=false)
 重画
 
+bool IsControl ()
 判断当前对象是否是控件
 
+bool IsVisible ()
 判断当前对象在界面中是否可视,与Visible属性不同的是该函数返回值会受父窗口的影响
 
Point PointToScreen (const Point &point)
 获取用户区点在屏幕上点的位置
 
Point PointFromScreen (const Point &screenPoint)
 获取屏幕上点在当前用户区点的位置
 
+LRESULT SendMessageW (UINT uMsg, WPARAM wParam, LPARAM lParam)
 发送消息
 
HitTestResult NcHitTest (const Point &testPoint)
 测试指定点在窗口的哪一部分
 
- Public Member Functions inherited from sw::Layer
+virtual ~Layer ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void DisableLayout ()
 禁用布局
 
+void EnableLayout ()
 启用布局
 
void GetHorizontalScrollRange (double &refMin, double &refMax)
 获取横向滚动条的范围
 
void GetVerticalScrollRange (double &refMin, double &refMax)
 获取纵向滚动条的范围
 
void SetHorizontalScrollRange (double min, double max)
 设置横向滚动条的范围
 
void SetVerticalScrollRange (double min, double max)
 设置纵向滚动条的范围
 
+double GetHorizontalScrollPageSize ()
 获取水平滚动条滚动页面大小
 
+double GetVerticalScrollPageSize ()
 获取垂直滚动条滚动页面大小
 
+void SetHorizontalScrollPageSize (double pageSize)
 设置水平滚动条滚动页面大小
 
+void SetVerticalScrollPageSize (double pageSize)
 设置垂直滚动条滚动页面大小
 
+void UpdateScrollRange ()
 根据子元素更新滚动条范围,未设定布局方式时该函数无效
 
+void ScrollToTop ()
 将垂直滚动条移动到顶部
 
+void ScrollToBottom ()
 将垂直滚动条移动到底部
 
+void ScrollToLeft ()
 将水平滚动条移动到最左
 
+void ScrollToRight ()
 将水平滚动条移动到最右
 
void ScrollHorizontal (double offset)
 水平滚动
 
void ScrollVertical (double offset)
 垂直滚动
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Attributes

+const Property< sw::BorderStyle > BorderStyle
 边框样式
 
- Public Attributes inherited from sw::UIElement
+const Property< ThicknessMargin
 边距
 
+const Property< HorizontalAlignment > HorizontalAlignment
 水平对齐方式
 
+const Property< VerticalAlignment > VerticalAlignment
 垂直对齐方式
 
+const ReadOnlyProperty< intChildCount
 子控件数量
 
+const Property< boolCollapseWhenHide
 是否在不可见时不参与布局
 
+const ReadOnlyProperty< UIElement * > Parent
 指向父元素的指针,当前元素为顶级窗口时该值为nullptr
 
+const Property< uint64_tTag
 储存用户自定义信息的标记
 
+const Property< uint64_tLayoutTag
 布局标记,对于不同的布局有不同含义
 
+const Property< sw::ContextMenu * > ContextMenu
 右键按下时弹出的菜单
 
+const Property< boolFloat
 元素是否悬浮,若元素悬浮则该元素不会随滚动条滚动而改变位置
 
+const Property< boolTabStop
 表示用户是否可以通过按下Tab键将焦点移动到当前元素
 
+const Property< ColorBackColor
 背景颜色,修改该属性会同时将Transparent属性设为false,对于部分控件该属性可能不生效
 
+const Property< ColorTextColor
 文本颜色,修改该属性会同时将InheritTextColor属性设为false,对于部分控件该属性可能不生效
 
+const Property< boolTransparent
 是否使用透明背景(此属性并非真正意义上的透明,将该属性设为true可继承父元素的背景颜色)
 
+const Property< boolInheritTextColor
 是否继承父元素的文本颜色
 
- Public Attributes inherited from sw::WndBase
+const ReadOnlyProperty< HWNDHandle
 窗口句柄
 
+const Property< sw::FontFont
 字体
 
+const Property< std::wstring > FontName
 字体名称
 
+const Property< doubleFontSize
 字体大小
 
+const Property< sw::FontWeight > FontWeight
 字体粗细
 
+const Property< sw::RectRect
 位置和尺寸
 
+const Property< doubleLeft
 左边
 
+const Property< doubleTop
 顶边
 
+const Property< doubleWidth
 宽度
 
+const Property< doubleHeight
 高度
 
+const ReadOnlyProperty< sw::RectClientRect
 用户区尺寸
 
+const ReadOnlyProperty< doubleClientWidth
 用户区宽度
 
+const ReadOnlyProperty< doubleClientHeight
 用户区高度
 
+const Property< boolEnabled
 窗口或控件是否可用
 
+const Property< boolVisible
 窗口或控件是否可见
 
+const Property< std::wstring > Text
 窗口标题或控件文本
 
+const Property< boolFocused
 窗口是否拥有焦点
 
+const ReadOnlyProperty< WndBase * > Parent
 父窗口
 
+const ReadOnlyProperty< boolIsDestroyed
 是否已销毁,当该值为true时不应该继续使用当前对象
 
- Public Attributes inherited from sw::Layer
+const Property< LayoutHost * > Layout
 自定义的布局方式,赋值后将自动与所指向的布局关联,每个布局只能关联一个对象,设为nullptr可恢复默认布局
 
+const Property< boolAutoSize
 是否按照布局方式与子元素自动调整尺寸,该属性仅在当前元素已设置布局方式并且非顶级元素时有效
 
+const Property< boolHorizontalScrollBar
 是否显示横向滚动条
 
+const Property< boolVerticalScrollBar
 是否显示纵向滚动条
 
+const Property< doubleHorizontalScrollPos
 横向滚动条位置
 
+const Property< doubleVerticalScrollPos
 纵向滚动条位置
 
+const ReadOnlyProperty< doubleHorizontalScrollLimit
 横向滚动条可设置的最大位置
 
+const ReadOnlyProperty< doubleVerticalScrollLimit
 纵向滚动条可设置的最大位置
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Protected Member Functions

virtual bool OnPaint () override
 接收到WM_PAINT时调用该函数
 
virtual bool OnSize (Size newClientSize) override
 接收到WM_SIZE时调用该函数
 
- Protected Member Functions inherited from sw::PanelBase
PanelBase ()
 初始化PanelBase
 
virtual bool OnVerticalScroll (int event, int pos) override
 接收到WM_VSCROLL时调用目标控件的该函数
 
virtual bool OnHorizontalScroll (int event, int pos) override
 接收到WM_HSCROLL时调用目标控件的该函数
 
- Protected Member Functions inherited from sw::Control
Control ()
 初始化控件
 
+void ResetHandle ()
 销毁控件句柄并重新初始化,该操作会创建新的句柄并设置样式、文本、字体等
 
+virtual void HandleChenged ()
 控件句柄发生改变时调用该函数
 
- Protected Member Functions inherited from sw::UIElement
UIElement ()
 初始化UIElement
 
void RaiseRoutedEvent (RoutedEventType eventType)
 触发路由事件
 
void RaiseRoutedEvent (RoutedEventArgs &eventArgs)
 触发路由事件
 
+void NotifyLayoutUpdated ()
 通知顶级窗口布局改变
 
+doubleGetArrangeOffsetX ()
 获取Arrange时子元素的水平偏移量
 
+doubleGetArrangeOffsetY ()
 获取Arrange时子元素的垂直偏移量
 
double GetChildRightmost (bool update)
 获取所有子元素在当前元素中最右边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
double GetChildBottommost (bool update)
 获取所有子元素在当前元素中最底边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
+void UpdateChildrenZOrder ()
 更新子元素的Z轴位置
 
+void UpdateSiblingsZOrder ()
 更新兄弟元素的Z轴位置
 
+void SetNextTabStopFocus ()
 设置下一个TabStop属性为true的元素为焦点元素
 
virtual void SetBackColor (Color color, bool redraw)
 设置背景颜色
 
virtual void SetTextColor (Color color, bool redraw)
 设置文本颜色
 
virtual void OnAddedChild (UIElement &element)
 添加子元素后调用该函数
 
virtual void OnRemovedChild (UIElement &element)
 移除子元素后调用该函数
 
+virtual void OnTabStop ()
 通过tab键将焦点移动到当前元素时调用该函数
 
virtual void OnDrawFocusRect ()
 绘制虚线框时调用该函数
 
virtual bool SetParent (WndBase *parent) override
 设置父窗口
 
virtual void ParentChanged (WndBase *newParent) override
 父窗口改变时调用此函数
 
virtual void OnEndPaint () override
 在OnPaint函数完成之后调用该函数
 
virtual bool OnClose () override
 接收到WM_CLOSE时调用该函数
 
virtual bool OnMove (Point newClientPosition) override
 接收到WM_MOVE时调用该函数
 
virtual void OnTextChanged () override
 Text属性更改时调用此函数
 
virtual void VisibleChanged (bool newVisible) override
 Visible属性改变时调用此函数
 
virtual bool OnSetFocus (HWND hPrevFocus) override
 接收到WM_SETFOCUS时调用该函数
 
virtual bool OnKillFocus (HWND hNextFocus) override
 接收到WM_KILLFOCUS时调用该函数
 
virtual bool OnChar (wchar_t ch, KeyFlags flags) override
 接收到WM_CHAR时调用该函数
 
virtual bool OnKeyDown (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYDOWN时调用该函数
 
virtual bool OnKeyUp (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYUP时调用该函数
 
virtual bool OnMouseMove (Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEMOVE时调用该函数
 
virtual bool OnMouseLeave () override
 接收到WM_MOUSELEAVE时调用该函数
 
virtual bool OnMouseWheel (int wheelDelta, Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEWHEEL时调用该函数
 
virtual bool OnMouseLeftButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONDOWN时调用该函数
 
virtual bool OnMouseLeftButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONUP时调用该函数
 
virtual bool OnMouseRightButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONDOWN时调用该函数
 
virtual bool OnMouseRightButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONUP时调用该函数
 
virtual bool OnMouseMiddleButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONDOWN时调用该函数
 
virtual bool OnMouseMiddleButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONUP时调用该函数
 
virtual bool OnContextMenu (bool isKeyboardMsg, Point mousePosition) override
 接收到WM_CONTEXTMENU后调用目标控件的该函数
 
virtual void OnMenuCommand (int id) override
 当WM_COMMAND接收到菜单命令时调用该函数
 
virtual bool OnColor (HDC hdc, HBRUSH &hRetBrush) override
 父窗口接收到WM_CTLCOLORxxx时调用对应控件的该函数
 
virtual bool OnSetCursor (HWND hwnd, HitTestResult hitTest, int message, bool &result) override
 接收到WM_SETCURSOR消息时调用该函数
 
- Protected Member Functions inherited from sw::WndBase
WndBase ()
 初始化WndBase
 
WndBase (const WndBase &)=delete
 
WndBase (WndBase &&)=delete
 
+WndBaseoperator= (const WndBase &)=delete
 
+WndBaseoperator= (WndBase &&)=delete
 
+void InitWindow (LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为窗口,该函数会调用CreateWindowExW
 
+void InitControl (LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为控件,该函数会调用CreateWindowExW
 
+LONG_PTR GetStyle ()
 获取窗口样式
 
+void SetStyle (LONG_PTR style)
 设置窗口样式
 
+bool GetStyle (LONG_PTR style)
 获取窗口的某个样式
 
+void SetStyle (LONG_PTR style, bool value)
 设置窗口的某个样式
 
+LONG_PTR GetExtendedStyle ()
 获取扩展窗口样式
 
+void SetExtendedStyle (LONG_PTR style)
 设置扩展窗口样式
 
+bool GetExtendedStyle (LONG_PTR style)
 获取窗口的某个扩展样式
 
+void SetExtendedStyle (LONG_PTR style, bool value)
 设置窗口的某个扩展样式
 
+HFONT GetFontHandle ()
 获取字体句柄
 
+LRESULT DefaultWndProc (const ProcMsg &refMsg)
 调用默认的WndProc,对于窗口则调用DefWindowProcW,控件则调用_controlOldWndProc
 
virtual LRESULT WndProc (const ProcMsg &refMsg)
 对WndProc的封装
 
+void UpdateText ()
 更新_text字段
 
virtual std::wstring & GetText ()
 获取窗口文本
 
virtual void SetText (const std::wstring &value)
 调用SetWindowTextW设置窗口文本
 
virtual bool OnCreate ()
 接收到WM_CREATE时调用该函数
 
virtual bool OnDestroy ()
 接收到WM_DESTROY时调用该函数
 
virtual bool OnMouseLeftButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_LBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseRightButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_RBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseMiddleButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_MBUTTONDBLCLK时调用该函数
 
virtual bool OnDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_DEADCHAR时调用该函数
 
virtual bool OnSysChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSCHAR时调用该函数
 
virtual bool OnSysDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSDEADCHAR时调用该函数
 
virtual bool OnSysKeyDown (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYDOWN时调用该函数
 
virtual bool OnSysKeyUp (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYUP时调用该函数
 
virtual void OnCommand (int code)
 当父窗口接收到控件的WM_COMMAND时调用该函数
 
virtual void OnControlCommand (WndBase *pControl, int code, int id)
 当WM_COMMAND接收到控件命令时调用该函数
 
virtual void OnAcceleratorCommand (int id)
 当WM_COMMAND接收到快捷键命令时调用该函数
 
virtual void HandleInitialized (HWND hwnd)
 窗口句柄初始化完成
 
virtual void FontChanged (HFONT hfont)
 字体改变时调用该函数
 
virtual bool OnNotify (NMHDR *pNMHDR)
 接收到WM_NOTIFY后调用该函数
 
virtual void OnNotified (NMHDR *pNMHDR)
 父窗口接收到WM_NOTIFY后调用发出通知控件的该函数
 
virtual bool OnEnabledChanged (bool newValue)
 接收到WM_ENABLE时调用该函数
 
virtual bool OnCtlColor (WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)
 接收到WM_CTLCOLORxxx时调用该函数
 
virtual void OnNcHitTest (const Point &testPoint, HitTestResult &result)
 接收到WM_NCHITTEST后调用该函数
 
virtual bool OnEraseBackground (int &result)
 接收到WM_ERASEBKGND时调用该函数
 
virtual bool OnDrawItem (int id, DRAWITEMSTRUCT *pDrawItem)
 接收到WM_DRAWITEM时调用该函数
 
- Protected Member Functions inherited from sw::Layer
Layer ()
 初始化Layer
 
+void UpdateLayout ()
 更新布局
 
virtual LayoutHostGetDefaultLayout ()
 获取默认布局对象
 
virtual void OnScroll (ScrollOrientation scrollbar, ScrollEvent event, double pos)
 触发滚动条相关事件时调用该函数
 
+ + + + + +

+Additional Inherited Members

- Static Public Member Functions inherited from sw::WndBase
static WndBaseGetWndBase (HWND hwnd)
 通过窗口句柄获取WndBase
 
+

Detailed Description

+

面板

+

Member Function Documentation

+ +

◆ OnPaint()

+ +
+
+ + + + + +
+ + + + + + + +
virtual bool sw::Panel::OnPaint ()
+
+overrideprotectedvirtual
+
+ +

接收到WM_PAINT时调用该函数

+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented from sw::WndBase.

+ +
+
+ +

◆ OnSize()

+ +
+
+ + + + + +
+ + + + + + + +
virtual bool sw::Panel::OnSize (Size newClientSize)
+
+overrideprotectedvirtual
+
+ +

接收到WM_SIZE时调用该函数

+
Parameters
+ + +
newClientSize改变后的用户区尺寸
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented from sw::UIElement.

+ +
+
+
The documentation for this class was generated from the following file:
    +
  • D:/code/GitHub/sw/sw/inc/Panel.h
  • +
+
+
+ + + + diff --git a/docs/classsw_1_1_panel.js b/docs/classsw_1_1_panel.js new file mode 100644 index 00000000..068a482c --- /dev/null +++ b/docs/classsw_1_1_panel.js @@ -0,0 +1,7 @@ +var classsw_1_1_panel = +[ + [ "Panel", "classsw_1_1_panel.html#a937db7d8878602d93eead371e0aab655", null ], + [ "OnPaint", "classsw_1_1_panel.html#ab57a6afea25cdefeea622ff364727a8e", null ], + [ "OnSize", "classsw_1_1_panel.html#a655497d6bdbf760e34df1d799d89b009", null ], + [ "BorderStyle", "classsw_1_1_panel.html#aa7b04b11114891c5df7b84932fd3370f", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_panel.png b/docs/classsw_1_1_panel.png new file mode 100644 index 0000000000000000000000000000000000000000..b27eaf2e715f7edd38a6e0932c1f929354403737 GIT binary patch literal 3987 zcmb_fX;@QN8b&}C1w}+;$8j*ys(?}!St3$UDO&|Es9+FOL=-}dYzb>|BM7JrMg$Dv zlHtlCP>f12C_-d2C`O79h(si1Ndf`F5|X($F3vU4`TW;%a?6d}T(<9tTQtV%sVZ*MbbW_jx8f{c z`mCqAi0yOt#5Aqo{>_MGo|n_y2FrqV&U$kubk7FQd{<(v*3glb92oIWaBd^#3J4(Oy2l;2zgCNDN1_X^v2mqjdYd-)i*K7nqC7&`7R89{80EH4ifSE=vp0Nz65*?M6 zfVejMO=A@(VCw2a-~Eabg8>@S_{vi?e+fW1n?n|xAr4E7or(wsZZ{z*gK4fy{arfnC%=|N&{XM-h3=9wO zqYm><%@fNm)i-Yyp%=_IwZEY*p`sEbWDwE6ez6%~NFR6=1}V*8hD;pEiIrdf)GRI8 zXKbQc+WRCqbxiA^nuOibaSGglTF=9pgvpoo@r95e}%b&e)p%fe!(R3Q6{yEZBsf@W1gRENJeE^4_ zY(bDx5K{X?x4~gmnK`A8_AB}Ub)K;8*X%9@!`DDyxQnKKfYrrt0C3!;br;mz1v|rN zv8`HzAb7_n^#+TCt9$g%26Lb6XR^Ps7BF^Mai18MYNvLj?MV}LpO75!E>UuvNn@_n zz+DU%AZzuc_sDzFjKojESExAdvI-jrDi@Y0C4QFZa8h($?xU`E-if;%+^+CZW{vy} zphT`E2 zqnvjOgHblC%1{tDV3cPjGL);QVHAxVnd(2jDBx`8kZ+H`@RJX#= zliaV>c=dGb>;sxPA;jZpt(vjOUqPG*LF*uS{Nu$sIRYd;HG5v#EtMD~B`+hf_~^c* zrk)^pnN7E+ zyr@z9`>`$Gd!d$*g!zeuRykvxQW|RY<5Y-_9g?hy0cLCT*@DoP?$$oO#PV%23yG%& z%BDrSO_D4$j}d&|fLa*(JpN8WUEl(0I*7tRPY*u&bWljd?uGgLxHo}E>66q}$;k9! z#8@(I9bvO7zk0PTE{9?He(igU<1w8d?CiagrtQrwk5Ch5(Eie(RUcWP&ds;+MJ}5W z?;?;q^wNGOXxqjjk=5=CZeeVW``s%kmY6nG}6DpfA?i}fKd4bga;{@FqJ)xyg8Ea8LxB#(y+dMB3<(5P zZSXvAIN~GognOW5?t(eY_X;k)YU->Ux|rurt1Gqiji)z`55>J1e=VfJ(E3K*)cy8R z2KLG%0H7oUX)%7a!+aNCiM5N;O!zL26#zsx5Omk3Ku+F~+<-&HSlx-f@wQSt+$PcmmwA_XqQ|FXiH?69~$> zxtWc{X*SjlMp4zgLMLpWLm)GS%_&Ib;cK@CO}+dZo3E>dsR-mL3OECL^Q}HZ$MP%W z6%M-0AwSIkt+8P zX#B4#xfm_OV&}^0ZDD1VN)H_1qWpwZaH}mtcgAO59Jz>mIa#wuK%) z=tR0~-SW#xD6XATV&ff(=$HbJVb)7dcs$#o4T7J(4xeG*NlITNr3cDy8tfI2!ms%J zXBs*(VJ?i|1;lp5KFB_op>0HWuiFfbkHcf8o5r6B6agO!JX!PwS9hP#PVp9^i7Efy z@qD$L`715ZgQRo8I;cZ%y3vH&`6zGD6I6%t|B+rFfO%Bb!iz`3S3tGETGp|{`7CwM zU2u3iR3Dg5zwP-1KWHVxMSvLp_;zA?o*w z#3RgQM~LQ+e;MzrE1bVpF+PdK&tX`T{=k%pxkLG^9+^DFRkCx%ll7=N}Z(j{ zzP(dARLXyZpRg3NKLqSI+k)-JxM$c1hFivqnqM-B=URPgy4^_?ov(WnYX+?m{(0qk zbm{@#i4x9goPKU$#6ZcAwQ=M8VOF`wm*n0#6s$!g^s=~vR*#;A@Ycm0I^X^{l*3Gl zA9ctY7|q{`QtCS%X-!zF$M-qez^!+tGej}_!q#sXT!;5YQf@D*Gic=Gu17b;58YLm zt1*4iS6}i{q%;|_aL4oo3iqme=1S19$Y3X%9hef%5WY5Z;OF$Cq#iNHuB?IF>V3cy z9ZwDHFT0-IP`T$ll902j?Xh3Q&hg-d`=(|nT%>i~tKL@$`^uS)1ng8KNh*FS8o}lp zcXY;WnzTt$*S?Y(q}Zpe8#MA_@T5C>8TSkV-NYPqmiDBeA|rS&NRg2-PTNYS0L8-(4>4 z1DHR+&R10PwjmZO%+8*oJwC~8 + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::PanelBase Member List
+
+
+ +

This is the complete list of members for sw::PanelBase, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AddChild(UIElement *element)sw::UIElement
AddChild(UIElement &element)sw::UIElement
AddChild(UIElement *element, uint64_t layoutTag)sw::UIElement
AddChild(UIElement &element, uint64_t layoutTag)sw::UIElement
Arrange(const sw::Rect &finalPosition) overridesw::PanelBasevirtual
AutoSizesw::Layer
BackColorsw::UIElement
ChildCountsw::UIElement
ClearChildren()sw::UIElement
ClientHeightsw::WndBase
ClientRectsw::WndBase
ClientWidthsw::WndBase
Close()sw::WndBase
CollapseWhenHidesw::UIElement
ContextMenusw::UIElement
Control()sw::Controlprotected
DefaultWndProc(const ProcMsg &refMsg)sw::WndBaseprotected
DisableLayout()sw::Layer
Enabledsw::WndBase
EnableLayout()sw::Layer
Floatsw::UIElement
Focusedsw::WndBase
Fontsw::WndBase
FontChanged(HFONT hfont)sw::WndBaseprotectedvirtual
FontNamesw::WndBase
FontSizesw::WndBase
FontWeightsw::WndBase
GetArrangeOffsetX()sw::UIElementprotected
GetArrangeOffsetY()sw::UIElementprotected
GetChildBottommost(bool update)sw::UIElementprotected
GetChildLayoutAt(int index) overridesw::UIElementvirtual
GetChildLayoutCount() overridesw::UIElementvirtual
GetChildRightmost(bool update)sw::UIElementprotected
GetDefaultLayout()sw::Layerprotectedvirtual
GetDesireSize() overridesw::UIElementvirtual
GetExtendedStyle()sw::WndBaseprotected
GetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
GetFontHandle()sw::WndBaseprotected
GetHorizontalScrollPageSize()sw::Layer
GetHorizontalScrollRange(double &refMin, double &refMax)sw::Layer
GetLayoutTag() overridesw::UIElementvirtual
GetNextElement()sw::UIElement
GetNextTabStopElement()sw::UIElement
GetRealBackColor()sw::UIElement
GetRealTextColor()sw::UIElement
GetRootElement()sw::UIElement
GetStyle()sw::WndBaseprotected
GetStyle(LONG_PTR style)sw::WndBaseprotected
GetTag() overridesw::UIElementvirtual
GetText()sw::WndBaseprotectedvirtual
GetVerticalScrollPageSize()sw::Layer
GetVerticalScrollRange(double &refMin, double &refMax)sw::Layer
GetWndBase(HWND hwnd)sw::WndBasestatic
Handlesw::WndBase
HandleChenged()sw::Controlprotectedvirtual
HandleInitialized(HWND hwnd)sw::WndBaseprotectedvirtual
Heightsw::WndBase
HorizontalAlignmentsw::UIElement
HorizontalScrollBarsw::Layer
HorizontalScrollLimitsw::Layer
HorizontalScrollPossw::Layer
IndexOf(UIElement *element)sw::UIElement
IndexOf(UIElement &element)sw::UIElement
InheritTextColorsw::UIElement
InitControl(LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
InitWindow(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
IsControl()sw::WndBase
IsDestroyedsw::WndBase
IsRootElement()sw::UIElement
IsRoutedEventRegistered(RoutedEventType eventType)sw::UIElement
IsVisible()sw::WndBase
Layer()sw::Layerprotected
Layoutsw::Layer
LayoutTagsw::UIElement
Leftsw::WndBase
Marginsw::UIElement
Measure(const Size &availableSize) overridesw::PanelBasevirtual
MoveToBottom()sw::UIElement
MoveToTop()sw::UIElement
NcHitTest(const Point &testPoint)sw::WndBase
NotifyLayoutUpdated()sw::UIElementprotected
OnAcceleratorCommand(int id)sw::WndBaseprotectedvirtual
OnAddedChild(UIElement &element)sw::UIElementprotectedvirtual
OnChar(wchar_t ch, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnClose() overridesw::UIElementprotectedvirtual
OnColor(HDC hdc, HBRUSH &hRetBrush) overridesw::UIElementprotectedvirtual
OnCommand(int code)sw::WndBaseprotectedvirtual
OnContextMenu(bool isKeyboardMsg, Point mousePosition) overridesw::UIElementprotectedvirtual
OnControlCommand(WndBase *pControl, int code, int id)sw::WndBaseprotectedvirtual
OnCreate()sw::WndBaseprotectedvirtual
OnCtlColor(WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)sw::WndBaseprotectedvirtual
OnDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnDestroy()sw::WndBaseprotectedvirtual
OnDrawFocusRect()sw::UIElementprotectedvirtual
OnDrawItem(int id, DRAWITEMSTRUCT *pDrawItem)sw::WndBaseprotectedvirtual
OnEnabledChanged(bool newValue)sw::WndBaseprotectedvirtual
OnEndPaint() overridesw::UIElementprotectedvirtual
OnEraseBackground(int &result)sw::WndBaseprotectedvirtual
OnHorizontalScroll(int event, int pos) overridesw::PanelBaseprotectedvirtual
OnKeyDown(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKeyUp(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKillFocus(HWND hNextFocus) overridesw::UIElementprotectedvirtual
OnMenuCommand(int id) overridesw::UIElementprotectedvirtual
OnMouseLeave() overridesw::UIElementprotectedvirtual
OnMouseLeftButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseLeftButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseMiddleButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMove(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseRightButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseWheel(int wheelDelta, Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMove(Point newClientPosition) overridesw::UIElementprotectedvirtual
OnNcHitTest(const Point &testPoint, HitTestResult &result)sw::WndBaseprotectedvirtual
OnNotified(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnNotify(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnPaint()sw::WndBaseprotectedvirtual
OnRemovedChild(UIElement &element)sw::UIElementprotectedvirtual
OnScroll(ScrollOrientation scrollbar, ScrollEvent event, double pos)sw::Layerprotectedvirtual
OnSetCursor(HWND hwnd, HitTestResult hitTest, int message, bool &result) overridesw::UIElementprotectedvirtual
OnSetFocus(HWND hPrevFocus) overridesw::UIElementprotectedvirtual
OnSize(Size newClientSize) overridesw::UIElementprotectedvirtual
OnSysChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyDown(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyUp(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnTabStop()sw::UIElementprotectedvirtual
OnTextChanged() overridesw::UIElementprotectedvirtual
OnVerticalScroll(int event, int pos) overridesw::PanelBaseprotectedvirtual
operator=(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator=(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator[](int index) constsw::UIElement
PanelBase()sw::PanelBaseprotected
Parentsw::UIElement
ParentChanged(WndBase *newParent) overridesw::UIElementprotectedvirtual
PointFromScreen(const Point &screenPoint)sw::WndBase
PointToScreen(const Point &point)sw::WndBase
RaiseRoutedEvent(RoutedEventType eventType)sw::UIElementprotected
RaiseRoutedEvent(RoutedEventArgs &eventArgs)sw::UIElementprotected
Rectsw::WndBase
Redraw(bool erase=false)sw::WndBase
RegisterRoutedEvent(RoutedEventType eventType, const RoutedEvent &handler)sw::UIElement
RegisterRoutedEvent(RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))sw::UIElementinline
RegisterRoutedEvent(std::function< void(UIElement &, TEventArgs &)> handler)sw::UIElementinline
RegisterRoutedEvent(THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))sw::UIElementinline
RemoveChild(UIElement *element)sw::UIElement
RemoveChild(UIElement &element)sw::UIElement
RemoveChildAt(int index)sw::UIElement
ResetCursor()sw::UIElement
ResetHandle()sw::Controlprotected
ScrollHorizontal(double offset)sw::Layer
ScrollToBottom()sw::Layer
ScrollToLeft()sw::Layer
ScrollToRight()sw::Layer
ScrollToTop()sw::Layer
ScrollVertical(double offset)sw::Layer
SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase
SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement
SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual
SetCursor(HCURSOR hCursor)sw::UIElement
SetCursor(StandardCursor cursor)sw::UIElement
SetDesireSize(const Size &size) overridesw::UIElementvirtual
SetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
SetExtendedStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetHorizontalScrollPageSize(double pageSize)sw::Layer
SetHorizontalScrollRange(double min, double max)sw::Layer
SetNextTabStopFocus()sw::UIElementprotected
SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual
SetStyle(LONG_PTR style)sw::WndBaseprotected
SetStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetTag(uint64_t tag) overridesw::UIElementvirtual
SetText(const std::wstring &value)sw::WndBaseprotectedvirtual
SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual
SetVerticalScrollPageSize(double pageSize)sw::Layer
SetVerticalScrollRange(double min, double max)sw::Layer
Show(int nCmdShow)sw::WndBase
ShowContextMenu(const Point &point)sw::UIElement
TabStopsw::UIElement
Tagsw::UIElement
Textsw::WndBase
TextColorsw::UIElement
Topsw::WndBase
Transparentsw::UIElement
UIElement()sw::UIElementprotected
UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement
Update()sw::WndBase
UpdateChildrenZOrder()sw::UIElementprotected
UpdateFont()sw::WndBase
UpdateLayout()sw::Layerprotected
UpdateScrollRange()sw::Layer
UpdateSiblingsZOrder()sw::UIElementprotected
UpdateText()sw::WndBaseprotected
VerticalAlignmentsw::UIElement
VerticalScrollBarsw::Layer
VerticalScrollLimitsw::Layer
VerticalScrollPossw::Layer
Visiblesw::WndBase
VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual
Widthsw::WndBase
WndBase()sw::WndBaseprotected
WndBase(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndBase(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual
~Control()=0sw::Controlpure virtual
~Layer()=0sw::Layerpure virtual
~PanelBase()=0sw::PanelBasepure virtual
~UIElement()=0sw::UIElementpure virtual
~WndBase()=0sw::WndBasepure virtual
+
+ + + + diff --git a/docs/classsw_1_1_panel_base.html b/docs/classsw_1_1_panel_base.html new file mode 100644 index 00000000..c86a9f34 --- /dev/null +++ b/docs/classsw_1_1_panel_base.html @@ -0,0 +1,1065 @@ + + + + + + + +SimpleWindow: sw::PanelBase Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
sw::PanelBase Class Referenceabstract
+
+
+ +

面板类型的基类 + More...

+ +

#include <PanelBase.h>

+
+Inheritance diagram for sw::PanelBase:
+
+
+ + +sw::Control +sw::Layer +sw::UIElement +sw::UIElement +sw::WndBase +sw::ILayout +sw::ITag +sw::WndBase +sw::ILayout +sw::ITag +sw::GroupBox +sw::Panel +sw::Canvas +sw::DockPanel +sw::Grid +sw::StackPanel +sw::UniformGrid +sw::WrapPanel + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

+virtual ~PanelBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const sw::Rect &finalPosition) override
 安排控件位置
 
- Public Member Functions inherited from sw::Control
+virtual ~Control ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
- Public Member Functions inherited from sw::UIElement
+virtual ~UIElement ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
void RegisterRoutedEvent (RoutedEventType eventType, const RoutedEvent &handler)
 注册路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename T >
void RegisterRoutedEvent (RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))
 注册成员函数作为路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename TEventArgs , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (std::function< void(UIElement &, TEventArgs &)> handler)
 根据事件参数类型注册路由事件
 
template<typename TEventArgs , typename THandleObj , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))
 根据事件参数类型注册成员函数作为路由事件
 
void UnregisterRoutedEvent (RoutedEventType eventType)
 取消对应类型路由事件的注册
 
bool IsRoutedEventRegistered (RoutedEventType eventType)
 判断路由事件是否已被注册
 
bool AddChild (UIElement *element)
 添加子控件
 
bool AddChild (UIElement &element)
 添加子控件
 
bool AddChild (UIElement *element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool AddChild (UIElement &element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool RemoveChildAt (int index)
 移除指定索引处的子控件
 
bool RemoveChild (UIElement *element)
 移除子控件
 
bool RemoveChild (UIElement &element)
 移除子控件
 
+void ClearChildren ()
 移除所有子控件
 
int IndexOf (UIElement *element)
 获取指定元素的索引
 
int IndexOf (UIElement &element)
 获取指定元素的索引
 
+UIElementoperator[] (int index) const
 通过索引获取子控件
 
void ShowContextMenu (const Point &point)
 弹出当前元素的上下文菜单
 
+void MoveToTop ()
 移动到界面顶部
 
+void MoveToBottom ()
 移动到界面底部
 
+bool IsRootElement ()
 判断当前元素是否为根节点
 
+UIElementGetRootElement ()
 获取当前元素所在界面树的根节点
 
+UIElementGetNextElement ()
 获取当前元素在界面树上的下一个节点,若已是最后一个节点则返回根节点
 
+UIElementGetNextTabStopElement ()
 获取下一个TabStop属性为true的元素
 
+Color GetRealBackColor ()
 获取当前要显示的背景颜色:当Transparent为true时获取到祖先节点中首个Transparent为false的背景颜色,否则返回当前元素的背景颜色
 
+Color GetRealTextColor ()
 获取当前要显示的文本颜色:当InheritTextColor为true时获取到祖先节点中首个InheritTextColor为false的文本颜色,否则返回当前元素的文本颜色
 
void SetCursor (HCURSOR hCursor)
 设置鼠标样式
 
void SetCursor (StandardCursor cursor)
 设置鼠标样式
 
+void ResetCursor ()
 将鼠标样式设置为默认样式
 
void SetAlignment (sw::HorizontalAlignment horz, sw::VerticalAlignment vert)
 设置对齐方式
 
virtual uint64_t GetTag () override
 获取Tag
 
virtual void SetTag (uint64_t tag) override
 设置Tag
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取参与布局的子控件数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取对应索引处的子控件,使用此函数前必须先调用GetChildLayoutCount
 
virtual Size GetDesireSize () override
 获取控件所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置当前控件所需的尺寸
 
- Public Member Functions inherited from sw::WndBase
+virtual ~WndBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void Show (int nCmdShow)
 该函数调用ShowWindow
 
+void Close ()
 发送关闭消息
 
+void Update ()
 该函数调用UpdateWindow
 
+void UpdateFont ()
 更新字体
 
void Redraw (bool erase=false)
 重画
 
+bool IsControl ()
 判断当前对象是否是控件
 
+bool IsVisible ()
 判断当前对象在界面中是否可视,与Visible属性不同的是该函数返回值会受父窗口的影响
 
Point PointToScreen (const Point &point)
 获取用户区点在屏幕上点的位置
 
Point PointFromScreen (const Point &screenPoint)
 获取屏幕上点在当前用户区点的位置
 
+LRESULT SendMessageW (UINT uMsg, WPARAM wParam, LPARAM lParam)
 发送消息
 
HitTestResult NcHitTest (const Point &testPoint)
 测试指定点在窗口的哪一部分
 
- Public Member Functions inherited from sw::Layer
+virtual ~Layer ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void DisableLayout ()
 禁用布局
 
+void EnableLayout ()
 启用布局
 
void GetHorizontalScrollRange (double &refMin, double &refMax)
 获取横向滚动条的范围
 
void GetVerticalScrollRange (double &refMin, double &refMax)
 获取纵向滚动条的范围
 
void SetHorizontalScrollRange (double min, double max)
 设置横向滚动条的范围
 
void SetVerticalScrollRange (double min, double max)
 设置纵向滚动条的范围
 
+double GetHorizontalScrollPageSize ()
 获取水平滚动条滚动页面大小
 
+double GetVerticalScrollPageSize ()
 获取垂直滚动条滚动页面大小
 
+void SetHorizontalScrollPageSize (double pageSize)
 设置水平滚动条滚动页面大小
 
+void SetVerticalScrollPageSize (double pageSize)
 设置垂直滚动条滚动页面大小
 
+void UpdateScrollRange ()
 根据子元素更新滚动条范围,未设定布局方式时该函数无效
 
+void ScrollToTop ()
 将垂直滚动条移动到顶部
 
+void ScrollToBottom ()
 将垂直滚动条移动到底部
 
+void ScrollToLeft ()
 将水平滚动条移动到最左
 
+void ScrollToRight ()
 将水平滚动条移动到最右
 
void ScrollHorizontal (double offset)
 水平滚动
 
void ScrollVertical (double offset)
 垂直滚动
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Protected Member Functions

PanelBase ()
 初始化PanelBase
 
virtual bool OnVerticalScroll (int event, int pos) override
 接收到WM_VSCROLL时调用目标控件的该函数
 
virtual bool OnHorizontalScroll (int event, int pos) override
 接收到WM_HSCROLL时调用目标控件的该函数
 
- Protected Member Functions inherited from sw::Control
Control ()
 初始化控件
 
+void ResetHandle ()
 销毁控件句柄并重新初始化,该操作会创建新的句柄并设置样式、文本、字体等
 
+virtual void HandleChenged ()
 控件句柄发生改变时调用该函数
 
- Protected Member Functions inherited from sw::UIElement
UIElement ()
 初始化UIElement
 
void RaiseRoutedEvent (RoutedEventType eventType)
 触发路由事件
 
void RaiseRoutedEvent (RoutedEventArgs &eventArgs)
 触发路由事件
 
+void NotifyLayoutUpdated ()
 通知顶级窗口布局改变
 
+doubleGetArrangeOffsetX ()
 获取Arrange时子元素的水平偏移量
 
+doubleGetArrangeOffsetY ()
 获取Arrange时子元素的垂直偏移量
 
double GetChildRightmost (bool update)
 获取所有子元素在当前元素中最右边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
double GetChildBottommost (bool update)
 获取所有子元素在当前元素中最底边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
+void UpdateChildrenZOrder ()
 更新子元素的Z轴位置
 
+void UpdateSiblingsZOrder ()
 更新兄弟元素的Z轴位置
 
+void SetNextTabStopFocus ()
 设置下一个TabStop属性为true的元素为焦点元素
 
virtual void SetBackColor (Color color, bool redraw)
 设置背景颜色
 
virtual void SetTextColor (Color color, bool redraw)
 设置文本颜色
 
virtual void OnAddedChild (UIElement &element)
 添加子元素后调用该函数
 
virtual void OnRemovedChild (UIElement &element)
 移除子元素后调用该函数
 
+virtual void OnTabStop ()
 通过tab键将焦点移动到当前元素时调用该函数
 
virtual void OnDrawFocusRect ()
 绘制虚线框时调用该函数
 
virtual bool SetParent (WndBase *parent) override
 设置父窗口
 
virtual void ParentChanged (WndBase *newParent) override
 父窗口改变时调用此函数
 
virtual void OnEndPaint () override
 在OnPaint函数完成之后调用该函数
 
virtual bool OnClose () override
 接收到WM_CLOSE时调用该函数
 
virtual bool OnMove (Point newClientPosition) override
 接收到WM_MOVE时调用该函数
 
virtual bool OnSize (Size newClientSize) override
 接收到WM_SIZE时调用该函数
 
virtual void OnTextChanged () override
 Text属性更改时调用此函数
 
virtual void VisibleChanged (bool newVisible) override
 Visible属性改变时调用此函数
 
virtual bool OnSetFocus (HWND hPrevFocus) override
 接收到WM_SETFOCUS时调用该函数
 
virtual bool OnKillFocus (HWND hNextFocus) override
 接收到WM_KILLFOCUS时调用该函数
 
virtual bool OnChar (wchar_t ch, KeyFlags flags) override
 接收到WM_CHAR时调用该函数
 
virtual bool OnKeyDown (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYDOWN时调用该函数
 
virtual bool OnKeyUp (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYUP时调用该函数
 
virtual bool OnMouseMove (Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEMOVE时调用该函数
 
virtual bool OnMouseLeave () override
 接收到WM_MOUSELEAVE时调用该函数
 
virtual bool OnMouseWheel (int wheelDelta, Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEWHEEL时调用该函数
 
virtual bool OnMouseLeftButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONDOWN时调用该函数
 
virtual bool OnMouseLeftButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONUP时调用该函数
 
virtual bool OnMouseRightButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONDOWN时调用该函数
 
virtual bool OnMouseRightButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONUP时调用该函数
 
virtual bool OnMouseMiddleButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONDOWN时调用该函数
 
virtual bool OnMouseMiddleButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONUP时调用该函数
 
virtual bool OnContextMenu (bool isKeyboardMsg, Point mousePosition) override
 接收到WM_CONTEXTMENU后调用目标控件的该函数
 
virtual void OnMenuCommand (int id) override
 当WM_COMMAND接收到菜单命令时调用该函数
 
virtual bool OnColor (HDC hdc, HBRUSH &hRetBrush) override
 父窗口接收到WM_CTLCOLORxxx时调用对应控件的该函数
 
virtual bool OnSetCursor (HWND hwnd, HitTestResult hitTest, int message, bool &result) override
 接收到WM_SETCURSOR消息时调用该函数
 
- Protected Member Functions inherited from sw::WndBase
WndBase ()
 初始化WndBase
 
WndBase (const WndBase &)=delete
 
WndBase (WndBase &&)=delete
 
+WndBaseoperator= (const WndBase &)=delete
 
+WndBaseoperator= (WndBase &&)=delete
 
+void InitWindow (LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为窗口,该函数会调用CreateWindowExW
 
+void InitControl (LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为控件,该函数会调用CreateWindowExW
 
+LONG_PTR GetStyle ()
 获取窗口样式
 
+void SetStyle (LONG_PTR style)
 设置窗口样式
 
+bool GetStyle (LONG_PTR style)
 获取窗口的某个样式
 
+void SetStyle (LONG_PTR style, bool value)
 设置窗口的某个样式
 
+LONG_PTR GetExtendedStyle ()
 获取扩展窗口样式
 
+void SetExtendedStyle (LONG_PTR style)
 设置扩展窗口样式
 
+bool GetExtendedStyle (LONG_PTR style)
 获取窗口的某个扩展样式
 
+void SetExtendedStyle (LONG_PTR style, bool value)
 设置窗口的某个扩展样式
 
+HFONT GetFontHandle ()
 获取字体句柄
 
+LRESULT DefaultWndProc (const ProcMsg &refMsg)
 调用默认的WndProc,对于窗口则调用DefWindowProcW,控件则调用_controlOldWndProc
 
virtual LRESULT WndProc (const ProcMsg &refMsg)
 对WndProc的封装
 
+void UpdateText ()
 更新_text字段
 
virtual std::wstring & GetText ()
 获取窗口文本
 
virtual void SetText (const std::wstring &value)
 调用SetWindowTextW设置窗口文本
 
virtual bool OnCreate ()
 接收到WM_CREATE时调用该函数
 
virtual bool OnDestroy ()
 接收到WM_DESTROY时调用该函数
 
virtual bool OnPaint ()
 接收到WM_PAINT时调用该函数
 
virtual bool OnMouseLeftButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_LBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseRightButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_RBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseMiddleButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_MBUTTONDBLCLK时调用该函数
 
virtual bool OnDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_DEADCHAR时调用该函数
 
virtual bool OnSysChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSCHAR时调用该函数
 
virtual bool OnSysDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSDEADCHAR时调用该函数
 
virtual bool OnSysKeyDown (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYDOWN时调用该函数
 
virtual bool OnSysKeyUp (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYUP时调用该函数
 
virtual void OnCommand (int code)
 当父窗口接收到控件的WM_COMMAND时调用该函数
 
virtual void OnControlCommand (WndBase *pControl, int code, int id)
 当WM_COMMAND接收到控件命令时调用该函数
 
virtual void OnAcceleratorCommand (int id)
 当WM_COMMAND接收到快捷键命令时调用该函数
 
virtual void HandleInitialized (HWND hwnd)
 窗口句柄初始化完成
 
virtual void FontChanged (HFONT hfont)
 字体改变时调用该函数
 
virtual bool OnNotify (NMHDR *pNMHDR)
 接收到WM_NOTIFY后调用该函数
 
virtual void OnNotified (NMHDR *pNMHDR)
 父窗口接收到WM_NOTIFY后调用发出通知控件的该函数
 
virtual bool OnEnabledChanged (bool newValue)
 接收到WM_ENABLE时调用该函数
 
virtual bool OnCtlColor (WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)
 接收到WM_CTLCOLORxxx时调用该函数
 
virtual void OnNcHitTest (const Point &testPoint, HitTestResult &result)
 接收到WM_NCHITTEST后调用该函数
 
virtual bool OnEraseBackground (int &result)
 接收到WM_ERASEBKGND时调用该函数
 
virtual bool OnDrawItem (int id, DRAWITEMSTRUCT *pDrawItem)
 接收到WM_DRAWITEM时调用该函数
 
- Protected Member Functions inherited from sw::Layer
Layer ()
 初始化Layer
 
+void UpdateLayout ()
 更新布局
 
virtual LayoutHostGetDefaultLayout ()
 获取默认布局对象
 
virtual void OnScroll (ScrollOrientation scrollbar, ScrollEvent event, double pos)
 触发滚动条相关事件时调用该函数
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Additional Inherited Members

- Static Public Member Functions inherited from sw::WndBase
static WndBaseGetWndBase (HWND hwnd)
 通过窗口句柄获取WndBase
 
- Public Attributes inherited from sw::UIElement
+const Property< ThicknessMargin
 边距
 
+const Property< HorizontalAlignment > HorizontalAlignment
 水平对齐方式
 
+const Property< VerticalAlignment > VerticalAlignment
 垂直对齐方式
 
+const ReadOnlyProperty< intChildCount
 子控件数量
 
+const Property< boolCollapseWhenHide
 是否在不可见时不参与布局
 
+const ReadOnlyProperty< UIElement * > Parent
 指向父元素的指针,当前元素为顶级窗口时该值为nullptr
 
+const Property< uint64_tTag
 储存用户自定义信息的标记
 
+const Property< uint64_tLayoutTag
 布局标记,对于不同的布局有不同含义
 
+const Property< sw::ContextMenu * > ContextMenu
 右键按下时弹出的菜单
 
+const Property< boolFloat
 元素是否悬浮,若元素悬浮则该元素不会随滚动条滚动而改变位置
 
+const Property< boolTabStop
 表示用户是否可以通过按下Tab键将焦点移动到当前元素
 
+const Property< ColorBackColor
 背景颜色,修改该属性会同时将Transparent属性设为false,对于部分控件该属性可能不生效
 
+const Property< ColorTextColor
 文本颜色,修改该属性会同时将InheritTextColor属性设为false,对于部分控件该属性可能不生效
 
+const Property< boolTransparent
 是否使用透明背景(此属性并非真正意义上的透明,将该属性设为true可继承父元素的背景颜色)
 
+const Property< boolInheritTextColor
 是否继承父元素的文本颜色
 
- Public Attributes inherited from sw::WndBase
+const ReadOnlyProperty< HWNDHandle
 窗口句柄
 
+const Property< sw::FontFont
 字体
 
+const Property< std::wstring > FontName
 字体名称
 
+const Property< doubleFontSize
 字体大小
 
+const Property< sw::FontWeight > FontWeight
 字体粗细
 
+const Property< sw::RectRect
 位置和尺寸
 
+const Property< doubleLeft
 左边
 
+const Property< doubleTop
 顶边
 
+const Property< doubleWidth
 宽度
 
+const Property< doubleHeight
 高度
 
+const ReadOnlyProperty< sw::RectClientRect
 用户区尺寸
 
+const ReadOnlyProperty< doubleClientWidth
 用户区宽度
 
+const ReadOnlyProperty< doubleClientHeight
 用户区高度
 
+const Property< boolEnabled
 窗口或控件是否可用
 
+const Property< boolVisible
 窗口或控件是否可见
 
+const Property< std::wstring > Text
 窗口标题或控件文本
 
+const Property< boolFocused
 窗口是否拥有焦点
 
+const ReadOnlyProperty< WndBase * > Parent
 父窗口
 
+const ReadOnlyProperty< boolIsDestroyed
 是否已销毁,当该值为true时不应该继续使用当前对象
 
- Public Attributes inherited from sw::Layer
+const Property< LayoutHost * > Layout
 自定义的布局方式,赋值后将自动与所指向的布局关联,每个布局只能关联一个对象,设为nullptr可恢复默认布局
 
+const Property< boolAutoSize
 是否按照布局方式与子元素自动调整尺寸,该属性仅在当前元素已设置布局方式并且非顶级元素时有效
 
+const Property< boolHorizontalScrollBar
 是否显示横向滚动条
 
+const Property< boolVerticalScrollBar
 是否显示纵向滚动条
 
+const Property< doubleHorizontalScrollPos
 横向滚动条位置
 
+const Property< doubleVerticalScrollPos
 纵向滚动条位置
 
+const ReadOnlyProperty< doubleHorizontalScrollLimit
 横向滚动条可设置的最大位置
 
+const ReadOnlyProperty< doubleVerticalScrollLimit
 纵向滚动条可设置的最大位置
 
+

Detailed Description

+

面板类型的基类

+

Member Function Documentation

+ +

◆ Arrange()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::PanelBase::Arrange (const sw::Rect & finalPosition)
+
+overridevirtual
+
+ +

安排控件位置

+
Parameters
+ + +
finalSize最终控件所安排的位置
+
+
+ +

Reimplemented from sw::UIElement.

+ +
+
+ +

◆ Measure()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::PanelBase::Measure (const Size & availableSize)
+
+overridevirtual
+
+ +

测量控件所需尺寸

+
Parameters
+ + +
availableSize可用的尺寸
+
+
+ +

Reimplemented from sw::UIElement.

+ +
+
+ +

◆ OnHorizontalScroll()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::PanelBase::OnHorizontalScroll (int event,
int pos )
+
+overrideprotectedvirtual
+
+ +

接收到WM_HSCROLL时调用目标控件的该函数

+
Parameters
+ + + +
event事件类型,即消息wParam的低字
pos当前滚动条的位置,仅当event为SB_THUMBPOSITION或SB_THUMBTRACK时有效
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented from sw::WndBase.

+ +
+
+ +

◆ OnVerticalScroll()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::PanelBase::OnVerticalScroll (int event,
int pos )
+
+overrideprotectedvirtual
+
+ +

接收到WM_VSCROLL时调用目标控件的该函数

+
Parameters
+ + + +
event事件类型,即消息wParam的低字
pos当前滚动条的位置,仅当event为SB_THUMBPOSITION或SB_THUMBTRACK时有效
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented from sw::WndBase.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_panel_base.js b/docs/classsw_1_1_panel_base.js new file mode 100644 index 00000000..98c37fbb --- /dev/null +++ b/docs/classsw_1_1_panel_base.js @@ -0,0 +1,9 @@ +var classsw_1_1_panel_base = +[ + [ "PanelBase", "classsw_1_1_panel_base.html#abab2cca25b5d32f8bce01252e9db500e", null ], + [ "~PanelBase", "classsw_1_1_panel_base.html#a7acc50ef3ccea1f4efa8d1d3fdf18fa9", null ], + [ "Arrange", "classsw_1_1_panel_base.html#ab7630a76728d4d464b0bee1bfdbdca9b", null ], + [ "Measure", "classsw_1_1_panel_base.html#a8ac6001fdc5c32131b3d33678bd376b3", null ], + [ "OnHorizontalScroll", "classsw_1_1_panel_base.html#a9d40f5306f341eb9fff7c389b11f76f6", null ], + [ "OnVerticalScroll", "classsw_1_1_panel_base.html#af23d21a7b280c75e49278ce141ff428b", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_panel_base.png b/docs/classsw_1_1_panel_base.png new file mode 100644 index 0000000000000000000000000000000000000000..4834220d5c029d610048ab5852732e3d2547ef90 GIT binary patch literal 4360 zcmcIo2~d+s77n5)gD4|A$RUCX!C6aWVK5A!K?DVjL6BboxkW(`!c9OS;5aA(MhFN| zAdWIJ{9MX?1cDHb7%(6cK*Jq|AU6aOj*#phWyadtt=-zK*{DvR~Sr=U}<*37ArB`&$3~kku&Qw|F+?^ z2si&ajP@uYrhC3JHTIZknst@lp&Dn|MxFdbx~F2So3D+pV(d>_ia@C%k6%ECv{&T- zFq!NP0Ee;m`dH0?VsN4-+W`P%lH))y#G(uY6*T0bB@gRzLGKf~5_$4kd0^Bz5CF=C zYIW!T<{r3oMU)Fhv|&p7DYf9l--7UhCK{fdoMr!O5ok^W!SDzgHTf~1zZ$8fMRMr) zig+(sL@{L7c2$`I=wsT znU-fxb2%hk9oT5~~>|kIU{kpv8DknlP+cp4AdYw$EmgZ^eMh zqT|SU&%C$VrJ#3KlehH(|4hRn;*;fywbo3+TFZ`jV_E+CaPc@RM$|{8EPY(%bdls`xR{%cKKfd)Al^THiqx`anbT>=g-obMcCX63WU4ghn%iZ%3f zEQ6KoB;QQ(4CFgK@)fu+Tyr>;98X{>jZ;2luEVqIsu+g6Ht8qQL^*%#D70bh1NJ#)Qg(^Dp(;ho4wGbKPs46 zj>kY}-%IY04A|u$r}@)Xv2|xmKPgYSv-cjMXowIHSmN{WEC0NZPcJ3J~U6I>SvUhCHCe;MBqt?gLAy?c`Ejji&oIt zijYhXl66Sj)KXKKe}#3I; zj!ax95PE87{FfspmWO`3g_-JYZ8uPYP-$kbdeyhq)3HdU;N=W{H6f;glOw`K9=Q<% z!K0(QQ2D)+Z1n?vS0z%V6cHg(a-w9BWNXR0%S}@5>`-hzwU=LvZ|p@XVwGn(0l1^% z-iyDjE(ypzP6I|JBC!|TZj5%OaTP+Ug-boyd@E9oBPC0XS3RFql?px1cyuk{dF{0E zz>&98J6%Yf=}4tA3Ra2F<~HJLjyAl|{aSOlen?pzbyD+dE5V+SpPF4|J}yn!7Jh<@e~*9 zrr0gDDW7&8DAT@7GXt2_8uBj<|K0y&PEre5cN_rZ{R;b#4^g&2zi!S2fO#cZ+Afom zY21tDT-8lNnOL1>FJgEN?0uUojol}M&XN)ajBClysm2qrPsf0&00l^{ z8iam}pKm0Exmm#L=+ykj@x<1Q=pNn4QMcQJWvkbVXYtRCp4Z5P`bDDKa;th4{CP{W zKt)MC00fD_*$Iz=@@9D!lsISY5>5b4I09sz$0mol-I}C$GhK;E0?I^2_;i$zWC3@L zOqTXK@t>lMn__HPj8G}o%}!<89Ol&zFr3C8@o7izw7aGt^N$E+I7Dx?lg7dSSaAFv z{?7{lnt}AVmb9H*>C#S9<|GC$vcx>8qXQOXUPez$UKiufB3(3;k_6B-l6#o^1XyP)|>>%i$B17fW zO)TK*CI;s2Y3Dyft@FUl^fR&z2H$KOijPv zqKrhjr7{d|wyRg?IxJnz(zP*L!qrqGMwTEIEuFOaDC*Ch^n>EdvQiDiY&8jt_@=-Z zciz>z<0KSe$WCw&?1s?BrG5uP-P3sK_70}AFS$O}QnLPz#U>TFEKGjC^o?{aRIUcDSi4foaK>;28}JwCG)MLGo~F zVNLQbm$dPFg$5MYce4E+?$%lK4~+W>9w1nKKzwe1WWT;M_|yq z?X@26_F4AkepfBvL#mZDYUCw6zrF^Qp)x!cbNxtgN}N(S+K0jt2a&UIS^t?S7RomA z*E>p+MLD(CMq-R}{QG8h(KeG+5s-lk%iKv+-_er@qTM4;Hxmu{xzGd^S2EM8&^fd< zfJLfmr>^AJpxWM)WW=>eV^2d0z1CUbb0JH;<7osoq2(AiJ)O?9HeG!pAGF}OwfRIc zy`8RY1B9H`l@R?kUiLh&q#B=fiMdqq1d76C5D9Rp9-H7$h;mDoPJf8{Cp`Zp*w@5) zU?>s#gksO1OTMFRP&D~*gMSsU8?mCWvVXh`itlC6o$&uKEc3tcFUh-6XFEUp!!4-r z5%VvhtN^NrZ1X_x*L3jpp*R8nP~c1ubP#8=f|KH!N1X^2O?Ma1i3=nsxEt65OFlLQ zAh-oXjKddM0Ze?jGb=KVsN8Z^2GN2S^wRUN0$YubtM4zghfYcx95c<7%2q zUFAqlPpEUxtwhqARMF_ix~i|M!3oQ#4g^;p?aLjP`R)zXG4UwTfD-<#yw%~EFe0`x zcIzR()HpS0y@y}fn%!VwQ0a6AuZCV8)_3>8S<>Y-ayi``K5Nu}JgjSJ;G>MA+KO9R zR7qp-OIr2Jh=OC{q{z-1R-K78eLh-8?oThUjH7@h`?$F#gGjZ3wKUUSyDM zP;ql-8gdO=Yy5p%aEDmyHD{yl(0Lg_@R7)ut(~kij?kv;{Uy>MH>aup(q-r7(ZgNS zlfBDnnDWvQwR~UO(9o}uTv=z@E%?l3LFiws5>=h@!N}e&sfm;YD+R;_-vA|sr~CCL zM$z<9`7U!oFZ6`m$ROpUoDlT6C*Fvx>@e9@#u@)T7(cCVckJe z{BUsjG;L*Hz?^A}^m{0t#pP)jeybD2G5`IzgvLCe_db5B6q4x{o`c5SA ZZeTIk|J+xD&^rs5r8(NH(A4$z-vN3eGGG7z literal 0 HcmV?d00001 diff --git a/docs/classsw_1_1_password_box-members.html b/docs/classsw_1_1_password_box-members.html new file mode 100644 index 00000000..077d9e3d --- /dev/null +++ b/docs/classsw_1_1_password_box-members.html @@ -0,0 +1,302 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::PasswordBox Member List
+
+
+ +

This is the complete list of members for sw::PasswordBox, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AcceptTabsw::TextBoxBase
AddChild(UIElement *element)sw::UIElement
AddChild(UIElement &element)sw::UIElement
AddChild(UIElement *element, uint64_t layoutTag)sw::UIElement
AddChild(UIElement &element, uint64_t layoutTag)sw::UIElement
Arrange(const sw::Rect &finalPosition) overridesw::UIElementvirtual
BackColorsw::UIElement
CanUndosw::TextBoxBase
ChildCountsw::UIElement
Clear()sw::TextBoxBase
ClearChildren()sw::UIElement
ClientHeightsw::WndBase
ClientRectsw::WndBase
ClientWidthsw::WndBase
Close()sw::WndBase
CollapseWhenHidesw::UIElement
ContextMenusw::UIElement
Control()sw::Controlprotected
DefaultWndProc(const ProcMsg &refMsg)sw::WndBaseprotected
Enabledsw::WndBase
Floatsw::UIElement
Focusedsw::WndBase
Fontsw::WndBase
FontChanged(HFONT hfont)sw::WndBaseprotectedvirtual
FontNamesw::WndBase
FontSizesw::WndBase
FontWeightsw::WndBase
GetArrangeOffsetX()sw::UIElementprotected
GetArrangeOffsetY()sw::UIElementprotected
GetChildBottommost(bool update)sw::UIElementprotected
GetChildLayoutAt(int index) overridesw::UIElementvirtual
GetChildLayoutCount() overridesw::UIElementvirtual
GetChildRightmost(bool update)sw::UIElementprotected
GetDesireSize() overridesw::UIElementvirtual
GetExtendedStyle()sw::WndBaseprotected
GetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
GetFontHandle()sw::WndBaseprotected
GetLayoutTag() overridesw::UIElementvirtual
GetNextElement()sw::UIElement
GetNextTabStopElement()sw::UIElement
GetRealBackColor()sw::UIElement
GetRealTextColor()sw::UIElement
GetRootElement()sw::UIElement
GetStyle()sw::WndBaseprotected
GetStyle(LONG_PTR style)sw::WndBaseprotected
GetTag() overridesw::UIElementvirtual
GetText() overridesw::TextBoxBaseprotectedvirtual
GetWndBase(HWND hwnd)sw::WndBasestatic
Handlesw::WndBase
HandleChenged()sw::Controlprotectedvirtual
HandleInitialized(HWND hwnd)sw::WndBaseprotectedvirtual
Heightsw::WndBase
HorizontalAlignmentsw::UIElement
HorizontalContentAlignmentsw::TextBoxBase
IndexOf(UIElement *element)sw::UIElement
IndexOf(UIElement &element)sw::UIElement
InheritTextColorsw::UIElement
InitControl(LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
InitTextBoxBase(DWORD dwStyle, DWORD dwExStyle)sw::TextBoxBaseprotected
InitWindow(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
IsControl()sw::WndBase
IsDestroyedsw::WndBase
IsRootElement()sw::UIElement
IsRoutedEventRegistered(RoutedEventType eventType)sw::UIElement
IsVisible()sw::WndBase
LayoutTagsw::UIElement
Leftsw::WndBase
Marginsw::UIElement
Measure(const Size &availableSize) overridesw::UIElementvirtual
MoveToBottom()sw::UIElement
MoveToTop()sw::UIElement
NcHitTest(const Point &testPoint)sw::WndBase
NotifyLayoutUpdated()sw::UIElementprotected
OnAcceleratorCommand(int id)sw::WndBaseprotectedvirtual
OnAddedChild(UIElement &element)sw::UIElementprotectedvirtual
OnChar(wchar_t ch, KeyFlags flags) overridesw::TextBoxBaseprotectedvirtual
OnClose() overridesw::UIElementprotectedvirtual
OnColor(HDC hdc, HBRUSH &hRetBrush) overridesw::UIElementprotectedvirtual
OnCommand(int code) overridesw::TextBoxBaseprotectedvirtual
OnContextMenu(bool isKeyboardMsg, Point mousePosition) overridesw::UIElementprotectedvirtual
OnControlCommand(WndBase *pControl, int code, int id)sw::WndBaseprotectedvirtual
OnCreate()sw::WndBaseprotectedvirtual
OnCtlColor(WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)sw::WndBaseprotectedvirtual
OnDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnDestroy()sw::WndBaseprotectedvirtual
OnDrawFocusRect() overridesw::TextBoxBaseprotectedvirtual
OnDrawItem(int id, DRAWITEMSTRUCT *pDrawItem)sw::WndBaseprotectedvirtual
OnEnabledChanged(bool newValue)sw::WndBaseprotectedvirtual
OnEndPaint() overridesw::UIElementprotectedvirtual
OnEraseBackground(int &result)sw::WndBaseprotectedvirtual
OnHorizontalScroll(int event, int pos)sw::WndBaseprotectedvirtual
OnKeyDown(VirtualKey key, KeyFlags flags) overridesw::TextBoxBaseprotectedvirtual
OnKeyUp(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKillFocus(HWND hNextFocus) overridesw::UIElementprotectedvirtual
OnMenuCommand(int id) overridesw::UIElementprotectedvirtual
OnMouseLeave() overridesw::UIElementprotectedvirtual
OnMouseLeftButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseLeftButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseMiddleButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMove(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseRightButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseWheel(int wheelDelta, Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMove(Point newClientPosition) overridesw::UIElementprotectedvirtual
OnNcHitTest(const Point &testPoint, HitTestResult &result)sw::WndBaseprotectedvirtual
OnNotified(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnNotify(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnPaint()sw::WndBaseprotectedvirtual
OnRemovedChild(UIElement &element)sw::UIElementprotectedvirtual
OnSetCursor(HWND hwnd, HitTestResult hitTest, int message, bool &result) overridesw::UIElementprotectedvirtual
OnSetFocus(HWND hPrevFocus) overridesw::UIElementprotectedvirtual
OnSize(Size newClientSize) overridesw::UIElementprotectedvirtual
OnSysChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyDown(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyUp(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnTabStop()sw::UIElementprotectedvirtual
OnTextChanged() overridesw::UIElementprotectedvirtual
OnVerticalScroll(int event, int pos)sw::WndBaseprotectedvirtual
operator=(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator=(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator[](int index) constsw::UIElement
Parentsw::UIElement
ParentChanged(WndBase *newParent) overridesw::UIElementprotectedvirtual
PasswordBox()sw::PasswordBox
PasswordCharsw::PasswordBox
PointFromScreen(const Point &screenPoint)sw::WndBase
PointToScreen(const Point &point)sw::WndBase
RaiseRoutedEvent(RoutedEventType eventType)sw::UIElementprotected
RaiseRoutedEvent(RoutedEventArgs &eventArgs)sw::UIElementprotected
ReadOnlysw::TextBoxBase
Rectsw::WndBase
Redraw(bool erase=false)sw::WndBase
RegisterRoutedEvent(RoutedEventType eventType, const RoutedEvent &handler)sw::UIElement
RegisterRoutedEvent(RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))sw::UIElementinline
RegisterRoutedEvent(std::function< void(UIElement &, TEventArgs &)> handler)sw::UIElementinline
RegisterRoutedEvent(THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))sw::UIElementinline
RemoveChild(UIElement *element)sw::UIElement
RemoveChild(UIElement &element)sw::UIElement
RemoveChildAt(int index)sw::UIElement
ResetCursor()sw::UIElement
ResetHandle()sw::Controlprotected
ScrollToCaret()sw::TextBoxBase
Select(int start, int length)sw::TextBoxBase
SelectAll()sw::TextBoxBase
SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase
SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement
SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual
SetCursor(HCURSOR hCursor)sw::UIElement
SetCursor(StandardCursor cursor)sw::UIElement
SetDesireSize(const Size &size) overridesw::UIElementvirtual
SetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
SetExtendedStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetNextTabStopFocus()sw::UIElementprotected
SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual
SetStyle(LONG_PTR style)sw::WndBaseprotected
SetStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetTag(uint64_t tag) overridesw::UIElementvirtual
SetText(const std::wstring &value)sw::WndBaseprotectedvirtual
SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual
Show(int nCmdShow)sw::WndBase
ShowContextMenu(const Point &point)sw::UIElement
TabStopsw::UIElement
Tagsw::UIElement
Textsw::WndBase
TextBoxBase()sw::TextBoxBaseprotected
TextColorsw::UIElement
Topsw::WndBase
Transparentsw::UIElement
UIElement()sw::UIElementprotected
Undo()sw::TextBoxBase
UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement
Update()sw::WndBase
UpdateChildrenZOrder()sw::UIElementprotected
UpdateFont()sw::WndBase
UpdateSiblingsZOrder()sw::UIElementprotected
UpdateText()sw::WndBaseprotected
VerticalAlignmentsw::UIElement
Visiblesw::WndBase
VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual
Widthsw::WndBase
WndBase()sw::WndBaseprotected
WndBase(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndBase(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual
~Control()=0sw::Controlpure virtual
~TextBoxBase()=0sw::TextBoxBasepure virtual
~UIElement()=0sw::UIElementpure virtual
~WndBase()=0sw::WndBasepure virtual
+
+ + + + diff --git a/docs/classsw_1_1_password_box.html b/docs/classsw_1_1_password_box.html new file mode 100644 index 00000000..0ada604c --- /dev/null +++ b/docs/classsw_1_1_password_box.html @@ -0,0 +1,834 @@ + + + + + + + +SimpleWindow: sw::PasswordBox Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
sw::PasswordBox Class Reference
+
+
+ +

密码框 + More...

+ +

#include <PasswordBox.h>

+
+Inheritance diagram for sw::PasswordBox:
+
+
+ + +sw::TextBoxBase +sw::Control +sw::UIElement +sw::WndBase +sw::ILayout +sw::ITag + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

PasswordBox ()
 初始化密码框
 
- Public Member Functions inherited from sw::TextBoxBase
+virtual ~TextBoxBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
void Select (int start, int length)
 选择指定文本内容
 
+void SelectAll ()
 选中所有文本
 
+void ScrollToCaret ()
 将控件内容滚动到当前插入符号位置
 
bool Undo ()
 撤销
 
+void Clear ()
 清空内容
 
- Public Member Functions inherited from sw::Control
+virtual ~Control ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
- Public Member Functions inherited from sw::UIElement
+virtual ~UIElement ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
void RegisterRoutedEvent (RoutedEventType eventType, const RoutedEvent &handler)
 注册路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename T >
void RegisterRoutedEvent (RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))
 注册成员函数作为路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename TEventArgs , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (std::function< void(UIElement &, TEventArgs &)> handler)
 根据事件参数类型注册路由事件
 
template<typename TEventArgs , typename THandleObj , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))
 根据事件参数类型注册成员函数作为路由事件
 
void UnregisterRoutedEvent (RoutedEventType eventType)
 取消对应类型路由事件的注册
 
bool IsRoutedEventRegistered (RoutedEventType eventType)
 判断路由事件是否已被注册
 
bool AddChild (UIElement *element)
 添加子控件
 
bool AddChild (UIElement &element)
 添加子控件
 
bool AddChild (UIElement *element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool AddChild (UIElement &element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool RemoveChildAt (int index)
 移除指定索引处的子控件
 
bool RemoveChild (UIElement *element)
 移除子控件
 
bool RemoveChild (UIElement &element)
 移除子控件
 
+void ClearChildren ()
 移除所有子控件
 
int IndexOf (UIElement *element)
 获取指定元素的索引
 
int IndexOf (UIElement &element)
 获取指定元素的索引
 
+UIElementoperator[] (int index) const
 通过索引获取子控件
 
void ShowContextMenu (const Point &point)
 弹出当前元素的上下文菜单
 
+void MoveToTop ()
 移动到界面顶部
 
+void MoveToBottom ()
 移动到界面底部
 
+bool IsRootElement ()
 判断当前元素是否为根节点
 
+UIElementGetRootElement ()
 获取当前元素所在界面树的根节点
 
+UIElementGetNextElement ()
 获取当前元素在界面树上的下一个节点,若已是最后一个节点则返回根节点
 
+UIElementGetNextTabStopElement ()
 获取下一个TabStop属性为true的元素
 
+Color GetRealBackColor ()
 获取当前要显示的背景颜色:当Transparent为true时获取到祖先节点中首个Transparent为false的背景颜色,否则返回当前元素的背景颜色
 
+Color GetRealTextColor ()
 获取当前要显示的文本颜色:当InheritTextColor为true时获取到祖先节点中首个InheritTextColor为false的文本颜色,否则返回当前元素的文本颜色
 
void SetCursor (HCURSOR hCursor)
 设置鼠标样式
 
void SetCursor (StandardCursor cursor)
 设置鼠标样式
 
+void ResetCursor ()
 将鼠标样式设置为默认样式
 
void SetAlignment (sw::HorizontalAlignment horz, sw::VerticalAlignment vert)
 设置对齐方式
 
virtual uint64_t GetTag () override
 获取Tag
 
virtual void SetTag (uint64_t tag) override
 设置Tag
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取参与布局的子控件数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取对应索引处的子控件,使用此函数前必须先调用GetChildLayoutCount
 
virtual Size GetDesireSize () override
 获取控件所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置当前控件所需的尺寸
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const sw::Rect &finalPosition) override
 安排控件位置
 
- Public Member Functions inherited from sw::WndBase
+virtual ~WndBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void Show (int nCmdShow)
 该函数调用ShowWindow
 
+void Close ()
 发送关闭消息
 
+void Update ()
 该函数调用UpdateWindow
 
+void UpdateFont ()
 更新字体
 
void Redraw (bool erase=false)
 重画
 
+bool IsControl ()
 判断当前对象是否是控件
 
+bool IsVisible ()
 判断当前对象在界面中是否可视,与Visible属性不同的是该函数返回值会受父窗口的影响
 
Point PointToScreen (const Point &point)
 获取用户区点在屏幕上点的位置
 
Point PointFromScreen (const Point &screenPoint)
 获取屏幕上点在当前用户区点的位置
 
+LRESULT SendMessageW (UINT uMsg, WPARAM wParam, LPARAM lParam)
 发送消息
 
HitTestResult NcHitTest (const Point &testPoint)
 测试指定点在窗口的哪一部分
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Attributes

+const Property< wchar_tPasswordChar
 密码框显示的字符
 
- Public Attributes inherited from sw::TextBoxBase
+const Property< boolReadOnly
 是否只读
 
+const Property< sw::HorizontalAlignment > HorizontalContentAlignment
 文本的水平对齐方式,可设为左对齐、中心对齐、右对齐
 
+const ReadOnlyProperty< boolCanUndo
 是否可以撤销
 
+const Property< boolAcceptTab
 是否允许输入制表符
 
- Public Attributes inherited from sw::UIElement
+const Property< ThicknessMargin
 边距
 
+const Property< HorizontalAlignment > HorizontalAlignment
 水平对齐方式
 
+const Property< VerticalAlignment > VerticalAlignment
 垂直对齐方式
 
+const ReadOnlyProperty< intChildCount
 子控件数量
 
+const Property< boolCollapseWhenHide
 是否在不可见时不参与布局
 
+const ReadOnlyProperty< UIElement * > Parent
 指向父元素的指针,当前元素为顶级窗口时该值为nullptr
 
+const Property< uint64_tTag
 储存用户自定义信息的标记
 
+const Property< uint64_tLayoutTag
 布局标记,对于不同的布局有不同含义
 
+const Property< sw::ContextMenu * > ContextMenu
 右键按下时弹出的菜单
 
+const Property< boolFloat
 元素是否悬浮,若元素悬浮则该元素不会随滚动条滚动而改变位置
 
+const Property< boolTabStop
 表示用户是否可以通过按下Tab键将焦点移动到当前元素
 
+const Property< ColorBackColor
 背景颜色,修改该属性会同时将Transparent属性设为false,对于部分控件该属性可能不生效
 
+const Property< ColorTextColor
 文本颜色,修改该属性会同时将InheritTextColor属性设为false,对于部分控件该属性可能不生效
 
+const Property< boolTransparent
 是否使用透明背景(此属性并非真正意义上的透明,将该属性设为true可继承父元素的背景颜色)
 
+const Property< boolInheritTextColor
 是否继承父元素的文本颜色
 
- Public Attributes inherited from sw::WndBase
+const ReadOnlyProperty< HWNDHandle
 窗口句柄
 
+const Property< sw::FontFont
 字体
 
+const Property< std::wstring > FontName
 字体名称
 
+const Property< doubleFontSize
 字体大小
 
+const Property< sw::FontWeight > FontWeight
 字体粗细
 
+const Property< sw::RectRect
 位置和尺寸
 
+const Property< doubleLeft
 左边
 
+const Property< doubleTop
 顶边
 
+const Property< doubleWidth
 宽度
 
+const Property< doubleHeight
 高度
 
+const ReadOnlyProperty< sw::RectClientRect
 用户区尺寸
 
+const ReadOnlyProperty< doubleClientWidth
 用户区宽度
 
+const ReadOnlyProperty< doubleClientHeight
 用户区高度
 
+const Property< boolEnabled
 窗口或控件是否可用
 
+const Property< boolVisible
 窗口或控件是否可见
 
+const Property< std::wstring > Text
 窗口标题或控件文本
 
+const Property< boolFocused
 窗口是否拥有焦点
 
+const ReadOnlyProperty< WndBase * > Parent
 父窗口
 
+const ReadOnlyProperty< boolIsDestroyed
 是否已销毁,当该值为true时不应该继续使用当前对象
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Additional Inherited Members

- Static Public Member Functions inherited from sw::WndBase
static WndBaseGetWndBase (HWND hwnd)
 通过窗口句柄获取WndBase
 
- Protected Member Functions inherited from sw::TextBoxBase
TextBoxBase ()
 初始化TextBoxBase
 
+void InitTextBoxBase (DWORD dwStyle, DWORD dwExStyle)
 初始化控件
 
virtual std::wstring & GetText () override
 获取窗口文本
 
virtual void OnCommand (int code) override
 当父窗口接收到控件的WM_COMMAND时调用该函数
 
virtual bool OnChar (wchar_t ch, KeyFlags flags) override
 接收到WM_CHAR时调用该函数
 
virtual bool OnKeyDown (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYDOWN时调用该函数
 
virtual void OnDrawFocusRect () override
 绘制虚线框时调用该函数
 
- Protected Member Functions inherited from sw::Control
Control ()
 初始化控件
 
+void ResetHandle ()
 销毁控件句柄并重新初始化,该操作会创建新的句柄并设置样式、文本、字体等
 
+virtual void HandleChenged ()
 控件句柄发生改变时调用该函数
 
- Protected Member Functions inherited from sw::UIElement
UIElement ()
 初始化UIElement
 
void RaiseRoutedEvent (RoutedEventType eventType)
 触发路由事件
 
void RaiseRoutedEvent (RoutedEventArgs &eventArgs)
 触发路由事件
 
+void NotifyLayoutUpdated ()
 通知顶级窗口布局改变
 
+doubleGetArrangeOffsetX ()
 获取Arrange时子元素的水平偏移量
 
+doubleGetArrangeOffsetY ()
 获取Arrange时子元素的垂直偏移量
 
double GetChildRightmost (bool update)
 获取所有子元素在当前元素中最右边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
double GetChildBottommost (bool update)
 获取所有子元素在当前元素中最底边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
+void UpdateChildrenZOrder ()
 更新子元素的Z轴位置
 
+void UpdateSiblingsZOrder ()
 更新兄弟元素的Z轴位置
 
+void SetNextTabStopFocus ()
 设置下一个TabStop属性为true的元素为焦点元素
 
virtual void SetBackColor (Color color, bool redraw)
 设置背景颜色
 
virtual void SetTextColor (Color color, bool redraw)
 设置文本颜色
 
virtual void OnAddedChild (UIElement &element)
 添加子元素后调用该函数
 
virtual void OnRemovedChild (UIElement &element)
 移除子元素后调用该函数
 
+virtual void OnTabStop ()
 通过tab键将焦点移动到当前元素时调用该函数
 
virtual bool SetParent (WndBase *parent) override
 设置父窗口
 
virtual void ParentChanged (WndBase *newParent) override
 父窗口改变时调用此函数
 
virtual void OnEndPaint () override
 在OnPaint函数完成之后调用该函数
 
virtual bool OnClose () override
 接收到WM_CLOSE时调用该函数
 
virtual bool OnMove (Point newClientPosition) override
 接收到WM_MOVE时调用该函数
 
virtual bool OnSize (Size newClientSize) override
 接收到WM_SIZE时调用该函数
 
virtual void OnTextChanged () override
 Text属性更改时调用此函数
 
virtual void VisibleChanged (bool newVisible) override
 Visible属性改变时调用此函数
 
virtual bool OnSetFocus (HWND hPrevFocus) override
 接收到WM_SETFOCUS时调用该函数
 
virtual bool OnKillFocus (HWND hNextFocus) override
 接收到WM_KILLFOCUS时调用该函数
 
virtual bool OnKeyUp (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYUP时调用该函数
 
virtual bool OnMouseMove (Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEMOVE时调用该函数
 
virtual bool OnMouseLeave () override
 接收到WM_MOUSELEAVE时调用该函数
 
virtual bool OnMouseWheel (int wheelDelta, Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEWHEEL时调用该函数
 
virtual bool OnMouseLeftButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONDOWN时调用该函数
 
virtual bool OnMouseLeftButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONUP时调用该函数
 
virtual bool OnMouseRightButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONDOWN时调用该函数
 
virtual bool OnMouseRightButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONUP时调用该函数
 
virtual bool OnMouseMiddleButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONDOWN时调用该函数
 
virtual bool OnMouseMiddleButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONUP时调用该函数
 
virtual bool OnContextMenu (bool isKeyboardMsg, Point mousePosition) override
 接收到WM_CONTEXTMENU后调用目标控件的该函数
 
virtual void OnMenuCommand (int id) override
 当WM_COMMAND接收到菜单命令时调用该函数
 
virtual bool OnColor (HDC hdc, HBRUSH &hRetBrush) override
 父窗口接收到WM_CTLCOLORxxx时调用对应控件的该函数
 
virtual bool OnSetCursor (HWND hwnd, HitTestResult hitTest, int message, bool &result) override
 接收到WM_SETCURSOR消息时调用该函数
 
- Protected Member Functions inherited from sw::WndBase
WndBase ()
 初始化WndBase
 
WndBase (const WndBase &)=delete
 
WndBase (WndBase &&)=delete
 
+WndBaseoperator= (const WndBase &)=delete
 
+WndBaseoperator= (WndBase &&)=delete
 
+void InitWindow (LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为窗口,该函数会调用CreateWindowExW
 
+void InitControl (LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为控件,该函数会调用CreateWindowExW
 
+LONG_PTR GetStyle ()
 获取窗口样式
 
+void SetStyle (LONG_PTR style)
 设置窗口样式
 
+bool GetStyle (LONG_PTR style)
 获取窗口的某个样式
 
+void SetStyle (LONG_PTR style, bool value)
 设置窗口的某个样式
 
+LONG_PTR GetExtendedStyle ()
 获取扩展窗口样式
 
+void SetExtendedStyle (LONG_PTR style)
 设置扩展窗口样式
 
+bool GetExtendedStyle (LONG_PTR style)
 获取窗口的某个扩展样式
 
+void SetExtendedStyle (LONG_PTR style, bool value)
 设置窗口的某个扩展样式
 
+HFONT GetFontHandle ()
 获取字体句柄
 
+LRESULT DefaultWndProc (const ProcMsg &refMsg)
 调用默认的WndProc,对于窗口则调用DefWindowProcW,控件则调用_controlOldWndProc
 
virtual LRESULT WndProc (const ProcMsg &refMsg)
 对WndProc的封装
 
+void UpdateText ()
 更新_text字段
 
virtual void SetText (const std::wstring &value)
 调用SetWindowTextW设置窗口文本
 
virtual bool OnCreate ()
 接收到WM_CREATE时调用该函数
 
virtual bool OnDestroy ()
 接收到WM_DESTROY时调用该函数
 
virtual bool OnPaint ()
 接收到WM_PAINT时调用该函数
 
virtual bool OnMouseLeftButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_LBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseRightButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_RBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseMiddleButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_MBUTTONDBLCLK时调用该函数
 
virtual bool OnDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_DEADCHAR时调用该函数
 
virtual bool OnSysChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSCHAR时调用该函数
 
virtual bool OnSysDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSDEADCHAR时调用该函数
 
virtual bool OnSysKeyDown (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYDOWN时调用该函数
 
virtual bool OnSysKeyUp (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYUP时调用该函数
 
virtual void OnControlCommand (WndBase *pControl, int code, int id)
 当WM_COMMAND接收到控件命令时调用该函数
 
virtual void OnAcceleratorCommand (int id)
 当WM_COMMAND接收到快捷键命令时调用该函数
 
virtual void HandleInitialized (HWND hwnd)
 窗口句柄初始化完成
 
virtual void FontChanged (HFONT hfont)
 字体改变时调用该函数
 
virtual bool OnNotify (NMHDR *pNMHDR)
 接收到WM_NOTIFY后调用该函数
 
virtual void OnNotified (NMHDR *pNMHDR)
 父窗口接收到WM_NOTIFY后调用发出通知控件的该函数
 
virtual bool OnVerticalScroll (int event, int pos)
 接收到WM_VSCROLL时调用目标控件的该函数
 
virtual bool OnHorizontalScroll (int event, int pos)
 接收到WM_HSCROLL时调用目标控件的该函数
 
virtual bool OnEnabledChanged (bool newValue)
 接收到WM_ENABLE时调用该函数
 
virtual bool OnCtlColor (WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)
 接收到WM_CTLCOLORxxx时调用该函数
 
virtual void OnNcHitTest (const Point &testPoint, HitTestResult &result)
 接收到WM_NCHITTEST后调用该函数
 
virtual bool OnEraseBackground (int &result)
 接收到WM_ERASEBKGND时调用该函数
 
virtual bool OnDrawItem (int id, DRAWITEMSTRUCT *pDrawItem)
 接收到WM_DRAWITEM时调用该函数
 
+

Detailed Description

+

密码框

+

The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_password_box.js b/docs/classsw_1_1_password_box.js new file mode 100644 index 00000000..7f798dde --- /dev/null +++ b/docs/classsw_1_1_password_box.js @@ -0,0 +1,5 @@ +var classsw_1_1_password_box = +[ + [ "PasswordBox", "classsw_1_1_password_box.html#a5e6b907e4c80b16dc1691eb6271778f5", null ], + [ "PasswordChar", "classsw_1_1_password_box.html#acb858c64ba690363567d5c73cc49ad7e", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_password_box.png b/docs/classsw_1_1_password_box.png new file mode 100644 index 0000000000000000000000000000000000000000..1a8d6af21ad476445468269c97691943e6e32d7e GIT binary patch literal 2086 zcmb_dYfzI{8vYWiY{bZPX~8uhI}Vg`4Z8?YDWC<02Du0=phQ63p~8?5ttQ+IWu!}2 z7-5YqG$;uoYYNps68M541S%~U4mgXLr>;dZknw405r2oDvh0;o&;p>*pAhSh~walVQI9$nc0M%kZ^ME=usx9v60$d>XQFcm4do z57z(0Ns;Fn4`iqq^vR*JR#2NrN4rn|gaOYCw4xi;qaM=&N9c~kY7^AsGpoyen~rP^*S;rMC-E>s@In`HW?}`zPRRylL{0)-xovb@T*Of%%_m& z!1~R?kZ}#qZRmS4Kh-~T{S@0}(G+K%ptaTF90Fa{@^teOzK4Mrn2<)hR2!Iqhp9U# zCiPcM+%Y7KMZZnuCoXdUvPQA&qSpfaCz0wQZ z9Hz-#irw3l>lu!oh&lTooq9jU!#?=K5O#;LXN*)@}+?1DstT0seD2Q?)i@5C}2mg$m zKm26NNp{hWic|gmnU>3WvSUwQX06S047X@C$dOqDUM#`is{(<2!=(1Ok&H;FQJ35f z&u+FJOzR+{wXgYTfsUUChfWvyUiZ@i2xSze^sTuG8|i~OrxQT*#(6T4{-rl%@XiX~ zQl<=EP~rEdgWx;8*~$TSx7Z$g#a;Kp|Fe3D!j0OV!&7%g;60|}9Kf=4JglmIWT$kh zVIMCUg&xlv%^f9K{Xjkb46FI=qQvXg08_X`QoR?{6P%lo)BR-bfBcSyXFmBt2Dh9; z&t?rB+Z7#whY7W6fnrSbGSlH(_SXHzqW4@L@Xh~9+mn}LNWmWbMQ1j{=QjxB%WKIn z_flsC@YmjIXB=>ZhdT>%*`TjJxDzP1U3hQK<`@3A9>edC&9OF=5}y5S2G!piq)vMM z%7$;D+^8*66oW`|?Fv zDn0K`JHdP?jetp=YQIDC4T;ZV0C# z-EjZF(G25**#ElcvcGmu*vuZwjkcfQ-9zw#XUM<9ECsI>W~*~=A|B?e$SJcw`927+ z_Wri8{63eP>XKf=XLb3OmTO|X)QzWcF<$gH-0>aNNin8Ivz3Xi)b;1ACdPO%f@JjW zJIRnL235j@&XJKJ{mDkkveg)GV*JWoo%*P_iULE|!3U?)GD8QPWfkoD*b&qZ>v zXNXM5Pmvb3@g8^MtwOy=EiIr=w|vn;SnH + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::Path Member List
+
+
+ +

This is the complete list of members for sw::Path, including all inherited members.

+ + + + + + + +
Combine(std::initializer_list< std::wstring > paths)sw::Pathstatic
GetAbsolutePath(const std::wstring &path)sw::Pathstatic
GetDirectory(const std::wstring &path)sw::Pathstatic
GetExtension(const std::wstring &path)sw::Pathstatic
GetFileName(const std::wstring &path)sw::Pathstatic
GetFileNameWithoutExt(const std::wstring &path)sw::Pathstatic
+
+ + + + diff --git a/docs/classsw_1_1_path.html b/docs/classsw_1_1_path.html new file mode 100644 index 00000000..a3888980 --- /dev/null +++ b/docs/classsw_1_1_path.html @@ -0,0 +1,347 @@ + + + + + + + +SimpleWindow: sw::Path Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
sw::Path Class Reference
+
+
+ +

用于处理文件路径的工具类 + More...

+ +

#include <Path.h>

+ + + + + + + + + + + + + + + + + + + + +

+Static Public Member Functions

static std::wstring GetFileName (const std::wstring &path)
 获取文件名
 
static std::wstring GetFileNameWithoutExt (const std::wstring &path)
 获取文件名
 
static std::wstring GetExtension (const std::wstring &path)
 获取扩展名
 
static std::wstring GetDirectory (const std::wstring &path)
 获取文件所在路径
 
static std::wstring Combine (std::initializer_list< std::wstring > paths)
 对路径进行拼接
 
static std::wstring GetAbsolutePath (const std::wstring &path)
 获取路径所对应的绝对路径
 
+

Detailed Description

+

用于处理文件路径的工具类

+

Member Function Documentation

+ +

◆ Combine()

+ +
+
+ + + + + +
+ + + + + + + +
static std::wstring sw::Path::Combine (std::initializer_list< std::wstring > paths)
+
+static
+
+ +

对路径进行拼接

+
Parameters
+ + +
paths要拼接的路径
+
+
+
Returns
完整的路径
+ +
+
+ +

◆ GetAbsolutePath()

+ +
+
+ + + + + +
+ + + + + + + +
static std::wstring sw::Path::GetAbsolutePath (const std::wstring & path)
+
+static
+
+ +

获取路径所对应的绝对路径

+
Parameters
+ + +
paths要转换的路径
+
+
+
Returns
若函数成功则返回绝对路径,否则返回空字符串
+ +
+
+ +

◆ GetDirectory()

+ +
+
+ + + + + +
+ + + + + + + +
static std::wstring sw::Path::GetDirectory (const std::wstring & path)
+
+static
+
+ +

获取文件所在路径

+
Parameters
+ + +
path文件的路径
+
+
+
Returns
文件所在路径
+ +
+
+ +

◆ GetExtension()

+ +
+
+ + + + + +
+ + + + + + + +
static std::wstring sw::Path::GetExtension (const std::wstring & path)
+
+static
+
+ +

获取扩展名

+
Parameters
+ + +
path文件的路径
+
+
+
Returns
文件的扩展名,不包含前面的点
+ +
+
+ +

◆ GetFileName()

+ +
+
+ + + + + +
+ + + + + + + +
static std::wstring sw::Path::GetFileName (const std::wstring & path)
+
+static
+
+ +

获取文件名

+
Parameters
+ + +
path文件的路径
+
+
+
Returns
文件名,包含扩展名
+ +
+
+ +

◆ GetFileNameWithoutExt()

+ +
+
+ + + + + +
+ + + + + + + +
static std::wstring sw::Path::GetFileNameWithoutExt (const std::wstring & path)
+
+static
+
+ +

获取文件名

+
Parameters
+ + +
path文件的路径
+
+
+
Returns
文件名,不含扩展名
+ +
+
+
The documentation for this class was generated from the following file:
    +
  • D:/code/GitHub/sw/sw/inc/Path.h
  • +
+
+
+ + + + diff --git a/docs/classsw_1_1_progress_bar-members.html b/docs/classsw_1_1_progress_bar-members.html new file mode 100644 index 00000000..f90d31d9 --- /dev/null +++ b/docs/classsw_1_1_progress_bar-members.html @@ -0,0 +1,294 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::ProgressBar Member List
+
+
+ +

This is the complete list of members for sw::ProgressBar, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AddChild(UIElement *element)sw::UIElement
AddChild(UIElement &element)sw::UIElement
AddChild(UIElement *element, uint64_t layoutTag)sw::UIElement
AddChild(UIElement &element, uint64_t layoutTag)sw::UIElement
Arrange(const sw::Rect &finalPosition) overridesw::UIElementvirtual
BackColorsw::UIElement
ChildCountsw::UIElement
ClearChildren()sw::UIElement
ClientHeightsw::WndBase
ClientRectsw::WndBase
ClientWidthsw::WndBase
Close()sw::WndBase
CollapseWhenHidesw::UIElement
ContextMenusw::UIElement
Control()sw::Controlprotected
DefaultWndProc(const ProcMsg &refMsg)sw::WndBaseprotected
Enabledsw::WndBase
Floatsw::UIElement
Focusedsw::WndBase
Fontsw::WndBase
FontChanged(HFONT hfont)sw::WndBaseprotectedvirtual
FontNamesw::WndBase
FontSizesw::WndBase
FontWeightsw::WndBase
GetArrangeOffsetX()sw::UIElementprotected
GetArrangeOffsetY()sw::UIElementprotected
GetChildBottommost(bool update)sw::UIElementprotected
GetChildLayoutAt(int index) overridesw::UIElementvirtual
GetChildLayoutCount() overridesw::UIElementvirtual
GetChildRightmost(bool update)sw::UIElementprotected
GetDesireSize() overridesw::UIElementvirtual
GetExtendedStyle()sw::WndBaseprotected
GetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
GetFontHandle()sw::WndBaseprotected
GetLayoutTag() overridesw::UIElementvirtual
GetNextElement()sw::UIElement
GetNextTabStopElement()sw::UIElement
GetRealBackColor()sw::UIElement
GetRealTextColor()sw::UIElement
GetRootElement()sw::UIElement
GetStyle()sw::WndBaseprotected
GetStyle(LONG_PTR style)sw::WndBaseprotected
GetTag() overridesw::UIElementvirtual
GetText()sw::WndBaseprotectedvirtual
GetWndBase(HWND hwnd)sw::WndBasestatic
Handlesw::WndBase
HandleChenged()sw::Controlprotectedvirtual
HandleInitialized(HWND hwnd)sw::WndBaseprotectedvirtual
Heightsw::WndBase
HorizontalAlignmentsw::UIElement
IndexOf(UIElement *element)sw::UIElement
IndexOf(UIElement &element)sw::UIElement
InheritTextColorsw::UIElement
InitControl(LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
InitWindow(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
IsControl()sw::WndBase
IsDestroyedsw::WndBase
IsRootElement()sw::UIElement
IsRoutedEventRegistered(RoutedEventType eventType)sw::UIElement
IsVisible()sw::WndBase
LayoutTagsw::UIElement
Leftsw::WndBase
Marginsw::UIElement
Maximumsw::ProgressBar
Measure(const Size &availableSize) overridesw::UIElementvirtual
Minimumsw::ProgressBar
MoveToBottom()sw::UIElement
MoveToTop()sw::UIElement
NcHitTest(const Point &testPoint)sw::WndBase
NotifyLayoutUpdated()sw::UIElementprotected
OnAcceleratorCommand(int id)sw::WndBaseprotectedvirtual
OnAddedChild(UIElement &element)sw::UIElementprotectedvirtual
OnChar(wchar_t ch, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnClose() overridesw::UIElementprotectedvirtual
OnColor(HDC hdc, HBRUSH &hRetBrush) overridesw::UIElementprotectedvirtual
OnCommand(int code)sw::WndBaseprotectedvirtual
OnContextMenu(bool isKeyboardMsg, Point mousePosition) overridesw::UIElementprotectedvirtual
OnControlCommand(WndBase *pControl, int code, int id)sw::WndBaseprotectedvirtual
OnCreate()sw::WndBaseprotectedvirtual
OnCtlColor(WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)sw::WndBaseprotectedvirtual
OnDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnDestroy()sw::WndBaseprotectedvirtual
OnDrawFocusRect()sw::UIElementprotectedvirtual
OnDrawItem(int id, DRAWITEMSTRUCT *pDrawItem)sw::WndBaseprotectedvirtual
OnEnabledChanged(bool newValue)sw::WndBaseprotectedvirtual
OnEndPaint() overridesw::UIElementprotectedvirtual
OnEraseBackground(int &result)sw::WndBaseprotectedvirtual
OnHorizontalScroll(int event, int pos)sw::WndBaseprotectedvirtual
OnKeyDown(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKeyUp(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKillFocus(HWND hNextFocus) overridesw::UIElementprotectedvirtual
OnMenuCommand(int id) overridesw::UIElementprotectedvirtual
OnMouseLeave() overridesw::UIElementprotectedvirtual
OnMouseLeftButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseLeftButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseMiddleButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMove(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseRightButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseWheel(int wheelDelta, Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMove(Point newClientPosition) overridesw::UIElementprotectedvirtual
OnNcHitTest(const Point &testPoint, HitTestResult &result)sw::WndBaseprotectedvirtual
OnNotified(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnNotify(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnPaint()sw::WndBaseprotectedvirtual
OnRemovedChild(UIElement &element)sw::UIElementprotectedvirtual
OnSetCursor(HWND hwnd, HitTestResult hitTest, int message, bool &result) overridesw::UIElementprotectedvirtual
OnSetFocus(HWND hPrevFocus) overridesw::UIElementprotectedvirtual
OnSize(Size newClientSize) overridesw::UIElementprotectedvirtual
OnSysChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyDown(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyUp(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnTabStop()sw::UIElementprotectedvirtual
OnTextChanged() overridesw::UIElementprotectedvirtual
OnVerticalScroll(int event, int pos)sw::WndBaseprotectedvirtual
operator=(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator=(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator[](int index) constsw::UIElement
Parentsw::UIElement
ParentChanged(WndBase *newParent) overridesw::UIElementprotectedvirtual
PointFromScreen(const Point &screenPoint)sw::WndBase
PointToScreen(const Point &point)sw::WndBase
ProgressBar()sw::ProgressBar
RaiseRoutedEvent(RoutedEventType eventType)sw::UIElementprotected
RaiseRoutedEvent(RoutedEventArgs &eventArgs)sw::UIElementprotected
Rectsw::WndBase
Redraw(bool erase=false)sw::WndBase
RegisterRoutedEvent(RoutedEventType eventType, const RoutedEvent &handler)sw::UIElement
RegisterRoutedEvent(RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))sw::UIElementinline
RegisterRoutedEvent(std::function< void(UIElement &, TEventArgs &)> handler)sw::UIElementinline
RegisterRoutedEvent(THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))sw::UIElementinline
RemoveChild(UIElement *element)sw::UIElement
RemoveChild(UIElement &element)sw::UIElement
RemoveChildAt(int index)sw::UIElement
ResetCursor()sw::UIElement
ResetHandle()sw::Controlprotected
SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase
SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement
SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual
SetCursor(HCURSOR hCursor)sw::UIElement
SetCursor(StandardCursor cursor)sw::UIElement
SetDesireSize(const Size &size) overridesw::UIElementvirtual
SetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
SetExtendedStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetNextTabStopFocus()sw::UIElementprotected
SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual
SetStyle(LONG_PTR style)sw::WndBaseprotected
SetStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetTag(uint64_t tag) overridesw::UIElementvirtual
SetText(const std::wstring &value)sw::WndBaseprotectedvirtual
SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual
Show(int nCmdShow)sw::WndBase
ShowContextMenu(const Point &point)sw::UIElement
Statesw::ProgressBar
TabStopsw::UIElement
Tagsw::UIElement
Textsw::WndBase
TextColorsw::UIElement
Topsw::WndBase
Transparentsw::UIElement
UIElement()sw::UIElementprotected
UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement
Update()sw::WndBase
UpdateChildrenZOrder()sw::UIElementprotected
UpdateFont()sw::WndBase
UpdateSiblingsZOrder()sw::UIElementprotected
UpdateText()sw::WndBaseprotected
Valuesw::ProgressBar
Verticalsw::ProgressBar
VerticalAlignmentsw::UIElement
Visiblesw::WndBase
VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual
Widthsw::WndBase
WndBase()sw::WndBaseprotected
WndBase(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndBase(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual
~Control()=0sw::Controlpure virtual
~UIElement()=0sw::UIElementpure virtual
~WndBase()=0sw::WndBasepure virtual
+
+ + + + diff --git a/docs/classsw_1_1_progress_bar.html b/docs/classsw_1_1_progress_bar.html new file mode 100644 index 00000000..5b643a20 --- /dev/null +++ b/docs/classsw_1_1_progress_bar.html @@ -0,0 +1,800 @@ + + + + + + + +SimpleWindow: sw::ProgressBar Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
sw::ProgressBar Class Reference
+
+
+ +

进度条控件 + More...

+ +

#include <ProgressBar.h>

+
+Inheritance diagram for sw::ProgressBar:
+
+
+ + +sw::Control +sw::UIElement +sw::WndBase +sw::ILayout +sw::ITag + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

ProgressBar ()
 初始化进度条
 
- Public Member Functions inherited from sw::Control
+virtual ~Control ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
- Public Member Functions inherited from sw::UIElement
+virtual ~UIElement ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
void RegisterRoutedEvent (RoutedEventType eventType, const RoutedEvent &handler)
 注册路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename T >
void RegisterRoutedEvent (RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))
 注册成员函数作为路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename TEventArgs , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (std::function< void(UIElement &, TEventArgs &)> handler)
 根据事件参数类型注册路由事件
 
template<typename TEventArgs , typename THandleObj , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))
 根据事件参数类型注册成员函数作为路由事件
 
void UnregisterRoutedEvent (RoutedEventType eventType)
 取消对应类型路由事件的注册
 
bool IsRoutedEventRegistered (RoutedEventType eventType)
 判断路由事件是否已被注册
 
bool AddChild (UIElement *element)
 添加子控件
 
bool AddChild (UIElement &element)
 添加子控件
 
bool AddChild (UIElement *element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool AddChild (UIElement &element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool RemoveChildAt (int index)
 移除指定索引处的子控件
 
bool RemoveChild (UIElement *element)
 移除子控件
 
bool RemoveChild (UIElement &element)
 移除子控件
 
+void ClearChildren ()
 移除所有子控件
 
int IndexOf (UIElement *element)
 获取指定元素的索引
 
int IndexOf (UIElement &element)
 获取指定元素的索引
 
+UIElementoperator[] (int index) const
 通过索引获取子控件
 
void ShowContextMenu (const Point &point)
 弹出当前元素的上下文菜单
 
+void MoveToTop ()
 移动到界面顶部
 
+void MoveToBottom ()
 移动到界面底部
 
+bool IsRootElement ()
 判断当前元素是否为根节点
 
+UIElementGetRootElement ()
 获取当前元素所在界面树的根节点
 
+UIElementGetNextElement ()
 获取当前元素在界面树上的下一个节点,若已是最后一个节点则返回根节点
 
+UIElementGetNextTabStopElement ()
 获取下一个TabStop属性为true的元素
 
+Color GetRealBackColor ()
 获取当前要显示的背景颜色:当Transparent为true时获取到祖先节点中首个Transparent为false的背景颜色,否则返回当前元素的背景颜色
 
+Color GetRealTextColor ()
 获取当前要显示的文本颜色:当InheritTextColor为true时获取到祖先节点中首个InheritTextColor为false的文本颜色,否则返回当前元素的文本颜色
 
void SetCursor (HCURSOR hCursor)
 设置鼠标样式
 
void SetCursor (StandardCursor cursor)
 设置鼠标样式
 
+void ResetCursor ()
 将鼠标样式设置为默认样式
 
void SetAlignment (sw::HorizontalAlignment horz, sw::VerticalAlignment vert)
 设置对齐方式
 
virtual uint64_t GetTag () override
 获取Tag
 
virtual void SetTag (uint64_t tag) override
 设置Tag
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取参与布局的子控件数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取对应索引处的子控件,使用此函数前必须先调用GetChildLayoutCount
 
virtual Size GetDesireSize () override
 获取控件所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置当前控件所需的尺寸
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const sw::Rect &finalPosition) override
 安排控件位置
 
- Public Member Functions inherited from sw::WndBase
+virtual ~WndBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void Show (int nCmdShow)
 该函数调用ShowWindow
 
+void Close ()
 发送关闭消息
 
+void Update ()
 该函数调用UpdateWindow
 
+void UpdateFont ()
 更新字体
 
void Redraw (bool erase=false)
 重画
 
+bool IsControl ()
 判断当前对象是否是控件
 
+bool IsVisible ()
 判断当前对象在界面中是否可视,与Visible属性不同的是该函数返回值会受父窗口的影响
 
Point PointToScreen (const Point &point)
 获取用户区点在屏幕上点的位置
 
Point PointFromScreen (const Point &screenPoint)
 获取屏幕上点在当前用户区点的位置
 
+LRESULT SendMessageW (UINT uMsg, WPARAM wParam, LPARAM lParam)
 发送消息
 
HitTestResult NcHitTest (const Point &testPoint)
 测试指定点在窗口的哪一部分
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Attributes

+const Property< uint16_tMinimum
 进度范围的下限
 
+const Property< uint16_tMaximum
 进度范围的上限
 
+const Property< uint16_tValue
 当前进度值
 
+const Property< ProgressBarState > State
 进度条状态
 
+const Property< boolVertical
 是否显示为垂直进度条
 
- Public Attributes inherited from sw::UIElement
+const Property< ThicknessMargin
 边距
 
+const Property< HorizontalAlignment > HorizontalAlignment
 水平对齐方式
 
+const Property< VerticalAlignment > VerticalAlignment
 垂直对齐方式
 
+const ReadOnlyProperty< intChildCount
 子控件数量
 
+const Property< boolCollapseWhenHide
 是否在不可见时不参与布局
 
+const ReadOnlyProperty< UIElement * > Parent
 指向父元素的指针,当前元素为顶级窗口时该值为nullptr
 
+const Property< uint64_tTag
 储存用户自定义信息的标记
 
+const Property< uint64_tLayoutTag
 布局标记,对于不同的布局有不同含义
 
+const Property< sw::ContextMenu * > ContextMenu
 右键按下时弹出的菜单
 
+const Property< boolFloat
 元素是否悬浮,若元素悬浮则该元素不会随滚动条滚动而改变位置
 
+const Property< boolTabStop
 表示用户是否可以通过按下Tab键将焦点移动到当前元素
 
+const Property< ColorBackColor
 背景颜色,修改该属性会同时将Transparent属性设为false,对于部分控件该属性可能不生效
 
+const Property< ColorTextColor
 文本颜色,修改该属性会同时将InheritTextColor属性设为false,对于部分控件该属性可能不生效
 
+const Property< boolTransparent
 是否使用透明背景(此属性并非真正意义上的透明,将该属性设为true可继承父元素的背景颜色)
 
+const Property< boolInheritTextColor
 是否继承父元素的文本颜色
 
- Public Attributes inherited from sw::WndBase
+const ReadOnlyProperty< HWNDHandle
 窗口句柄
 
+const Property< sw::FontFont
 字体
 
+const Property< std::wstring > FontName
 字体名称
 
+const Property< doubleFontSize
 字体大小
 
+const Property< sw::FontWeight > FontWeight
 字体粗细
 
+const Property< sw::RectRect
 位置和尺寸
 
+const Property< doubleLeft
 左边
 
+const Property< doubleTop
 顶边
 
+const Property< doubleWidth
 宽度
 
+const Property< doubleHeight
 高度
 
+const ReadOnlyProperty< sw::RectClientRect
 用户区尺寸
 
+const ReadOnlyProperty< doubleClientWidth
 用户区宽度
 
+const ReadOnlyProperty< doubleClientHeight
 用户区高度
 
+const Property< boolEnabled
 窗口或控件是否可用
 
+const Property< boolVisible
 窗口或控件是否可见
 
+const Property< std::wstring > Text
 窗口标题或控件文本
 
+const Property< boolFocused
 窗口是否拥有焦点
 
+const ReadOnlyProperty< WndBase * > Parent
 父窗口
 
+const ReadOnlyProperty< boolIsDestroyed
 是否已销毁,当该值为true时不应该继续使用当前对象
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Additional Inherited Members

- Static Public Member Functions inherited from sw::WndBase
static WndBaseGetWndBase (HWND hwnd)
 通过窗口句柄获取WndBase
 
- Protected Member Functions inherited from sw::Control
Control ()
 初始化控件
 
+void ResetHandle ()
 销毁控件句柄并重新初始化,该操作会创建新的句柄并设置样式、文本、字体等
 
+virtual void HandleChenged ()
 控件句柄发生改变时调用该函数
 
- Protected Member Functions inherited from sw::UIElement
UIElement ()
 初始化UIElement
 
void RaiseRoutedEvent (RoutedEventType eventType)
 触发路由事件
 
void RaiseRoutedEvent (RoutedEventArgs &eventArgs)
 触发路由事件
 
+void NotifyLayoutUpdated ()
 通知顶级窗口布局改变
 
+doubleGetArrangeOffsetX ()
 获取Arrange时子元素的水平偏移量
 
+doubleGetArrangeOffsetY ()
 获取Arrange时子元素的垂直偏移量
 
double GetChildRightmost (bool update)
 获取所有子元素在当前元素中最右边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
double GetChildBottommost (bool update)
 获取所有子元素在当前元素中最底边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
+void UpdateChildrenZOrder ()
 更新子元素的Z轴位置
 
+void UpdateSiblingsZOrder ()
 更新兄弟元素的Z轴位置
 
+void SetNextTabStopFocus ()
 设置下一个TabStop属性为true的元素为焦点元素
 
virtual void SetBackColor (Color color, bool redraw)
 设置背景颜色
 
virtual void SetTextColor (Color color, bool redraw)
 设置文本颜色
 
virtual void OnAddedChild (UIElement &element)
 添加子元素后调用该函数
 
virtual void OnRemovedChild (UIElement &element)
 移除子元素后调用该函数
 
+virtual void OnTabStop ()
 通过tab键将焦点移动到当前元素时调用该函数
 
virtual void OnDrawFocusRect ()
 绘制虚线框时调用该函数
 
virtual bool SetParent (WndBase *parent) override
 设置父窗口
 
virtual void ParentChanged (WndBase *newParent) override
 父窗口改变时调用此函数
 
virtual void OnEndPaint () override
 在OnPaint函数完成之后调用该函数
 
virtual bool OnClose () override
 接收到WM_CLOSE时调用该函数
 
virtual bool OnMove (Point newClientPosition) override
 接收到WM_MOVE时调用该函数
 
virtual bool OnSize (Size newClientSize) override
 接收到WM_SIZE时调用该函数
 
virtual void OnTextChanged () override
 Text属性更改时调用此函数
 
virtual void VisibleChanged (bool newVisible) override
 Visible属性改变时调用此函数
 
virtual bool OnSetFocus (HWND hPrevFocus) override
 接收到WM_SETFOCUS时调用该函数
 
virtual bool OnKillFocus (HWND hNextFocus) override
 接收到WM_KILLFOCUS时调用该函数
 
virtual bool OnChar (wchar_t ch, KeyFlags flags) override
 接收到WM_CHAR时调用该函数
 
virtual bool OnKeyDown (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYDOWN时调用该函数
 
virtual bool OnKeyUp (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYUP时调用该函数
 
virtual bool OnMouseMove (Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEMOVE时调用该函数
 
virtual bool OnMouseLeave () override
 接收到WM_MOUSELEAVE时调用该函数
 
virtual bool OnMouseWheel (int wheelDelta, Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEWHEEL时调用该函数
 
virtual bool OnMouseLeftButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONDOWN时调用该函数
 
virtual bool OnMouseLeftButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONUP时调用该函数
 
virtual bool OnMouseRightButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONDOWN时调用该函数
 
virtual bool OnMouseRightButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONUP时调用该函数
 
virtual bool OnMouseMiddleButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONDOWN时调用该函数
 
virtual bool OnMouseMiddleButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONUP时调用该函数
 
virtual bool OnContextMenu (bool isKeyboardMsg, Point mousePosition) override
 接收到WM_CONTEXTMENU后调用目标控件的该函数
 
virtual void OnMenuCommand (int id) override
 当WM_COMMAND接收到菜单命令时调用该函数
 
virtual bool OnColor (HDC hdc, HBRUSH &hRetBrush) override
 父窗口接收到WM_CTLCOLORxxx时调用对应控件的该函数
 
virtual bool OnSetCursor (HWND hwnd, HitTestResult hitTest, int message, bool &result) override
 接收到WM_SETCURSOR消息时调用该函数
 
- Protected Member Functions inherited from sw::WndBase
WndBase ()
 初始化WndBase
 
WndBase (const WndBase &)=delete
 
WndBase (WndBase &&)=delete
 
+WndBaseoperator= (const WndBase &)=delete
 
+WndBaseoperator= (WndBase &&)=delete
 
+void InitWindow (LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为窗口,该函数会调用CreateWindowExW
 
+void InitControl (LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为控件,该函数会调用CreateWindowExW
 
+LONG_PTR GetStyle ()
 获取窗口样式
 
+void SetStyle (LONG_PTR style)
 设置窗口样式
 
+bool GetStyle (LONG_PTR style)
 获取窗口的某个样式
 
+void SetStyle (LONG_PTR style, bool value)
 设置窗口的某个样式
 
+LONG_PTR GetExtendedStyle ()
 获取扩展窗口样式
 
+void SetExtendedStyle (LONG_PTR style)
 设置扩展窗口样式
 
+bool GetExtendedStyle (LONG_PTR style)
 获取窗口的某个扩展样式
 
+void SetExtendedStyle (LONG_PTR style, bool value)
 设置窗口的某个扩展样式
 
+HFONT GetFontHandle ()
 获取字体句柄
 
+LRESULT DefaultWndProc (const ProcMsg &refMsg)
 调用默认的WndProc,对于窗口则调用DefWindowProcW,控件则调用_controlOldWndProc
 
virtual LRESULT WndProc (const ProcMsg &refMsg)
 对WndProc的封装
 
+void UpdateText ()
 更新_text字段
 
virtual std::wstring & GetText ()
 获取窗口文本
 
virtual void SetText (const std::wstring &value)
 调用SetWindowTextW设置窗口文本
 
virtual bool OnCreate ()
 接收到WM_CREATE时调用该函数
 
virtual bool OnDestroy ()
 接收到WM_DESTROY时调用该函数
 
virtual bool OnPaint ()
 接收到WM_PAINT时调用该函数
 
virtual bool OnMouseLeftButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_LBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseRightButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_RBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseMiddleButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_MBUTTONDBLCLK时调用该函数
 
virtual bool OnDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_DEADCHAR时调用该函数
 
virtual bool OnSysChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSCHAR时调用该函数
 
virtual bool OnSysDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSDEADCHAR时调用该函数
 
virtual bool OnSysKeyDown (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYDOWN时调用该函数
 
virtual bool OnSysKeyUp (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYUP时调用该函数
 
virtual void OnCommand (int code)
 当父窗口接收到控件的WM_COMMAND时调用该函数
 
virtual void OnControlCommand (WndBase *pControl, int code, int id)
 当WM_COMMAND接收到控件命令时调用该函数
 
virtual void OnAcceleratorCommand (int id)
 当WM_COMMAND接收到快捷键命令时调用该函数
 
virtual void HandleInitialized (HWND hwnd)
 窗口句柄初始化完成
 
virtual void FontChanged (HFONT hfont)
 字体改变时调用该函数
 
virtual bool OnNotify (NMHDR *pNMHDR)
 接收到WM_NOTIFY后调用该函数
 
virtual void OnNotified (NMHDR *pNMHDR)
 父窗口接收到WM_NOTIFY后调用发出通知控件的该函数
 
virtual bool OnVerticalScroll (int event, int pos)
 接收到WM_VSCROLL时调用目标控件的该函数
 
virtual bool OnHorizontalScroll (int event, int pos)
 接收到WM_HSCROLL时调用目标控件的该函数
 
virtual bool OnEnabledChanged (bool newValue)
 接收到WM_ENABLE时调用该函数
 
virtual bool OnCtlColor (WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)
 接收到WM_CTLCOLORxxx时调用该函数
 
virtual void OnNcHitTest (const Point &testPoint, HitTestResult &result)
 接收到WM_NCHITTEST后调用该函数
 
virtual bool OnEraseBackground (int &result)
 接收到WM_ERASEBKGND时调用该函数
 
virtual bool OnDrawItem (int id, DRAWITEMSTRUCT *pDrawItem)
 接收到WM_DRAWITEM时调用该函数
 
+

Detailed Description

+

进度条控件

+

The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_progress_bar.js b/docs/classsw_1_1_progress_bar.js new file mode 100644 index 00000000..f60687bd --- /dev/null +++ b/docs/classsw_1_1_progress_bar.js @@ -0,0 +1,9 @@ +var classsw_1_1_progress_bar = +[ + [ "ProgressBar", "classsw_1_1_progress_bar.html#a461cb23f2cc6c276eda9312cb269a403", null ], + [ "Maximum", "classsw_1_1_progress_bar.html#a23e176b3cc807b9e0e403e214421179c", null ], + [ "Minimum", "classsw_1_1_progress_bar.html#ad6ae6e88db8560fb7574e22c87a72ce5", null ], + [ "State", "classsw_1_1_progress_bar.html#a596e05cda7fcc656dde20354a519cee4", null ], + [ "Value", "classsw_1_1_progress_bar.html#a6dd5e209fbc7f35a89309f4056ae3d1f", null ], + [ "Vertical", "classsw_1_1_progress_bar.html#a3a211f4e0318c79bcc4a64720b6f8651", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_progress_bar.png b/docs/classsw_1_1_progress_bar.png new file mode 100644 index 0000000000000000000000000000000000000000..e66be53c87ac071cd78dc7be44806946c6460546 GIT binary patch literal 1710 zcmb7FX;70#82$)&AYw(vBH#^3sT?&(AO=XK1P!Ny2*@EK2}g<%!XaP+=vXHz4U)m& zrwKU9p-@1LKq6O=+av-3j1&+Q3}*l(as)#9S=$+ZIMwct-S^m;ci(-UXZP|E_d}ZN z^wt3Ypou-~=m`KSu8_@Js|wA&Wra!5qJPBI3!_vjA#-%{LtOgP0-K*qqPAoSMh6E6 zp}3XMI~U5S$9lRS1t9mSMqttDCUzn`S za_c03ohdf8rO8c8dD4bJ`weXY_mWV(BOF2XW)D`g=v7M~e=Ef&$L*Nnb83wtRIs3aGKI)tC2PZhi_uE?g(yCUr zp&3Xy+LY})n>ax9&I^fHagZzs5W8YaOjV=vPPHCkMnmD8fzO&3oD8hZfy=Ud?g`;G6SCY3Bfy*V4dQVw7} z5m*=06r2)9WCqg5#YzjI(b&cmtq!=6$tr$kuA%8sI{kqw*7=P&JJZwswx1t_2rtM< z&89_j(5uGg4jwifRmrL@x1fcC0J3k0S@p?`-~cLy!61P3-ShJ%hWfROc-WWRK4L|$ zSapU)ekTH+H^Nn*TB(Mn+B?x8yM5(w(CvF3cIaO2v z=?b6I1RjS1yTIvySW2(vY3qRbIaYnLLw9YOpkisq3P)f8sm57~6@8ZMN`7B9sd~D5wyAGgTBZm- zwG@!5(JmPsy-nf_%Z9@_5{kS}qKOZ9+Q+=PryjtM8!zsxu9mJYX3GK~ygdy#<&+cx^bFRjz*RJRX)CeEn+x z{x`f|%kox#lsOROk&)XL@~@yFg=7CwcvpMB1(uMYciaQwU{dJJV>%w3#?7G~h~b?C zJ?n7m=XwRtb0CiDg`&0Z_Fy_?jfUh=yFUN?T#1!lPt?nnNIgColrYq1wBt3}Gsi;8 z{rB+vPcXsLi}wq;cv$4jk3t{X)Q2RZPh3m)G6s^$_Rs2ndSN~fG+=NH&u8kumQ-UR zuzGOdp=;_^qIIv@;X1eqiBtL5Ep`b$4v}m=4&c-XtMtlSbrAH=APx3;pUd^D{VV(jLGLC`27Rcmn8Ge zW}Snw2QIB!z3g$c(7l#d-yVFObT7$FYAd}0|JBlC&B-!+B{ks`cYaI|i9qtiM++96 zLlwa;5**Q3Sh_c+RkoOk+RZLT-HJ%Yfcg^y*SV2ggD^>4C%O2Z`GiMzm9C$Nj0|l~ z^l_V|QbU&CZ0Dy@6Y}lW?%uuO<7xNi@2620RKC;!)D(2t@quC%z~e5jA(I<_*^C(? QLO% + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::Property< T > Member List
+
+
+ +

This is the complete list of members for sw::Property< T >, including all inherited members.

+ + + + + + + + + +
Get() constsw::ReadOnlyProperty< T >inline
operator const T &() constsw::ReadOnlyProperty< T >inline
operator->() constsw::Property< T >inline
operator=(const T &value) constsw::Property< T >inline
Property(const std::function< const T &()> &funcGet, const std::function< void(const T &)> &funcSet)sw::Property< T >inline
ReadOnlyProperty(const std::function< const T &()> &funcGet)sw::ReadOnlyProperty< T >inline
Set(const T &value) constsw::WriteOnlyProperty< T >inline
WriteOnlyProperty(const std::function< void(const T &)> &funcSet)sw::WriteOnlyProperty< T >inline
+
+ + + + diff --git a/docs/classsw_1_1_property.html b/docs/classsw_1_1_property.html new file mode 100644 index 00000000..502b8f3e --- /dev/null +++ b/docs/classsw_1_1_property.html @@ -0,0 +1,177 @@ + + + + + + + +SimpleWindow: sw::Property< T > Class Template Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
sw::Property< T > Class Template Reference
+
+
+ +

属性 + More...

+ +

#include <Property.h>

+
+Inheritance diagram for sw::Property< T >:
+
+
+ + +sw::ReadOnlyProperty< T > +sw::WriteOnlyProperty< T > + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

Property (const std::function< const T &()> &funcGet, const std::function< void(const T &)> &funcSet)
 初始化Property
 
+const Propertyoperator= (const T &value) const
 写属性
 
+T * operator-> () const
 取属性成员
 
- Public Member Functions inherited from sw::ReadOnlyProperty< T >
ReadOnlyProperty (const std::function< const T &()> &funcGet)
 初始化ReadOnlyProperty
 
+const T & Get () const
 读属性
 
operator const T & () const
 读属性
 
+const T * operator-> () const
 取属性成员
 
- Public Member Functions inherited from sw::WriteOnlyProperty< T >
WriteOnlyProperty (const std::function< void(const T &)> &funcSet)
 初始化WriteOnlyProperty
 
+void Set (const T &value) const
 写属性
 
+const WriteOnlyPropertyoperator= (const T &value) const
 写属性
 
+

Detailed Description

+
template<typename T>
+class sw::Property< T >

属性

+

The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_property.js b/docs/classsw_1_1_property.js new file mode 100644 index 00000000..da5f99ef --- /dev/null +++ b/docs/classsw_1_1_property.js @@ -0,0 +1,6 @@ +var classsw_1_1_property = +[ + [ "Property", "classsw_1_1_property.html#a657ad195af10d76fb55801b3cec62aca", null ], + [ "operator->", "classsw_1_1_property.html#adbca5ee89c3f7d07035fcece6af5c9be", null ], + [ "operator=", "classsw_1_1_property.html#a15318a6d29413d76006662d698f447c5", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_property.png b/docs/classsw_1_1_property.png new file mode 100644 index 0000000000000000000000000000000000000000..61491a5465fdd0f00e8344566fc378c58d70053d GIT binary patch literal 1009 zcmeAS@N?(olHy`uVBq!ia0y~yV2lB>12~w0WKyl|MIa>|;1lBd|Nnm=^TnI5rTvGN zTNr2-NK8NT;=zLlKylNvVM~B=oFzei!3;n?7??B7zQVx3T;u8D7*fIbcJA#-w-p3f zqn)R|{_|fveQoznj-1>_gb#r4&-}aZlas`{jenml(21Ecdvd)=(LLF3soT`Gv-9}ACP|6B zE}8PBvu?Y|o&GC7akc3+ zo|urI$G7d|t%@-_z5dVS^}nL?e|DW&W5E`kzh7s|I;$f2+y9R%KQ~QF`*yy>y|OI% z#=$eE7DtPnIrC5Q_=)$vR&wP9&$9yTcg~x5f7X|iJN`ybZ{BsXwD-?5pq6J%@sS3` z#fn(sW8afyQ!ep{6a{-_vN7B{$D5${tW&0lv1Z5JWt*-2pG@F>a5((J%{S+SEuS#$ z5R{f`5LOgF&^n}Smu!s>Dy$rzEWl(q0gGk?gTQ-}w;l8g115PFQOep`a zb9$2xfK)kE@@ov)-X%yZrZwZGY?YpWIh1U*Q*I z=jLBieM4URyWPom=Ve2RrvJX5D_1u+@9gjER<5h#6vKl`*JN$JbGBsK?6dEe_q)G7 zz4oEX_oT`n2aEWRMxI)nB^JEvpH=KM=g{ZV!}t&6#OQLX?|ka1T>d@oYZi}LxOkU2 zP%vgnwC#;mhrM?$x2{(0o2l(-I`?gk!uFLrx87N?b5hBo@R-+{HCGz{o?PVo*NZLH zaZ=oe=F?3od(*x|zn4&c;&o}}b{@eZ)t5)A-F|#6Qa#x{LE94;a-Ky>PrN1xgSx46KCoYSv}M~LE_P7nWbkzLb6Mw<&;$TU7U+Ed literal 0 HcmV?d00001 diff --git a/docs/classsw_1_1_radio_button-members.html b/docs/classsw_1_1_radio_button-members.html new file mode 100644 index 00000000..3db1bfb0 --- /dev/null +++ b/docs/classsw_1_1_radio_button-members.html @@ -0,0 +1,298 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::RadioButton Member List
+
+
+ +

This is the complete list of members for sw::RadioButton, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AddChild(UIElement *element)sw::UIElement
AddChild(UIElement &element)sw::UIElement
AddChild(UIElement *element, uint64_t layoutTag)sw::UIElement
AddChild(UIElement &element, uint64_t layoutTag)sw::UIElement
Arrange(const sw::Rect &finalPosition) overridesw::UIElementvirtual
BackColorsw::UIElement
ButtonBase()sw::ButtonBaseprotected
CheckableButton()sw::CheckableButtonprotected
CheckStatesw::CheckableButton
ChildCountsw::UIElement
ClearChildren()sw::UIElement
ClientHeightsw::WndBase
ClientRectsw::WndBase
ClientWidthsw::WndBase
Close()sw::WndBase
CollapseWhenHidesw::UIElement
ContextMenusw::UIElement
Control()sw::Controlprotected
DefaultWndProc(const ProcMsg &refMsg)sw::WndBaseprotected
Enabledsw::WndBase
Floatsw::UIElement
Focusedsw::WndBase
Fontsw::WndBase
FontChanged(HFONT hfont)sw::WndBaseprotectedvirtual
FontNamesw::WndBase
FontSizesw::WndBase
FontWeightsw::WndBase
GetArrangeOffsetX()sw::UIElementprotected
GetArrangeOffsetY()sw::UIElementprotected
GetChildBottommost(bool update)sw::UIElementprotected
GetChildLayoutAt(int index) overridesw::UIElementvirtual
GetChildLayoutCount() overridesw::UIElementvirtual
GetChildRightmost(bool update)sw::UIElementprotected
GetDesireSize() overridesw::UIElementvirtual
GetExtendedStyle()sw::WndBaseprotected
GetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
GetFontHandle()sw::WndBaseprotected
GetLayoutTag() overridesw::UIElementvirtual
GetNextElement()sw::UIElement
GetNextTabStopElement()sw::UIElement
GetRealBackColor()sw::UIElement
GetRealTextColor()sw::UIElement
GetRootElement()sw::UIElement
GetStyle()sw::WndBaseprotected
GetStyle(LONG_PTR style)sw::WndBaseprotected
GetTag() overridesw::UIElementvirtual
GetText()sw::WndBaseprotectedvirtual
GetWndBase(HWND hwnd)sw::WndBasestatic
Handlesw::WndBase
HandleChenged()sw::Controlprotectedvirtual
HandleInitialized(HWND hwnd)sw::WndBaseprotectedvirtual
Heightsw::WndBase
HorizontalAlignmentsw::UIElement
IndexOf(UIElement *element)sw::UIElement
IndexOf(UIElement &element)sw::UIElement
InheritTextColorsw::UIElement
InitButtonBase(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::ButtonBaseprotected
InitControl(LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
InitWindow(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
IsCheckedsw::CheckableButton
IsControl()sw::WndBase
IsDestroyedsw::WndBase
IsRootElement()sw::UIElement
IsRoutedEventRegistered(RoutedEventType eventType)sw::UIElement
IsVisible()sw::WndBase
LayoutTagsw::UIElement
Leftsw::WndBase
Marginsw::UIElement
Measure(const Size &availableSize) overridesw::UIElementvirtual
MoveToBottom()sw::UIElement
MoveToTop()sw::UIElement
NcHitTest(const Point &testPoint)sw::WndBase
NotifyLayoutUpdated()sw::UIElementprotected
OnAcceleratorCommand(int id)sw::WndBaseprotectedvirtual
OnAddedChild(UIElement &element)sw::UIElementprotectedvirtual
OnChar(wchar_t ch, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnClicked()sw::ButtonBaseprotectedvirtual
OnClose() overridesw::UIElementprotectedvirtual
OnColor(HDC hdc, HBRUSH &hRetBrush) overridesw::UIElementprotectedvirtual
OnCommand(int code) overridesw::ButtonBaseprotectedvirtual
OnContextMenu(bool isKeyboardMsg, Point mousePosition) overridesw::UIElementprotectedvirtual
OnControlCommand(WndBase *pControl, int code, int id)sw::WndBaseprotectedvirtual
OnCreate()sw::WndBaseprotectedvirtual
OnCtlColor(WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)sw::WndBaseprotectedvirtual
OnDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnDestroy()sw::WndBaseprotectedvirtual
OnDoubleClicked()sw::ButtonBaseprotectedvirtual
OnDrawFocusRect()sw::UIElementprotectedvirtual
OnDrawItem(int id, DRAWITEMSTRUCT *pDrawItem)sw::WndBaseprotectedvirtual
OnEnabledChanged(bool newValue)sw::WndBaseprotectedvirtual
OnEndPaint() overridesw::UIElementprotectedvirtual
OnEraseBackground(int &result)sw::WndBaseprotectedvirtual
OnHorizontalScroll(int event, int pos)sw::WndBaseprotectedvirtual
OnKeyDown(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKeyUp(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKillFocus(HWND hNextFocus) overridesw::UIElementprotectedvirtual
OnMenuCommand(int id) overridesw::UIElementprotectedvirtual
OnMouseLeave() overridesw::UIElementprotectedvirtual
OnMouseLeftButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseLeftButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseMiddleButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMove(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseRightButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseWheel(int wheelDelta, Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMove(Point newClientPosition) overridesw::UIElementprotectedvirtual
OnNcHitTest(const Point &testPoint, HitTestResult &result)sw::WndBaseprotectedvirtual
OnNotified(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnNotify(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnPaint()sw::WndBaseprotectedvirtual
OnRemovedChild(UIElement &element)sw::UIElementprotectedvirtual
OnSetCursor(HWND hwnd, HitTestResult hitTest, int message, bool &result) overridesw::UIElementprotectedvirtual
OnSetFocus(HWND hPrevFocus) overridesw::UIElementprotectedvirtual
OnSize(Size newClientSize) overridesw::UIElementprotectedvirtual
OnSysChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyDown(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyUp(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnTabStop()sw::UIElementprotectedvirtual
OnTextChanged() overridesw::UIElementprotectedvirtual
OnVerticalScroll(int event, int pos)sw::WndBaseprotectedvirtual
operator=(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator=(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator[](int index) constsw::UIElement
Parentsw::UIElement
ParentChanged(WndBase *newParent) overridesw::UIElementprotectedvirtual
PointFromScreen(const Point &screenPoint)sw::WndBase
PointToScreen(const Point &point)sw::WndBase
RadioButton()sw::RadioButton
RaiseRoutedEvent(RoutedEventType eventType)sw::UIElementprotected
RaiseRoutedEvent(RoutedEventArgs &eventArgs)sw::UIElementprotected
Rectsw::WndBase
Redraw(bool erase=false)sw::WndBase
RegisterRoutedEvent(RoutedEventType eventType, const RoutedEvent &handler)sw::UIElement
RegisterRoutedEvent(RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))sw::UIElementinline
RegisterRoutedEvent(std::function< void(UIElement &, TEventArgs &)> handler)sw::UIElementinline
RegisterRoutedEvent(THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))sw::UIElementinline
RemoveChild(UIElement *element)sw::UIElement
RemoveChild(UIElement &element)sw::UIElement
RemoveChildAt(int index)sw::UIElement
ResetCursor()sw::UIElement
ResetHandle()sw::Controlprotected
SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase
SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement
SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual
SetCursor(HCURSOR hCursor)sw::UIElement
SetCursor(StandardCursor cursor)sw::UIElement
SetDesireSize(const Size &size) overridesw::UIElementvirtual
SetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
SetExtendedStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetNextTabStopFocus()sw::UIElementprotected
SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual
SetStyle(LONG_PTR style)sw::WndBaseprotected
SetStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetTag(uint64_t tag) overridesw::UIElementvirtual
SetText(const std::wstring &value)sw::WndBaseprotectedvirtual
SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual
Show(int nCmdShow)sw::WndBase
ShowContextMenu(const Point &point)sw::UIElement
TabStopsw::UIElement
Tagsw::UIElement
Textsw::WndBase
TextColorsw::UIElement
Topsw::WndBase
Transparentsw::UIElement
UIElement()sw::UIElementprotected
UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement
Update()sw::WndBase
UpdateChildrenZOrder()sw::UIElementprotected
UpdateFont()sw::WndBase
UpdateSiblingsZOrder()sw::UIElementprotected
UpdateText()sw::WndBaseprotected
VerticalAlignmentsw::UIElement
Visiblesw::WndBase
VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual
Widthsw::WndBase
WndBase()sw::WndBaseprotected
WndBase(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndBase(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual
~ButtonBase()=0sw::ButtonBasepure virtual
~CheckableButton()=0sw::CheckableButtonpure virtual
~Control()=0sw::Controlpure virtual
~UIElement()=0sw::UIElementpure virtual
~WndBase()=0sw::WndBasepure virtual
+
+ + + + diff --git a/docs/classsw_1_1_radio_button.html b/docs/classsw_1_1_radio_button.html new file mode 100644 index 00000000..b3337873 --- /dev/null +++ b/docs/classsw_1_1_radio_button.html @@ -0,0 +1,819 @@ + + + + + + + +SimpleWindow: sw::RadioButton Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
sw::RadioButton Class Reference
+
+
+ +

单选框 + More...

+ +

#include <RadioButton.h>

+
+Inheritance diagram for sw::RadioButton:
+
+
+ + +sw::CheckableButton +sw::ButtonBase +sw::Control +sw::UIElement +sw::WndBase +sw::ILayout +sw::ITag + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

RadioButton ()
 初始化单选框
 
- Public Member Functions inherited from sw::CheckableButton
+virtual ~CheckableButton ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
- Public Member Functions inherited from sw::ButtonBase
+virtual ~ButtonBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
- Public Member Functions inherited from sw::Control
+virtual ~Control ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
- Public Member Functions inherited from sw::UIElement
+virtual ~UIElement ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
void RegisterRoutedEvent (RoutedEventType eventType, const RoutedEvent &handler)
 注册路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename T >
void RegisterRoutedEvent (RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))
 注册成员函数作为路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename TEventArgs , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (std::function< void(UIElement &, TEventArgs &)> handler)
 根据事件参数类型注册路由事件
 
template<typename TEventArgs , typename THandleObj , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))
 根据事件参数类型注册成员函数作为路由事件
 
void UnregisterRoutedEvent (RoutedEventType eventType)
 取消对应类型路由事件的注册
 
bool IsRoutedEventRegistered (RoutedEventType eventType)
 判断路由事件是否已被注册
 
bool AddChild (UIElement *element)
 添加子控件
 
bool AddChild (UIElement &element)
 添加子控件
 
bool AddChild (UIElement *element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool AddChild (UIElement &element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool RemoveChildAt (int index)
 移除指定索引处的子控件
 
bool RemoveChild (UIElement *element)
 移除子控件
 
bool RemoveChild (UIElement &element)
 移除子控件
 
+void ClearChildren ()
 移除所有子控件
 
int IndexOf (UIElement *element)
 获取指定元素的索引
 
int IndexOf (UIElement &element)
 获取指定元素的索引
 
+UIElementoperator[] (int index) const
 通过索引获取子控件
 
void ShowContextMenu (const Point &point)
 弹出当前元素的上下文菜单
 
+void MoveToTop ()
 移动到界面顶部
 
+void MoveToBottom ()
 移动到界面底部
 
+bool IsRootElement ()
 判断当前元素是否为根节点
 
+UIElementGetRootElement ()
 获取当前元素所在界面树的根节点
 
+UIElementGetNextElement ()
 获取当前元素在界面树上的下一个节点,若已是最后一个节点则返回根节点
 
+UIElementGetNextTabStopElement ()
 获取下一个TabStop属性为true的元素
 
+Color GetRealBackColor ()
 获取当前要显示的背景颜色:当Transparent为true时获取到祖先节点中首个Transparent为false的背景颜色,否则返回当前元素的背景颜色
 
+Color GetRealTextColor ()
 获取当前要显示的文本颜色:当InheritTextColor为true时获取到祖先节点中首个InheritTextColor为false的文本颜色,否则返回当前元素的文本颜色
 
void SetCursor (HCURSOR hCursor)
 设置鼠标样式
 
void SetCursor (StandardCursor cursor)
 设置鼠标样式
 
+void ResetCursor ()
 将鼠标样式设置为默认样式
 
void SetAlignment (sw::HorizontalAlignment horz, sw::VerticalAlignment vert)
 设置对齐方式
 
virtual uint64_t GetTag () override
 获取Tag
 
virtual void SetTag (uint64_t tag) override
 设置Tag
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取参与布局的子控件数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取对应索引处的子控件,使用此函数前必须先调用GetChildLayoutCount
 
virtual Size GetDesireSize () override
 获取控件所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置当前控件所需的尺寸
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const sw::Rect &finalPosition) override
 安排控件位置
 
- Public Member Functions inherited from sw::WndBase
+virtual ~WndBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void Show (int nCmdShow)
 该函数调用ShowWindow
 
+void Close ()
 发送关闭消息
 
+void Update ()
 该函数调用UpdateWindow
 
+void UpdateFont ()
 更新字体
 
void Redraw (bool erase=false)
 重画
 
+bool IsControl ()
 判断当前对象是否是控件
 
+bool IsVisible ()
 判断当前对象在界面中是否可视,与Visible属性不同的是该函数返回值会受父窗口的影响
 
Point PointToScreen (const Point &point)
 获取用户区点在屏幕上点的位置
 
Point PointFromScreen (const Point &screenPoint)
 获取屏幕上点在当前用户区点的位置
 
+LRESULT SendMessageW (UINT uMsg, WPARAM wParam, LPARAM lParam)
 发送消息
 
HitTestResult NcHitTest (const Point &testPoint)
 测试指定点在窗口的哪一部分
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Additional Inherited Members

- Static Public Member Functions inherited from sw::WndBase
static WndBaseGetWndBase (HWND hwnd)
 通过窗口句柄获取WndBase
 
- Public Attributes inherited from sw::CheckableButton
+const Property< sw::CheckState > CheckState
 选中状态
 
+const Property< boolIsChecked
 是否选中
 
- Public Attributes inherited from sw::UIElement
+const Property< ThicknessMargin
 边距
 
+const Property< HorizontalAlignment > HorizontalAlignment
 水平对齐方式
 
+const Property< VerticalAlignment > VerticalAlignment
 垂直对齐方式
 
+const ReadOnlyProperty< intChildCount
 子控件数量
 
+const Property< boolCollapseWhenHide
 是否在不可见时不参与布局
 
+const ReadOnlyProperty< UIElement * > Parent
 指向父元素的指针,当前元素为顶级窗口时该值为nullptr
 
+const Property< uint64_tTag
 储存用户自定义信息的标记
 
+const Property< uint64_tLayoutTag
 布局标记,对于不同的布局有不同含义
 
+const Property< sw::ContextMenu * > ContextMenu
 右键按下时弹出的菜单
 
+const Property< boolFloat
 元素是否悬浮,若元素悬浮则该元素不会随滚动条滚动而改变位置
 
+const Property< boolTabStop
 表示用户是否可以通过按下Tab键将焦点移动到当前元素
 
+const Property< ColorBackColor
 背景颜色,修改该属性会同时将Transparent属性设为false,对于部分控件该属性可能不生效
 
+const Property< ColorTextColor
 文本颜色,修改该属性会同时将InheritTextColor属性设为false,对于部分控件该属性可能不生效
 
+const Property< boolTransparent
 是否使用透明背景(此属性并非真正意义上的透明,将该属性设为true可继承父元素的背景颜色)
 
+const Property< boolInheritTextColor
 是否继承父元素的文本颜色
 
- Public Attributes inherited from sw::WndBase
+const ReadOnlyProperty< HWNDHandle
 窗口句柄
 
+const Property< sw::FontFont
 字体
 
+const Property< std::wstring > FontName
 字体名称
 
+const Property< doubleFontSize
 字体大小
 
+const Property< sw::FontWeight > FontWeight
 字体粗细
 
+const Property< sw::RectRect
 位置和尺寸
 
+const Property< doubleLeft
 左边
 
+const Property< doubleTop
 顶边
 
+const Property< doubleWidth
 宽度
 
+const Property< doubleHeight
 高度
 
+const ReadOnlyProperty< sw::RectClientRect
 用户区尺寸
 
+const ReadOnlyProperty< doubleClientWidth
 用户区宽度
 
+const ReadOnlyProperty< doubleClientHeight
 用户区高度
 
+const Property< boolEnabled
 窗口或控件是否可用
 
+const Property< boolVisible
 窗口或控件是否可见
 
+const Property< std::wstring > Text
 窗口标题或控件文本
 
+const Property< boolFocused
 窗口是否拥有焦点
 
+const ReadOnlyProperty< WndBase * > Parent
 父窗口
 
+const ReadOnlyProperty< boolIsDestroyed
 是否已销毁,当该值为true时不应该继续使用当前对象
 
- Protected Member Functions inherited from sw::CheckableButton
CheckableButton ()
 初始化CheckableButton
 
- Protected Member Functions inherited from sw::ButtonBase
ButtonBase ()
 初始化ButtonBase
 
+void InitButtonBase (LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化控件
 
virtual void OnCommand (int code) override
 当父窗口接收到控件的WM_COMMAND时调用该函数
 
+virtual void OnClicked ()
 被单击时调用该函数
 
+virtual void OnDoubleClicked ()
 被双击时调用该函数
 
- Protected Member Functions inherited from sw::Control
Control ()
 初始化控件
 
+void ResetHandle ()
 销毁控件句柄并重新初始化,该操作会创建新的句柄并设置样式、文本、字体等
 
+virtual void HandleChenged ()
 控件句柄发生改变时调用该函数
 
- Protected Member Functions inherited from sw::UIElement
UIElement ()
 初始化UIElement
 
void RaiseRoutedEvent (RoutedEventType eventType)
 触发路由事件
 
void RaiseRoutedEvent (RoutedEventArgs &eventArgs)
 触发路由事件
 
+void NotifyLayoutUpdated ()
 通知顶级窗口布局改变
 
+doubleGetArrangeOffsetX ()
 获取Arrange时子元素的水平偏移量
 
+doubleGetArrangeOffsetY ()
 获取Arrange时子元素的垂直偏移量
 
double GetChildRightmost (bool update)
 获取所有子元素在当前元素中最右边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
double GetChildBottommost (bool update)
 获取所有子元素在当前元素中最底边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
+void UpdateChildrenZOrder ()
 更新子元素的Z轴位置
 
+void UpdateSiblingsZOrder ()
 更新兄弟元素的Z轴位置
 
+void SetNextTabStopFocus ()
 设置下一个TabStop属性为true的元素为焦点元素
 
virtual void SetBackColor (Color color, bool redraw)
 设置背景颜色
 
virtual void SetTextColor (Color color, bool redraw)
 设置文本颜色
 
virtual void OnAddedChild (UIElement &element)
 添加子元素后调用该函数
 
virtual void OnRemovedChild (UIElement &element)
 移除子元素后调用该函数
 
+virtual void OnTabStop ()
 通过tab键将焦点移动到当前元素时调用该函数
 
virtual void OnDrawFocusRect ()
 绘制虚线框时调用该函数
 
virtual bool SetParent (WndBase *parent) override
 设置父窗口
 
virtual void ParentChanged (WndBase *newParent) override
 父窗口改变时调用此函数
 
virtual void OnEndPaint () override
 在OnPaint函数完成之后调用该函数
 
virtual bool OnClose () override
 接收到WM_CLOSE时调用该函数
 
virtual bool OnMove (Point newClientPosition) override
 接收到WM_MOVE时调用该函数
 
virtual bool OnSize (Size newClientSize) override
 接收到WM_SIZE时调用该函数
 
virtual void OnTextChanged () override
 Text属性更改时调用此函数
 
virtual void VisibleChanged (bool newVisible) override
 Visible属性改变时调用此函数
 
virtual bool OnSetFocus (HWND hPrevFocus) override
 接收到WM_SETFOCUS时调用该函数
 
virtual bool OnKillFocus (HWND hNextFocus) override
 接收到WM_KILLFOCUS时调用该函数
 
virtual bool OnChar (wchar_t ch, KeyFlags flags) override
 接收到WM_CHAR时调用该函数
 
virtual bool OnKeyDown (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYDOWN时调用该函数
 
virtual bool OnKeyUp (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYUP时调用该函数
 
virtual bool OnMouseMove (Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEMOVE时调用该函数
 
virtual bool OnMouseLeave () override
 接收到WM_MOUSELEAVE时调用该函数
 
virtual bool OnMouseWheel (int wheelDelta, Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEWHEEL时调用该函数
 
virtual bool OnMouseLeftButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONDOWN时调用该函数
 
virtual bool OnMouseLeftButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONUP时调用该函数
 
virtual bool OnMouseRightButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONDOWN时调用该函数
 
virtual bool OnMouseRightButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONUP时调用该函数
 
virtual bool OnMouseMiddleButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONDOWN时调用该函数
 
virtual bool OnMouseMiddleButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONUP时调用该函数
 
virtual bool OnContextMenu (bool isKeyboardMsg, Point mousePosition) override
 接收到WM_CONTEXTMENU后调用目标控件的该函数
 
virtual void OnMenuCommand (int id) override
 当WM_COMMAND接收到菜单命令时调用该函数
 
virtual bool OnColor (HDC hdc, HBRUSH &hRetBrush) override
 父窗口接收到WM_CTLCOLORxxx时调用对应控件的该函数
 
virtual bool OnSetCursor (HWND hwnd, HitTestResult hitTest, int message, bool &result) override
 接收到WM_SETCURSOR消息时调用该函数
 
- Protected Member Functions inherited from sw::WndBase
WndBase ()
 初始化WndBase
 
WndBase (const WndBase &)=delete
 
WndBase (WndBase &&)=delete
 
+WndBaseoperator= (const WndBase &)=delete
 
+WndBaseoperator= (WndBase &&)=delete
 
+void InitWindow (LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为窗口,该函数会调用CreateWindowExW
 
+void InitControl (LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为控件,该函数会调用CreateWindowExW
 
+LONG_PTR GetStyle ()
 获取窗口样式
 
+void SetStyle (LONG_PTR style)
 设置窗口样式
 
+bool GetStyle (LONG_PTR style)
 获取窗口的某个样式
 
+void SetStyle (LONG_PTR style, bool value)
 设置窗口的某个样式
 
+LONG_PTR GetExtendedStyle ()
 获取扩展窗口样式
 
+void SetExtendedStyle (LONG_PTR style)
 设置扩展窗口样式
 
+bool GetExtendedStyle (LONG_PTR style)
 获取窗口的某个扩展样式
 
+void SetExtendedStyle (LONG_PTR style, bool value)
 设置窗口的某个扩展样式
 
+HFONT GetFontHandle ()
 获取字体句柄
 
+LRESULT DefaultWndProc (const ProcMsg &refMsg)
 调用默认的WndProc,对于窗口则调用DefWindowProcW,控件则调用_controlOldWndProc
 
virtual LRESULT WndProc (const ProcMsg &refMsg)
 对WndProc的封装
 
+void UpdateText ()
 更新_text字段
 
virtual std::wstring & GetText ()
 获取窗口文本
 
virtual void SetText (const std::wstring &value)
 调用SetWindowTextW设置窗口文本
 
virtual bool OnCreate ()
 接收到WM_CREATE时调用该函数
 
virtual bool OnDestroy ()
 接收到WM_DESTROY时调用该函数
 
virtual bool OnPaint ()
 接收到WM_PAINT时调用该函数
 
virtual bool OnMouseLeftButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_LBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseRightButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_RBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseMiddleButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_MBUTTONDBLCLK时调用该函数
 
virtual bool OnDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_DEADCHAR时调用该函数
 
virtual bool OnSysChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSCHAR时调用该函数
 
virtual bool OnSysDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSDEADCHAR时调用该函数
 
virtual bool OnSysKeyDown (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYDOWN时调用该函数
 
virtual bool OnSysKeyUp (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYUP时调用该函数
 
virtual void OnControlCommand (WndBase *pControl, int code, int id)
 当WM_COMMAND接收到控件命令时调用该函数
 
virtual void OnAcceleratorCommand (int id)
 当WM_COMMAND接收到快捷键命令时调用该函数
 
virtual void HandleInitialized (HWND hwnd)
 窗口句柄初始化完成
 
virtual void FontChanged (HFONT hfont)
 字体改变时调用该函数
 
virtual bool OnNotify (NMHDR *pNMHDR)
 接收到WM_NOTIFY后调用该函数
 
virtual void OnNotified (NMHDR *pNMHDR)
 父窗口接收到WM_NOTIFY后调用发出通知控件的该函数
 
virtual bool OnVerticalScroll (int event, int pos)
 接收到WM_VSCROLL时调用目标控件的该函数
 
virtual bool OnHorizontalScroll (int event, int pos)
 接收到WM_HSCROLL时调用目标控件的该函数
 
virtual bool OnEnabledChanged (bool newValue)
 接收到WM_ENABLE时调用该函数
 
virtual bool OnCtlColor (WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)
 接收到WM_CTLCOLORxxx时调用该函数
 
virtual void OnNcHitTest (const Point &testPoint, HitTestResult &result)
 接收到WM_NCHITTEST后调用该函数
 
virtual bool OnEraseBackground (int &result)
 接收到WM_ERASEBKGND时调用该函数
 
virtual bool OnDrawItem (int id, DRAWITEMSTRUCT *pDrawItem)
 接收到WM_DRAWITEM时调用该函数
 
+

Detailed Description

+

单选框

+

The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_radio_button.js b/docs/classsw_1_1_radio_button.js new file mode 100644 index 00000000..495e2c57 --- /dev/null +++ b/docs/classsw_1_1_radio_button.js @@ -0,0 +1,4 @@ +var classsw_1_1_radio_button = +[ + [ "RadioButton", "classsw_1_1_radio_button.html#ab3a285dc904b85423de229d3187ec408", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_radio_button.png b/docs/classsw_1_1_radio_button.png new file mode 100644 index 0000000000000000000000000000000000000000..d483be04b44c95471b456dedd34773332edba715 GIT binary patch literal 2625 zcmbVO2~bnl8pbG9qdb%b3xZ%#uqmq*MIbCvmIRcTKoCSgSrkEtfEAEHq)$W^!I+RJ zLSRZT^|FM5vJPPZ!7eWbh;6=vb@xyL-#?lK>qI#o@r+w18Wu%PbgDUxr&eBzmY*P) zX~@Ak$(CZPvMRNu8)(=Pd+`4lUPzQp18y;cS976gvFH{ zzyiR4qbtJ`SC&QrfP;3oqP;8X6Ev~`AXYky$s9d}ljO}ZWpoNhKYfuS-2!K=3QEGF z)`+f4N4BxtG(+(EMr}NFU~V<#hgIit7Mix`53`=CTa8~U*UISGV)wcL_0lbLXD6od z+jn&ox0yNlg)>3R_)+IA@Dj_#1OV6}@WmibbsL4OO|;VhATeog2;QlqKxkYD04Jng zT-V2C!R21j4Mtp{NTu1BpJX%jMBYS6HLMR9WufY%i9Xz42!4w_HN)~%vBZ(fZx~SK zbo=_TE8b);X$~-XMM?&v*d5;xliqji>8;<%yF(P3I{q z-GtqI-35y1T#_ljx)uQZl14mqN`HnChfHq{RFFk!isn^XMqkt z(6Zjyn5Kwzxr3|e)bLuu3ZBXWfaW($ry?MXW&x4%a%7>$VJ#vdcv*VA*YL zcY1;4Qg6Qam^nD`%sRFZ9KDuc4(*Lon&z^F$)qsPeYsI%{)p)GNc%C8?{La%mc+bi=@2 zsQ1@!pUtHxScL($Qq7zE-RWbDVEqaMOiOOJo25>6`$dG#H~X&nTPr&->|OMfbGO5v zXCjl&Izr9&U<)-#kgglBP-lkyfzO~ZyvBW=N6@Ak-qfYOchXLENU8K!GBP>Ac5*Lv zENi^To&AUB>5li9eI!V1CU)eh*vwy5Ff~rdD<5sb=T*!hu%|mvT;Jwd@-;GPPLeAj zcbX3NUTYG7-y@pPW3TBe+>m#oG!gjhhG_Ql(vJ z|CO10u)iYeVP5Qm^F=8VDI$ufd*rJ6$|J#T{^Qm%uVX$1*;DMh;jh9FO+>t%!&UX} z<@WEVoQSo3<>3Q^^yXT-Y*ysup&wf&wdo7Om?uFh4U);2u6hMrRrPu`o-k}-J<}^Z z(@`-SJjwS^IXUpK&bdr5Jk!m?i5i-np%*lZr)S9FWmdD<;R6EO=n~AJu-$IQs^E}q z!`=Ky7760(j$I(O6NxurwY(ztKZN7-Y^yX_t)R$VPkClZ5jN}V*;c5cRK)-SK@{=t z{<`pr5Z919S+7Mz^DLM&B5PZrDhbkbSSLvNBuG*Qne3hH?g)Lj$Mr90`v0NkPB8iQ zC12%RDue@>Z2UOx0`z4b2}{%+QPNjTqkY*nc6CU5$WxPHM6 z*bB8!Dr**Lnb{r~XA7!oT>QKR?&My;%k_nH%d>H(7EyHIQtlc*} z&S=p>7zV^*=^{!>$^(L*Np}O0(L!Byw!>ApsVAJ^Hd<1>O2Bpiy%0a(QJr#*Bpq^~ zyQ0v^HSs6e)Ih2VZ~n^mn9Eg@2j(bKdFPMgenKnOi*Y!K09=&zU-h9-lVi5EU;{*^ z=d$T}Dl*w$JNq|C*$tSm^(m^RVaao*O4OC6XI7)Nw#~A{5er`EmFnSO62uzOIjJo&;@_UPnxC_@ zi<1#_rbYL_T@tX=rz4A*5eu|2!LFEn{Bp4qbh;vdJ;NAs?JG7JM#Wcq=qdY$ur$%? z)7Vxon~?k%MvH0Hs7E!1-Q)3gBMCAqW)O^9jU0441}U7V?%p6!#9jy9tYX q?7y_Eu#JCF6JP}1qY5|5*YE8#s6D2=><<3yDWRO)9m^d~|NJl91^Xue literal 0 HcmV?d00001 diff --git a/docs/classsw_1_1_read_only_property-members.html b/docs/classsw_1_1_read_only_property-members.html new file mode 100644 index 00000000..0646b10f --- /dev/null +++ b/docs/classsw_1_1_read_only_property-members.html @@ -0,0 +1,115 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::ReadOnlyProperty< T > Member List
+
+
+ +

This is the complete list of members for sw::ReadOnlyProperty< T >, including all inherited members.

+ + + + + + + +
Get() constsw::ReadOnlyProperty< T >inline
operator const T &() constsw::ReadOnlyProperty< T >inline
operator->() constsw::ReadOnlyProperty< T >inline
operator<<sw::ReadOnlyProperty< T >friend
Property< T > (defined in sw::ReadOnlyProperty< T >)sw::ReadOnlyProperty< T >friend
ReadOnlyProperty(const std::function< const T &()> &funcGet)sw::ReadOnlyProperty< T >inline
+
+ + + + diff --git a/docs/classsw_1_1_read_only_property.html b/docs/classsw_1_1_read_only_property.html new file mode 100644 index 00000000..888281da --- /dev/null +++ b/docs/classsw_1_1_read_only_property.html @@ -0,0 +1,189 @@ + + + + + + + +SimpleWindow: sw::ReadOnlyProperty< T > Class Template Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
sw::ReadOnlyProperty< T > Class Template Reference
+
+
+ +

只读属性 + More...

+ +

#include <Property.h>

+
+Inheritance diagram for sw::ReadOnlyProperty< T >:
+
+
+ + +sw::Property< int > +sw::Property< std::wstring > +sw::Property< AppQuitMode > +sw::Property< bool > +sw::Property< sw::CheckState > +sw::Property< sw::HorizontalAlignment > +sw::Property< sw::VerticalAlignment > +sw::Property< sw::TextTrimming > +sw::Property< sw::LayoutHost * > +sw::Property< double > +sw::Property< sw::BorderStyle > +sw::Property< wchar_t > +sw::Property< uint16_t > +sw::Property< ProgressBarState > +sw::Property< sw::Orientation > +sw::Property< TabAlignment > +sw::Property< sw::Thickness > +sw::Property< HorizontalAlignment > +sw::Property< VerticalAlignment > +sw::Property< uint64_t > +sw::Property< sw::ContextMenu * > +sw::Property< sw::Color > +sw::Property< WindowStartupLocation > +sw::Property< WindowState > +sw::Property< sw::Menu * > +sw::Property< sw::Font > +sw::Property< sw::FontWeight > +sw::Property< sw::Rect > +sw::Property< T > + +
+ + + + + + + + + + + + + + +

+Public Member Functions

ReadOnlyProperty (const std::function< const T &()> &funcGet)
 初始化ReadOnlyProperty
 
+const T & Get () const
 读属性
 
operator const T & () const
 读属性
 
+const T * operator-> () const
 取属性成员
 
+ + + + + + +

+Friends

+class Property< T >
 
+std::wostream & operator<< (std::wostream &wos, const ReadOnlyProperty &prop)
 支持Utils::BuildStr
 
+

Detailed Description

+
template<typename T>
+class sw::ReadOnlyProperty< T >

只读属性

+

The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_read_only_property.js b/docs/classsw_1_1_read_only_property.js new file mode 100644 index 00000000..3aa5102c --- /dev/null +++ b/docs/classsw_1_1_read_only_property.js @@ -0,0 +1,8 @@ +var classsw_1_1_read_only_property = +[ + [ "ReadOnlyProperty", "classsw_1_1_read_only_property.html#a800a531ff60f5be40012d548537be339", null ], + [ "Get", "classsw_1_1_read_only_property.html#ac4317dbef2c25af64659b805cbbb26f6", null ], + [ "operator const T &", "classsw_1_1_read_only_property.html#a7610c93a1d2bcbdb34a97ac90e36fcea", null ], + [ "operator->", "classsw_1_1_read_only_property.html#ace02f4ac6e2e2ba863038ed5b1befb8c", null ], + [ "operator<<", "classsw_1_1_read_only_property.html#a081d365b2904532c706e9dc7e4c0bd90", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_read_only_property.png b/docs/classsw_1_1_read_only_property.png new file mode 100644 index 0000000000000000000000000000000000000000..e934adfb71821b4ce224ef5d797987a84e405bc5 GIT binary patch literal 14846 zcmdsed05iv-o8ueNi$E=l%3 zHg4cpQIeYDjv{qTnZ^ao%mtB>R73%dO+es%Ae~cl-gEu_dC$47e*P0*Ab9vbpXL7C z_x)Tsa@fbj$lORrN5^FUe|`0xj*c!zN5|mwpY*{qIh(&I1^-waIe7GIwOS1xa%RP; z*uN2W@7#8JV?j6P)vH(Fd8eL$JK(idDc>FT(*f7oKNr2C7dkq7uI&G6@6ilh9+P*b z;+q!l*Vp&{I3cr|zoxfOSQhiwj!{8!^r?qi_qpZe@l{=egM)!(I&qRza(MMABas+M z-msNEI3o_mdqz|b#^>l|gBMn6UqC+}{X%!cp zWqyprSHTzREXyNICs`X}&eB}bUC8RrXuS~oYrY+)UnNP5kZBM1M9Laqk7^7jT%KK`gSJ59L!&}kByd_3Fl=HDC3Ih zUONeAgDcAM@f5iw#cuSTS37})LDtUm7JsJBO#F4H`-c9F!u(7&Zs8Uj&k84j6^f}m zG<(dDvf#T~b6-_1Jk0CfEfksEyUQ(5SsM?F7F%uP%!rXTNATdk)O+T%fxD--Qgc6z zKYjPYDNZ%`bJhLqtopvOr``g~mad~#gxOv~)aXEUGAXbPVYARM5)p4sOsfus2$0XbO z`}Do;Lu}|3l#wuwQ$Nu`&t%R*X&_4Ej(yc>&Z%ao6~jv9FEIDTW?#i*#q_vp)QfnI z`$Vr&9t%CdcFipn%$|DIS@gp(rIG3rr1;sRG%JrQ z1b2SFl%XDZWrp|1gyQ`pQj18943C$d7^aFv;|mIuuV2%$M_dA(tR?Dr@6ClCkV}}= zi`y{Zt&XE}%`=;kNTW*ySU*OiGAH)we0o;B*o2+iGt3LBs5Y+S<{8|5);L@~wXQ~1 zi*)Pj_9-?QMn6+MwmM=MEcS0FjqamG>~Oynjc=|v^;3S6u5w{vn<(VP)ZPf&g02T- zU1d;6bjTYA&cGJ7LCfZ(RnTm&mYpZP^|OYGP$I4~LYt!UXArWiJ7Hfm)*yqJUcfiG zv_C79nClR2wxfU{d(LdH#9bSv5))NWmM3LpCGrmRf@#vxz?J5&N>px~h~%+w%cBt+ zVg^`o7O%~wgpan|Z~Ok;EqnhC9^FKmAypmLiB9ow1R2@?ugkZ8{>iRZnl&8Ji58i9 z5^rtOrr-P7C=h8gk-v>$wZlM(W~$+#XI^#ro2?8Mm++-BanG0=J6?Dre=mZryxx(# zKIW{8t4?-HN29{^IhFZMtv9V~Dq;+R@DA@uAE?x;B=zH8%og-Rpha9BZh*0= zL$Xca*@&ed2Z_sfsv??*E)7SXz;2g?5|0Prei;{c$pmi~7W2mN9;Wg$&7p^RIwE$s zsoTtU&EB_>>b-Z^h1&Mf@B`B>4(7)w=TV}#ve9$lvwb$At0&Hl4V?}=pXl+;aJlZ- zH0L?Fi3L*HYK7)4fjbFHq|U60 z#OtbxRGZ~LozOf$uMHMk*?oAE@9#<(Obsj1>E&d_oLwz=&b|1ra%ws7CgRRPL; zP!rJUldDL9I6Q%HEJL=tKAT~68@7jisvkGGV*m?Eqr&8y{LVTb+C8KqTAZdg>W-1j zn?BI5l<#H#HsWbVpFGj-Ko1>wMLw(ACeEZ6fSMc!JO5ruUZ*L^u`pKo6pCjnI)R0k z)%xf!CQ%-x*xiG>)l=({yOY!QDl*)wVtq$F4v5RaqH=lPDj{Xu8STTfs=?lz0A*Lh z*XracPh!BkR`h!=d<@%UD%B=yj^BvAv})6us>7Kx#^ASwODz`VwiNcxHL?}R>~HY8 zYa~W;=PR9=j$=cHqCsV+sqi80O?xPXtVGv4?N9gFTwP@9(EEDT0y<_MHsG}~IF+a{ zDGiEhTtpw+WfAUiIFThW48OV?W%R|^^kUNGN%mxH<{?PTK;@(~?cV(D#`qhR<;mxH zYp3i+`U-PTPLeKpcv{8`^t_CpDm-=A!Ck+{pQnWF8sFLd2~vJ4PV|occ5!2%(xqX0BexdZlyV7N>bAN969U@Qi!~g| z#O9a*T)mAPyT>rNe&64FoVH;9Sk_WC!(DOOd&*1yv$HUp|9eFA&nxsY5)*3HV6^hI zw_2wz?xzp%k|sz=+!;x^yj7o2N3gXWYDT-dQ@9GX4+X()^(0o2SPupp#RPhVg$6680kGxV6M;XSQ))`*%68g>ZH@``rbHgxTOY0G3-!#!y= zQx6hakn=CRIn-dc*^AZqK-_B7NiVX)_;Joe`7f~4BEv61 z5%0^wmI~@y=y_1m#c+Nf_$)gmVqc@5bohA*2%8kd?1dY&rj#|&y|yv-jMzG-@kgK1 z5_6vv@$j%Qm{*sj8lAP04Dl>c8w87w%oIr%o472|GZ)R3TcZ?~HWu!6R0ANr5?N#F zEDzJ|6t3HcnCPR4m;OPXk2urtaI9}w=$tam>FMIrN}9jR2n_TmHztBHgIYAER~%{& zv|2PPQ6KOas>iC!=vW3@p0qego8>Jqu?5zPZ*c>Q+x5toN?FeV zjvjlPcsZ9*yH@$UawIXsl%%YcW+nI;BGHkz=oaqSO^!A-Jy%g4<8_-6Vd@N0Ct)(F zcO7R~#*_4^;(O1xh1wSQ#g|#d^Zqh#1c3T0Y1UI&n;Qjfo|JhE!{vwG+GOHLnSmnP z2KgGuzTsU3v70u$H90T~C8b1T(QPS$#3FVaBd>StkcE)j3%|CzWGEc=@CDmYs^4{} z4VJh{xe%S00Ld9U8vuPiRx(O%ub>Q=wtYsgK-48ytH&}?!$+V;@&2qBMY!5bm>D$U z5Bozm(OiBE2;VxJi9U);e|1xKw(CDABke`ymg*loF?!jv5X#+09prxmOld=JZ9najc6SXbvjs6|p%Dh0VY+V!I?;HrocV2$nGjLfHr||p_czOT;3iEKL6Oe(3>dMI_<(V3 zXrGioD>E~FT+oYQ_;5c@1>c`9ZOtjA1bNbKjf#&lER!0-)kY#e?o!n#^@P0~8Q!q4 z8iYhsj)!H4=L(|7nAdq-1=37(zw(|jtAd0r3m5f;_|K>@AaL`^6tO4~#`HTw3C4$Z5Xet9j zQyGRos0hX!pSf#e_m#zIVpw zM&nD8dk$fo$J>*HYlC|^)FTx{$phNEV!+5nKdi5{oZBSg-k?Syk3E%C4AOc1KOd(2 z)Tcu%74!++T8znsSCTms5YSB^qJ%jmRK68V=7EWcoxEiv!7!egyv+VVtyB-ESmthi zM1W?>->k3T{sKsYA^zb9@-$r7UF03j)tVj(2VeQ{{lPzg9RPx3BO0v+rg*qtSr~IXXeqErj z0XDZWDQ);IcQQv_><+4>kN*kT2={ygnx!@8p+U z^BGns-YHu6v+{R@Xj*1POsAZqTnNwJH9IQk=2$sIdlTCRPB@|U$V25JoM@Ct877H2 z8!^4*fb;~n!4LIrc(21!6P~L2ld7Z#I_pX>y%ro=nLoCUAhd|9K!9uH<>OPuE_L2K0q3y<&zhJ#%6j!Mi%~+Nm|G zc%+SI+6qa^l#SDO|27+MX4-w=EkK$@tRd>5tl9guSB6#Jlf!Hq+^o?L@;2PSxF=f3 zoj|R2DP#^^Ii)(0#15&6JptL6q%7XylYqP4v5Ipzk$gP2Fu@pR8GV zKcR7*;`n5)eD4&Oy-Ld>nU1s!A~xP{>x;Gq(PqdSm0)@R2?vW+w5gN97+AT)aQ#l# zoZ?i?kX&_(`($*TRj+)F|E2Wk|2_(2)q><^p>9WFh@mFQa(WYRhAtfI~>h`ER z$pk28_@V_$WVlSdW$P(}$b=r@Hc*L=>zA6iTpid)D>&C3bJj{U4IzIvbRj&U-bOSU zhf2lhl>jES#3P(!wiB=}1*00)#kgsui2XO}bLLg0{b@Yx9Kc?X-)N7Hf@!RRGPZ`Z zrI(eg03*;1Fx<@~wiLVIK=J+g4|nNfD8Aoni!T&Oj{u{I{SdMsmZFAa!H{vHNyT#1~?9w1ZSNT|m z3TB~?VgQoHkP~kUCqYv_@COq5W1vv06&jWtp}2Y8jM92?x3eWClI}@tzfR!2OZD!^n2H~5{)v&O)8?!cx z(I){jGX;?4bg%nfDYw=_ouT)RH7^e#I)}Oc(2yHNAwHq%76cyjWv>I3*||qB$?k

RBsi=#B(5yN@3{;ka`CHGJs1-+~ z94Aqhyp$(%G-7E*(n%-2Xy#E2k*c|x?iZ(>B zOxr~ABZjj?FPpT4IGZUD%`lW}e$D$2oV$L74@m#C#>}*q=E(ft2D8sG3FFc()!ZBb z_p^`~er$#IpWj`uC zg?&_g6uo*GV53%nUab&IKG&4>DG$f-6Ri{a?1Fwol;h*qYj}M`H_}QiCv?QzqzErNIUd&YOtz9X~%T(JCef>?rAO&`x!b&=#><4AN zHqBGLO@q%KCH7&uK2p)FQ7f7ugf|uS{R91blth8rYGWoQW1s~5!T@Q=qTEAJVh{6J z2iqNo*BzVrlPK{m6FwcJpFKD|HKpD5DUZ}5;;rPy<^+Rm*eG@sv%57sG&$zmRibY> zsx%is%}sCHxJ1*wq&?&AL598zxn}3HFcE0u9l!()6V;R68~c-G`tU76PIxQx`zq!0 zQ^Y5elsuRK=xC{p$7>SGrtCJPV=@c^YLnxq;iVU-slNE4_`>KZon`*r2X94`KDyF& z4&d;Fsso(LE(rlHymQK1zqP;b?;MMK02CKEfnR&q4JhCJYwVa7A)KoTLCIQ(hNU8> z`GZ%cA8wjb>VCfu))p7) zch(t**#4oI^0DwL?}9+^c$-j{lDoO;wynFz1+8`(pw&)o?(*#QP3G9wJX!bnyfm!S zR_UIh-^J5g8fInQesbqa$2c|P8dO2i2;QVXOp(Rl9??nX*5cyAMu&o)wNy2<3c0n~ zFuphQJeapoCg1ermq<9nPZK}`ux(^^T<-bOUU5fOIE?FXO}gw#uV``F&N(wRdKOZe zlP0P3_c#Zkjs=lSmz#as3VF>r36XOE0P~P9iEGo#3L{Wz%Xs}2MWdi67UZY*FD};Vruf=I;y&VjZ5KwhvCb1i2s*|;YJ%A zRzYKU+=Y=A5~9Hzwpal&eL)h@9ckqu2am+d+IZB!xVG7jlRKa@T4%j#jPvxtwrlZqEA=bSrHll zl`=Dt?(ys5s}xzrG0DS2xSrnDF1RYW5D`dVc_O+gvd)E}az+Tn)D0Z{M+dyS6DdoS~+AyAi0V^Rr;c8fpT_joZqdU|XKvZXEwYS~*HM)!am z;7q&|!`x77pM!88B1;s7}#sh2s z5PKQ~vWVWP;}e0(M}NTh;PPV->muHXb&_q$zK&=XA~2ffJ1P%NEw=`!PMj)5$>f*X z3@b+*v$~$x89P3nNz+D%07QtJ7p#R6A<4~!Nn=@|P6b15sUDqrBy}ss2_5Nh1hYU7 zUKcZPPu1r9K_>|2h##GG2?mKuDFwixCm*{r^_hV@dR${G)+wXVJ6j2Rf_f+kfGpT3+G2z2p74EkA zrrd)EXTtX77%Uved9vV2&dxD8P;tYitAxrkcykXjO)m2nu5w=-GqgHvQB`PXp|w1f ziy_NYoW@&I+w6KCT`bJ_rr{Rf7o-=mZg1?{M9>?w!+~wXn~u+u-&Te#T7wXPz=H}x zI4eg&6Eh47iRSkYai|Gn!{xBDWn;xU4wVZH3BUo#c2gSPnvVVPKY{a2=)wHE7|(!` zppDGmG@AUQ568fuhaLTwZBi)X)h}m!bM%#KH9o1M==*myJh<_SB^Z{*@&f6-hu z9Pcfn0i^%!A1n$V0n+#QJJPRkw!vmmtW3!p7scs-f6A1$EXV`e^vTdS8&WW{vh$Ku zwQnlLlUU1QSdy8wHQp0wH^qY`D-8iyX$q{bIVkK$l&NY8^$yO z=R$Dz9=Zgl#F04&z{8d(54&XG?*0_cM!MoI_LO++8lSzH^jPNK<5NWE&Zg%rHv|w8 zl_iNNnnsre%As{t=|#H|r7aA(reu>zHzr-mVWuXnAqT~VXn6KBo6^sf+(j)kk<%h2 zMBCpWCiFT=iX9x`w)UM*ckM-dX}Rde3)m zT0bQ6&feHEd-yUhTlJeo8;Z^g#v?%qg~WyK$JKO~0V$=qVx{Y@ac7ZYxulbg!F(5u zn$S4r+Iy8_mw|2qVb);<^oh`_~@9Bs0IplFRI1Xz`wwWA$(O z*M_QP!oI@mM>X}BGEz##7Qdr(>MiNXKp&B}B<7XQexw+$V#yZOY-t(iJLH?cj1efs8yA{XqUrQ6izO^f@Um|76&uj@f5yM`<7_iWK`A*t{lX-TyVyb5N;kcmrkg$6m#0j#mzlY*OHs3&e~36tVgG3JMv__-qBbIZ zfBYWCA8+MC${7p4l$*M^xBuWv-!cNbD<@)~G!V3P)u|=NWIi1`ps0!T$OS_l{K-t1 ze3fV}wYIjQ;D=~>(Sh_RNBUx~lrvy5a&Am?8-m>=b`~X25R@~fa`clHlxQ{r2St)o z><~%T9<~qKf2uXUWjx^_;*B29hSN402wX14uD7z=*e0$yUZ=jK*wgc?n;MX|koXx1 z)U8S`M8}IX@i}!%U73v6MZXkys%x|lTIdyOjPb|U-d&d2Kt^Ags)<> z#)K9nZBfc^Q7!~TQ!EJB2;lYgbu-8=`u0GProkV-oud5AYEsVQNr@(XY41f#gW4~f z09=rRA&vm?T{*Svurq0HOE8aDZC!2FNb8)v?sgDRy~;@!|(P6xW>_M)*g_E!}p zzstO5SbtaV?0QiWX!jnmt$ijU$u9SYY}3N1U(iNSOREAgHBz!+dGM!d2LDKE)*7<> zzSzNM0W%z4%KdLKGnCnY_zs$m%lLRwaPZ-Z#Ej<&kz+k9e$9hodZu# z&YqLZXBcF=r3c{{4ws%N)}t2wnl=#t1=0(qjEqv}T;Wy&t4#zDydLzGdhwnJ1^+-DnZ<@DnR;+a{8yFTG zUp7o!^Md_3%0las1~vc8)2N8uI-rryRY)Zq=K7R1%Y>fO_+%kD*z^}4{muNIyC~hh z!@Q(Q2pH`iK`o`;#S)=}$$wsnybmb5?^-M#aGwDfTQH)lG%E&$KLj-GbsuTdR^3_B z+MZu+a#iQ+9xVXBYztF2e0wW!CVWZP!HIN5iKR^VLXf^PRe^!6UmDoSEbc3S`ysyM5PsPVz zc#sZ#oeI{Y?uZ=;0Vmp5K%Ieg!DqQ=XX|{x$vU3^Tr5p-`U8RnWzBbY(wLh${XjEK zWn9@^HJ~Za!QGM8&c^EK$2qDM!Q%fyeF3ZePT2%DFwG6WMH7C5j1AEKkCc0DU$!$v zJsps-4B^zyTjgu2#}*1fj}f5bBUr3-jqzh&wXKokCC{o zp>pP0LYLynr2eRdM~i8a)k*gQ;v+c$%nAxlGhzY!)w^}_ovq~{gUB$9Tu7wFwe3v> zB^vIu)hRt?q@1CkgvOcieY{7_AF2`Ovn5koHPX0+0Mot;Q`0oFz2-RA(qevF3JlcN z!R37=p95wVB@?|0)ZL+GY<`pdP^8$Z_t{m042m^MlvT~V7@l}fYh`g6-_A+HhP#J= zEta^}0q5g&;Cy_iyV+y&hjuLT*4Zm&Rg2xU@3a;7#TXOqwO4!^mk<2-R`tnj_0vq$ z-6Prlpc=oB^e+w{%kF@iv-IR;13rDKJa!Pd__oB=AI( zT7fnz*O5E-!CkT*9@m2Gyd^j6XNgs=&f^I;Kg`vr9j4XGvWoaJ`xr2>2Wv^GW9Pq1 zW)Un?-+9&6fwCR)diZOcrs~G9m5888yA5=(vkeqTQcyG1|3nQ3zH< + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +

+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::Screen Member List
+
+
+ +

This is the complete list of members for sw::Screen, including all inherited members.

+ + + + +
CursorPositionsw::Screenstatic
Heightsw::Screenstatic
Widthsw::Screenstatic
+
+ + + + diff --git a/docs/classsw_1_1_screen.html b/docs/classsw_1_1_screen.html new file mode 100644 index 00000000..b055d138 --- /dev/null +++ b/docs/classsw_1_1_screen.html @@ -0,0 +1,136 @@ + + + + + + + +SimpleWindow: sw::Screen Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
sw::Screen Class Reference
+
+
+ +

屏幕相关 + More...

+ +

#include <Screen.h>

+ + + + + + + + + + + +

+Static Public Attributes

+static const ReadOnlyProperty< doubleWidth
 屏幕宽度
 
+static const ReadOnlyProperty< doubleHeight
 屏幕高度
 
+static const ReadOnlyProperty< PointCursorPosition
 鼠标在屏幕中的位置
 
+

Detailed Description

+

屏幕相关

+

The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_slider-members.html b/docs/classsw_1_1_slider-members.html new file mode 100644 index 00000000..9d60d0fc --- /dev/null +++ b/docs/classsw_1_1_slider-members.html @@ -0,0 +1,296 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::Slider Member List
+
+
+ +

This is the complete list of members for sw::Slider, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AddChild(UIElement *element)sw::UIElement
AddChild(UIElement &element)sw::UIElement
AddChild(UIElement *element, uint64_t layoutTag)sw::UIElement
AddChild(UIElement &element, uint64_t layoutTag)sw::UIElement
Arrange(const sw::Rect &finalPosition) overridesw::UIElementvirtual
BackColorsw::UIElement
ChildCountsw::UIElement
ClearChildren()sw::UIElement
ClientHeightsw::WndBase
ClientRectsw::WndBase
ClientWidthsw::WndBase
Close()sw::WndBase
CollapseWhenHidesw::UIElement
ContextMenusw::UIElement
Control()sw::Controlprotected
DefaultWndProc(const ProcMsg &refMsg)sw::WndBaseprotected
Enabledsw::WndBase
Floatsw::UIElement
Focusedsw::WndBase
Fontsw::WndBase
FontChanged(HFONT hfont)sw::WndBaseprotectedvirtual
FontNamesw::WndBase
FontSizesw::WndBase
FontWeightsw::WndBase
GetArrangeOffsetX()sw::UIElementprotected
GetArrangeOffsetY()sw::UIElementprotected
GetChildBottommost(bool update)sw::UIElementprotected
GetChildLayoutAt(int index) overridesw::UIElementvirtual
GetChildLayoutCount() overridesw::UIElementvirtual
GetChildRightmost(bool update)sw::UIElementprotected
GetDesireSize() overridesw::UIElementvirtual
GetExtendedStyle()sw::WndBaseprotected
GetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
GetFontHandle()sw::WndBaseprotected
GetLayoutTag() overridesw::UIElementvirtual
GetNextElement()sw::UIElement
GetNextTabStopElement()sw::UIElement
GetRealBackColor()sw::UIElement
GetRealTextColor()sw::UIElement
GetRootElement()sw::UIElement
GetStyle()sw::WndBaseprotected
GetStyle(LONG_PTR style)sw::WndBaseprotected
GetTag() overridesw::UIElementvirtual
GetText()sw::WndBaseprotectedvirtual
GetWndBase(HWND hwnd)sw::WndBasestatic
Handlesw::WndBase
HandleChenged()sw::Controlprotectedvirtual
HandleInitialized(HWND hwnd)sw::WndBaseprotectedvirtual
Heightsw::WndBase
HorizontalAlignmentsw::UIElement
IndexOf(UIElement *element)sw::UIElement
IndexOf(UIElement &element)sw::UIElement
InheritTextColorsw::UIElement
InitControl(LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
InitWindow(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
IsControl()sw::WndBase
IsDestroyedsw::WndBase
IsRootElement()sw::UIElement
IsRoutedEventRegistered(RoutedEventType eventType)sw::UIElement
IsVisible()sw::WndBase
LayoutTagsw::UIElement
Leftsw::WndBase
Marginsw::UIElement
Maximumsw::Slider
Measure(const Size &availableSize) overridesw::UIElementvirtual
Minimumsw::Slider
MoveToBottom()sw::UIElement
MoveToTop()sw::UIElement
NcHitTest(const Point &testPoint)sw::WndBase
NotifyLayoutUpdated()sw::UIElementprotected
OnAcceleratorCommand(int id)sw::WndBaseprotectedvirtual
OnAddedChild(UIElement &element)sw::UIElementprotectedvirtual
OnChar(wchar_t ch, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnClose() overridesw::UIElementprotectedvirtual
OnColor(HDC hdc, HBRUSH &hRetBrush) overridesw::UIElementprotectedvirtual
OnCommand(int code)sw::WndBaseprotectedvirtual
OnContextMenu(bool isKeyboardMsg, Point mousePosition) overridesw::UIElementprotectedvirtual
OnControlCommand(WndBase *pControl, int code, int id)sw::WndBaseprotectedvirtual
OnCreate()sw::WndBaseprotectedvirtual
OnCtlColor(WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)sw::WndBaseprotectedvirtual
OnDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnDestroy()sw::WndBaseprotectedvirtual
OnDrawFocusRect()sw::UIElementprotectedvirtual
OnDrawItem(int id, DRAWITEMSTRUCT *pDrawItem)sw::WndBaseprotectedvirtual
OnEnabledChanged(bool newValue)sw::WndBaseprotectedvirtual
OnEndPaint() overridesw::UIElementprotectedvirtual
OnEndTrack()sw::Sliderprotectedvirtual
OnEraseBackground(int &result)sw::WndBaseprotectedvirtual
OnHorizontalScroll(int event, int pos) overridesw::Sliderprotectedvirtual
OnKeyDown(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKeyUp(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKillFocus(HWND hNextFocus) overridesw::UIElementprotectedvirtual
OnMenuCommand(int id) overridesw::UIElementprotectedvirtual
OnMouseLeave() overridesw::UIElementprotectedvirtual
OnMouseLeftButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseLeftButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseMiddleButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMove(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseRightButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseWheel(int wheelDelta, Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMove(Point newClientPosition) overridesw::UIElementprotectedvirtual
OnNcHitTest(const Point &testPoint, HitTestResult &result)sw::WndBaseprotectedvirtual
OnNotified(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnNotify(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnPaint()sw::WndBaseprotectedvirtual
OnRemovedChild(UIElement &element)sw::UIElementprotectedvirtual
OnSetCursor(HWND hwnd, HitTestResult hitTest, int message, bool &result) overridesw::UIElementprotectedvirtual
OnSetFocus(HWND hPrevFocus) overridesw::UIElementprotectedvirtual
OnSize(Size newClientSize) overridesw::UIElementprotectedvirtual
OnSysChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyDown(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyUp(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnTabStop()sw::UIElementprotectedvirtual
OnTextChanged() overridesw::UIElementprotectedvirtual
OnValueChanged()sw::Sliderprotectedvirtual
OnVerticalScroll(int event, int pos) overridesw::Sliderprotectedvirtual
operator=(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator=(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator[](int index) constsw::UIElement
Parentsw::UIElement
ParentChanged(WndBase *newParent) overridesw::UIElementprotectedvirtual
PointFromScreen(const Point &screenPoint)sw::WndBase
PointToScreen(const Point &point)sw::WndBase
RaiseRoutedEvent(RoutedEventType eventType)sw::UIElementprotected
RaiseRoutedEvent(RoutedEventArgs &eventArgs)sw::UIElementprotected
Rectsw::WndBase
Redraw(bool erase=false)sw::WndBase
RegisterRoutedEvent(RoutedEventType eventType, const RoutedEvent &handler)sw::UIElement
RegisterRoutedEvent(RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))sw::UIElementinline
RegisterRoutedEvent(std::function< void(UIElement &, TEventArgs &)> handler)sw::UIElementinline
RegisterRoutedEvent(THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))sw::UIElementinline
RemoveChild(UIElement *element)sw::UIElement
RemoveChild(UIElement &element)sw::UIElement
RemoveChildAt(int index)sw::UIElement
ResetCursor()sw::UIElement
ResetHandle()sw::Controlprotected
SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase
SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement
SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual
SetCursor(HCURSOR hCursor)sw::UIElement
SetCursor(StandardCursor cursor)sw::UIElement
SetDesireSize(const Size &size) overridesw::UIElementvirtual
SetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
SetExtendedStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetNextTabStopFocus()sw::UIElementprotected
SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual
SetStyle(LONG_PTR style)sw::WndBaseprotected
SetStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetTag(uint64_t tag) overridesw::UIElementvirtual
SetText(const std::wstring &value)sw::WndBaseprotectedvirtual
SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual
Show(int nCmdShow)sw::WndBase
ShowContextMenu(const Point &point)sw::UIElement
Slider()sw::Slider
TabStopsw::UIElement
Tagsw::UIElement
Textsw::WndBase
TextColorsw::UIElement
Topsw::WndBase
Transparentsw::UIElement
UIElement()sw::UIElementprotected
UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement
Update()sw::WndBase
UpdateChildrenZOrder()sw::UIElementprotected
UpdateFont()sw::WndBase
UpdateSiblingsZOrder()sw::UIElementprotected
UpdateText()sw::WndBaseprotected
Valuesw::Slider
ValueTooltipssw::Slider
Verticalsw::Slider
VerticalAlignmentsw::UIElement
Visiblesw::WndBase
VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual
Widthsw::WndBase
WndBase()sw::WndBaseprotected
WndBase(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndBase(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual
~Control()=0sw::Controlpure virtual
~UIElement()=0sw::UIElementpure virtual
~WndBase()=0sw::WndBasepure virtual
+
+ + + + diff --git a/docs/classsw_1_1_slider.html b/docs/classsw_1_1_slider.html new file mode 100644 index 00000000..57feb184 --- /dev/null +++ b/docs/classsw_1_1_slider.html @@ -0,0 +1,895 @@ + + + + + + + +SimpleWindow: sw::Slider Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+ +

滑块控件 + More...

+ +

#include <Slider.h>

+
+Inheritance diagram for sw::Slider:
+
+
+ + +sw::Control +sw::UIElement +sw::WndBase +sw::ILayout +sw::ITag + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

Slider ()
 初始化滑块控件
 
- Public Member Functions inherited from sw::Control
+virtual ~Control ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
- Public Member Functions inherited from sw::UIElement
+virtual ~UIElement ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
void RegisterRoutedEvent (RoutedEventType eventType, const RoutedEvent &handler)
 注册路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename T >
void RegisterRoutedEvent (RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))
 注册成员函数作为路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename TEventArgs , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (std::function< void(UIElement &, TEventArgs &)> handler)
 根据事件参数类型注册路由事件
 
template<typename TEventArgs , typename THandleObj , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))
 根据事件参数类型注册成员函数作为路由事件
 
void UnregisterRoutedEvent (RoutedEventType eventType)
 取消对应类型路由事件的注册
 
bool IsRoutedEventRegistered (RoutedEventType eventType)
 判断路由事件是否已被注册
 
bool AddChild (UIElement *element)
 添加子控件
 
bool AddChild (UIElement &element)
 添加子控件
 
bool AddChild (UIElement *element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool AddChild (UIElement &element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool RemoveChildAt (int index)
 移除指定索引处的子控件
 
bool RemoveChild (UIElement *element)
 移除子控件
 
bool RemoveChild (UIElement &element)
 移除子控件
 
+void ClearChildren ()
 移除所有子控件
 
int IndexOf (UIElement *element)
 获取指定元素的索引
 
int IndexOf (UIElement &element)
 获取指定元素的索引
 
+UIElementoperator[] (int index) const
 通过索引获取子控件
 
void ShowContextMenu (const Point &point)
 弹出当前元素的上下文菜单
 
+void MoveToTop ()
 移动到界面顶部
 
+void MoveToBottom ()
 移动到界面底部
 
+bool IsRootElement ()
 判断当前元素是否为根节点
 
+UIElementGetRootElement ()
 获取当前元素所在界面树的根节点
 
+UIElementGetNextElement ()
 获取当前元素在界面树上的下一个节点,若已是最后一个节点则返回根节点
 
+UIElementGetNextTabStopElement ()
 获取下一个TabStop属性为true的元素
 
+Color GetRealBackColor ()
 获取当前要显示的背景颜色:当Transparent为true时获取到祖先节点中首个Transparent为false的背景颜色,否则返回当前元素的背景颜色
 
+Color GetRealTextColor ()
 获取当前要显示的文本颜色:当InheritTextColor为true时获取到祖先节点中首个InheritTextColor为false的文本颜色,否则返回当前元素的文本颜色
 
void SetCursor (HCURSOR hCursor)
 设置鼠标样式
 
void SetCursor (StandardCursor cursor)
 设置鼠标样式
 
+void ResetCursor ()
 将鼠标样式设置为默认样式
 
void SetAlignment (sw::HorizontalAlignment horz, sw::VerticalAlignment vert)
 设置对齐方式
 
virtual uint64_t GetTag () override
 获取Tag
 
virtual void SetTag (uint64_t tag) override
 设置Tag
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取参与布局的子控件数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取对应索引处的子控件,使用此函数前必须先调用GetChildLayoutCount
 
virtual Size GetDesireSize () override
 获取控件所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置当前控件所需的尺寸
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const sw::Rect &finalPosition) override
 安排控件位置
 
- Public Member Functions inherited from sw::WndBase
+virtual ~WndBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void Show (int nCmdShow)
 该函数调用ShowWindow
 
+void Close ()
 发送关闭消息
 
+void Update ()
 该函数调用UpdateWindow
 
+void UpdateFont ()
 更新字体
 
void Redraw (bool erase=false)
 重画
 
+bool IsControl ()
 判断当前对象是否是控件
 
+bool IsVisible ()
 判断当前对象在界面中是否可视,与Visible属性不同的是该函数返回值会受父窗口的影响
 
Point PointToScreen (const Point &point)
 获取用户区点在屏幕上点的位置
 
Point PointFromScreen (const Point &screenPoint)
 获取屏幕上点在当前用户区点的位置
 
+LRESULT SendMessageW (UINT uMsg, WPARAM wParam, LPARAM lParam)
 发送消息
 
HitTestResult NcHitTest (const Point &testPoint)
 测试指定点在窗口的哪一部分
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Attributes

+const Property< intMinimum
 最小值
 
+const Property< intMaximum
 最大值
 
+const Property< intValue
 当前滑块的值
 
+const Property< boolVertical
 是否显示为垂直滑块
 
+const Property< boolValueTooltips
 是否在滑动时显示数值提示
 
- Public Attributes inherited from sw::UIElement
+const Property< ThicknessMargin
 边距
 
+const Property< HorizontalAlignment > HorizontalAlignment
 水平对齐方式
 
+const Property< VerticalAlignment > VerticalAlignment
 垂直对齐方式
 
+const ReadOnlyProperty< intChildCount
 子控件数量
 
+const Property< boolCollapseWhenHide
 是否在不可见时不参与布局
 
+const ReadOnlyProperty< UIElement * > Parent
 指向父元素的指针,当前元素为顶级窗口时该值为nullptr
 
+const Property< uint64_tTag
 储存用户自定义信息的标记
 
+const Property< uint64_tLayoutTag
 布局标记,对于不同的布局有不同含义
 
+const Property< sw::ContextMenu * > ContextMenu
 右键按下时弹出的菜单
 
+const Property< boolFloat
 元素是否悬浮,若元素悬浮则该元素不会随滚动条滚动而改变位置
 
+const Property< boolTabStop
 表示用户是否可以通过按下Tab键将焦点移动到当前元素
 
+const Property< ColorBackColor
 背景颜色,修改该属性会同时将Transparent属性设为false,对于部分控件该属性可能不生效
 
+const Property< ColorTextColor
 文本颜色,修改该属性会同时将InheritTextColor属性设为false,对于部分控件该属性可能不生效
 
+const Property< boolTransparent
 是否使用透明背景(此属性并非真正意义上的透明,将该属性设为true可继承父元素的背景颜色)
 
+const Property< boolInheritTextColor
 是否继承父元素的文本颜色
 
- Public Attributes inherited from sw::WndBase
+const ReadOnlyProperty< HWNDHandle
 窗口句柄
 
+const Property< sw::FontFont
 字体
 
+const Property< std::wstring > FontName
 字体名称
 
+const Property< doubleFontSize
 字体大小
 
+const Property< sw::FontWeight > FontWeight
 字体粗细
 
+const Property< sw::RectRect
 位置和尺寸
 
+const Property< doubleLeft
 左边
 
+const Property< doubleTop
 顶边
 
+const Property< doubleWidth
 宽度
 
+const Property< doubleHeight
 高度
 
+const ReadOnlyProperty< sw::RectClientRect
 用户区尺寸
 
+const ReadOnlyProperty< doubleClientWidth
 用户区宽度
 
+const ReadOnlyProperty< doubleClientHeight
 用户区高度
 
+const Property< boolEnabled
 窗口或控件是否可用
 
+const Property< boolVisible
 窗口或控件是否可见
 
+const Property< std::wstring > Text
 窗口标题或控件文本
 
+const Property< boolFocused
 窗口是否拥有焦点
 
+const ReadOnlyProperty< WndBase * > Parent
 父窗口
 
+const ReadOnlyProperty< boolIsDestroyed
 是否已销毁,当该值为true时不应该继续使用当前对象
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Protected Member Functions

virtual bool OnVerticalScroll (int event, int pos) override
 接收到WM_VSCROLL时调用目标控件的该函数
 
virtual bool OnHorizontalScroll (int event, int pos) override
 接收到WM_HSCROLL时调用目标控件的该函数
 
+virtual void OnValueChanged ()
 滑块的值改变时调用该函数
 
+virtual void OnEndTrack ()
 释放滑块时调用该函数
 
- Protected Member Functions inherited from sw::Control
Control ()
 初始化控件
 
+void ResetHandle ()
 销毁控件句柄并重新初始化,该操作会创建新的句柄并设置样式、文本、字体等
 
+virtual void HandleChenged ()
 控件句柄发生改变时调用该函数
 
- Protected Member Functions inherited from sw::UIElement
UIElement ()
 初始化UIElement
 
void RaiseRoutedEvent (RoutedEventType eventType)
 触发路由事件
 
void RaiseRoutedEvent (RoutedEventArgs &eventArgs)
 触发路由事件
 
+void NotifyLayoutUpdated ()
 通知顶级窗口布局改变
 
+doubleGetArrangeOffsetX ()
 获取Arrange时子元素的水平偏移量
 
+doubleGetArrangeOffsetY ()
 获取Arrange时子元素的垂直偏移量
 
double GetChildRightmost (bool update)
 获取所有子元素在当前元素中最右边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
double GetChildBottommost (bool update)
 获取所有子元素在当前元素中最底边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
+void UpdateChildrenZOrder ()
 更新子元素的Z轴位置
 
+void UpdateSiblingsZOrder ()
 更新兄弟元素的Z轴位置
 
+void SetNextTabStopFocus ()
 设置下一个TabStop属性为true的元素为焦点元素
 
virtual void SetBackColor (Color color, bool redraw)
 设置背景颜色
 
virtual void SetTextColor (Color color, bool redraw)
 设置文本颜色
 
virtual void OnAddedChild (UIElement &element)
 添加子元素后调用该函数
 
virtual void OnRemovedChild (UIElement &element)
 移除子元素后调用该函数
 
+virtual void OnTabStop ()
 通过tab键将焦点移动到当前元素时调用该函数
 
virtual void OnDrawFocusRect ()
 绘制虚线框时调用该函数
 
virtual bool SetParent (WndBase *parent) override
 设置父窗口
 
virtual void ParentChanged (WndBase *newParent) override
 父窗口改变时调用此函数
 
virtual void OnEndPaint () override
 在OnPaint函数完成之后调用该函数
 
virtual bool OnClose () override
 接收到WM_CLOSE时调用该函数
 
virtual bool OnMove (Point newClientPosition) override
 接收到WM_MOVE时调用该函数
 
virtual bool OnSize (Size newClientSize) override
 接收到WM_SIZE时调用该函数
 
virtual void OnTextChanged () override
 Text属性更改时调用此函数
 
virtual void VisibleChanged (bool newVisible) override
 Visible属性改变时调用此函数
 
virtual bool OnSetFocus (HWND hPrevFocus) override
 接收到WM_SETFOCUS时调用该函数
 
virtual bool OnKillFocus (HWND hNextFocus) override
 接收到WM_KILLFOCUS时调用该函数
 
virtual bool OnChar (wchar_t ch, KeyFlags flags) override
 接收到WM_CHAR时调用该函数
 
virtual bool OnKeyDown (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYDOWN时调用该函数
 
virtual bool OnKeyUp (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYUP时调用该函数
 
virtual bool OnMouseMove (Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEMOVE时调用该函数
 
virtual bool OnMouseLeave () override
 接收到WM_MOUSELEAVE时调用该函数
 
virtual bool OnMouseWheel (int wheelDelta, Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEWHEEL时调用该函数
 
virtual bool OnMouseLeftButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONDOWN时调用该函数
 
virtual bool OnMouseLeftButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONUP时调用该函数
 
virtual bool OnMouseRightButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONDOWN时调用该函数
 
virtual bool OnMouseRightButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONUP时调用该函数
 
virtual bool OnMouseMiddleButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONDOWN时调用该函数
 
virtual bool OnMouseMiddleButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONUP时调用该函数
 
virtual bool OnContextMenu (bool isKeyboardMsg, Point mousePosition) override
 接收到WM_CONTEXTMENU后调用目标控件的该函数
 
virtual void OnMenuCommand (int id) override
 当WM_COMMAND接收到菜单命令时调用该函数
 
virtual bool OnColor (HDC hdc, HBRUSH &hRetBrush) override
 父窗口接收到WM_CTLCOLORxxx时调用对应控件的该函数
 
virtual bool OnSetCursor (HWND hwnd, HitTestResult hitTest, int message, bool &result) override
 接收到WM_SETCURSOR消息时调用该函数
 
- Protected Member Functions inherited from sw::WndBase
WndBase ()
 初始化WndBase
 
WndBase (const WndBase &)=delete
 
WndBase (WndBase &&)=delete
 
+WndBaseoperator= (const WndBase &)=delete
 
+WndBaseoperator= (WndBase &&)=delete
 
+void InitWindow (LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为窗口,该函数会调用CreateWindowExW
 
+void InitControl (LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为控件,该函数会调用CreateWindowExW
 
+LONG_PTR GetStyle ()
 获取窗口样式
 
+void SetStyle (LONG_PTR style)
 设置窗口样式
 
+bool GetStyle (LONG_PTR style)
 获取窗口的某个样式
 
+void SetStyle (LONG_PTR style, bool value)
 设置窗口的某个样式
 
+LONG_PTR GetExtendedStyle ()
 获取扩展窗口样式
 
+void SetExtendedStyle (LONG_PTR style)
 设置扩展窗口样式
 
+bool GetExtendedStyle (LONG_PTR style)
 获取窗口的某个扩展样式
 
+void SetExtendedStyle (LONG_PTR style, bool value)
 设置窗口的某个扩展样式
 
+HFONT GetFontHandle ()
 获取字体句柄
 
+LRESULT DefaultWndProc (const ProcMsg &refMsg)
 调用默认的WndProc,对于窗口则调用DefWindowProcW,控件则调用_controlOldWndProc
 
virtual LRESULT WndProc (const ProcMsg &refMsg)
 对WndProc的封装
 
+void UpdateText ()
 更新_text字段
 
virtual std::wstring & GetText ()
 获取窗口文本
 
virtual void SetText (const std::wstring &value)
 调用SetWindowTextW设置窗口文本
 
virtual bool OnCreate ()
 接收到WM_CREATE时调用该函数
 
virtual bool OnDestroy ()
 接收到WM_DESTROY时调用该函数
 
virtual bool OnPaint ()
 接收到WM_PAINT时调用该函数
 
virtual bool OnMouseLeftButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_LBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseRightButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_RBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseMiddleButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_MBUTTONDBLCLK时调用该函数
 
virtual bool OnDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_DEADCHAR时调用该函数
 
virtual bool OnSysChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSCHAR时调用该函数
 
virtual bool OnSysDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSDEADCHAR时调用该函数
 
virtual bool OnSysKeyDown (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYDOWN时调用该函数
 
virtual bool OnSysKeyUp (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYUP时调用该函数
 
virtual void OnCommand (int code)
 当父窗口接收到控件的WM_COMMAND时调用该函数
 
virtual void OnControlCommand (WndBase *pControl, int code, int id)
 当WM_COMMAND接收到控件命令时调用该函数
 
virtual void OnAcceleratorCommand (int id)
 当WM_COMMAND接收到快捷键命令时调用该函数
 
virtual void HandleInitialized (HWND hwnd)
 窗口句柄初始化完成
 
virtual void FontChanged (HFONT hfont)
 字体改变时调用该函数
 
virtual bool OnNotify (NMHDR *pNMHDR)
 接收到WM_NOTIFY后调用该函数
 
virtual void OnNotified (NMHDR *pNMHDR)
 父窗口接收到WM_NOTIFY后调用发出通知控件的该函数
 
virtual bool OnEnabledChanged (bool newValue)
 接收到WM_ENABLE时调用该函数
 
virtual bool OnCtlColor (WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)
 接收到WM_CTLCOLORxxx时调用该函数
 
virtual void OnNcHitTest (const Point &testPoint, HitTestResult &result)
 接收到WM_NCHITTEST后调用该函数
 
virtual bool OnEraseBackground (int &result)
 接收到WM_ERASEBKGND时调用该函数
 
virtual bool OnDrawItem (int id, DRAWITEMSTRUCT *pDrawItem)
 接收到WM_DRAWITEM时调用该函数
 
+ + + + + +

+Additional Inherited Members

- Static Public Member Functions inherited from sw::WndBase
static WndBaseGetWndBase (HWND hwnd)
 通过窗口句柄获取WndBase
 
+

Detailed Description

+

滑块控件

+

Member Function Documentation

+ +

◆ OnHorizontalScroll()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::Slider::OnHorizontalScroll (int event,
int pos )
+
+overrideprotectedvirtual
+
+ +

接收到WM_HSCROLL时调用目标控件的该函数

+
Parameters
+ + + +
event事件类型,即消息wParam的低字
pos当前滚动条的位置,仅当event为SB_THUMBPOSITION或SB_THUMBTRACK时有效
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented from sw::WndBase.

+ +
+
+ +

◆ OnVerticalScroll()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::Slider::OnVerticalScroll (int event,
int pos )
+
+overrideprotectedvirtual
+
+ +

接收到WM_VSCROLL时调用目标控件的该函数

+
Parameters
+ + + +
event事件类型,即消息wParam的低字
pos当前滚动条的位置,仅当event为SB_THUMBPOSITION或SB_THUMBTRACK时有效
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented from sw::WndBase.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_slider.js b/docs/classsw_1_1_slider.js new file mode 100644 index 00000000..d9ce533e --- /dev/null +++ b/docs/classsw_1_1_slider.js @@ -0,0 +1,13 @@ +var classsw_1_1_slider = +[ + [ "Slider", "classsw_1_1_slider.html#a44907de8805117d38ba3631545f39453", null ], + [ "OnEndTrack", "classsw_1_1_slider.html#a7791814523c6758f573499fa9f1ca074", null ], + [ "OnHorizontalScroll", "classsw_1_1_slider.html#a0614fc49d6825b3f864171246fa15892", null ], + [ "OnValueChanged", "classsw_1_1_slider.html#acf6c700d10cedb1ac2c69072a9ea0549", null ], + [ "OnVerticalScroll", "classsw_1_1_slider.html#a1bc544724aafc7ac79ca14fdc0e126a5", null ], + [ "Maximum", "classsw_1_1_slider.html#ab44222d9c4bacb9294a6578778b56256", null ], + [ "Minimum", "classsw_1_1_slider.html#ae3a7b7c831318c34341bfdf363daf4c2", null ], + [ "Value", "classsw_1_1_slider.html#ac4595d8d74e4759310cb0fc07fb7308a", null ], + [ "ValueTooltips", "classsw_1_1_slider.html#a85276ebc466a4dbe6923f033bfe2b1cf", null ], + [ "Vertical", "classsw_1_1_slider.html#a3f0efcf4b566cec56fed536786556a00", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_slider.png b/docs/classsw_1_1_slider.png new file mode 100644 index 0000000000000000000000000000000000000000..47c1cad96c2efe984c9cb7f973e052ef26159ab0 GIT binary patch literal 1610 zcmb7EX;f2J5Pk?0QPHN+gKU)w1p^2ovEe}l7ZBqTX#x})R<#5uL`;ZA2@ox%*vb-Q zQS%6T3`?p>*pY%PZU`i(Y(aK~5KurMvIGk0qepw%AKH4)`DVU5bAQa4`Q~15#kpv$ z(p?1rfEISY6CMCm^kH7JQWdt(uUl+~ou2CtxQgZk@i`l98CZ-gXooX}pLA*J^(!)%vH^RFr-c|L5frl1S{X~#l-^K=Uz4HSYhTNzR7n6In%5I4 zEgOf3N7}uX^ktqwXOB3}MuJ{WB}L?&tdfQ+FZ@n7d-A%x&n7_P%cqbd?WZMP(p$)J zjMC7Q$Xg7~U>c8HNq`bAe(8)cw>W&Mv{AdtTt>?b8?38;<}*U;DWjOg^rg3O+Zckc z9#-LQS`8keh9X~(D1~WPi|0!rsXmz!t{AU^XfJccF(uOyns2k2(s_wz_*zh`mu$RK z?nd>k8-D~|8~R!(_iZX1c5H_-)1qCeL#s)z-Z(cgh+-Wyy77;`Dn3UN90=Fev&FHT zf6607#tB@+eTQxSh9P@$5PzWXx$3v{igu+(6A|N5uORPE=iZo;w)a(lql4&@UHAos zGAGSAs^0IGKbTVdt8_p9{9Ej?%1y=Nu01=8%7$wE1i(a`Mh%ZKu_|3P|M9@dnO;Y_ zdZS85Zr1GJotWil@{99plKnwI6Q=KVNp%C0lK{hHQzeZ_EzoDGHLC2-|6eY)q5(Ax z-dZ=Ia8l;QB!;P2)}Y7&BbgdTn?=B#L`w2N>3WQI%B2S#T49*dp1C(;_LzIjs`85v zy4`o*iNMewL92DG@8vjj)>U11y>YC{rNZ z{Bz)w{td8@Ws~^^Odksk|E%5wxJv;bfb#f&kUu2y|Hy^ggFX@(37D9SKp^Ulfe3_V zIugP1e@DWtzzZ%>V!Z literal 0 HcmV?d00001 diff --git a/docs/classsw_1_1_stack_layout-members.html b/docs/classsw_1_1_stack_layout-members.html new file mode 100644 index 00000000..6ca04acf --- /dev/null +++ b/docs/classsw_1_1_stack_layout-members.html @@ -0,0 +1,120 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::StackLayout Member List
+
+
+ +

This is the complete list of members for sw::StackLayout, including all inherited members.

+ + + + + + + + + + + + +
Arrange(const Rect &finalPosition) overridesw::LayoutHostvirtual
ArrangeOverride(Size &finalSize) overridesw::StackLayoutvirtual
Associate(ILayout *obj)sw::LayoutHost
GetChildLayoutAt(int index) overridesw::LayoutHostvirtual
GetChildLayoutCount() overridesw::LayoutHostvirtual
GetDesireSize() overridesw::LayoutHostvirtual
GetLayoutTag() overridesw::LayoutHostvirtual
Measure(const Size &availableSize) overridesw::LayoutHostvirtual
MeasureOverride(Size &availableSize) overridesw::StackLayoutvirtual
orientationsw::StackLayout
SetDesireSize(const Size &size) overridesw::LayoutHostvirtual
+
+ + + + diff --git a/docs/classsw_1_1_stack_layout.html b/docs/classsw_1_1_stack_layout.html new file mode 100644 index 00000000..cdb080a7 --- /dev/null +++ b/docs/classsw_1_1_stack_layout.html @@ -0,0 +1,236 @@ + + + + + + + +SimpleWindow: sw::StackLayout Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
sw::StackLayout Class Reference
+
+
+ +

堆叠布局 + More...

+ +

#include <StackLayout.h>

+
+Inheritance diagram for sw::StackLayout:
+
+
+ + +sw::StackLayoutH +sw::StackLayoutV +sw::LayoutHost +sw::LayoutHost +sw::ILayout +sw::ILayout + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

virtual void MeasureOverride (Size &availableSize) override
 计算所需尺寸
 
virtual void ArrangeOverride (Size &finalSize) override
 安排控件
 
- Public Member Functions inherited from sw::LayoutHost
void Associate (ILayout *obj)
 设置关联的对象,每个LayoutHost只能关联一个对象
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取关联对象子控件的数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取关联对象对应索引处的子控件
 
virtual Size GetDesireSize () override
 获取关联对象所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置关联对象所需的尺寸
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const Rect &finalPosition) override
 安排控件位置
 
+ + + + +

+Public Attributes

+Orientation orientation = Orientation::Vertical
 排列方式
 
+

Detailed Description

+

堆叠布局

+

Member Function Documentation

+ +

◆ ArrangeOverride()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::StackLayout::ArrangeOverride (Size & finalSize)
+
+overridevirtual
+
+ +

安排控件

+ +

Reimplemented from sw::StackLayoutH.

+ +
+
+ +

◆ MeasureOverride()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::StackLayout::MeasureOverride (Size & availableSize)
+
+overridevirtual
+
+ +

计算所需尺寸

+ +

Reimplemented from sw::StackLayoutH.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_stack_layout.js b/docs/classsw_1_1_stack_layout.js new file mode 100644 index 00000000..083571bc --- /dev/null +++ b/docs/classsw_1_1_stack_layout.js @@ -0,0 +1,6 @@ +var classsw_1_1_stack_layout = +[ + [ "ArrangeOverride", "classsw_1_1_stack_layout.html#a45b50cf0df7e1ce86e817a47940e7226", null ], + [ "MeasureOverride", "classsw_1_1_stack_layout.html#aeae06d336288887cf29c912aee4c03b6", null ], + [ "orientation", "classsw_1_1_stack_layout.html#aa425ef22052ca56ed1e0358374db00a5", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_stack_layout.png b/docs/classsw_1_1_stack_layout.png new file mode 100644 index 0000000000000000000000000000000000000000..1a20854bf4c3dd35e7b0329d7be15f4d84e267bb GIT binary patch literal 1579 zcmaJ>c~sI_6b6jU4RcP88@WtsW($-HmQzYrIcFEP^b}Zqd|%uLPaA7&B9!mUvtjY>bd*6NcyMNqwzx!@34(q9-X{-qX zfpjol?*0Hy1G{sB8gTB-5$ge9f;$rEp;D>7aUT}r7%wWFklW4~vU;b-$HxJ`!|S7E z0H;Cq#|D6a`@ahXDH;TUpv@R}bl?TB{7xUU#(bkY!{>%nm8u9rL)vn!qmd}1sHEKV zfxFRgqJ~B0rJu|!G6lGG7*fR#flM|JZN+ni*YPhqS|KNnYxI z>ZH^bh~D2SImBfo9<(hz=C!@!K{FrPv^!;`dT{eZj<_FV8ClaMo?hZQ>o;EcaeG8$ zd`mV)2SIecH+z?|^6tDfX8Y!mG3 zX=x;6I69CcTOemi@Z-X2@Ol81vlpAfc+Y~%Xf9sS@VL)r*a^=pb0DHrX+#6+b}| z?am(1oAaJ^EPgu*P>Pv`s(yb~60GGq{*;LsViXlhOo0nMU(->dx3?>*^XI4FBH>QH zzhhBME+e{uC)?l1Fg6($1>a%?1?$Ut&stRMy+og-M26m&;2$7So(lPs!^GweS+mSb zPEKI+elrah6|GIZv2Fgd)iB_x+HzH^f+qivC6|vW-yKM-i}vQIFIPPSV0rnpnk1f_ zn)sB%a72qJILiouI@T4CGOp~$NlkYn9wu=e{B5YXWuH9+Zd zKxtP%>22Sqt66ln4fpQV*}<5DN35zW9SSlIGimTZCeSsCX>Pc&Wl*Z(#pGklA!Alx z6eHc(&}F{JKuR!9KW>Of30Tjv+(qkmia=F3=|rC;7B;xlI2EPL(bz_KJ-g}TXUCqr zBUDtv^UP;ipK@feAC!QDxI${MeS28#0RDR+p*WlZ z)|z94*L-A$`>y~`2Fk}gSse<|vB*4c>k5?R4v6TddoJrZQ1a8_Pr5?G$%4Ve!VE}q0esVV5ulCOQXQ(a-fPo|;-SIq7?|eY z*Jj%4qHNNl26eiS_5~S`k#2PM2}3Lkut)~fnHvL0ZMQ`O1pHM%>-!A!)RIDsr(x^K z2}wPR_WXK>c9H!bO$os%@`k(y>cCbS|4qox6Z3)=UZTzX?{|;unyI%X1oT|ql{4>5 z9FnTk*tw3yCsSIzqbaTnfqu`6wb + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::StackLayoutH Member List
+
+
+ +

This is the complete list of members for sw::StackLayoutH, including all inherited members.

+ + + + + + + + + + + +
Arrange(const Rect &finalPosition) overridesw::LayoutHostvirtual
ArrangeOverride(Size &finalSize) overridesw::StackLayoutHvirtual
Associate(ILayout *obj)sw::LayoutHost
GetChildLayoutAt(int index) overridesw::LayoutHostvirtual
GetChildLayoutCount() overridesw::LayoutHostvirtual
GetDesireSize() overridesw::LayoutHostvirtual
GetLayoutTag() overridesw::LayoutHostvirtual
Measure(const Size &availableSize) overridesw::LayoutHostvirtual
MeasureOverride(Size &availableSize) overridesw::StackLayoutHvirtual
SetDesireSize(const Size &size) overridesw::LayoutHostvirtual
+
+ + + + diff --git a/docs/classsw_1_1_stack_layout_h.html b/docs/classsw_1_1_stack_layout_h.html new file mode 100644 index 00000000..fe5ecaa7 --- /dev/null +++ b/docs/classsw_1_1_stack_layout_h.html @@ -0,0 +1,229 @@ + + + + + + + +SimpleWindow: sw::StackLayoutH Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
sw::StackLayoutH Class Reference
+
+
+ +

横向堆叠布局 + More...

+ +

#include <StackLayoutH.h>

+
+Inheritance diagram for sw::StackLayoutH:
+
+
+ + +sw::LayoutHost +sw::ILayout +sw::StackLayout + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

virtual void MeasureOverride (Size &availableSize) override
 计算所需尺寸
 
virtual void ArrangeOverride (Size &finalSize) override
 安排控件
 
- Public Member Functions inherited from sw::LayoutHost
void Associate (ILayout *obj)
 设置关联的对象,每个LayoutHost只能关联一个对象
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取关联对象子控件的数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取关联对象对应索引处的子控件
 
virtual Size GetDesireSize () override
 获取关联对象所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置关联对象所需的尺寸
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const Rect &finalPosition) override
 安排控件位置
 
+

Detailed Description

+

横向堆叠布局

+

Member Function Documentation

+ +

◆ ArrangeOverride()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::StackLayoutH::ArrangeOverride (Size & finalSize)
+
+overridevirtual
+
+ +

安排控件

+ +

Implements sw::LayoutHost.

+ +

Reimplemented in sw::StackLayout.

+ +
+
+ +

◆ MeasureOverride()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::StackLayoutH::MeasureOverride (Size & availableSize)
+
+overridevirtual
+
+ +

计算所需尺寸

+ +

Implements sw::LayoutHost.

+ +

Reimplemented in sw::StackLayout.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_stack_layout_h.js b/docs/classsw_1_1_stack_layout_h.js new file mode 100644 index 00000000..04d96a20 --- /dev/null +++ b/docs/classsw_1_1_stack_layout_h.js @@ -0,0 +1,5 @@ +var classsw_1_1_stack_layout_h = +[ + [ "ArrangeOverride", "classsw_1_1_stack_layout_h.html#a1b527c76303aed32cad3f4a13bd991a2", null ], + [ "MeasureOverride", "classsw_1_1_stack_layout_h.html#ab5ae73207dfc9020a799c3fd1a4d9231", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_stack_layout_h.png b/docs/classsw_1_1_stack_layout_h.png new file mode 100644 index 0000000000000000000000000000000000000000..e5eb5245a59f00a991992343546e8718b21ee25a GIT binary patch literal 1096 zcmeAS@N?(olHy`uVBq!ia0vp^`9OStgBeKL2A<6XQqloFA+G=b{|7Q(y!l$%e`vXd zfo6fk^fNCWJa_;UH$5A+1SrQ@666=m0OW&#In(Sb3=GVdJzX3_Dj46+ecSh1frph{ z*>%r<;rM;bOENFTiHAlnvR%sZ;X(7we@COT)w#5ljC{M*l@=|}e?Ievy3!|~=fV3r z(~CYVYD_=$!*1crrSFxL*liykz2G~6>GZ}=Co+|limnvL#l|v!IT%uT@w~dt`&)J^ z4z8Z27R?^_e9NTy$y@I{oT?=(X!+{WdBdnr8$+J#n;A3t<=yD7no33P=I<7(y;r^S z|8v~owfETt1zrC#oR7+W&iOz#mqFNc=Jwp;#>tg(=Ass}zdwIn{E1WSB*FKm3cz(*Y$?1=T^5xEbe&aJI0*Jl$bZ0)Z znp2pRbicmrv9tZBb%$8*9er0DA^cmh&f4zF-`W?`rT3pX-oKkSw<12;e#VQ9roZjfE%o6^(a17kgN?pZ zCGB2EE;JuYj1Jj?R&RdMk>YA+}Mvay=ft$RIP_i|Ki<&Lx4#fsAQ75tx5{EqeR z&i<}F))Pf4w==E1ul#(@<;(mZdJNO%G2FYzW)L{J^0t|{#mwi0!Ht_M>-X7-^E(70 zk_eig4=_h&zm>kVX6rZJL|2z(nIBzTzI;HJXCnmthl%@4dT|?^l; zw@<#Jbj8N6lfrAg;(EVcT3`Ppyl^&AEfNh{jqstARfK$eAKe7zdjYr z&ewf%=+BM+)4PAKIJ2)-KPNEHGkCiC KxvX + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::StackLayoutV Member List
+
+
+ +

This is the complete list of members for sw::StackLayoutV, including all inherited members.

+ + + + + + + + + + + +
Arrange(const Rect &finalPosition) overridesw::LayoutHostvirtual
ArrangeOverride(Size &finalSize) overridesw::StackLayoutVvirtual
Associate(ILayout *obj)sw::LayoutHost
GetChildLayoutAt(int index) overridesw::LayoutHostvirtual
GetChildLayoutCount() overridesw::LayoutHostvirtual
GetDesireSize() overridesw::LayoutHostvirtual
GetLayoutTag() overridesw::LayoutHostvirtual
Measure(const Size &availableSize) overridesw::LayoutHostvirtual
MeasureOverride(Size &availableSize) overridesw::StackLayoutVvirtual
SetDesireSize(const Size &size) overridesw::LayoutHostvirtual
+
+ + + + diff --git a/docs/classsw_1_1_stack_layout_v.html b/docs/classsw_1_1_stack_layout_v.html new file mode 100644 index 00000000..cbaaafaa --- /dev/null +++ b/docs/classsw_1_1_stack_layout_v.html @@ -0,0 +1,229 @@ + + + + + + + +SimpleWindow: sw::StackLayoutV Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
sw::StackLayoutV Class Reference
+
+
+ +

纵向堆叠布局 + More...

+ +

#include <StackLayoutV.h>

+
+Inheritance diagram for sw::StackLayoutV:
+
+
+ + +sw::LayoutHost +sw::ILayout +sw::StackLayout + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

virtual void MeasureOverride (Size &availableSize) override
 计算所需尺寸
 
virtual void ArrangeOverride (Size &finalSize) override
 安排控件
 
- Public Member Functions inherited from sw::LayoutHost
void Associate (ILayout *obj)
 设置关联的对象,每个LayoutHost只能关联一个对象
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取关联对象子控件的数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取关联对象对应索引处的子控件
 
virtual Size GetDesireSize () override
 获取关联对象所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置关联对象所需的尺寸
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const Rect &finalPosition) override
 安排控件位置
 
+

Detailed Description

+

纵向堆叠布局

+

Member Function Documentation

+ +

◆ ArrangeOverride()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::StackLayoutV::ArrangeOverride (Size & finalSize)
+
+overridevirtual
+
+ +

安排控件

+ +

Implements sw::LayoutHost.

+ +

Reimplemented in sw::StackLayout.

+ +
+
+ +

◆ MeasureOverride()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::StackLayoutV::MeasureOverride (Size & availableSize)
+
+overridevirtual
+
+ +

计算所需尺寸

+ +

Implements sw::LayoutHost.

+ +

Reimplemented in sw::StackLayout.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_stack_layout_v.js b/docs/classsw_1_1_stack_layout_v.js new file mode 100644 index 00000000..97dc6152 --- /dev/null +++ b/docs/classsw_1_1_stack_layout_v.js @@ -0,0 +1,5 @@ +var classsw_1_1_stack_layout_v = +[ + [ "ArrangeOverride", "classsw_1_1_stack_layout_v.html#a383ec238bac4bdb91d20e39b8ac8a0e1", null ], + [ "MeasureOverride", "classsw_1_1_stack_layout_v.html#a11f007de647c9b1c88120aeed9ea65b7", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_stack_layout_v.png b/docs/classsw_1_1_stack_layout_v.png new file mode 100644 index 0000000000000000000000000000000000000000..2d0a11c23cb6776ff2c7c2afe0b45d1422cf04af GIT binary patch literal 1096 zcmeAS@N?(olHy`uVBq!ia0vp^`9OStgBeKL2A<6XQqloFA+G=b{|7Q(y!l$%e`vXd zfo6fk^fNCWJa_;UH$5A+1SrQ@666=m0OW&#In(Sb3=GVdJzX3_Dj46+eY@$E0*|YB z;3t=oX1NcGULW&pOpUL6wn

^6QN7@No9M#-VX%o-@xof6H#= z!PT0+nYJHx`Dj1=9HD#ugV)r~j-Fj-pI?kVmAvvqt?^E^%QvFGYASu|nYW{V)}HAF z|Ib(RZokK`q}26`ao*Nz=Y$Vf-(pb9GRnXGj7j~oO`cYP+57X?pFd*M$ok0eWlIG^ zRg?{bt*%_dJTZO;|8DjL%a1ben0EI3^WW#}AI;ZXtA757>OGq|&u`AO*mz^6#qtEP?F*f6U@=++%EA7;weRnr(aH*~Q zpA}T*Q_ePbx7=%IPXDOsZ`(G@zl-+_x)oc`b~VDP}6et!J%@95pOCD#`F zP2K)m(^F>B^lclHv!+b{zW(k##go1vTT_CzoXp*Hf3dyHsiS|pJu|dTbh!Q3o!B(H zp)+^YnGdn&twQr`X1#g8_4oHQ}ExeC;I*V_=^9U+vYv*zhG}>zw-M} zy93%JhoZ$q!(%=o$1I;O%ltT}*v~)y7`LdX)bp6{p3MF^S7(=O>#rJ1 zEY?Y7ojiMBb#U+ZWhZY+yi$F>a_-yYybAT7Z_YiQRxb2gbUojl58rA`daamk75Qx~h`EuYVsSJ#l!O(@7R4!b8#P}lfBZFVc+O7E+o3Gt6ZxI!ox$LO0 z;Kj@0pL*(@l$GwP^YR>4Qra6exjJskxA^%FKpsA-wcYT9NM_!oT+`K_9a&YC7diFy z@_A0*s@;@7D_3@T-&xW88|9q43uBb+R9>gXmDn%#>!(fV`a|LL=TuQ9sh?lTg&GCV?2 + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +

+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::StackPanel Member List
+
+
+ +

This is the complete list of members for sw::StackPanel, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AddChild(UIElement *element)sw::UIElement
AddChild(UIElement &element)sw::UIElement
AddChild(UIElement *element, uint64_t layoutTag)sw::UIElement
AddChild(UIElement &element, uint64_t layoutTag)sw::UIElement
Arrange(const sw::Rect &finalPosition) overridesw::PanelBasevirtual
AutoSizesw::Layer
BackColorsw::UIElement
BorderStylesw::Panel
ChildCountsw::UIElement
ClearChildren()sw::UIElement
ClientHeightsw::WndBase
ClientRectsw::WndBase
ClientWidthsw::WndBase
Close()sw::WndBase
CollapseWhenHidesw::UIElement
ContextMenusw::UIElement
Control()sw::Controlprotected
DefaultWndProc(const ProcMsg &refMsg)sw::WndBaseprotected
DisableLayout()sw::Layer
Enabledsw::WndBase
EnableLayout()sw::Layer
Floatsw::UIElement
Focusedsw::WndBase
Fontsw::WndBase
FontChanged(HFONT hfont)sw::WndBaseprotectedvirtual
FontNamesw::WndBase
FontSizesw::WndBase
FontWeightsw::WndBase
GetArrangeOffsetX()sw::UIElementprotected
GetArrangeOffsetY()sw::UIElementprotected
GetChildBottommost(bool update)sw::UIElementprotected
GetChildLayoutAt(int index) overridesw::UIElementvirtual
GetChildLayoutCount() overridesw::UIElementvirtual
GetChildRightmost(bool update)sw::UIElementprotected
GetDefaultLayout() overridesw::StackPanelprotectedvirtual
GetDesireSize() overridesw::UIElementvirtual
GetExtendedStyle()sw::WndBaseprotected
GetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
GetFontHandle()sw::WndBaseprotected
GetHorizontalScrollPageSize()sw::Layer
GetHorizontalScrollRange(double &refMin, double &refMax)sw::Layer
GetLayoutTag() overridesw::UIElementvirtual
GetNextElement()sw::UIElement
GetNextTabStopElement()sw::UIElement
GetRealBackColor()sw::UIElement
GetRealTextColor()sw::UIElement
GetRootElement()sw::UIElement
GetStyle()sw::WndBaseprotected
GetStyle(LONG_PTR style)sw::WndBaseprotected
GetTag() overridesw::UIElementvirtual
GetText()sw::WndBaseprotectedvirtual
GetVerticalScrollPageSize()sw::Layer
GetVerticalScrollRange(double &refMin, double &refMax)sw::Layer
GetWndBase(HWND hwnd)sw::WndBasestatic
Handlesw::WndBase
HandleChenged()sw::Controlprotectedvirtual
HandleInitialized(HWND hwnd)sw::WndBaseprotectedvirtual
Heightsw::WndBase
HorizontalAlignmentsw::UIElement
HorizontalScrollBarsw::Layer
HorizontalScrollLimitsw::Layer
HorizontalScrollPossw::Layer
IndexOf(UIElement *element)sw::UIElement
IndexOf(UIElement &element)sw::UIElement
InheritTextColorsw::UIElement
InitControl(LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
InitWindow(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
IsControl()sw::WndBase
IsDestroyedsw::WndBase
IsRootElement()sw::UIElement
IsRoutedEventRegistered(RoutedEventType eventType)sw::UIElement
IsVisible()sw::WndBase
Layer()sw::Layerprotected
Layoutsw::Layer
LayoutTagsw::UIElement
Leftsw::WndBase
Marginsw::UIElement
Measure(const Size &availableSize) overridesw::PanelBasevirtual
MoveToBottom()sw::UIElement
MoveToTop()sw::UIElement
NcHitTest(const Point &testPoint)sw::WndBase
NotifyLayoutUpdated()sw::UIElementprotected
OnAcceleratorCommand(int id)sw::WndBaseprotectedvirtual
OnAddedChild(UIElement &element)sw::UIElementprotectedvirtual
OnChar(wchar_t ch, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnClose() overridesw::UIElementprotectedvirtual
OnColor(HDC hdc, HBRUSH &hRetBrush) overridesw::UIElementprotectedvirtual
OnCommand(int code)sw::WndBaseprotectedvirtual
OnContextMenu(bool isKeyboardMsg, Point mousePosition) overridesw::UIElementprotectedvirtual
OnControlCommand(WndBase *pControl, int code, int id)sw::WndBaseprotectedvirtual
OnCreate()sw::WndBaseprotectedvirtual
OnCtlColor(WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)sw::WndBaseprotectedvirtual
OnDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnDestroy()sw::WndBaseprotectedvirtual
OnDrawFocusRect()sw::UIElementprotectedvirtual
OnDrawItem(int id, DRAWITEMSTRUCT *pDrawItem)sw::WndBaseprotectedvirtual
OnEnabledChanged(bool newValue)sw::WndBaseprotectedvirtual
OnEndPaint() overridesw::UIElementprotectedvirtual
OnEraseBackground(int &result)sw::WndBaseprotectedvirtual
OnHorizontalScroll(int event, int pos) overridesw::PanelBaseprotectedvirtual
OnKeyDown(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKeyUp(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKillFocus(HWND hNextFocus) overridesw::UIElementprotectedvirtual
OnMenuCommand(int id) overridesw::UIElementprotectedvirtual
OnMouseLeave() overridesw::UIElementprotectedvirtual
OnMouseLeftButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseLeftButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseMiddleButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMove(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseRightButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseWheel(int wheelDelta, Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMove(Point newClientPosition) overridesw::UIElementprotectedvirtual
OnNcHitTest(const Point &testPoint, HitTestResult &result)sw::WndBaseprotectedvirtual
OnNotified(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnNotify(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnPaint() overridesw::Panelprotectedvirtual
OnRemovedChild(UIElement &element)sw::UIElementprotectedvirtual
OnScroll(ScrollOrientation scrollbar, ScrollEvent event, double pos)sw::Layerprotectedvirtual
OnSetCursor(HWND hwnd, HitTestResult hitTest, int message, bool &result) overridesw::UIElementprotectedvirtual
OnSetFocus(HWND hPrevFocus) overridesw::UIElementprotectedvirtual
OnSize(Size newClientSize) overridesw::Panelprotectedvirtual
OnSysChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyDown(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyUp(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnTabStop()sw::UIElementprotectedvirtual
OnTextChanged() overridesw::UIElementprotectedvirtual
OnVerticalScroll(int event, int pos) overridesw::PanelBaseprotectedvirtual
operator=(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator=(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator[](int index) constsw::UIElement
Orientationsw::StackPanel
Panel()sw::Panel
PanelBase()sw::PanelBaseprotected
Parentsw::UIElement
ParentChanged(WndBase *newParent) overridesw::UIElementprotectedvirtual
PointFromScreen(const Point &screenPoint)sw::WndBase
PointToScreen(const Point &point)sw::WndBase
RaiseRoutedEvent(RoutedEventType eventType)sw::UIElementprotected
RaiseRoutedEvent(RoutedEventArgs &eventArgs)sw::UIElementprotected
Rectsw::WndBase
Redraw(bool erase=false)sw::WndBase
RegisterRoutedEvent(RoutedEventType eventType, const RoutedEvent &handler)sw::UIElement
RegisterRoutedEvent(RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))sw::UIElementinline
RegisterRoutedEvent(std::function< void(UIElement &, TEventArgs &)> handler)sw::UIElementinline
RegisterRoutedEvent(THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))sw::UIElementinline
RemoveChild(UIElement *element)sw::UIElement
RemoveChild(UIElement &element)sw::UIElement
RemoveChildAt(int index)sw::UIElement
ResetCursor()sw::UIElement
ResetHandle()sw::Controlprotected
ScrollHorizontal(double offset)sw::Layer
ScrollToBottom()sw::Layer
ScrollToLeft()sw::Layer
ScrollToRight()sw::Layer
ScrollToTop()sw::Layer
ScrollVertical(double offset)sw::Layer
SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase
SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement
SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual
SetCursor(HCURSOR hCursor)sw::UIElement
SetCursor(StandardCursor cursor)sw::UIElement
SetDesireSize(const Size &size) overridesw::UIElementvirtual
SetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
SetExtendedStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetHorizontalScrollPageSize(double pageSize)sw::Layer
SetHorizontalScrollRange(double min, double max)sw::Layer
SetNextTabStopFocus()sw::UIElementprotected
SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual
SetStyle(LONG_PTR style)sw::WndBaseprotected
SetStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetTag(uint64_t tag) overridesw::UIElementvirtual
SetText(const std::wstring &value)sw::WndBaseprotectedvirtual
SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual
SetVerticalScrollPageSize(double pageSize)sw::Layer
SetVerticalScrollRange(double min, double max)sw::Layer
Show(int nCmdShow)sw::WndBase
ShowContextMenu(const Point &point)sw::UIElement
StackPanel()sw::StackPanel
TabStopsw::UIElement
Tagsw::UIElement
Textsw::WndBase
TextColorsw::UIElement
Topsw::WndBase
Transparentsw::UIElement
UIElement()sw::UIElementprotected
UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement
Update()sw::WndBase
UpdateChildrenZOrder()sw::UIElementprotected
UpdateFont()sw::WndBase
UpdateLayout()sw::Layerprotected
UpdateScrollRange()sw::Layer
UpdateSiblingsZOrder()sw::UIElementprotected
UpdateText()sw::WndBaseprotected
VerticalAlignmentsw::UIElement
VerticalScrollBarsw::Layer
VerticalScrollLimitsw::Layer
VerticalScrollPossw::Layer
Visiblesw::WndBase
VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual
Widthsw::WndBase
WndBase()sw::WndBaseprotected
WndBase(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndBase(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual
~Control()=0sw::Controlpure virtual
~Layer()=0sw::Layerpure virtual
~PanelBase()=0sw::PanelBasepure virtual
~UIElement()=0sw::UIElementpure virtual
~WndBase()=0sw::WndBasepure virtual
+
+ + + + diff --git a/docs/classsw_1_1_stack_panel.html b/docs/classsw_1_1_stack_panel.html new file mode 100644 index 00000000..b0ef8521 --- /dev/null +++ b/docs/classsw_1_1_stack_panel.html @@ -0,0 +1,961 @@ + + + + + + + +SimpleWindow: sw::StackPanel Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+ +

堆叠面板 + More...

+ +

#include <StackPanel.h>

+
+Inheritance diagram for sw::StackPanel:
+
+
+ + +sw::Panel +sw::PanelBase +sw::Control +sw::Layer +sw::UIElement +sw::UIElement +sw::WndBase +sw::ILayout +sw::ITag +sw::WndBase +sw::ILayout +sw::ITag + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

StackPanel ()
 初始化StackPanel
 
- Public Member Functions inherited from sw::Panel
Panel ()
 初始化面板
 
- Public Member Functions inherited from sw::PanelBase
+virtual ~PanelBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const sw::Rect &finalPosition) override
 安排控件位置
 
- Public Member Functions inherited from sw::Control
+virtual ~Control ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
- Public Member Functions inherited from sw::UIElement
+virtual ~UIElement ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
void RegisterRoutedEvent (RoutedEventType eventType, const RoutedEvent &handler)
 注册路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename T >
void RegisterRoutedEvent (RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))
 注册成员函数作为路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename TEventArgs , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (std::function< void(UIElement &, TEventArgs &)> handler)
 根据事件参数类型注册路由事件
 
template<typename TEventArgs , typename THandleObj , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))
 根据事件参数类型注册成员函数作为路由事件
 
void UnregisterRoutedEvent (RoutedEventType eventType)
 取消对应类型路由事件的注册
 
bool IsRoutedEventRegistered (RoutedEventType eventType)
 判断路由事件是否已被注册
 
bool AddChild (UIElement *element)
 添加子控件
 
bool AddChild (UIElement &element)
 添加子控件
 
bool AddChild (UIElement *element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool AddChild (UIElement &element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool RemoveChildAt (int index)
 移除指定索引处的子控件
 
bool RemoveChild (UIElement *element)
 移除子控件
 
bool RemoveChild (UIElement &element)
 移除子控件
 
+void ClearChildren ()
 移除所有子控件
 
int IndexOf (UIElement *element)
 获取指定元素的索引
 
int IndexOf (UIElement &element)
 获取指定元素的索引
 
+UIElementoperator[] (int index) const
 通过索引获取子控件
 
void ShowContextMenu (const Point &point)
 弹出当前元素的上下文菜单
 
+void MoveToTop ()
 移动到界面顶部
 
+void MoveToBottom ()
 移动到界面底部
 
+bool IsRootElement ()
 判断当前元素是否为根节点
 
+UIElementGetRootElement ()
 获取当前元素所在界面树的根节点
 
+UIElementGetNextElement ()
 获取当前元素在界面树上的下一个节点,若已是最后一个节点则返回根节点
 
+UIElementGetNextTabStopElement ()
 获取下一个TabStop属性为true的元素
 
+Color GetRealBackColor ()
 获取当前要显示的背景颜色:当Transparent为true时获取到祖先节点中首个Transparent为false的背景颜色,否则返回当前元素的背景颜色
 
+Color GetRealTextColor ()
 获取当前要显示的文本颜色:当InheritTextColor为true时获取到祖先节点中首个InheritTextColor为false的文本颜色,否则返回当前元素的文本颜色
 
void SetCursor (HCURSOR hCursor)
 设置鼠标样式
 
void SetCursor (StandardCursor cursor)
 设置鼠标样式
 
+void ResetCursor ()
 将鼠标样式设置为默认样式
 
void SetAlignment (sw::HorizontalAlignment horz, sw::VerticalAlignment vert)
 设置对齐方式
 
virtual uint64_t GetTag () override
 获取Tag
 
virtual void SetTag (uint64_t tag) override
 设置Tag
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取参与布局的子控件数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取对应索引处的子控件,使用此函数前必须先调用GetChildLayoutCount
 
virtual Size GetDesireSize () override
 获取控件所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置当前控件所需的尺寸
 
- Public Member Functions inherited from sw::WndBase
+virtual ~WndBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void Show (int nCmdShow)
 该函数调用ShowWindow
 
+void Close ()
 发送关闭消息
 
+void Update ()
 该函数调用UpdateWindow
 
+void UpdateFont ()
 更新字体
 
void Redraw (bool erase=false)
 重画
 
+bool IsControl ()
 判断当前对象是否是控件
 
+bool IsVisible ()
 判断当前对象在界面中是否可视,与Visible属性不同的是该函数返回值会受父窗口的影响
 
Point PointToScreen (const Point &point)
 获取用户区点在屏幕上点的位置
 
Point PointFromScreen (const Point &screenPoint)
 获取屏幕上点在当前用户区点的位置
 
+LRESULT SendMessageW (UINT uMsg, WPARAM wParam, LPARAM lParam)
 发送消息
 
HitTestResult NcHitTest (const Point &testPoint)
 测试指定点在窗口的哪一部分
 
- Public Member Functions inherited from sw::Layer
+virtual ~Layer ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void DisableLayout ()
 禁用布局
 
+void EnableLayout ()
 启用布局
 
void GetHorizontalScrollRange (double &refMin, double &refMax)
 获取横向滚动条的范围
 
void GetVerticalScrollRange (double &refMin, double &refMax)
 获取纵向滚动条的范围
 
void SetHorizontalScrollRange (double min, double max)
 设置横向滚动条的范围
 
void SetVerticalScrollRange (double min, double max)
 设置纵向滚动条的范围
 
+double GetHorizontalScrollPageSize ()
 获取水平滚动条滚动页面大小
 
+double GetVerticalScrollPageSize ()
 获取垂直滚动条滚动页面大小
 
+void SetHorizontalScrollPageSize (double pageSize)
 设置水平滚动条滚动页面大小
 
+void SetVerticalScrollPageSize (double pageSize)
 设置垂直滚动条滚动页面大小
 
+void UpdateScrollRange ()
 根据子元素更新滚动条范围,未设定布局方式时该函数无效
 
+void ScrollToTop ()
 将垂直滚动条移动到顶部
 
+void ScrollToBottom ()
 将垂直滚动条移动到底部
 
+void ScrollToLeft ()
 将水平滚动条移动到最左
 
+void ScrollToRight ()
 将水平滚动条移动到最右
 
void ScrollHorizontal (double offset)
 水平滚动
 
void ScrollVertical (double offset)
 垂直滚动
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Attributes

+const Property< sw::Orientation > Orientation
 排列方式
 
- Public Attributes inherited from sw::Panel
+const Property< sw::BorderStyle > BorderStyle
 边框样式
 
- Public Attributes inherited from sw::UIElement
+const Property< ThicknessMargin
 边距
 
+const Property< HorizontalAlignment > HorizontalAlignment
 水平对齐方式
 
+const Property< VerticalAlignment > VerticalAlignment
 垂直对齐方式
 
+const ReadOnlyProperty< intChildCount
 子控件数量
 
+const Property< boolCollapseWhenHide
 是否在不可见时不参与布局
 
+const ReadOnlyProperty< UIElement * > Parent
 指向父元素的指针,当前元素为顶级窗口时该值为nullptr
 
+const Property< uint64_tTag
 储存用户自定义信息的标记
 
+const Property< uint64_tLayoutTag
 布局标记,对于不同的布局有不同含义
 
+const Property< sw::ContextMenu * > ContextMenu
 右键按下时弹出的菜单
 
+const Property< boolFloat
 元素是否悬浮,若元素悬浮则该元素不会随滚动条滚动而改变位置
 
+const Property< boolTabStop
 表示用户是否可以通过按下Tab键将焦点移动到当前元素
 
+const Property< ColorBackColor
 背景颜色,修改该属性会同时将Transparent属性设为false,对于部分控件该属性可能不生效
 
+const Property< ColorTextColor
 文本颜色,修改该属性会同时将InheritTextColor属性设为false,对于部分控件该属性可能不生效
 
+const Property< boolTransparent
 是否使用透明背景(此属性并非真正意义上的透明,将该属性设为true可继承父元素的背景颜色)
 
+const Property< boolInheritTextColor
 是否继承父元素的文本颜色
 
- Public Attributes inherited from sw::WndBase
+const ReadOnlyProperty< HWNDHandle
 窗口句柄
 
+const Property< sw::FontFont
 字体
 
+const Property< std::wstring > FontName
 字体名称
 
+const Property< doubleFontSize
 字体大小
 
+const Property< sw::FontWeight > FontWeight
 字体粗细
 
+const Property< sw::RectRect
 位置和尺寸
 
+const Property< doubleLeft
 左边
 
+const Property< doubleTop
 顶边
 
+const Property< doubleWidth
 宽度
 
+const Property< doubleHeight
 高度
 
+const ReadOnlyProperty< sw::RectClientRect
 用户区尺寸
 
+const ReadOnlyProperty< doubleClientWidth
 用户区宽度
 
+const ReadOnlyProperty< doubleClientHeight
 用户区高度
 
+const Property< boolEnabled
 窗口或控件是否可用
 
+const Property< boolVisible
 窗口或控件是否可见
 
+const Property< std::wstring > Text
 窗口标题或控件文本
 
+const Property< boolFocused
 窗口是否拥有焦点
 
+const ReadOnlyProperty< WndBase * > Parent
 父窗口
 
+const ReadOnlyProperty< boolIsDestroyed
 是否已销毁,当该值为true时不应该继续使用当前对象
 
- Public Attributes inherited from sw::Layer
+const Property< LayoutHost * > Layout
 自定义的布局方式,赋值后将自动与所指向的布局关联,每个布局只能关联一个对象,设为nullptr可恢复默认布局
 
+const Property< boolAutoSize
 是否按照布局方式与子元素自动调整尺寸,该属性仅在当前元素已设置布局方式并且非顶级元素时有效
 
+const Property< boolHorizontalScrollBar
 是否显示横向滚动条
 
+const Property< boolVerticalScrollBar
 是否显示纵向滚动条
 
+const Property< doubleHorizontalScrollPos
 横向滚动条位置
 
+const Property< doubleVerticalScrollPos
 纵向滚动条位置
 
+const ReadOnlyProperty< doubleHorizontalScrollLimit
 横向滚动条可设置的最大位置
 
+const ReadOnlyProperty< doubleVerticalScrollLimit
 纵向滚动条可设置的最大位置
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Protected Member Functions

virtual LayoutHostGetDefaultLayout () override
 获取默认布局对象
 
- Protected Member Functions inherited from sw::Panel
virtual bool OnPaint () override
 接收到WM_PAINT时调用该函数
 
virtual bool OnSize (Size newClientSize) override
 接收到WM_SIZE时调用该函数
 
- Protected Member Functions inherited from sw::PanelBase
PanelBase ()
 初始化PanelBase
 
virtual bool OnVerticalScroll (int event, int pos) override
 接收到WM_VSCROLL时调用目标控件的该函数
 
virtual bool OnHorizontalScroll (int event, int pos) override
 接收到WM_HSCROLL时调用目标控件的该函数
 
- Protected Member Functions inherited from sw::Control
Control ()
 初始化控件
 
+void ResetHandle ()
 销毁控件句柄并重新初始化,该操作会创建新的句柄并设置样式、文本、字体等
 
+virtual void HandleChenged ()
 控件句柄发生改变时调用该函数
 
- Protected Member Functions inherited from sw::UIElement
UIElement ()
 初始化UIElement
 
void RaiseRoutedEvent (RoutedEventType eventType)
 触发路由事件
 
void RaiseRoutedEvent (RoutedEventArgs &eventArgs)
 触发路由事件
 
+void NotifyLayoutUpdated ()
 通知顶级窗口布局改变
 
+doubleGetArrangeOffsetX ()
 获取Arrange时子元素的水平偏移量
 
+doubleGetArrangeOffsetY ()
 获取Arrange时子元素的垂直偏移量
 
double GetChildRightmost (bool update)
 获取所有子元素在当前元素中最右边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
double GetChildBottommost (bool update)
 获取所有子元素在当前元素中最底边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
+void UpdateChildrenZOrder ()
 更新子元素的Z轴位置
 
+void UpdateSiblingsZOrder ()
 更新兄弟元素的Z轴位置
 
+void SetNextTabStopFocus ()
 设置下一个TabStop属性为true的元素为焦点元素
 
virtual void SetBackColor (Color color, bool redraw)
 设置背景颜色
 
virtual void SetTextColor (Color color, bool redraw)
 设置文本颜色
 
virtual void OnAddedChild (UIElement &element)
 添加子元素后调用该函数
 
virtual void OnRemovedChild (UIElement &element)
 移除子元素后调用该函数
 
+virtual void OnTabStop ()
 通过tab键将焦点移动到当前元素时调用该函数
 
virtual void OnDrawFocusRect ()
 绘制虚线框时调用该函数
 
virtual bool SetParent (WndBase *parent) override
 设置父窗口
 
virtual void ParentChanged (WndBase *newParent) override
 父窗口改变时调用此函数
 
virtual void OnEndPaint () override
 在OnPaint函数完成之后调用该函数
 
virtual bool OnClose () override
 接收到WM_CLOSE时调用该函数
 
virtual bool OnMove (Point newClientPosition) override
 接收到WM_MOVE时调用该函数
 
virtual void OnTextChanged () override
 Text属性更改时调用此函数
 
virtual void VisibleChanged (bool newVisible) override
 Visible属性改变时调用此函数
 
virtual bool OnSetFocus (HWND hPrevFocus) override
 接收到WM_SETFOCUS时调用该函数
 
virtual bool OnKillFocus (HWND hNextFocus) override
 接收到WM_KILLFOCUS时调用该函数
 
virtual bool OnChar (wchar_t ch, KeyFlags flags) override
 接收到WM_CHAR时调用该函数
 
virtual bool OnKeyDown (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYDOWN时调用该函数
 
virtual bool OnKeyUp (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYUP时调用该函数
 
virtual bool OnMouseMove (Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEMOVE时调用该函数
 
virtual bool OnMouseLeave () override
 接收到WM_MOUSELEAVE时调用该函数
 
virtual bool OnMouseWheel (int wheelDelta, Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEWHEEL时调用该函数
 
virtual bool OnMouseLeftButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONDOWN时调用该函数
 
virtual bool OnMouseLeftButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONUP时调用该函数
 
virtual bool OnMouseRightButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONDOWN时调用该函数
 
virtual bool OnMouseRightButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONUP时调用该函数
 
virtual bool OnMouseMiddleButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONDOWN时调用该函数
 
virtual bool OnMouseMiddleButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONUP时调用该函数
 
virtual bool OnContextMenu (bool isKeyboardMsg, Point mousePosition) override
 接收到WM_CONTEXTMENU后调用目标控件的该函数
 
virtual void OnMenuCommand (int id) override
 当WM_COMMAND接收到菜单命令时调用该函数
 
virtual bool OnColor (HDC hdc, HBRUSH &hRetBrush) override
 父窗口接收到WM_CTLCOLORxxx时调用对应控件的该函数
 
virtual bool OnSetCursor (HWND hwnd, HitTestResult hitTest, int message, bool &result) override
 接收到WM_SETCURSOR消息时调用该函数
 
- Protected Member Functions inherited from sw::WndBase
WndBase ()
 初始化WndBase
 
WndBase (const WndBase &)=delete
 
WndBase (WndBase &&)=delete
 
+WndBaseoperator= (const WndBase &)=delete
 
+WndBaseoperator= (WndBase &&)=delete
 
+void InitWindow (LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为窗口,该函数会调用CreateWindowExW
 
+void InitControl (LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为控件,该函数会调用CreateWindowExW
 
+LONG_PTR GetStyle ()
 获取窗口样式
 
+void SetStyle (LONG_PTR style)
 设置窗口样式
 
+bool GetStyle (LONG_PTR style)
 获取窗口的某个样式
 
+void SetStyle (LONG_PTR style, bool value)
 设置窗口的某个样式
 
+LONG_PTR GetExtendedStyle ()
 获取扩展窗口样式
 
+void SetExtendedStyle (LONG_PTR style)
 设置扩展窗口样式
 
+bool GetExtendedStyle (LONG_PTR style)
 获取窗口的某个扩展样式
 
+void SetExtendedStyle (LONG_PTR style, bool value)
 设置窗口的某个扩展样式
 
+HFONT GetFontHandle ()
 获取字体句柄
 
+LRESULT DefaultWndProc (const ProcMsg &refMsg)
 调用默认的WndProc,对于窗口则调用DefWindowProcW,控件则调用_controlOldWndProc
 
virtual LRESULT WndProc (const ProcMsg &refMsg)
 对WndProc的封装
 
+void UpdateText ()
 更新_text字段
 
virtual std::wstring & GetText ()
 获取窗口文本
 
virtual void SetText (const std::wstring &value)
 调用SetWindowTextW设置窗口文本
 
virtual bool OnCreate ()
 接收到WM_CREATE时调用该函数
 
virtual bool OnDestroy ()
 接收到WM_DESTROY时调用该函数
 
virtual bool OnMouseLeftButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_LBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseRightButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_RBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseMiddleButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_MBUTTONDBLCLK时调用该函数
 
virtual bool OnDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_DEADCHAR时调用该函数
 
virtual bool OnSysChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSCHAR时调用该函数
 
virtual bool OnSysDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSDEADCHAR时调用该函数
 
virtual bool OnSysKeyDown (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYDOWN时调用该函数
 
virtual bool OnSysKeyUp (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYUP时调用该函数
 
virtual void OnCommand (int code)
 当父窗口接收到控件的WM_COMMAND时调用该函数
 
virtual void OnControlCommand (WndBase *pControl, int code, int id)
 当WM_COMMAND接收到控件命令时调用该函数
 
virtual void OnAcceleratorCommand (int id)
 当WM_COMMAND接收到快捷键命令时调用该函数
 
virtual void HandleInitialized (HWND hwnd)
 窗口句柄初始化完成
 
virtual void FontChanged (HFONT hfont)
 字体改变时调用该函数
 
virtual bool OnNotify (NMHDR *pNMHDR)
 接收到WM_NOTIFY后调用该函数
 
virtual void OnNotified (NMHDR *pNMHDR)
 父窗口接收到WM_NOTIFY后调用发出通知控件的该函数
 
virtual bool OnEnabledChanged (bool newValue)
 接收到WM_ENABLE时调用该函数
 
virtual bool OnCtlColor (WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)
 接收到WM_CTLCOLORxxx时调用该函数
 
virtual void OnNcHitTest (const Point &testPoint, HitTestResult &result)
 接收到WM_NCHITTEST后调用该函数
 
virtual bool OnEraseBackground (int &result)
 接收到WM_ERASEBKGND时调用该函数
 
virtual bool OnDrawItem (int id, DRAWITEMSTRUCT *pDrawItem)
 接收到WM_DRAWITEM时调用该函数
 
- Protected Member Functions inherited from sw::Layer
Layer ()
 初始化Layer
 
+void UpdateLayout ()
 更新布局
 
virtual void OnScroll (ScrollOrientation scrollbar, ScrollEvent event, double pos)
 触发滚动条相关事件时调用该函数
 
+ + + + + +

+Additional Inherited Members

- Static Public Member Functions inherited from sw::WndBase
static WndBaseGetWndBase (HWND hwnd)
 通过窗口句柄获取WndBase
 
+

Detailed Description

+

堆叠面板

+

Member Function Documentation

+ +

◆ GetDefaultLayout()

+ +
+
+ + + + + +
+ + + + + + + +
virtual LayoutHost * sw::StackPanel::GetDefaultLayout ()
+
+overrideprotectedvirtual
+
+ +

获取默认布局对象

+ +

Reimplemented from sw::Layer.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_stack_panel.js b/docs/classsw_1_1_stack_panel.js new file mode 100644 index 00000000..2747df25 --- /dev/null +++ b/docs/classsw_1_1_stack_panel.js @@ -0,0 +1,6 @@ +var classsw_1_1_stack_panel = +[ + [ "StackPanel", "classsw_1_1_stack_panel.html#adaf90a1ad8018e5365e22f45a0a0341a", null ], + [ "GetDefaultLayout", "classsw_1_1_stack_panel.html#a1d7bd2e8b8293003e47f5d297c58044b", null ], + [ "Orientation", "classsw_1_1_stack_panel.html#affb5896d0e3e3b615bcbb285c8e03bf4", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_stack_panel.png b/docs/classsw_1_1_stack_panel.png new file mode 100644 index 0000000000000000000000000000000000000000..5938a388ebdc238d936900c96c98d4fcb69baf15 GIT binary patch literal 3366 zcmd5r_V zWF)M^CNGk(Nemc4v84@SQYfTA!eSaCYuIAM5HdGWG#IZr<~z9NXMHW9q>jY%8npA}ZfDv-5SRZd z7>36!kr1RX;RL!e;Kafr7$(;eAn0mKAOx|3m@pgwWM+$a5Oj>^1$3~tMMB=RnAKAa z&)#|w?vO=*hKOw1TKDU36^?2BOQTut-hKf*Q*;?(sIFZ_QaExi7x8y9yQ_ zXe=Bf9x|1hQzB;wKdA~WK31E zYlp#HzZZ=*q|>#5PKsyGC4aEKS|yHL&QLRX7F^6g=N>~=e!Gd`Dm(MWPf68Np7Hhk z(UfV8RhtKr>F!377LI>06KRz??qomsa%GRwExh<1(bh%GTOiw4Pc3UgAS=GmmD2P~ zy!Q^=AzSwHWZfl<;UBjOrjO(ClBZ;stA8F-OJ%kn=UYqydTr zckKIAb>lt#h18K{BLCCLB|>PN(;n;|L*ex!6JnxZ_QAQk=A*9M z(dDAzYyY&J+wy+f$b!4rJ2)3>-WKSZhYi&qop+%MxSv@(SD=v=cF&87Do1Xs9g*lR zqp-tOXx1IwtM8kv@w^0we$gbOQ@kkYHtrOsC@)UhW(gX*qdbjFwD#931AyOOd4j*> zBkS!fm?By@XO1X015~{f?9>el=lHeZCpm7?LbJBaq}Z-Xf~QfK559k%lFJ8id=HqY z2Y@ze>PpFw?>&e7u4E90+pXx$Yy{KUMM@)C0+%+0wa%h-kexC+ z-fS+>BiiNTra4V0R4n_m&G!&Mq|?m80lW`5;P=XbM3jSXwTy=Cw-Avge(HES?53))d;Mr^x7nE=L4Q;{plKx!H1355^ZHR!N zYHdl!ATZF-p&|x6tLQ^2?^1)HMg~dP4%38Zs%CACm2dr7xVh99Gz-OoAUE`wz%uH1RKkjhq_=G*_GH-M_8)1%u@v9sscL7jr&R);f|Fg z1nHJR{mfUqhuKC5<-v#j_an(6Q2N|1!(k_tdRa(kYVRlE;zuu=2qV&`(NlGvvfrd; zMwW$^ap@u(vpX1lZ0z$*S>cdrA~e*9vkPIsn_o^if>$|3&;o~*|BS5R->1k(OI)SyU@(eD_(${LDREiJq*1srr6I7w0ZVFq!y@pyTBuSXDiBm z)Bix!S3x_sZugY#|L+Es;HzNJ34Q7bSUI^OXy@;W^8V1ZA9UzIhaI~QY6s=Pi*rl2 z;f^@!vzc|^?07k5aRqz@@Tv&>r}YHmri%@tbDfTDaqSJF1Y4COw#_uMVxrU!gp|Y- zHJ|d9`em0OkJ(?iq}*Irpb>go!Wq0|dfGV4+G)5hboDY@_Nl{;%qZIsJc7MAp4dvi zHk_weBMc1!XML-IoW2Xr{X$=9N;_N8-hQig?ol1V_{Wo&ymafQ1GjpM#uf>5(#IhO zCYcLSk-`+)bILgX&WTHDDem)GIh$X`FoAeTIpbj%q^PeY7&n;eZoC6JgF+sPuIfc<6jSS```=xGpl^!#4hQ*`$Zt3%X&SrZ2QZ~TOo?i?GbI@9Va^`nc0 z%YT*LhG*RoddoyKlOkhcA&!*8iJHCQ0t>wm~Uex(`f)G?{b4- zI%i8OPr~*O5Wj?{uMz zstcwML_q04Dl?%e7*dlOOtpAYwaM@%?zaZtzRAl|`TKNr@8bYFdOl+Y;C>whvs?9z zc1v6VwWlWapO^oZnSUVjE3(QSfHtnb^*mFg1Wg5y*P{HdS+&wez^Qttq$(9<^(6P= z3DpvxZwX+-AW0|Ln&sOBMq)OVO2q@^)EMTIb6q8*wmu4tySNdZ;}A({5N%8kSpc)g z`5cp8UIfBkDQ_vWIx~jt$RQqn)?y2?T8U(fxxw^_S`;H&e!r~D=@PpLXk56XH&@29 zvU0o%PE9eE`OOOF3Lr;>zDhUyOMMmRLN=*a`f-R&>&xjv?Rjo@BZ_N0iaPHvzuCFr z*d}HY+hA}lr>xGJ_$mFa(Z7jq57=P6!XcDjxpt_k0y8l#sSfG(|e{|W@JKq!8 W^85btq2P~3$McNeX{Kvb?%x1p#eOFM literal 0 HcmV?d00001 diff --git a/docs/classsw_1_1_static_control-members.html b/docs/classsw_1_1_static_control-members.html new file mode 100644 index 00000000..c1b67c10 --- /dev/null +++ b/docs/classsw_1_1_static_control-members.html @@ -0,0 +1,289 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::StaticControl Member List
+
+
+ +

This is the complete list of members for sw::StaticControl, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AddChild(UIElement *element)sw::UIElement
AddChild(UIElement &element)sw::UIElement
AddChild(UIElement *element, uint64_t layoutTag)sw::UIElement
AddChild(UIElement &element, uint64_t layoutTag)sw::UIElement
Arrange(const sw::Rect &finalPosition) overridesw::UIElementvirtual
BackColorsw::UIElement
ChildCountsw::UIElement
ClearChildren()sw::UIElement
ClientHeightsw::WndBase
ClientRectsw::WndBase
ClientWidthsw::WndBase
Close()sw::WndBase
CollapseWhenHidesw::UIElement
ContextMenusw::UIElement
Control()sw::Controlprotected
DefaultWndProc(const ProcMsg &refMsg)sw::WndBaseprotected
Enabledsw::WndBase
Floatsw::UIElement
Focusedsw::WndBase
Fontsw::WndBase
FontChanged(HFONT hfont)sw::WndBaseprotectedvirtual
FontNamesw::WndBase
FontSizesw::WndBase
FontWeightsw::WndBase
GetArrangeOffsetX()sw::UIElementprotected
GetArrangeOffsetY()sw::UIElementprotected
GetChildBottommost(bool update)sw::UIElementprotected
GetChildLayoutAt(int index) overridesw::UIElementvirtual
GetChildLayoutCount() overridesw::UIElementvirtual
GetChildRightmost(bool update)sw::UIElementprotected
GetDesireSize() overridesw::UIElementvirtual
GetExtendedStyle()sw::WndBaseprotected
GetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
GetFontHandle()sw::WndBaseprotected
GetLayoutTag() overridesw::UIElementvirtual
GetNextElement()sw::UIElement
GetNextTabStopElement()sw::UIElement
GetRealBackColor()sw::UIElement
GetRealTextColor()sw::UIElement
GetRootElement()sw::UIElement
GetStyle()sw::WndBaseprotected
GetStyle(LONG_PTR style)sw::WndBaseprotected
GetTag() overridesw::UIElementvirtual
GetText()sw::WndBaseprotectedvirtual
GetWndBase(HWND hwnd)sw::WndBasestatic
Handlesw::WndBase
HandleChenged()sw::Controlprotectedvirtual
HandleInitialized(HWND hwnd)sw::WndBaseprotectedvirtual
Heightsw::WndBase
HorizontalAlignmentsw::UIElement
IndexOf(UIElement *element)sw::UIElement
IndexOf(UIElement &element)sw::UIElement
InheritTextColorsw::UIElement
InitControl(LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
InitWindow(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
IsControl()sw::WndBase
IsDestroyedsw::WndBase
IsRootElement()sw::UIElement
IsRoutedEventRegistered(RoutedEventType eventType)sw::UIElement
IsVisible()sw::WndBase
LayoutTagsw::UIElement
Leftsw::WndBase
Marginsw::UIElement
Measure(const Size &availableSize) overridesw::UIElementvirtual
MoveToBottom()sw::UIElement
MoveToTop()sw::UIElement
NcHitTest(const Point &testPoint)sw::WndBase
NotifyLayoutUpdated()sw::UIElementprotected
OnAcceleratorCommand(int id)sw::WndBaseprotectedvirtual
OnAddedChild(UIElement &element)sw::UIElementprotectedvirtual
OnChar(wchar_t ch, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnClose() overridesw::UIElementprotectedvirtual
OnColor(HDC hdc, HBRUSH &hRetBrush) overridesw::UIElementprotectedvirtual
OnCommand(int code)sw::WndBaseprotectedvirtual
OnContextMenu(bool isKeyboardMsg, Point mousePosition) overridesw::UIElementprotectedvirtual
OnControlCommand(WndBase *pControl, int code, int id)sw::WndBaseprotectedvirtual
OnCreate()sw::WndBaseprotectedvirtual
OnCtlColor(WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)sw::WndBaseprotectedvirtual
OnDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnDestroy()sw::WndBaseprotectedvirtual
OnDrawFocusRect()sw::UIElementprotectedvirtual
OnDrawItem(int id, DRAWITEMSTRUCT *pDrawItem)sw::WndBaseprotectedvirtual
OnEnabledChanged(bool newValue)sw::WndBaseprotectedvirtual
OnEndPaint() overridesw::UIElementprotectedvirtual
OnEraseBackground(int &result)sw::WndBaseprotectedvirtual
OnHorizontalScroll(int event, int pos)sw::WndBaseprotectedvirtual
OnKeyDown(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKeyUp(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKillFocus(HWND hNextFocus) overridesw::UIElementprotectedvirtual
OnMenuCommand(int id) overridesw::UIElementprotectedvirtual
OnMouseLeave() overridesw::UIElementprotectedvirtual
OnMouseLeftButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseLeftButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseMiddleButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMove(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseRightButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseWheel(int wheelDelta, Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMove(Point newClientPosition) overridesw::UIElementprotectedvirtual
OnNcHitTest(const Point &testPoint, HitTestResult &result)sw::WndBaseprotectedvirtual
OnNotified(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnNotify(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnPaint()sw::WndBaseprotectedvirtual
OnRemovedChild(UIElement &element)sw::UIElementprotectedvirtual
OnSetCursor(HWND hwnd, HitTestResult hitTest, int message, bool &result) overridesw::UIElementprotectedvirtual
OnSetFocus(HWND hPrevFocus) overridesw::UIElementprotectedvirtual
OnSize(Size newClientSize) overridesw::UIElementprotectedvirtual
OnSysChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyDown(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyUp(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnTabStop()sw::UIElementprotectedvirtual
OnTextChanged() overridesw::UIElementprotectedvirtual
OnVerticalScroll(int event, int pos)sw::WndBaseprotectedvirtual
operator=(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator=(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator[](int index) constsw::UIElement
Parentsw::UIElement
ParentChanged(WndBase *newParent) overridesw::UIElementprotectedvirtual
PointFromScreen(const Point &screenPoint)sw::WndBase
PointToScreen(const Point &point)sw::WndBase
RaiseRoutedEvent(RoutedEventType eventType)sw::UIElementprotected
RaiseRoutedEvent(RoutedEventArgs &eventArgs)sw::UIElementprotected
Rectsw::WndBase
Redraw(bool erase=false)sw::WndBase
RegisterRoutedEvent(RoutedEventType eventType, const RoutedEvent &handler)sw::UIElement
RegisterRoutedEvent(RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))sw::UIElementinline
RegisterRoutedEvent(std::function< void(UIElement &, TEventArgs &)> handler)sw::UIElementinline
RegisterRoutedEvent(THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))sw::UIElementinline
RemoveChild(UIElement *element)sw::UIElement
RemoveChild(UIElement &element)sw::UIElement
RemoveChildAt(int index)sw::UIElement
ResetCursor()sw::UIElement
ResetHandle()sw::Controlprotected
SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase
SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement
SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual
SetCursor(HCURSOR hCursor)sw::UIElement
SetCursor(StandardCursor cursor)sw::UIElement
SetDesireSize(const Size &size) overridesw::UIElementvirtual
SetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
SetExtendedStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetNextTabStopFocus()sw::UIElementprotected
SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual
SetStyle(LONG_PTR style)sw::WndBaseprotected
SetStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetTag(uint64_t tag) overridesw::UIElementvirtual
SetText(const std::wstring &value)sw::WndBaseprotectedvirtual
SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual
Show(int nCmdShow)sw::WndBase
ShowContextMenu(const Point &point)sw::UIElement
StaticControl()sw::StaticControl
TabStopsw::UIElement
Tagsw::UIElement
Textsw::WndBase
TextColorsw::UIElement
Topsw::WndBase
Transparentsw::UIElement
UIElement()sw::UIElementprotected
UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement
Update()sw::WndBase
UpdateChildrenZOrder()sw::UIElementprotected
UpdateFont()sw::WndBase
UpdateSiblingsZOrder()sw::UIElementprotected
UpdateText()sw::WndBaseprotected
VerticalAlignmentsw::UIElement
Visiblesw::WndBase
VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual
Widthsw::WndBase
WndBase()sw::WndBaseprotected
WndBase(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndBase(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual
~Control()=0sw::Controlpure virtual
~UIElement()=0sw::UIElementpure virtual
~WndBase()=0sw::WndBasepure virtual
+
+ + + + diff --git a/docs/classsw_1_1_static_control.html b/docs/classsw_1_1_static_control.html new file mode 100644 index 00000000..4a6e0146 --- /dev/null +++ b/docs/classsw_1_1_static_control.html @@ -0,0 +1,777 @@ + + + + + + + +SimpleWindow: sw::StaticControl Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
sw::StaticControl Class Reference
+
+
+ +

静态控件 + More...

+ +

#include <StaticControl.h>

+
+Inheritance diagram for sw::StaticControl:
+
+
+ + +sw::Control +sw::UIElement +sw::WndBase +sw::ILayout +sw::ITag +sw::Label + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

StaticControl ()
 初始化静态控件
 
- Public Member Functions inherited from sw::Control
+virtual ~Control ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
- Public Member Functions inherited from sw::UIElement
+virtual ~UIElement ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
void RegisterRoutedEvent (RoutedEventType eventType, const RoutedEvent &handler)
 注册路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename T >
void RegisterRoutedEvent (RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))
 注册成员函数作为路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename TEventArgs , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (std::function< void(UIElement &, TEventArgs &)> handler)
 根据事件参数类型注册路由事件
 
template<typename TEventArgs , typename THandleObj , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))
 根据事件参数类型注册成员函数作为路由事件
 
void UnregisterRoutedEvent (RoutedEventType eventType)
 取消对应类型路由事件的注册
 
bool IsRoutedEventRegistered (RoutedEventType eventType)
 判断路由事件是否已被注册
 
bool AddChild (UIElement *element)
 添加子控件
 
bool AddChild (UIElement &element)
 添加子控件
 
bool AddChild (UIElement *element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool AddChild (UIElement &element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool RemoveChildAt (int index)
 移除指定索引处的子控件
 
bool RemoveChild (UIElement *element)
 移除子控件
 
bool RemoveChild (UIElement &element)
 移除子控件
 
+void ClearChildren ()
 移除所有子控件
 
int IndexOf (UIElement *element)
 获取指定元素的索引
 
int IndexOf (UIElement &element)
 获取指定元素的索引
 
+UIElementoperator[] (int index) const
 通过索引获取子控件
 
void ShowContextMenu (const Point &point)
 弹出当前元素的上下文菜单
 
+void MoveToTop ()
 移动到界面顶部
 
+void MoveToBottom ()
 移动到界面底部
 
+bool IsRootElement ()
 判断当前元素是否为根节点
 
+UIElementGetRootElement ()
 获取当前元素所在界面树的根节点
 
+UIElementGetNextElement ()
 获取当前元素在界面树上的下一个节点,若已是最后一个节点则返回根节点
 
+UIElementGetNextTabStopElement ()
 获取下一个TabStop属性为true的元素
 
+Color GetRealBackColor ()
 获取当前要显示的背景颜色:当Transparent为true时获取到祖先节点中首个Transparent为false的背景颜色,否则返回当前元素的背景颜色
 
+Color GetRealTextColor ()
 获取当前要显示的文本颜色:当InheritTextColor为true时获取到祖先节点中首个InheritTextColor为false的文本颜色,否则返回当前元素的文本颜色
 
void SetCursor (HCURSOR hCursor)
 设置鼠标样式
 
void SetCursor (StandardCursor cursor)
 设置鼠标样式
 
+void ResetCursor ()
 将鼠标样式设置为默认样式
 
void SetAlignment (sw::HorizontalAlignment horz, sw::VerticalAlignment vert)
 设置对齐方式
 
virtual uint64_t GetTag () override
 获取Tag
 
virtual void SetTag (uint64_t tag) override
 设置Tag
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取参与布局的子控件数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取对应索引处的子控件,使用此函数前必须先调用GetChildLayoutCount
 
virtual Size GetDesireSize () override
 获取控件所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置当前控件所需的尺寸
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const sw::Rect &finalPosition) override
 安排控件位置
 
- Public Member Functions inherited from sw::WndBase
+virtual ~WndBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void Show (int nCmdShow)
 该函数调用ShowWindow
 
+void Close ()
 发送关闭消息
 
+void Update ()
 该函数调用UpdateWindow
 
+void UpdateFont ()
 更新字体
 
void Redraw (bool erase=false)
 重画
 
+bool IsControl ()
 判断当前对象是否是控件
 
+bool IsVisible ()
 判断当前对象在界面中是否可视,与Visible属性不同的是该函数返回值会受父窗口的影响
 
Point PointToScreen (const Point &point)
 获取用户区点在屏幕上点的位置
 
Point PointFromScreen (const Point &screenPoint)
 获取屏幕上点在当前用户区点的位置
 
+LRESULT SendMessageW (UINT uMsg, WPARAM wParam, LPARAM lParam)
 发送消息
 
HitTestResult NcHitTest (const Point &testPoint)
 测试指定点在窗口的哪一部分
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Additional Inherited Members

- Static Public Member Functions inherited from sw::WndBase
static WndBaseGetWndBase (HWND hwnd)
 通过窗口句柄获取WndBase
 
- Public Attributes inherited from sw::UIElement
+const Property< ThicknessMargin
 边距
 
+const Property< HorizontalAlignment > HorizontalAlignment
 水平对齐方式
 
+const Property< VerticalAlignment > VerticalAlignment
 垂直对齐方式
 
+const ReadOnlyProperty< intChildCount
 子控件数量
 
+const Property< boolCollapseWhenHide
 是否在不可见时不参与布局
 
+const ReadOnlyProperty< UIElement * > Parent
 指向父元素的指针,当前元素为顶级窗口时该值为nullptr
 
+const Property< uint64_tTag
 储存用户自定义信息的标记
 
+const Property< uint64_tLayoutTag
 布局标记,对于不同的布局有不同含义
 
+const Property< sw::ContextMenu * > ContextMenu
 右键按下时弹出的菜单
 
+const Property< boolFloat
 元素是否悬浮,若元素悬浮则该元素不会随滚动条滚动而改变位置
 
+const Property< boolTabStop
 表示用户是否可以通过按下Tab键将焦点移动到当前元素
 
+const Property< ColorBackColor
 背景颜色,修改该属性会同时将Transparent属性设为false,对于部分控件该属性可能不生效
 
+const Property< ColorTextColor
 文本颜色,修改该属性会同时将InheritTextColor属性设为false,对于部分控件该属性可能不生效
 
+const Property< boolTransparent
 是否使用透明背景(此属性并非真正意义上的透明,将该属性设为true可继承父元素的背景颜色)
 
+const Property< boolInheritTextColor
 是否继承父元素的文本颜色
 
- Public Attributes inherited from sw::WndBase
+const ReadOnlyProperty< HWNDHandle
 窗口句柄
 
+const Property< sw::FontFont
 字体
 
+const Property< std::wstring > FontName
 字体名称
 
+const Property< doubleFontSize
 字体大小
 
+const Property< sw::FontWeight > FontWeight
 字体粗细
 
+const Property< sw::RectRect
 位置和尺寸
 
+const Property< doubleLeft
 左边
 
+const Property< doubleTop
 顶边
 
+const Property< doubleWidth
 宽度
 
+const Property< doubleHeight
 高度
 
+const ReadOnlyProperty< sw::RectClientRect
 用户区尺寸
 
+const ReadOnlyProperty< doubleClientWidth
 用户区宽度
 
+const ReadOnlyProperty< doubleClientHeight
 用户区高度
 
+const Property< boolEnabled
 窗口或控件是否可用
 
+const Property< boolVisible
 窗口或控件是否可见
 
+const Property< std::wstring > Text
 窗口标题或控件文本
 
+const Property< boolFocused
 窗口是否拥有焦点
 
+const ReadOnlyProperty< WndBase * > Parent
 父窗口
 
+const ReadOnlyProperty< boolIsDestroyed
 是否已销毁,当该值为true时不应该继续使用当前对象
 
- Protected Member Functions inherited from sw::Control
Control ()
 初始化控件
 
+void ResetHandle ()
 销毁控件句柄并重新初始化,该操作会创建新的句柄并设置样式、文本、字体等
 
+virtual void HandleChenged ()
 控件句柄发生改变时调用该函数
 
- Protected Member Functions inherited from sw::UIElement
UIElement ()
 初始化UIElement
 
void RaiseRoutedEvent (RoutedEventType eventType)
 触发路由事件
 
void RaiseRoutedEvent (RoutedEventArgs &eventArgs)
 触发路由事件
 
+void NotifyLayoutUpdated ()
 通知顶级窗口布局改变
 
+doubleGetArrangeOffsetX ()
 获取Arrange时子元素的水平偏移量
 
+doubleGetArrangeOffsetY ()
 获取Arrange时子元素的垂直偏移量
 
double GetChildRightmost (bool update)
 获取所有子元素在当前元素中最右边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
double GetChildBottommost (bool update)
 获取所有子元素在当前元素中最底边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
+void UpdateChildrenZOrder ()
 更新子元素的Z轴位置
 
+void UpdateSiblingsZOrder ()
 更新兄弟元素的Z轴位置
 
+void SetNextTabStopFocus ()
 设置下一个TabStop属性为true的元素为焦点元素
 
virtual void SetBackColor (Color color, bool redraw)
 设置背景颜色
 
virtual void SetTextColor (Color color, bool redraw)
 设置文本颜色
 
virtual void OnAddedChild (UIElement &element)
 添加子元素后调用该函数
 
virtual void OnRemovedChild (UIElement &element)
 移除子元素后调用该函数
 
+virtual void OnTabStop ()
 通过tab键将焦点移动到当前元素时调用该函数
 
virtual void OnDrawFocusRect ()
 绘制虚线框时调用该函数
 
virtual bool SetParent (WndBase *parent) override
 设置父窗口
 
virtual void ParentChanged (WndBase *newParent) override
 父窗口改变时调用此函数
 
virtual void OnEndPaint () override
 在OnPaint函数完成之后调用该函数
 
virtual bool OnClose () override
 接收到WM_CLOSE时调用该函数
 
virtual bool OnMove (Point newClientPosition) override
 接收到WM_MOVE时调用该函数
 
virtual bool OnSize (Size newClientSize) override
 接收到WM_SIZE时调用该函数
 
virtual void OnTextChanged () override
 Text属性更改时调用此函数
 
virtual void VisibleChanged (bool newVisible) override
 Visible属性改变时调用此函数
 
virtual bool OnSetFocus (HWND hPrevFocus) override
 接收到WM_SETFOCUS时调用该函数
 
virtual bool OnKillFocus (HWND hNextFocus) override
 接收到WM_KILLFOCUS时调用该函数
 
virtual bool OnChar (wchar_t ch, KeyFlags flags) override
 接收到WM_CHAR时调用该函数
 
virtual bool OnKeyDown (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYDOWN时调用该函数
 
virtual bool OnKeyUp (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYUP时调用该函数
 
virtual bool OnMouseMove (Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEMOVE时调用该函数
 
virtual bool OnMouseLeave () override
 接收到WM_MOUSELEAVE时调用该函数
 
virtual bool OnMouseWheel (int wheelDelta, Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEWHEEL时调用该函数
 
virtual bool OnMouseLeftButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONDOWN时调用该函数
 
virtual bool OnMouseLeftButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONUP时调用该函数
 
virtual bool OnMouseRightButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONDOWN时调用该函数
 
virtual bool OnMouseRightButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONUP时调用该函数
 
virtual bool OnMouseMiddleButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONDOWN时调用该函数
 
virtual bool OnMouseMiddleButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONUP时调用该函数
 
virtual bool OnContextMenu (bool isKeyboardMsg, Point mousePosition) override
 接收到WM_CONTEXTMENU后调用目标控件的该函数
 
virtual void OnMenuCommand (int id) override
 当WM_COMMAND接收到菜单命令时调用该函数
 
virtual bool OnColor (HDC hdc, HBRUSH &hRetBrush) override
 父窗口接收到WM_CTLCOLORxxx时调用对应控件的该函数
 
virtual bool OnSetCursor (HWND hwnd, HitTestResult hitTest, int message, bool &result) override
 接收到WM_SETCURSOR消息时调用该函数
 
- Protected Member Functions inherited from sw::WndBase
WndBase ()
 初始化WndBase
 
WndBase (const WndBase &)=delete
 
WndBase (WndBase &&)=delete
 
+WndBaseoperator= (const WndBase &)=delete
 
+WndBaseoperator= (WndBase &&)=delete
 
+void InitWindow (LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为窗口,该函数会调用CreateWindowExW
 
+void InitControl (LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为控件,该函数会调用CreateWindowExW
 
+LONG_PTR GetStyle ()
 获取窗口样式
 
+void SetStyle (LONG_PTR style)
 设置窗口样式
 
+bool GetStyle (LONG_PTR style)
 获取窗口的某个样式
 
+void SetStyle (LONG_PTR style, bool value)
 设置窗口的某个样式
 
+LONG_PTR GetExtendedStyle ()
 获取扩展窗口样式
 
+void SetExtendedStyle (LONG_PTR style)
 设置扩展窗口样式
 
+bool GetExtendedStyle (LONG_PTR style)
 获取窗口的某个扩展样式
 
+void SetExtendedStyle (LONG_PTR style, bool value)
 设置窗口的某个扩展样式
 
+HFONT GetFontHandle ()
 获取字体句柄
 
+LRESULT DefaultWndProc (const ProcMsg &refMsg)
 调用默认的WndProc,对于窗口则调用DefWindowProcW,控件则调用_controlOldWndProc
 
virtual LRESULT WndProc (const ProcMsg &refMsg)
 对WndProc的封装
 
+void UpdateText ()
 更新_text字段
 
virtual std::wstring & GetText ()
 获取窗口文本
 
virtual void SetText (const std::wstring &value)
 调用SetWindowTextW设置窗口文本
 
virtual bool OnCreate ()
 接收到WM_CREATE时调用该函数
 
virtual bool OnDestroy ()
 接收到WM_DESTROY时调用该函数
 
virtual bool OnPaint ()
 接收到WM_PAINT时调用该函数
 
virtual bool OnMouseLeftButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_LBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseRightButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_RBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseMiddleButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_MBUTTONDBLCLK时调用该函数
 
virtual bool OnDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_DEADCHAR时调用该函数
 
virtual bool OnSysChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSCHAR时调用该函数
 
virtual bool OnSysDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSDEADCHAR时调用该函数
 
virtual bool OnSysKeyDown (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYDOWN时调用该函数
 
virtual bool OnSysKeyUp (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYUP时调用该函数
 
virtual void OnCommand (int code)
 当父窗口接收到控件的WM_COMMAND时调用该函数
 
virtual void OnControlCommand (WndBase *pControl, int code, int id)
 当WM_COMMAND接收到控件命令时调用该函数
 
virtual void OnAcceleratorCommand (int id)
 当WM_COMMAND接收到快捷键命令时调用该函数
 
virtual void HandleInitialized (HWND hwnd)
 窗口句柄初始化完成
 
virtual void FontChanged (HFONT hfont)
 字体改变时调用该函数
 
virtual bool OnNotify (NMHDR *pNMHDR)
 接收到WM_NOTIFY后调用该函数
 
virtual void OnNotified (NMHDR *pNMHDR)
 父窗口接收到WM_NOTIFY后调用发出通知控件的该函数
 
virtual bool OnVerticalScroll (int event, int pos)
 接收到WM_VSCROLL时调用目标控件的该函数
 
virtual bool OnHorizontalScroll (int event, int pos)
 接收到WM_HSCROLL时调用目标控件的该函数
 
virtual bool OnEnabledChanged (bool newValue)
 接收到WM_ENABLE时调用该函数
 
virtual bool OnCtlColor (WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)
 接收到WM_CTLCOLORxxx时调用该函数
 
virtual void OnNcHitTest (const Point &testPoint, HitTestResult &result)
 接收到WM_NCHITTEST后调用该函数
 
virtual bool OnEraseBackground (int &result)
 接收到WM_ERASEBKGND时调用该函数
 
virtual bool OnDrawItem (int id, DRAWITEMSTRUCT *pDrawItem)
 接收到WM_DRAWITEM时调用该函数
 
+

Detailed Description

+

静态控件

+

The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_static_control.js b/docs/classsw_1_1_static_control.js new file mode 100644 index 00000000..e25d5e8f --- /dev/null +++ b/docs/classsw_1_1_static_control.js @@ -0,0 +1,4 @@ +var classsw_1_1_static_control = +[ + [ "StaticControl", "classsw_1_1_static_control.html#a88dea3db611c5cc94df004cdae9c74ef", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_static_control.png b/docs/classsw_1_1_static_control.png new file mode 100644 index 0000000000000000000000000000000000000000..54ec8f60c28667a368b04f452c12d6f0e7e47968 GIT binary patch literal 2023 zcmb_dYfzJC7XA|4B6g9kN-464PGh4h>xB%r8UkB!Fe1cB9J0YktjeH9(+G-$gaECs z%SBT$EiJ^L<0W+<`Ksy4HJ1g1dVv6eLNX7U?5kg0>V ztS{0X{%-A)L$iFHX*g`G*YnPaL+5kP`G~tWin@Q?aEnh`4BPQ8{=@6eDb&n4-^0)6 z_$V?A+Run8*4Jf$`nC%wnJo{k4PJ)_+49=2W=nK~F_i5hB$6jWE zbJR$wq9!@9wW~Z#m3waTBI@MgI5hgy_6JOZ6qRHdD0m)kNY8q|zy5_U#^1?Has_~Q zxoU`M_0s15Wu6V?SVy0@W?m-c+{D#8wqP%W98jg#nx%K^-M+&r_ekM9~B!vRp=uVy=#d349i48u!5+mM_rUjw;b4hsOwOrv3tB)Bj*GQFd?48x~ME z-VzKZN3Jk-*#WatbfFquCiZxLkb2ZRdR8hmhp$Ohc0x!v0m!590M3JzN-`GlTGD#C z3fkH-#aII_vFu6}x(qBrzN-9xsiUcyXV3+le_8tJ<>oK2Dq|Bs{zlM6 z0rUOQW@gSKD6&_q(=Xb@rP%w9_u2!-yl=DQvbHtckSE;j+fKF?>Ut54-o~PPrs*y6 za?nr+x^$+6iaR>o=3(DL1xxR^WWkBN)Ux#NOjb!}`7P3Fv^!y@UFK{teK3HKxI6*z zzs6EOCsoP>*ogd#L>`@O5cgU@TCYu>a zy`KMF%vo1A_nztsyUw~&-I=6-B{JR98kTL)sn^sBP7U3UFV7`{ym}hVNsg~N#a^!( z8A;5rA3GmKp07AoH!{I+?I-}Ry4afMmg(lO`SGT1g;Z9FhF^ZHB>6LlC`2=J9zuWY zU&cKDC{aMpHV`N#aEjGab2?mg3WIx5Yx4j>2epxF5r2nUFZLu|10>Ia4qE;lz84_P zEn&W!0np}_%!U$vcS?}(iJ3u0WGFo7MZ0UjUt;LCZgL&IF%Gnb{8NOA946U1p1I5O z&PEo-kmz?zF|y#a;0u|_4@folGg1!+*rQ|R+v;5Gw@b0>kEzS@l`Zqslh51?dGAW& zW1%E%k{@-u1dG7UJn$CCR>xY{Si~iEtl{h)UMOeG{^hME2MAj~yh?;}SH1>q)p@Y{ z|CEA!dM0oe@a0cU;)ZM}Yb-)OEoQ#8O1Te<5bS)jlB#c zgngmSRPNl81ctOQ#P75W{?y=uhU1&TtQ%S(bb0&tMg35TW$T`K)~G#fHn*g~@JZHu zE~U-6m_rvUvaxjW2>Fdcn~VLVS!b&TRwyOgQ;^@TA^`hc>=XnQUM8B)FxP!DT*U;zjBJr zrt{${mrJ#9obN#^8}pk@AWCON~>$zzz6u V#!Y_#2!F`{erIN? + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::TabControl Member List
+
+
+ +

This is the complete list of members for sw::TabControl, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AddChild(UIElement *element)sw::UIElement
AddChild(UIElement &element)sw::UIElement
AddChild(UIElement *element, uint64_t layoutTag)sw::UIElement
AddChild(UIElement &element, uint64_t layoutTag)sw::UIElement
Alignmentsw::TabControl
Arrange(const sw::Rect &finalPosition) overridesw::TabControlvirtual
BackColorsw::UIElement
ChildCountsw::UIElement
ClearChildren()sw::UIElement
ClientHeightsw::WndBase
ClientRectsw::WndBase
ClientWidthsw::WndBase
Close()sw::WndBase
CollapseWhenHidesw::UIElement
ContentRectsw::TabControl
ContextMenusw::UIElement
Control()sw::Controlprotected
DefaultWndProc(const ProcMsg &refMsg)sw::WndBaseprotected
Enabledsw::WndBase
Floatsw::UIElement
Focusedsw::WndBase
Fontsw::WndBase
FontChanged(HFONT hfont)sw::WndBaseprotectedvirtual
FontNamesw::WndBase
FontSizesw::WndBase
FontWeightsw::WndBase
GetArrangeOffsetX()sw::UIElementprotected
GetArrangeOffsetY()sw::UIElementprotected
GetChildBottommost(bool update)sw::UIElementprotected
GetChildLayoutAt(int index) overridesw::UIElementvirtual
GetChildLayoutCount() overridesw::UIElementvirtual
GetChildRightmost(bool update)sw::UIElementprotected
GetDesireSize() overridesw::UIElementvirtual
GetExtendedStyle()sw::WndBaseprotected
GetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
GetFontHandle()sw::WndBaseprotected
GetLayoutTag() overridesw::UIElementvirtual
GetNextElement()sw::UIElement
GetNextTabStopElement()sw::UIElement
GetRealBackColor()sw::UIElement
GetRealTextColor()sw::UIElement
GetRootElement()sw::UIElement
GetStyle()sw::WndBaseprotected
GetStyle(LONG_PTR style)sw::WndBaseprotected
GetTabCount()sw::TabControl
GetTag() overridesw::UIElementvirtual
GetText()sw::WndBaseprotectedvirtual
GetWndBase(HWND hwnd)sw::WndBasestatic
Handlesw::WndBase
HandleChenged()sw::Controlprotectedvirtual
HandleInitialized(HWND hwnd)sw::WndBaseprotectedvirtual
Heightsw::WndBase
HorizontalAlignmentsw::UIElement
IndexOf(UIElement *element)sw::UIElement
IndexOf(UIElement &element)sw::UIElement
InheritTextColorsw::UIElement
InitControl(LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
InitWindow(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
IsControl()sw::WndBase
IsDestroyedsw::WndBase
IsRootElement()sw::UIElement
IsRoutedEventRegistered(RoutedEventType eventType)sw::UIElement
IsVisible()sw::WndBase
LayoutTagsw::UIElement
Leftsw::WndBase
Marginsw::UIElement
Measure(const Size &availableSize) overridesw::UIElementvirtual
MoveToBottom()sw::UIElement
MoveToTop()sw::UIElement
MultiLinesw::TabControl
NcHitTest(const Point &testPoint)sw::WndBase
NotifyLayoutUpdated()sw::UIElementprotected
OnAcceleratorCommand(int id)sw::WndBaseprotectedvirtual
OnAddedChild(UIElement &element) overridesw::TabControlprotectedvirtual
OnChar(wchar_t ch, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnClose() overridesw::UIElementprotectedvirtual
OnColor(HDC hdc, HBRUSH &hRetBrush) overridesw::UIElementprotectedvirtual
OnCommand(int code)sw::WndBaseprotectedvirtual
OnContextMenu(bool isKeyboardMsg, Point mousePosition) overridesw::UIElementprotectedvirtual
OnControlCommand(WndBase *pControl, int code, int id)sw::WndBaseprotectedvirtual
OnCreate()sw::WndBaseprotectedvirtual
OnCtlColor(WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)sw::WndBaseprotectedvirtual
OnDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnDestroy()sw::WndBaseprotectedvirtual
OnDrawFocusRect()sw::UIElementprotectedvirtual
OnDrawItem(int id, DRAWITEMSTRUCT *pDrawItem)sw::WndBaseprotectedvirtual
OnEnabledChanged(bool newValue)sw::WndBaseprotectedvirtual
OnEndPaint() overridesw::UIElementprotectedvirtual
OnEraseBackground(int &result)sw::WndBaseprotectedvirtual
OnHorizontalScroll(int event, int pos)sw::WndBaseprotectedvirtual
OnKeyDown(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKeyUp(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKillFocus(HWND hNextFocus) overridesw::UIElementprotectedvirtual
OnMenuCommand(int id) overridesw::UIElementprotectedvirtual
OnMouseLeave() overridesw::UIElementprotectedvirtual
OnMouseLeftButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseLeftButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseMiddleButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMove(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseRightButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseWheel(int wheelDelta, Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMove(Point newClientPosition) overridesw::UIElementprotectedvirtual
OnNcHitTest(const Point &testPoint, HitTestResult &result)sw::WndBaseprotectedvirtual
OnNotified(NMHDR *pNMHDR) overridesw::TabControlprotectedvirtual
OnNotify(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnPaint()sw::WndBaseprotectedvirtual
OnRemovedChild(UIElement &element) overridesw::TabControlprotectedvirtual
OnSelectedIndexChanged()sw::TabControlprotectedvirtual
OnSetCursor(HWND hwnd, HitTestResult hitTest, int message, bool &result) overridesw::UIElementprotectedvirtual
OnSetFocus(HWND hPrevFocus) overridesw::UIElementprotectedvirtual
OnSize(Size newClientSize) overridesw::UIElementprotectedvirtual
OnSysChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyDown(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyUp(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnTabStop()sw::UIElementprotectedvirtual
OnTextChanged() overridesw::UIElementprotectedvirtual
OnVerticalScroll(int event, int pos)sw::WndBaseprotectedvirtual
operator=(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator=(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator[](int index) constsw::UIElement
Parentsw::UIElement
ParentChanged(WndBase *newParent) overridesw::UIElementprotectedvirtual
PointFromScreen(const Point &screenPoint)sw::WndBase
PointToScreen(const Point &point)sw::WndBase
RaiseRoutedEvent(RoutedEventType eventType)sw::UIElementprotected
RaiseRoutedEvent(RoutedEventArgs &eventArgs)sw::UIElementprotected
Rectsw::WndBase
Redraw(bool erase=false)sw::WndBase
RegisterRoutedEvent(RoutedEventType eventType, const RoutedEvent &handler)sw::UIElement
RegisterRoutedEvent(RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))sw::UIElementinline
RegisterRoutedEvent(std::function< void(UIElement &, TEventArgs &)> handler)sw::UIElementinline
RegisterRoutedEvent(THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))sw::UIElementinline
RemoveChild(UIElement *element)sw::UIElement
RemoveChild(UIElement &element)sw::UIElement
RemoveChildAt(int index)sw::UIElement
ResetCursor()sw::UIElement
ResetHandle()sw::Controlprotected
SelectedIndexsw::TabControl
SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase
SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement
SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual
SetCursor(HCURSOR hCursor)sw::UIElement
SetCursor(StandardCursor cursor)sw::UIElement
SetDesireSize(const Size &size) overridesw::UIElementvirtual
SetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
SetExtendedStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetNextTabStopFocus()sw::UIElementprotected
SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual
SetStyle(LONG_PTR style)sw::WndBaseprotected
SetStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetTag(uint64_t tag) overridesw::UIElementvirtual
SetText(const std::wstring &value)sw::WndBaseprotectedvirtual
SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual
Show(int nCmdShow)sw::WndBase
ShowContextMenu(const Point &point)sw::UIElement
TabControl()sw::TabControl
TabStopsw::UIElement
Tagsw::UIElement
Textsw::WndBase
TextColorsw::UIElement
Topsw::WndBase
Transparentsw::UIElement
UIElement()sw::UIElementprotected
UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement
Update()sw::WndBase
UpdateChildrenZOrder()sw::UIElementprotected
UpdateFont()sw::WndBase
UpdateSiblingsZOrder()sw::UIElementprotected
UpdateTab()sw::TabControl
UpdateTabText(int index)sw::TabControl
UpdateText()sw::WndBaseprotected
VerticalAlignmentsw::UIElement
Visiblesw::WndBase
VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual
Widthsw::WndBase
WndBase()sw::WndBaseprotected
WndBase(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndBase(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual
~Control()=0sw::Controlpure virtual
~UIElement()=0sw::UIElementpure virtual
~WndBase()=0sw::WndBasepure virtual
+
+ + + + diff --git a/docs/classsw_1_1_tab_control.html b/docs/classsw_1_1_tab_control.html new file mode 100644 index 00000000..c406b55f --- /dev/null +++ b/docs/classsw_1_1_tab_control.html @@ -0,0 +1,975 @@ + + + + + + + +SimpleWindow: sw::TabControl Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+ +

标签页控件 + More...

+ +

#include <TabControl.h>

+
+Inheritance diagram for sw::TabControl:
+
+
+ + +sw::Control +sw::UIElement +sw::WndBase +sw::ILayout +sw::ITag + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

TabControl ()
 初始化标签页控件
 
+int GetTabCount ()
 获取标签项的数量
 
+void UpdateTab ()
 更新标签项信息
 
void UpdateTabText (int index)
 更新指定索引处页面项的文本
 
virtual void Arrange (const sw::Rect &finalPosition) override
 安排控件位置
 
- Public Member Functions inherited from sw::Control
+virtual ~Control ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
- Public Member Functions inherited from sw::UIElement
+virtual ~UIElement ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
void RegisterRoutedEvent (RoutedEventType eventType, const RoutedEvent &handler)
 注册路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename T >
void RegisterRoutedEvent (RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))
 注册成员函数作为路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename TEventArgs , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (std::function< void(UIElement &, TEventArgs &)> handler)
 根据事件参数类型注册路由事件
 
template<typename TEventArgs , typename THandleObj , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))
 根据事件参数类型注册成员函数作为路由事件
 
void UnregisterRoutedEvent (RoutedEventType eventType)
 取消对应类型路由事件的注册
 
bool IsRoutedEventRegistered (RoutedEventType eventType)
 判断路由事件是否已被注册
 
bool AddChild (UIElement *element)
 添加子控件
 
bool AddChild (UIElement &element)
 添加子控件
 
bool AddChild (UIElement *element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool AddChild (UIElement &element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool RemoveChildAt (int index)
 移除指定索引处的子控件
 
bool RemoveChild (UIElement *element)
 移除子控件
 
bool RemoveChild (UIElement &element)
 移除子控件
 
+void ClearChildren ()
 移除所有子控件
 
int IndexOf (UIElement *element)
 获取指定元素的索引
 
int IndexOf (UIElement &element)
 获取指定元素的索引
 
+UIElementoperator[] (int index) const
 通过索引获取子控件
 
void ShowContextMenu (const Point &point)
 弹出当前元素的上下文菜单
 
+void MoveToTop ()
 移动到界面顶部
 
+void MoveToBottom ()
 移动到界面底部
 
+bool IsRootElement ()
 判断当前元素是否为根节点
 
+UIElementGetRootElement ()
 获取当前元素所在界面树的根节点
 
+UIElementGetNextElement ()
 获取当前元素在界面树上的下一个节点,若已是最后一个节点则返回根节点
 
+UIElementGetNextTabStopElement ()
 获取下一个TabStop属性为true的元素
 
+Color GetRealBackColor ()
 获取当前要显示的背景颜色:当Transparent为true时获取到祖先节点中首个Transparent为false的背景颜色,否则返回当前元素的背景颜色
 
+Color GetRealTextColor ()
 获取当前要显示的文本颜色:当InheritTextColor为true时获取到祖先节点中首个InheritTextColor为false的文本颜色,否则返回当前元素的文本颜色
 
void SetCursor (HCURSOR hCursor)
 设置鼠标样式
 
void SetCursor (StandardCursor cursor)
 设置鼠标样式
 
+void ResetCursor ()
 将鼠标样式设置为默认样式
 
void SetAlignment (sw::HorizontalAlignment horz, sw::VerticalAlignment vert)
 设置对齐方式
 
virtual uint64_t GetTag () override
 获取Tag
 
virtual void SetTag (uint64_t tag) override
 设置Tag
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取参与布局的子控件数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取对应索引处的子控件,使用此函数前必须先调用GetChildLayoutCount
 
virtual Size GetDesireSize () override
 获取控件所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置当前控件所需的尺寸
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
- Public Member Functions inherited from sw::WndBase
+virtual ~WndBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void Show (int nCmdShow)
 该函数调用ShowWindow
 
+void Close ()
 发送关闭消息
 
+void Update ()
 该函数调用UpdateWindow
 
+void UpdateFont ()
 更新字体
 
void Redraw (bool erase=false)
 重画
 
+bool IsControl ()
 判断当前对象是否是控件
 
+bool IsVisible ()
 判断当前对象在界面中是否可视,与Visible属性不同的是该函数返回值会受父窗口的影响
 
Point PointToScreen (const Point &point)
 获取用户区点在屏幕上点的位置
 
Point PointFromScreen (const Point &screenPoint)
 获取屏幕上点在当前用户区点的位置
 
+LRESULT SendMessageW (UINT uMsg, WPARAM wParam, LPARAM lParam)
 发送消息
 
HitTestResult NcHitTest (const Point &testPoint)
 测试指定点在窗口的哪一部分
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Attributes

+const ReadOnlyProperty< sw::RectContentRect
 内容区域位置与尺寸
 
+const Property< intSelectedIndex
 当前页面的索引
 
+const Property< TabAlignment > Alignment
 标签的位置
 
+const Property< boolMultiLine
 是否开启多行标签
 
- Public Attributes inherited from sw::UIElement
+const Property< ThicknessMargin
 边距
 
+const Property< HorizontalAlignment > HorizontalAlignment
 水平对齐方式
 
+const Property< VerticalAlignment > VerticalAlignment
 垂直对齐方式
 
+const ReadOnlyProperty< intChildCount
 子控件数量
 
+const Property< boolCollapseWhenHide
 是否在不可见时不参与布局
 
+const ReadOnlyProperty< UIElement * > Parent
 指向父元素的指针,当前元素为顶级窗口时该值为nullptr
 
+const Property< uint64_tTag
 储存用户自定义信息的标记
 
+const Property< uint64_tLayoutTag
 布局标记,对于不同的布局有不同含义
 
+const Property< sw::ContextMenu * > ContextMenu
 右键按下时弹出的菜单
 
+const Property< boolFloat
 元素是否悬浮,若元素悬浮则该元素不会随滚动条滚动而改变位置
 
+const Property< boolTabStop
 表示用户是否可以通过按下Tab键将焦点移动到当前元素
 
+const Property< ColorBackColor
 背景颜色,修改该属性会同时将Transparent属性设为false,对于部分控件该属性可能不生效
 
+const Property< ColorTextColor
 文本颜色,修改该属性会同时将InheritTextColor属性设为false,对于部分控件该属性可能不生效
 
+const Property< boolTransparent
 是否使用透明背景(此属性并非真正意义上的透明,将该属性设为true可继承父元素的背景颜色)
 
+const Property< boolInheritTextColor
 是否继承父元素的文本颜色
 
- Public Attributes inherited from sw::WndBase
+const ReadOnlyProperty< HWNDHandle
 窗口句柄
 
+const Property< sw::FontFont
 字体
 
+const Property< std::wstring > FontName
 字体名称
 
+const Property< doubleFontSize
 字体大小
 
+const Property< sw::FontWeight > FontWeight
 字体粗细
 
+const Property< sw::RectRect
 位置和尺寸
 
+const Property< doubleLeft
 左边
 
+const Property< doubleTop
 顶边
 
+const Property< doubleWidth
 宽度
 
+const Property< doubleHeight
 高度
 
+const ReadOnlyProperty< sw::RectClientRect
 用户区尺寸
 
+const ReadOnlyProperty< doubleClientWidth
 用户区宽度
 
+const ReadOnlyProperty< doubleClientHeight
 用户区高度
 
+const Property< boolEnabled
 窗口或控件是否可用
 
+const Property< boolVisible
 窗口或控件是否可见
 
+const Property< std::wstring > Text
 窗口标题或控件文本
 
+const Property< boolFocused
 窗口是否拥有焦点
 
+const ReadOnlyProperty< WndBase * > Parent
 父窗口
 
+const ReadOnlyProperty< boolIsDestroyed
 是否已销毁,当该值为true时不应该继续使用当前对象
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Protected Member Functions

virtual void OnAddedChild (UIElement &element) override
 添加子元素后调用该函数
 
virtual void OnRemovedChild (UIElement &element) override
 移除子元素后调用该函数
 
virtual void OnNotified (NMHDR *pNMHDR) override
 父窗口接收到WM_NOTIFY后调用发出通知控件的该函数
 
+virtual void OnSelectedIndexChanged ()
 SelectedIndex属性更改时调用该函数
 
- Protected Member Functions inherited from sw::Control
Control ()
 初始化控件
 
+void ResetHandle ()
 销毁控件句柄并重新初始化,该操作会创建新的句柄并设置样式、文本、字体等
 
+virtual void HandleChenged ()
 控件句柄发生改变时调用该函数
 
- Protected Member Functions inherited from sw::UIElement
UIElement ()
 初始化UIElement
 
void RaiseRoutedEvent (RoutedEventType eventType)
 触发路由事件
 
void RaiseRoutedEvent (RoutedEventArgs &eventArgs)
 触发路由事件
 
+void NotifyLayoutUpdated ()
 通知顶级窗口布局改变
 
+doubleGetArrangeOffsetX ()
 获取Arrange时子元素的水平偏移量
 
+doubleGetArrangeOffsetY ()
 获取Arrange时子元素的垂直偏移量
 
double GetChildRightmost (bool update)
 获取所有子元素在当前元素中最右边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
double GetChildBottommost (bool update)
 获取所有子元素在当前元素中最底边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
+void UpdateChildrenZOrder ()
 更新子元素的Z轴位置
 
+void UpdateSiblingsZOrder ()
 更新兄弟元素的Z轴位置
 
+void SetNextTabStopFocus ()
 设置下一个TabStop属性为true的元素为焦点元素
 
virtual void SetBackColor (Color color, bool redraw)
 设置背景颜色
 
virtual void SetTextColor (Color color, bool redraw)
 设置文本颜色
 
+virtual void OnTabStop ()
 通过tab键将焦点移动到当前元素时调用该函数
 
virtual void OnDrawFocusRect ()
 绘制虚线框时调用该函数
 
virtual bool SetParent (WndBase *parent) override
 设置父窗口
 
virtual void ParentChanged (WndBase *newParent) override
 父窗口改变时调用此函数
 
virtual void OnEndPaint () override
 在OnPaint函数完成之后调用该函数
 
virtual bool OnClose () override
 接收到WM_CLOSE时调用该函数
 
virtual bool OnMove (Point newClientPosition) override
 接收到WM_MOVE时调用该函数
 
virtual bool OnSize (Size newClientSize) override
 接收到WM_SIZE时调用该函数
 
virtual void OnTextChanged () override
 Text属性更改时调用此函数
 
virtual void VisibleChanged (bool newVisible) override
 Visible属性改变时调用此函数
 
virtual bool OnSetFocus (HWND hPrevFocus) override
 接收到WM_SETFOCUS时调用该函数
 
virtual bool OnKillFocus (HWND hNextFocus) override
 接收到WM_KILLFOCUS时调用该函数
 
virtual bool OnChar (wchar_t ch, KeyFlags flags) override
 接收到WM_CHAR时调用该函数
 
virtual bool OnKeyDown (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYDOWN时调用该函数
 
virtual bool OnKeyUp (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYUP时调用该函数
 
virtual bool OnMouseMove (Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEMOVE时调用该函数
 
virtual bool OnMouseLeave () override
 接收到WM_MOUSELEAVE时调用该函数
 
virtual bool OnMouseWheel (int wheelDelta, Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEWHEEL时调用该函数
 
virtual bool OnMouseLeftButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONDOWN时调用该函数
 
virtual bool OnMouseLeftButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONUP时调用该函数
 
virtual bool OnMouseRightButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONDOWN时调用该函数
 
virtual bool OnMouseRightButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONUP时调用该函数
 
virtual bool OnMouseMiddleButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONDOWN时调用该函数
 
virtual bool OnMouseMiddleButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONUP时调用该函数
 
virtual bool OnContextMenu (bool isKeyboardMsg, Point mousePosition) override
 接收到WM_CONTEXTMENU后调用目标控件的该函数
 
virtual void OnMenuCommand (int id) override
 当WM_COMMAND接收到菜单命令时调用该函数
 
virtual bool OnColor (HDC hdc, HBRUSH &hRetBrush) override
 父窗口接收到WM_CTLCOLORxxx时调用对应控件的该函数
 
virtual bool OnSetCursor (HWND hwnd, HitTestResult hitTest, int message, bool &result) override
 接收到WM_SETCURSOR消息时调用该函数
 
- Protected Member Functions inherited from sw::WndBase
WndBase ()
 初始化WndBase
 
WndBase (const WndBase &)=delete
 
WndBase (WndBase &&)=delete
 
+WndBaseoperator= (const WndBase &)=delete
 
+WndBaseoperator= (WndBase &&)=delete
 
+void InitWindow (LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为窗口,该函数会调用CreateWindowExW
 
+void InitControl (LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为控件,该函数会调用CreateWindowExW
 
+LONG_PTR GetStyle ()
 获取窗口样式
 
+void SetStyle (LONG_PTR style)
 设置窗口样式
 
+bool GetStyle (LONG_PTR style)
 获取窗口的某个样式
 
+void SetStyle (LONG_PTR style, bool value)
 设置窗口的某个样式
 
+LONG_PTR GetExtendedStyle ()
 获取扩展窗口样式
 
+void SetExtendedStyle (LONG_PTR style)
 设置扩展窗口样式
 
+bool GetExtendedStyle (LONG_PTR style)
 获取窗口的某个扩展样式
 
+void SetExtendedStyle (LONG_PTR style, bool value)
 设置窗口的某个扩展样式
 
+HFONT GetFontHandle ()
 获取字体句柄
 
+LRESULT DefaultWndProc (const ProcMsg &refMsg)
 调用默认的WndProc,对于窗口则调用DefWindowProcW,控件则调用_controlOldWndProc
 
virtual LRESULT WndProc (const ProcMsg &refMsg)
 对WndProc的封装
 
+void UpdateText ()
 更新_text字段
 
virtual std::wstring & GetText ()
 获取窗口文本
 
virtual void SetText (const std::wstring &value)
 调用SetWindowTextW设置窗口文本
 
virtual bool OnCreate ()
 接收到WM_CREATE时调用该函数
 
virtual bool OnDestroy ()
 接收到WM_DESTROY时调用该函数
 
virtual bool OnPaint ()
 接收到WM_PAINT时调用该函数
 
virtual bool OnMouseLeftButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_LBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseRightButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_RBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseMiddleButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_MBUTTONDBLCLK时调用该函数
 
virtual bool OnDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_DEADCHAR时调用该函数
 
virtual bool OnSysChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSCHAR时调用该函数
 
virtual bool OnSysDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSDEADCHAR时调用该函数
 
virtual bool OnSysKeyDown (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYDOWN时调用该函数
 
virtual bool OnSysKeyUp (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYUP时调用该函数
 
virtual void OnCommand (int code)
 当父窗口接收到控件的WM_COMMAND时调用该函数
 
virtual void OnControlCommand (WndBase *pControl, int code, int id)
 当WM_COMMAND接收到控件命令时调用该函数
 
virtual void OnAcceleratorCommand (int id)
 当WM_COMMAND接收到快捷键命令时调用该函数
 
virtual void HandleInitialized (HWND hwnd)
 窗口句柄初始化完成
 
virtual void FontChanged (HFONT hfont)
 字体改变时调用该函数
 
virtual bool OnNotify (NMHDR *pNMHDR)
 接收到WM_NOTIFY后调用该函数
 
virtual bool OnVerticalScroll (int event, int pos)
 接收到WM_VSCROLL时调用目标控件的该函数
 
virtual bool OnHorizontalScroll (int event, int pos)
 接收到WM_HSCROLL时调用目标控件的该函数
 
virtual bool OnEnabledChanged (bool newValue)
 接收到WM_ENABLE时调用该函数
 
virtual bool OnCtlColor (WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)
 接收到WM_CTLCOLORxxx时调用该函数
 
virtual void OnNcHitTest (const Point &testPoint, HitTestResult &result)
 接收到WM_NCHITTEST后调用该函数
 
virtual bool OnEraseBackground (int &result)
 接收到WM_ERASEBKGND时调用该函数
 
virtual bool OnDrawItem (int id, DRAWITEMSTRUCT *pDrawItem)
 接收到WM_DRAWITEM时调用该函数
 
+ + + + + +

+Additional Inherited Members

- Static Public Member Functions inherited from sw::WndBase
static WndBaseGetWndBase (HWND hwnd)
 通过窗口句柄获取WndBase
 
+

Detailed Description

+

标签页控件

+

Member Function Documentation

+ +

◆ Arrange()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::TabControl::Arrange (const sw::Rect & finalPosition)
+
+overridevirtual
+
+ +

安排控件位置

+
Parameters
+ + +
finalPosition最终控件所安排的位置
+
+
+ +

Reimplemented from sw::UIElement.

+ +
+
+ +

◆ OnAddedChild()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::TabControl::OnAddedChild (UIElement & element)
+
+overrideprotectedvirtual
+
+ +

添加子元素后调用该函数

+
Parameters
+ + +
element添加的子元素
+
+
+ +

Reimplemented from sw::UIElement.

+ +
+
+ +

◆ OnNotified()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::TabControl::OnNotified (NMHDR * pNMHDR)
+
+overrideprotectedvirtual
+
+ +

父窗口接收到WM_NOTIFY后调用发出通知控件的该函数

+ +

Reimplemented from sw::WndBase.

+ +
+
+ +

◆ OnRemovedChild()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::TabControl::OnRemovedChild (UIElement & element)
+
+overrideprotectedvirtual
+
+ +

移除子元素后调用该函数

+
Parameters
+ + +
element移除的子元素
+
+
+ +

Reimplemented from sw::UIElement.

+ +
+
+ +

◆ UpdateTabText()

+ +
+
+ + + + + + + +
void sw::TabControl::UpdateTabText (int index)
+
+ +

更新指定索引处页面项的文本

+
Parameters
+ + +
index要更新的索引
+
+
+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_tab_control.js b/docs/classsw_1_1_tab_control.js new file mode 100644 index 00000000..08af5f01 --- /dev/null +++ b/docs/classsw_1_1_tab_control.js @@ -0,0 +1,16 @@ +var classsw_1_1_tab_control = +[ + [ "TabControl", "classsw_1_1_tab_control.html#a402ae0be40a8a236d09b5c8a31c5aca1", null ], + [ "Arrange", "classsw_1_1_tab_control.html#a2826913f7180e01ec24542dd87ea8676", null ], + [ "GetTabCount", "classsw_1_1_tab_control.html#ac52a5ebc430c68920f8ee7e7755f7f34", null ], + [ "OnAddedChild", "classsw_1_1_tab_control.html#a6a4c0d7c81d279669765feaef0f55ecd", null ], + [ "OnNotified", "classsw_1_1_tab_control.html#ac0342af02418896ed6e98f6d11125348", null ], + [ "OnRemovedChild", "classsw_1_1_tab_control.html#a1642e450b1cf606338eb85bd9f93c82c", null ], + [ "OnSelectedIndexChanged", "classsw_1_1_tab_control.html#a654688668bdf8331e27cbe4564d6cf63", null ], + [ "UpdateTab", "classsw_1_1_tab_control.html#acbde185af6197161f7b22485ebff02b2", null ], + [ "UpdateTabText", "classsw_1_1_tab_control.html#ab14ce7faf0e6feb71ba66e7a1029673c", null ], + [ "Alignment", "classsw_1_1_tab_control.html#a09a693f18956f7629fab2377ab1a1dda", null ], + [ "ContentRect", "classsw_1_1_tab_control.html#a14f5debfc882417906f0d610617f5b05", null ], + [ "MultiLine", "classsw_1_1_tab_control.html#ae0fc4dead5149c903eb429d0927ec182", null ], + [ "SelectedIndex", "classsw_1_1_tab_control.html#a5e70f66a21997157773d149dec3339ce", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_tab_control.png b/docs/classsw_1_1_tab_control.png new file mode 100644 index 0000000000000000000000000000000000000000..15aeafc4744ec0fefe3fbb0a83d32b54a8080fa6 GIT binary patch literal 1654 zcmb7FX;71A5dIP>3WQpy2qEARp;nY|6oLYRwLy&vwUGjXf-&3#1O*W^;i?5Hff@*L z0Ee-16gfW*x$jFN5I})I2mvAl48a4z6fo(htqz^ewB!3@XLp}>XLg=__I=||*&S6@ z)KmljKpB4wM*skr5#%>*l7p-ZJPS$ys8c8HZDcYTotT(_ z@}@lwSrDcWOt3o*K=J!y22Xzi0P-+A?pyn-F!3E?*>C1wY)DVm^OMR9sBl>H6k~+3 z>MJ0MmE)s=Ry^s&DFoJy64&gMOFJ9Ye?K+d3X4MtIhF5h|u+QJvGm2%- z^at#bJ2Jy5B9$K8v}m=w))ob_#iXR9Iosfb zoR}RfM#~d{l|#{%t@WC#J6{sXv3c4#qVa|=Loyp)TbM2eiBot8ad4on^4>%Lc3VE* zi>F`lHgCj1>riNcuF3AvIOh{3zuYeJX!p;q5e*BOsvBk#J=vr2-pg6Oo)!qtP_AUi zt!+>U3%_TXaY-<4!g%T&eFBd`WABO}#NjNZ;c?j|?$cabO6aItWD2`9)bTb4C`2q?SQy<9T3+&GiOxzlNitQshDv!HMZL?LBY2 zo{YIOVUs>1`Jf0Z!_WqETtzQpR{?&Paublz)&Z!F1vtnDZbQi(3sm>?0CGX2NUh}! z>j$--_kT_ClfkdEQizx*Z|lxg4wZkg_c-d>kBslp3%Qd6R@#6Y)#3O+=Z81sA02!Ue6UYJ3ZY1D zqP7~Q5t$5$Gn(7O0(wc1;1^m75ECYllv^7*%gs*(yxMXV#eRAFXfhp literal 0 HcmV?d00001 diff --git a/docs/classsw_1_1_text_box-members.html b/docs/classsw_1_1_text_box-members.html new file mode 100644 index 00000000..229fe3ba --- /dev/null +++ b/docs/classsw_1_1_text_box-members.html @@ -0,0 +1,305 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::TextBox Member List
+
+
+ +

This is the complete list of members for sw::TextBox, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AcceptTabsw::TextBoxBase
AddChild(UIElement *element)sw::UIElement
AddChild(UIElement &element)sw::UIElement
AddChild(UIElement *element, uint64_t layoutTag)sw::UIElement
AddChild(UIElement &element, uint64_t layoutTag)sw::UIElement
Arrange(const sw::Rect &finalPosition) overridesw::UIElementvirtual
AutoWrapsw::TextBox
BackColorsw::UIElement
CanUndosw::TextBoxBase
ChildCountsw::UIElement
Clear()sw::TextBoxBase
ClearChildren()sw::UIElement
ClientHeightsw::WndBase
ClientRectsw::WndBase
ClientWidthsw::WndBase
Close()sw::WndBase
CollapseWhenHidesw::UIElement
ContextMenusw::UIElement
Control()sw::Controlprotected
DefaultWndProc(const ProcMsg &refMsg)sw::WndBaseprotected
Enabledsw::WndBase
Floatsw::UIElement
Focusedsw::WndBase
Fontsw::WndBase
FontChanged(HFONT hfont)sw::WndBaseprotectedvirtual
FontNamesw::WndBase
FontSizesw::WndBase
FontWeightsw::WndBase
GetArrangeOffsetX()sw::UIElementprotected
GetArrangeOffsetY()sw::UIElementprotected
GetChildBottommost(bool update)sw::UIElementprotected
GetChildLayoutAt(int index) overridesw::UIElementvirtual
GetChildLayoutCount() overridesw::UIElementvirtual
GetChildRightmost(bool update)sw::UIElementprotected
GetDesireSize() overridesw::UIElementvirtual
GetExtendedStyle()sw::WndBaseprotected
GetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
GetFontHandle()sw::WndBaseprotected
GetLayoutTag() overridesw::UIElementvirtual
GetNextElement()sw::UIElement
GetNextTabStopElement()sw::UIElement
GetRealBackColor()sw::UIElement
GetRealTextColor()sw::UIElement
GetRootElement()sw::UIElement
GetStyle()sw::WndBaseprotected
GetStyle(LONG_PTR style)sw::WndBaseprotected
GetTag() overridesw::UIElementvirtual
GetText() overridesw::TextBoxBaseprotectedvirtual
GetWndBase(HWND hwnd)sw::WndBasestatic
Handlesw::WndBase
HandleChenged()sw::Controlprotectedvirtual
HandleInitialized(HWND hwnd)sw::WndBaseprotectedvirtual
Heightsw::WndBase
HorizontalAlignmentsw::UIElement
HorizontalContentAlignmentsw::TextBoxBase
HorizontalScrollBarsw::TextBox
IndexOf(UIElement *element)sw::UIElement
IndexOf(UIElement &element)sw::UIElement
InheritTextColorsw::UIElement
InitControl(LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
InitTextBoxBase(DWORD dwStyle, DWORD dwExStyle)sw::TextBoxBaseprotected
InitWindow(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
IsControl()sw::WndBase
IsDestroyedsw::WndBase
IsRootElement()sw::UIElement
IsRoutedEventRegistered(RoutedEventType eventType)sw::UIElement
IsVisible()sw::WndBase
LayoutTagsw::UIElement
Leftsw::WndBase
Marginsw::UIElement
Measure(const Size &availableSize) overridesw::UIElementvirtual
MoveToBottom()sw::UIElement
MoveToTop()sw::UIElement
MultiLinesw::TextBox
NcHitTest(const Point &testPoint)sw::WndBase
NotifyLayoutUpdated()sw::UIElementprotected
OnAcceleratorCommand(int id)sw::WndBaseprotectedvirtual
OnAddedChild(UIElement &element)sw::UIElementprotectedvirtual
OnChar(wchar_t ch, KeyFlags flags) overridesw::TextBoxBaseprotectedvirtual
OnClose() overridesw::UIElementprotectedvirtual
OnColor(HDC hdc, HBRUSH &hRetBrush) overridesw::UIElementprotectedvirtual
OnCommand(int code) overridesw::TextBoxBaseprotectedvirtual
OnContextMenu(bool isKeyboardMsg, Point mousePosition) overridesw::UIElementprotectedvirtual
OnControlCommand(WndBase *pControl, int code, int id)sw::WndBaseprotectedvirtual
OnCreate()sw::WndBaseprotectedvirtual
OnCtlColor(WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)sw::WndBaseprotectedvirtual
OnDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnDestroy()sw::WndBaseprotectedvirtual
OnDrawFocusRect() overridesw::TextBoxBaseprotectedvirtual
OnDrawItem(int id, DRAWITEMSTRUCT *pDrawItem)sw::WndBaseprotectedvirtual
OnEnabledChanged(bool newValue)sw::WndBaseprotectedvirtual
OnEndPaint() overridesw::UIElementprotectedvirtual
OnEraseBackground(int &result)sw::WndBaseprotectedvirtual
OnHorizontalScroll(int event, int pos)sw::WndBaseprotectedvirtual
OnKeyDown(VirtualKey key, KeyFlags flags) overridesw::TextBoxBaseprotectedvirtual
OnKeyUp(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKillFocus(HWND hNextFocus) overridesw::UIElementprotectedvirtual
OnMenuCommand(int id) overridesw::UIElementprotectedvirtual
OnMouseLeave() overridesw::UIElementprotectedvirtual
OnMouseLeftButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseLeftButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseMiddleButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMove(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseRightButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseWheel(int wheelDelta, Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMove(Point newClientPosition) overridesw::UIElementprotectedvirtual
OnNcHitTest(const Point &testPoint, HitTestResult &result)sw::WndBaseprotectedvirtual
OnNotified(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnNotify(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnPaint()sw::WndBaseprotectedvirtual
OnRemovedChild(UIElement &element)sw::UIElementprotectedvirtual
OnSetCursor(HWND hwnd, HitTestResult hitTest, int message, bool &result) overridesw::UIElementprotectedvirtual
OnSetFocus(HWND hPrevFocus) overridesw::UIElementprotectedvirtual
OnSize(Size newClientSize) overridesw::UIElementprotectedvirtual
OnSysChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyDown(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyUp(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnTabStop()sw::UIElementprotectedvirtual
OnTextChanged() overridesw::UIElementprotectedvirtual
OnVerticalScroll(int event, int pos)sw::WndBaseprotectedvirtual
operator=(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator=(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator[](int index) constsw::UIElement
Parentsw::UIElement
ParentChanged(WndBase *newParent) overridesw::UIElementprotectedvirtual
PointFromScreen(const Point &screenPoint)sw::WndBase
PointToScreen(const Point &point)sw::WndBase
RaiseRoutedEvent(RoutedEventType eventType)sw::UIElementprotected
RaiseRoutedEvent(RoutedEventArgs &eventArgs)sw::UIElementprotected
ReadOnlysw::TextBoxBase
Rectsw::WndBase
Redraw(bool erase=false)sw::WndBase
RegisterRoutedEvent(RoutedEventType eventType, const RoutedEvent &handler)sw::UIElement
RegisterRoutedEvent(RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))sw::UIElementinline
RegisterRoutedEvent(std::function< void(UIElement &, TEventArgs &)> handler)sw::UIElementinline
RegisterRoutedEvent(THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))sw::UIElementinline
RemoveChild(UIElement *element)sw::UIElement
RemoveChild(UIElement &element)sw::UIElement
RemoveChildAt(int index)sw::UIElement
ResetCursor()sw::UIElement
ResetHandle()sw::Controlprotected
ScrollToCaret()sw::TextBoxBase
Select(int start, int length)sw::TextBoxBase
SelectAll()sw::TextBoxBase
SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase
SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement
SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual
SetCursor(HCURSOR hCursor)sw::UIElement
SetCursor(StandardCursor cursor)sw::UIElement
SetDesireSize(const Size &size) overridesw::UIElementvirtual
SetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
SetExtendedStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetNextTabStopFocus()sw::UIElementprotected
SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual
SetStyle(LONG_PTR style)sw::WndBaseprotected
SetStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetTag(uint64_t tag) overridesw::UIElementvirtual
SetText(const std::wstring &value)sw::WndBaseprotectedvirtual
SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual
Show(int nCmdShow)sw::WndBase
ShowContextMenu(const Point &point)sw::UIElement
TabStopsw::UIElement
Tagsw::UIElement
Textsw::WndBase
TextBox()sw::TextBox
TextBoxBase()sw::TextBoxBaseprotected
TextColorsw::UIElement
Topsw::WndBase
Transparentsw::UIElement
UIElement()sw::UIElementprotected
Undo()sw::TextBoxBase
UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement
Update()sw::WndBase
UpdateChildrenZOrder()sw::UIElementprotected
UpdateFont()sw::WndBase
UpdateSiblingsZOrder()sw::UIElementprotected
UpdateText()sw::WndBaseprotected
VerticalAlignmentsw::UIElement
VerticalScrollBarsw::TextBox
Visiblesw::WndBase
VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual
Widthsw::WndBase
WndBase()sw::WndBaseprotected
WndBase(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndBase(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual
~Control()=0sw::Controlpure virtual
~TextBoxBase()=0sw::TextBoxBasepure virtual
~UIElement()=0sw::UIElementpure virtual
~WndBase()=0sw::WndBasepure virtual
+
+ + + + diff --git a/docs/classsw_1_1_text_box.html b/docs/classsw_1_1_text_box.html new file mode 100644 index 00000000..c9bf1716 --- /dev/null +++ b/docs/classsw_1_1_text_box.html @@ -0,0 +1,846 @@ + + + + + + + +SimpleWindow: sw::TextBox Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
sw::TextBox Class Reference
+
+
+ +

编辑框 + More...

+ +

#include <TextBox.h>

+
+Inheritance diagram for sw::TextBox:
+
+
+ + +sw::TextBoxBase +sw::Control +sw::UIElement +sw::WndBase +sw::ILayout +sw::ITag + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

TextBox ()
 初始化编辑框
 
- Public Member Functions inherited from sw::TextBoxBase
+virtual ~TextBoxBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
void Select (int start, int length)
 选择指定文本内容
 
+void SelectAll ()
 选中所有文本
 
+void ScrollToCaret ()
 将控件内容滚动到当前插入符号位置
 
bool Undo ()
 撤销
 
+void Clear ()
 清空内容
 
- Public Member Functions inherited from sw::Control
+virtual ~Control ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
- Public Member Functions inherited from sw::UIElement
+virtual ~UIElement ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
void RegisterRoutedEvent (RoutedEventType eventType, const RoutedEvent &handler)
 注册路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename T >
void RegisterRoutedEvent (RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))
 注册成员函数作为路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename TEventArgs , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (std::function< void(UIElement &, TEventArgs &)> handler)
 根据事件参数类型注册路由事件
 
template<typename TEventArgs , typename THandleObj , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))
 根据事件参数类型注册成员函数作为路由事件
 
void UnregisterRoutedEvent (RoutedEventType eventType)
 取消对应类型路由事件的注册
 
bool IsRoutedEventRegistered (RoutedEventType eventType)
 判断路由事件是否已被注册
 
bool AddChild (UIElement *element)
 添加子控件
 
bool AddChild (UIElement &element)
 添加子控件
 
bool AddChild (UIElement *element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool AddChild (UIElement &element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool RemoveChildAt (int index)
 移除指定索引处的子控件
 
bool RemoveChild (UIElement *element)
 移除子控件
 
bool RemoveChild (UIElement &element)
 移除子控件
 
+void ClearChildren ()
 移除所有子控件
 
int IndexOf (UIElement *element)
 获取指定元素的索引
 
int IndexOf (UIElement &element)
 获取指定元素的索引
 
+UIElementoperator[] (int index) const
 通过索引获取子控件
 
void ShowContextMenu (const Point &point)
 弹出当前元素的上下文菜单
 
+void MoveToTop ()
 移动到界面顶部
 
+void MoveToBottom ()
 移动到界面底部
 
+bool IsRootElement ()
 判断当前元素是否为根节点
 
+UIElementGetRootElement ()
 获取当前元素所在界面树的根节点
 
+UIElementGetNextElement ()
 获取当前元素在界面树上的下一个节点,若已是最后一个节点则返回根节点
 
+UIElementGetNextTabStopElement ()
 获取下一个TabStop属性为true的元素
 
+Color GetRealBackColor ()
 获取当前要显示的背景颜色:当Transparent为true时获取到祖先节点中首个Transparent为false的背景颜色,否则返回当前元素的背景颜色
 
+Color GetRealTextColor ()
 获取当前要显示的文本颜色:当InheritTextColor为true时获取到祖先节点中首个InheritTextColor为false的文本颜色,否则返回当前元素的文本颜色
 
void SetCursor (HCURSOR hCursor)
 设置鼠标样式
 
void SetCursor (StandardCursor cursor)
 设置鼠标样式
 
+void ResetCursor ()
 将鼠标样式设置为默认样式
 
void SetAlignment (sw::HorizontalAlignment horz, sw::VerticalAlignment vert)
 设置对齐方式
 
virtual uint64_t GetTag () override
 获取Tag
 
virtual void SetTag (uint64_t tag) override
 设置Tag
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取参与布局的子控件数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取对应索引处的子控件,使用此函数前必须先调用GetChildLayoutCount
 
virtual Size GetDesireSize () override
 获取控件所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置当前控件所需的尺寸
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const sw::Rect &finalPosition) override
 安排控件位置
 
- Public Member Functions inherited from sw::WndBase
+virtual ~WndBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void Show (int nCmdShow)
 该函数调用ShowWindow
 
+void Close ()
 发送关闭消息
 
+void Update ()
 该函数调用UpdateWindow
 
+void UpdateFont ()
 更新字体
 
void Redraw (bool erase=false)
 重画
 
+bool IsControl ()
 判断当前对象是否是控件
 
+bool IsVisible ()
 判断当前对象在界面中是否可视,与Visible属性不同的是该函数返回值会受父窗口的影响
 
Point PointToScreen (const Point &point)
 获取用户区点在屏幕上点的位置
 
Point PointFromScreen (const Point &screenPoint)
 获取屏幕上点在当前用户区点的位置
 
+LRESULT SendMessageW (UINT uMsg, WPARAM wParam, LPARAM lParam)
 发送消息
 
HitTestResult NcHitTest (const Point &testPoint)
 测试指定点在窗口的哪一部分
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Attributes

+const Property< boolAutoWrap
 是否自动换行,仅在MultiLine属性为true时有效
 
+const Property< boolMultiLine
 是否允许多行文本
 
+const Property< boolHorizontalScrollBar
 是否显示横向滚动条
 
+const Property< boolVerticalScrollBar
 是否显示纵向滚动条
 
- Public Attributes inherited from sw::TextBoxBase
+const Property< boolReadOnly
 是否只读
 
+const Property< sw::HorizontalAlignment > HorizontalContentAlignment
 文本的水平对齐方式,可设为左对齐、中心对齐、右对齐
 
+const ReadOnlyProperty< boolCanUndo
 是否可以撤销
 
+const Property< boolAcceptTab
 是否允许输入制表符
 
- Public Attributes inherited from sw::UIElement
+const Property< ThicknessMargin
 边距
 
+const Property< HorizontalAlignment > HorizontalAlignment
 水平对齐方式
 
+const Property< VerticalAlignment > VerticalAlignment
 垂直对齐方式
 
+const ReadOnlyProperty< intChildCount
 子控件数量
 
+const Property< boolCollapseWhenHide
 是否在不可见时不参与布局
 
+const ReadOnlyProperty< UIElement * > Parent
 指向父元素的指针,当前元素为顶级窗口时该值为nullptr
 
+const Property< uint64_tTag
 储存用户自定义信息的标记
 
+const Property< uint64_tLayoutTag
 布局标记,对于不同的布局有不同含义
 
+const Property< sw::ContextMenu * > ContextMenu
 右键按下时弹出的菜单
 
+const Property< boolFloat
 元素是否悬浮,若元素悬浮则该元素不会随滚动条滚动而改变位置
 
+const Property< boolTabStop
 表示用户是否可以通过按下Tab键将焦点移动到当前元素
 
+const Property< ColorBackColor
 背景颜色,修改该属性会同时将Transparent属性设为false,对于部分控件该属性可能不生效
 
+const Property< ColorTextColor
 文本颜色,修改该属性会同时将InheritTextColor属性设为false,对于部分控件该属性可能不生效
 
+const Property< boolTransparent
 是否使用透明背景(此属性并非真正意义上的透明,将该属性设为true可继承父元素的背景颜色)
 
+const Property< boolInheritTextColor
 是否继承父元素的文本颜色
 
- Public Attributes inherited from sw::WndBase
+const ReadOnlyProperty< HWNDHandle
 窗口句柄
 
+const Property< sw::FontFont
 字体
 
+const Property< std::wstring > FontName
 字体名称
 
+const Property< doubleFontSize
 字体大小
 
+const Property< sw::FontWeight > FontWeight
 字体粗细
 
+const Property< sw::RectRect
 位置和尺寸
 
+const Property< doubleLeft
 左边
 
+const Property< doubleTop
 顶边
 
+const Property< doubleWidth
 宽度
 
+const Property< doubleHeight
 高度
 
+const ReadOnlyProperty< sw::RectClientRect
 用户区尺寸
 
+const ReadOnlyProperty< doubleClientWidth
 用户区宽度
 
+const ReadOnlyProperty< doubleClientHeight
 用户区高度
 
+const Property< boolEnabled
 窗口或控件是否可用
 
+const Property< boolVisible
 窗口或控件是否可见
 
+const Property< std::wstring > Text
 窗口标题或控件文本
 
+const Property< boolFocused
 窗口是否拥有焦点
 
+const ReadOnlyProperty< WndBase * > Parent
 父窗口
 
+const ReadOnlyProperty< boolIsDestroyed
 是否已销毁,当该值为true时不应该继续使用当前对象
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Additional Inherited Members

- Static Public Member Functions inherited from sw::WndBase
static WndBaseGetWndBase (HWND hwnd)
 通过窗口句柄获取WndBase
 
- Protected Member Functions inherited from sw::TextBoxBase
TextBoxBase ()
 初始化TextBoxBase
 
+void InitTextBoxBase (DWORD dwStyle, DWORD dwExStyle)
 初始化控件
 
virtual std::wstring & GetText () override
 获取窗口文本
 
virtual void OnCommand (int code) override
 当父窗口接收到控件的WM_COMMAND时调用该函数
 
virtual bool OnChar (wchar_t ch, KeyFlags flags) override
 接收到WM_CHAR时调用该函数
 
virtual bool OnKeyDown (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYDOWN时调用该函数
 
virtual void OnDrawFocusRect () override
 绘制虚线框时调用该函数
 
- Protected Member Functions inherited from sw::Control
Control ()
 初始化控件
 
+void ResetHandle ()
 销毁控件句柄并重新初始化,该操作会创建新的句柄并设置样式、文本、字体等
 
+virtual void HandleChenged ()
 控件句柄发生改变时调用该函数
 
- Protected Member Functions inherited from sw::UIElement
UIElement ()
 初始化UIElement
 
void RaiseRoutedEvent (RoutedEventType eventType)
 触发路由事件
 
void RaiseRoutedEvent (RoutedEventArgs &eventArgs)
 触发路由事件
 
+void NotifyLayoutUpdated ()
 通知顶级窗口布局改变
 
+doubleGetArrangeOffsetX ()
 获取Arrange时子元素的水平偏移量
 
+doubleGetArrangeOffsetY ()
 获取Arrange时子元素的垂直偏移量
 
double GetChildRightmost (bool update)
 获取所有子元素在当前元素中最右边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
double GetChildBottommost (bool update)
 获取所有子元素在当前元素中最底边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
+void UpdateChildrenZOrder ()
 更新子元素的Z轴位置
 
+void UpdateSiblingsZOrder ()
 更新兄弟元素的Z轴位置
 
+void SetNextTabStopFocus ()
 设置下一个TabStop属性为true的元素为焦点元素
 
virtual void SetBackColor (Color color, bool redraw)
 设置背景颜色
 
virtual void SetTextColor (Color color, bool redraw)
 设置文本颜色
 
virtual void OnAddedChild (UIElement &element)
 添加子元素后调用该函数
 
virtual void OnRemovedChild (UIElement &element)
 移除子元素后调用该函数
 
+virtual void OnTabStop ()
 通过tab键将焦点移动到当前元素时调用该函数
 
virtual bool SetParent (WndBase *parent) override
 设置父窗口
 
virtual void ParentChanged (WndBase *newParent) override
 父窗口改变时调用此函数
 
virtual void OnEndPaint () override
 在OnPaint函数完成之后调用该函数
 
virtual bool OnClose () override
 接收到WM_CLOSE时调用该函数
 
virtual bool OnMove (Point newClientPosition) override
 接收到WM_MOVE时调用该函数
 
virtual bool OnSize (Size newClientSize) override
 接收到WM_SIZE时调用该函数
 
virtual void OnTextChanged () override
 Text属性更改时调用此函数
 
virtual void VisibleChanged (bool newVisible) override
 Visible属性改变时调用此函数
 
virtual bool OnSetFocus (HWND hPrevFocus) override
 接收到WM_SETFOCUS时调用该函数
 
virtual bool OnKillFocus (HWND hNextFocus) override
 接收到WM_KILLFOCUS时调用该函数
 
virtual bool OnKeyUp (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYUP时调用该函数
 
virtual bool OnMouseMove (Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEMOVE时调用该函数
 
virtual bool OnMouseLeave () override
 接收到WM_MOUSELEAVE时调用该函数
 
virtual bool OnMouseWheel (int wheelDelta, Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEWHEEL时调用该函数
 
virtual bool OnMouseLeftButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONDOWN时调用该函数
 
virtual bool OnMouseLeftButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONUP时调用该函数
 
virtual bool OnMouseRightButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONDOWN时调用该函数
 
virtual bool OnMouseRightButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONUP时调用该函数
 
virtual bool OnMouseMiddleButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONDOWN时调用该函数
 
virtual bool OnMouseMiddleButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONUP时调用该函数
 
virtual bool OnContextMenu (bool isKeyboardMsg, Point mousePosition) override
 接收到WM_CONTEXTMENU后调用目标控件的该函数
 
virtual void OnMenuCommand (int id) override
 当WM_COMMAND接收到菜单命令时调用该函数
 
virtual bool OnColor (HDC hdc, HBRUSH &hRetBrush) override
 父窗口接收到WM_CTLCOLORxxx时调用对应控件的该函数
 
virtual bool OnSetCursor (HWND hwnd, HitTestResult hitTest, int message, bool &result) override
 接收到WM_SETCURSOR消息时调用该函数
 
- Protected Member Functions inherited from sw::WndBase
WndBase ()
 初始化WndBase
 
WndBase (const WndBase &)=delete
 
WndBase (WndBase &&)=delete
 
+WndBaseoperator= (const WndBase &)=delete
 
+WndBaseoperator= (WndBase &&)=delete
 
+void InitWindow (LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为窗口,该函数会调用CreateWindowExW
 
+void InitControl (LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为控件,该函数会调用CreateWindowExW
 
+LONG_PTR GetStyle ()
 获取窗口样式
 
+void SetStyle (LONG_PTR style)
 设置窗口样式
 
+bool GetStyle (LONG_PTR style)
 获取窗口的某个样式
 
+void SetStyle (LONG_PTR style, bool value)
 设置窗口的某个样式
 
+LONG_PTR GetExtendedStyle ()
 获取扩展窗口样式
 
+void SetExtendedStyle (LONG_PTR style)
 设置扩展窗口样式
 
+bool GetExtendedStyle (LONG_PTR style)
 获取窗口的某个扩展样式
 
+void SetExtendedStyle (LONG_PTR style, bool value)
 设置窗口的某个扩展样式
 
+HFONT GetFontHandle ()
 获取字体句柄
 
+LRESULT DefaultWndProc (const ProcMsg &refMsg)
 调用默认的WndProc,对于窗口则调用DefWindowProcW,控件则调用_controlOldWndProc
 
virtual LRESULT WndProc (const ProcMsg &refMsg)
 对WndProc的封装
 
+void UpdateText ()
 更新_text字段
 
virtual void SetText (const std::wstring &value)
 调用SetWindowTextW设置窗口文本
 
virtual bool OnCreate ()
 接收到WM_CREATE时调用该函数
 
virtual bool OnDestroy ()
 接收到WM_DESTROY时调用该函数
 
virtual bool OnPaint ()
 接收到WM_PAINT时调用该函数
 
virtual bool OnMouseLeftButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_LBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseRightButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_RBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseMiddleButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_MBUTTONDBLCLK时调用该函数
 
virtual bool OnDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_DEADCHAR时调用该函数
 
virtual bool OnSysChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSCHAR时调用该函数
 
virtual bool OnSysDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSDEADCHAR时调用该函数
 
virtual bool OnSysKeyDown (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYDOWN时调用该函数
 
virtual bool OnSysKeyUp (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYUP时调用该函数
 
virtual void OnControlCommand (WndBase *pControl, int code, int id)
 当WM_COMMAND接收到控件命令时调用该函数
 
virtual void OnAcceleratorCommand (int id)
 当WM_COMMAND接收到快捷键命令时调用该函数
 
virtual void HandleInitialized (HWND hwnd)
 窗口句柄初始化完成
 
virtual void FontChanged (HFONT hfont)
 字体改变时调用该函数
 
virtual bool OnNotify (NMHDR *pNMHDR)
 接收到WM_NOTIFY后调用该函数
 
virtual void OnNotified (NMHDR *pNMHDR)
 父窗口接收到WM_NOTIFY后调用发出通知控件的该函数
 
virtual bool OnVerticalScroll (int event, int pos)
 接收到WM_VSCROLL时调用目标控件的该函数
 
virtual bool OnHorizontalScroll (int event, int pos)
 接收到WM_HSCROLL时调用目标控件的该函数
 
virtual bool OnEnabledChanged (bool newValue)
 接收到WM_ENABLE时调用该函数
 
virtual bool OnCtlColor (WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)
 接收到WM_CTLCOLORxxx时调用该函数
 
virtual void OnNcHitTest (const Point &testPoint, HitTestResult &result)
 接收到WM_NCHITTEST后调用该函数
 
virtual bool OnEraseBackground (int &result)
 接收到WM_ERASEBKGND时调用该函数
 
virtual bool OnDrawItem (int id, DRAWITEMSTRUCT *pDrawItem)
 接收到WM_DRAWITEM时调用该函数
 
+

Detailed Description

+

编辑框

+

The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_text_box.js b/docs/classsw_1_1_text_box.js new file mode 100644 index 00000000..94318522 --- /dev/null +++ b/docs/classsw_1_1_text_box.js @@ -0,0 +1,8 @@ +var classsw_1_1_text_box = +[ + [ "TextBox", "classsw_1_1_text_box.html#ae2cffffb2a78119a7094d78109060326", null ], + [ "AutoWrap", "classsw_1_1_text_box.html#aada3afc3bd30f97361d20b598903dabb", null ], + [ "HorizontalScrollBar", "classsw_1_1_text_box.html#a4fed0b73690d263fb740f09eda870fdb", null ], + [ "MultiLine", "classsw_1_1_text_box.html#a74bf917de24ebc4ce676306922a080ec", null ], + [ "VerticalScrollBar", "classsw_1_1_text_box.html#a8fa3d053d6386f3aac435133dbe3a05a", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_text_box.png b/docs/classsw_1_1_text_box.png new file mode 100644 index 0000000000000000000000000000000000000000..67796cd4b563f08937a40efe8466ba1f0709d368 GIT binary patch literal 2049 zcmbVNdsGuw9v-q-@WCQ$eSv@$kZNsktKnG!tym0T(u%CI;KAvtI`QfDPeD&@lk8AfdI^`VZ(m`qm`@`f&I-?D%1`*^HL63o3eXXN~v% zJ?Yy@|2`{`NYHWIqlgWc6B^;zWGm<;pgM{?!wJAu3~zJ=rLLA%x}fJ6Wsf-L=I5`(mtY+XX4!88Iq|?Yr<;T)^HOE;!)|&_3*Uf+nFPYa`O)` zX+&KGo0!Q)oY7QwbRY^ENUAW)Sr7FO+N@i_9Zt=C%Gi|aX2Dt|=M zQi6!{QuMi%xV>=MWmIUyLyW=*Ew<9^R)LGh0nonqiU1_z?$?sU& zyD(F7|F&3}vyEX670PJf8fSg-3Ujip`|w;NXzoO`ee~F7P*^xItuJO`TUhi@_rbnu z-3C=+4zw@TIlFYRLCkfn(?$6E7BTss6V5&ORzWkjTj5z!!&8%j0rfUqynz$HA7J~L zg9sJ`HJt1fArvt(C@*)Lgy;31>6<<)Og~QbR~dI^I;0dSO2ATAKXC{i{Zjd6<3~Tk zm1Yf?TR$LI)ToYd7Org3*jzOkb28Wjl&m;mXn%sCduo0E6Yny zP(j{!G}T-`FOoptSZXi&bqEa4E-tT)lja66=`7!P5Hp%>>C5<~^d|UYmh2z^KeeeN z7{qALlK|)CwGtP+1=!{OWwF-s1t{0(jTpc{HYuk7;_g?m|2gp&5F~iTw2xTvF)F^2 zpDS3yw?t-JIq-puEghR@MUNv-_yn}jGGcoWKS!Rh%|@2Ocar&CFy=L}c0p-bBR`1` z{j*P0*3_ISJJrc$ZHAIFHk79gdfhW>``FUPY9TXu@GszSt5Tn1q>UjM%2yXexm(#$ z=R(6dB!XBomLuKOx1OTOFDQ>$pT2gu*9mvfzI6K9L7S1*Xehsf8(=igZ3Ot1O&+@_Mg@h%Vie z?OF<(Q?;HpJUQvOC7j^~-J0-m*HHdZ6M|1FYiwRrJC`+PKC_L28cv<@n5Kmnuxi>0 zNutL&Rjaw*h(dMme}G&DuU&5h(8buIcZM|KdkyHoCmgJlmROy%y-8z%>0tW>0(Uk- zfTvtzy(S$M&C|)(<;{*D5aV5N^mVfRAJY66!C#q~9yUUs*aJ|$MEiT^uT8DJZPO9)_6_N;J@4ZvDZ3bIi z?XepFN)!Rry$zt8W=SlT**(?uSt7F<5`G?f~su)i0<(KsREnR-4x%)JjiKf3rATUa` zvIe%G1U)o5T?eqwi$e){m@6pH?sxwqMt&EOuTLkoU?P3(p{9wgQ89bWgBlM-8@Go5Mv!%{ r-|mVXL?+|0QblIVgb0wto2-VrCT{1R`T9Ndum%W+i9z)r#(niKyc8C$ literal 0 HcmV?d00001 diff --git a/docs/classsw_1_1_text_box_base-members.html b/docs/classsw_1_1_text_box_base-members.html new file mode 100644 index 00000000..2d5886c4 --- /dev/null +++ b/docs/classsw_1_1_text_box_base-members.html @@ -0,0 +1,300 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::TextBoxBase Member List
+
+
+ +

This is the complete list of members for sw::TextBoxBase, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AcceptTabsw::TextBoxBase
AddChild(UIElement *element)sw::UIElement
AddChild(UIElement &element)sw::UIElement
AddChild(UIElement *element, uint64_t layoutTag)sw::UIElement
AddChild(UIElement &element, uint64_t layoutTag)sw::UIElement
Arrange(const sw::Rect &finalPosition) overridesw::UIElementvirtual
BackColorsw::UIElement
CanUndosw::TextBoxBase
ChildCountsw::UIElement
Clear()sw::TextBoxBase
ClearChildren()sw::UIElement
ClientHeightsw::WndBase
ClientRectsw::WndBase
ClientWidthsw::WndBase
Close()sw::WndBase
CollapseWhenHidesw::UIElement
ContextMenusw::UIElement
Control()sw::Controlprotected
DefaultWndProc(const ProcMsg &refMsg)sw::WndBaseprotected
Enabledsw::WndBase
Floatsw::UIElement
Focusedsw::WndBase
Fontsw::WndBase
FontChanged(HFONT hfont)sw::WndBaseprotectedvirtual
FontNamesw::WndBase
FontSizesw::WndBase
FontWeightsw::WndBase
GetArrangeOffsetX()sw::UIElementprotected
GetArrangeOffsetY()sw::UIElementprotected
GetChildBottommost(bool update)sw::UIElementprotected
GetChildLayoutAt(int index) overridesw::UIElementvirtual
GetChildLayoutCount() overridesw::UIElementvirtual
GetChildRightmost(bool update)sw::UIElementprotected
GetDesireSize() overridesw::UIElementvirtual
GetExtendedStyle()sw::WndBaseprotected
GetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
GetFontHandle()sw::WndBaseprotected
GetLayoutTag() overridesw::UIElementvirtual
GetNextElement()sw::UIElement
GetNextTabStopElement()sw::UIElement
GetRealBackColor()sw::UIElement
GetRealTextColor()sw::UIElement
GetRootElement()sw::UIElement
GetStyle()sw::WndBaseprotected
GetStyle(LONG_PTR style)sw::WndBaseprotected
GetTag() overridesw::UIElementvirtual
GetText() overridesw::TextBoxBaseprotectedvirtual
GetWndBase(HWND hwnd)sw::WndBasestatic
Handlesw::WndBase
HandleChenged()sw::Controlprotectedvirtual
HandleInitialized(HWND hwnd)sw::WndBaseprotectedvirtual
Heightsw::WndBase
HorizontalAlignmentsw::UIElement
HorizontalContentAlignmentsw::TextBoxBase
IndexOf(UIElement *element)sw::UIElement
IndexOf(UIElement &element)sw::UIElement
InheritTextColorsw::UIElement
InitControl(LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
InitTextBoxBase(DWORD dwStyle, DWORD dwExStyle)sw::TextBoxBaseprotected
InitWindow(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
IsControl()sw::WndBase
IsDestroyedsw::WndBase
IsRootElement()sw::UIElement
IsRoutedEventRegistered(RoutedEventType eventType)sw::UIElement
IsVisible()sw::WndBase
LayoutTagsw::UIElement
Leftsw::WndBase
Marginsw::UIElement
Measure(const Size &availableSize) overridesw::UIElementvirtual
MoveToBottom()sw::UIElement
MoveToTop()sw::UIElement
NcHitTest(const Point &testPoint)sw::WndBase
NotifyLayoutUpdated()sw::UIElementprotected
OnAcceleratorCommand(int id)sw::WndBaseprotectedvirtual
OnAddedChild(UIElement &element)sw::UIElementprotectedvirtual
OnChar(wchar_t ch, KeyFlags flags) overridesw::TextBoxBaseprotectedvirtual
OnClose() overridesw::UIElementprotectedvirtual
OnColor(HDC hdc, HBRUSH &hRetBrush) overridesw::UIElementprotectedvirtual
OnCommand(int code) overridesw::TextBoxBaseprotectedvirtual
OnContextMenu(bool isKeyboardMsg, Point mousePosition) overridesw::UIElementprotectedvirtual
OnControlCommand(WndBase *pControl, int code, int id)sw::WndBaseprotectedvirtual
OnCreate()sw::WndBaseprotectedvirtual
OnCtlColor(WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)sw::WndBaseprotectedvirtual
OnDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnDestroy()sw::WndBaseprotectedvirtual
OnDrawFocusRect() overridesw::TextBoxBaseprotectedvirtual
OnDrawItem(int id, DRAWITEMSTRUCT *pDrawItem)sw::WndBaseprotectedvirtual
OnEnabledChanged(bool newValue)sw::WndBaseprotectedvirtual
OnEndPaint() overridesw::UIElementprotectedvirtual
OnEraseBackground(int &result)sw::WndBaseprotectedvirtual
OnHorizontalScroll(int event, int pos)sw::WndBaseprotectedvirtual
OnKeyDown(VirtualKey key, KeyFlags flags) overridesw::TextBoxBaseprotectedvirtual
OnKeyUp(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKillFocus(HWND hNextFocus) overridesw::UIElementprotectedvirtual
OnMenuCommand(int id) overridesw::UIElementprotectedvirtual
OnMouseLeave() overridesw::UIElementprotectedvirtual
OnMouseLeftButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseLeftButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseMiddleButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMove(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseRightButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseWheel(int wheelDelta, Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMove(Point newClientPosition) overridesw::UIElementprotectedvirtual
OnNcHitTest(const Point &testPoint, HitTestResult &result)sw::WndBaseprotectedvirtual
OnNotified(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnNotify(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnPaint()sw::WndBaseprotectedvirtual
OnRemovedChild(UIElement &element)sw::UIElementprotectedvirtual
OnSetCursor(HWND hwnd, HitTestResult hitTest, int message, bool &result) overridesw::UIElementprotectedvirtual
OnSetFocus(HWND hPrevFocus) overridesw::UIElementprotectedvirtual
OnSize(Size newClientSize) overridesw::UIElementprotectedvirtual
OnSysChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyDown(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyUp(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnTabStop()sw::UIElementprotectedvirtual
OnTextChanged() overridesw::UIElementprotectedvirtual
OnVerticalScroll(int event, int pos)sw::WndBaseprotectedvirtual
operator=(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator=(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator[](int index) constsw::UIElement
Parentsw::UIElement
ParentChanged(WndBase *newParent) overridesw::UIElementprotectedvirtual
PointFromScreen(const Point &screenPoint)sw::WndBase
PointToScreen(const Point &point)sw::WndBase
RaiseRoutedEvent(RoutedEventType eventType)sw::UIElementprotected
RaiseRoutedEvent(RoutedEventArgs &eventArgs)sw::UIElementprotected
ReadOnlysw::TextBoxBase
Rectsw::WndBase
Redraw(bool erase=false)sw::WndBase
RegisterRoutedEvent(RoutedEventType eventType, const RoutedEvent &handler)sw::UIElement
RegisterRoutedEvent(RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))sw::UIElementinline
RegisterRoutedEvent(std::function< void(UIElement &, TEventArgs &)> handler)sw::UIElementinline
RegisterRoutedEvent(THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))sw::UIElementinline
RemoveChild(UIElement *element)sw::UIElement
RemoveChild(UIElement &element)sw::UIElement
RemoveChildAt(int index)sw::UIElement
ResetCursor()sw::UIElement
ResetHandle()sw::Controlprotected
ScrollToCaret()sw::TextBoxBase
Select(int start, int length)sw::TextBoxBase
SelectAll()sw::TextBoxBase
SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase
SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement
SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual
SetCursor(HCURSOR hCursor)sw::UIElement
SetCursor(StandardCursor cursor)sw::UIElement
SetDesireSize(const Size &size) overridesw::UIElementvirtual
SetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
SetExtendedStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetNextTabStopFocus()sw::UIElementprotected
SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual
SetStyle(LONG_PTR style)sw::WndBaseprotected
SetStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetTag(uint64_t tag) overridesw::UIElementvirtual
SetText(const std::wstring &value)sw::WndBaseprotectedvirtual
SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual
Show(int nCmdShow)sw::WndBase
ShowContextMenu(const Point &point)sw::UIElement
TabStopsw::UIElement
Tagsw::UIElement
Textsw::WndBase
TextBoxBase()sw::TextBoxBaseprotected
TextColorsw::UIElement
Topsw::WndBase
Transparentsw::UIElement
UIElement()sw::UIElementprotected
Undo()sw::TextBoxBase
UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement
Update()sw::WndBase
UpdateChildrenZOrder()sw::UIElementprotected
UpdateFont()sw::WndBase
UpdateSiblingsZOrder()sw::UIElementprotected
UpdateText()sw::WndBaseprotected
VerticalAlignmentsw::UIElement
Visiblesw::WndBase
VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual
Widthsw::WndBase
WndBase()sw::WndBaseprotected
WndBase(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndBase(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual
~Control()=0sw::Controlpure virtual
~TextBoxBase()=0sw::TextBoxBasepure virtual
~UIElement()=0sw::UIElementpure virtual
~WndBase()=0sw::WndBasepure virtual
+
+ + + + diff --git a/docs/classsw_1_1_text_box_base.html b/docs/classsw_1_1_text_box_base.html new file mode 100644 index 00000000..72d7707a --- /dev/null +++ b/docs/classsw_1_1_text_box_base.html @@ -0,0 +1,1055 @@ + + + + + + + +SimpleWindow: sw::TextBoxBase Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
sw::TextBoxBase Class Referenceabstract
+
+
+ +

窗口类名为EDIT的控件类型的基类 + More...

+ +

#include <TextBoxBase.h>

+
+Inheritance diagram for sw::TextBoxBase:
+
+
+ + +sw::Control +sw::UIElement +sw::WndBase +sw::ILayout +sw::ITag +sw::PasswordBox +sw::TextBox + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

+virtual ~TextBoxBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
void Select (int start, int length)
 选择指定文本内容
 
+void SelectAll ()
 选中所有文本
 
+void ScrollToCaret ()
 将控件内容滚动到当前插入符号位置
 
bool Undo ()
 撤销
 
+void Clear ()
 清空内容
 
- Public Member Functions inherited from sw::Control
+virtual ~Control ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
- Public Member Functions inherited from sw::UIElement
+virtual ~UIElement ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
void RegisterRoutedEvent (RoutedEventType eventType, const RoutedEvent &handler)
 注册路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename T >
void RegisterRoutedEvent (RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))
 注册成员函数作为路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename TEventArgs , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (std::function< void(UIElement &, TEventArgs &)> handler)
 根据事件参数类型注册路由事件
 
template<typename TEventArgs , typename THandleObj , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))
 根据事件参数类型注册成员函数作为路由事件
 
void UnregisterRoutedEvent (RoutedEventType eventType)
 取消对应类型路由事件的注册
 
bool IsRoutedEventRegistered (RoutedEventType eventType)
 判断路由事件是否已被注册
 
bool AddChild (UIElement *element)
 添加子控件
 
bool AddChild (UIElement &element)
 添加子控件
 
bool AddChild (UIElement *element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool AddChild (UIElement &element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool RemoveChildAt (int index)
 移除指定索引处的子控件
 
bool RemoveChild (UIElement *element)
 移除子控件
 
bool RemoveChild (UIElement &element)
 移除子控件
 
+void ClearChildren ()
 移除所有子控件
 
int IndexOf (UIElement *element)
 获取指定元素的索引
 
int IndexOf (UIElement &element)
 获取指定元素的索引
 
+UIElementoperator[] (int index) const
 通过索引获取子控件
 
void ShowContextMenu (const Point &point)
 弹出当前元素的上下文菜单
 
+void MoveToTop ()
 移动到界面顶部
 
+void MoveToBottom ()
 移动到界面底部
 
+bool IsRootElement ()
 判断当前元素是否为根节点
 
+UIElementGetRootElement ()
 获取当前元素所在界面树的根节点
 
+UIElementGetNextElement ()
 获取当前元素在界面树上的下一个节点,若已是最后一个节点则返回根节点
 
+UIElementGetNextTabStopElement ()
 获取下一个TabStop属性为true的元素
 
+Color GetRealBackColor ()
 获取当前要显示的背景颜色:当Transparent为true时获取到祖先节点中首个Transparent为false的背景颜色,否则返回当前元素的背景颜色
 
+Color GetRealTextColor ()
 获取当前要显示的文本颜色:当InheritTextColor为true时获取到祖先节点中首个InheritTextColor为false的文本颜色,否则返回当前元素的文本颜色
 
void SetCursor (HCURSOR hCursor)
 设置鼠标样式
 
void SetCursor (StandardCursor cursor)
 设置鼠标样式
 
+void ResetCursor ()
 将鼠标样式设置为默认样式
 
void SetAlignment (sw::HorizontalAlignment horz, sw::VerticalAlignment vert)
 设置对齐方式
 
virtual uint64_t GetTag () override
 获取Tag
 
virtual void SetTag (uint64_t tag) override
 设置Tag
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取参与布局的子控件数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取对应索引处的子控件,使用此函数前必须先调用GetChildLayoutCount
 
virtual Size GetDesireSize () override
 获取控件所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置当前控件所需的尺寸
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const sw::Rect &finalPosition) override
 安排控件位置
 
- Public Member Functions inherited from sw::WndBase
+virtual ~WndBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void Show (int nCmdShow)
 该函数调用ShowWindow
 
+void Close ()
 发送关闭消息
 
+void Update ()
 该函数调用UpdateWindow
 
+void UpdateFont ()
 更新字体
 
void Redraw (bool erase=false)
 重画
 
+bool IsControl ()
 判断当前对象是否是控件
 
+bool IsVisible ()
 判断当前对象在界面中是否可视,与Visible属性不同的是该函数返回值会受父窗口的影响
 
Point PointToScreen (const Point &point)
 获取用户区点在屏幕上点的位置
 
Point PointFromScreen (const Point &screenPoint)
 获取屏幕上点在当前用户区点的位置
 
+LRESULT SendMessageW (UINT uMsg, WPARAM wParam, LPARAM lParam)
 发送消息
 
HitTestResult NcHitTest (const Point &testPoint)
 测试指定点在窗口的哪一部分
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Attributes

+const Property< boolReadOnly
 是否只读
 
+const Property< sw::HorizontalAlignment > HorizontalContentAlignment
 文本的水平对齐方式,可设为左对齐、中心对齐、右对齐
 
+const ReadOnlyProperty< boolCanUndo
 是否可以撤销
 
+const Property< boolAcceptTab
 是否允许输入制表符
 
- Public Attributes inherited from sw::UIElement
+const Property< ThicknessMargin
 边距
 
+const Property< HorizontalAlignment > HorizontalAlignment
 水平对齐方式
 
+const Property< VerticalAlignment > VerticalAlignment
 垂直对齐方式
 
+const ReadOnlyProperty< intChildCount
 子控件数量
 
+const Property< boolCollapseWhenHide
 是否在不可见时不参与布局
 
+const ReadOnlyProperty< UIElement * > Parent
 指向父元素的指针,当前元素为顶级窗口时该值为nullptr
 
+const Property< uint64_tTag
 储存用户自定义信息的标记
 
+const Property< uint64_tLayoutTag
 布局标记,对于不同的布局有不同含义
 
+const Property< sw::ContextMenu * > ContextMenu
 右键按下时弹出的菜单
 
+const Property< boolFloat
 元素是否悬浮,若元素悬浮则该元素不会随滚动条滚动而改变位置
 
+const Property< boolTabStop
 表示用户是否可以通过按下Tab键将焦点移动到当前元素
 
+const Property< ColorBackColor
 背景颜色,修改该属性会同时将Transparent属性设为false,对于部分控件该属性可能不生效
 
+const Property< ColorTextColor
 文本颜色,修改该属性会同时将InheritTextColor属性设为false,对于部分控件该属性可能不生效
 
+const Property< boolTransparent
 是否使用透明背景(此属性并非真正意义上的透明,将该属性设为true可继承父元素的背景颜色)
 
+const Property< boolInheritTextColor
 是否继承父元素的文本颜色
 
- Public Attributes inherited from sw::WndBase
+const ReadOnlyProperty< HWNDHandle
 窗口句柄
 
+const Property< sw::FontFont
 字体
 
+const Property< std::wstring > FontName
 字体名称
 
+const Property< doubleFontSize
 字体大小
 
+const Property< sw::FontWeight > FontWeight
 字体粗细
 
+const Property< sw::RectRect
 位置和尺寸
 
+const Property< doubleLeft
 左边
 
+const Property< doubleTop
 顶边
 
+const Property< doubleWidth
 宽度
 
+const Property< doubleHeight
 高度
 
+const ReadOnlyProperty< sw::RectClientRect
 用户区尺寸
 
+const ReadOnlyProperty< doubleClientWidth
 用户区宽度
 
+const ReadOnlyProperty< doubleClientHeight
 用户区高度
 
+const Property< boolEnabled
 窗口或控件是否可用
 
+const Property< boolVisible
 窗口或控件是否可见
 
+const Property< std::wstring > Text
 窗口标题或控件文本
 
+const Property< boolFocused
 窗口是否拥有焦点
 
+const ReadOnlyProperty< WndBase * > Parent
 父窗口
 
+const ReadOnlyProperty< boolIsDestroyed
 是否已销毁,当该值为true时不应该继续使用当前对象
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Protected Member Functions

TextBoxBase ()
 初始化TextBoxBase
 
+void InitTextBoxBase (DWORD dwStyle, DWORD dwExStyle)
 初始化控件
 
virtual std::wstring & GetText () override
 获取窗口文本
 
virtual void OnCommand (int code) override
 当父窗口接收到控件的WM_COMMAND时调用该函数
 
virtual bool OnChar (wchar_t ch, KeyFlags flags) override
 接收到WM_CHAR时调用该函数
 
virtual bool OnKeyDown (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYDOWN时调用该函数
 
virtual void OnDrawFocusRect () override
 绘制虚线框时调用该函数
 
- Protected Member Functions inherited from sw::Control
Control ()
 初始化控件
 
+void ResetHandle ()
 销毁控件句柄并重新初始化,该操作会创建新的句柄并设置样式、文本、字体等
 
+virtual void HandleChenged ()
 控件句柄发生改变时调用该函数
 
- Protected Member Functions inherited from sw::UIElement
UIElement ()
 初始化UIElement
 
void RaiseRoutedEvent (RoutedEventType eventType)
 触发路由事件
 
void RaiseRoutedEvent (RoutedEventArgs &eventArgs)
 触发路由事件
 
+void NotifyLayoutUpdated ()
 通知顶级窗口布局改变
 
+doubleGetArrangeOffsetX ()
 获取Arrange时子元素的水平偏移量
 
+doubleGetArrangeOffsetY ()
 获取Arrange时子元素的垂直偏移量
 
double GetChildRightmost (bool update)
 获取所有子元素在当前元素中最右边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
double GetChildBottommost (bool update)
 获取所有子元素在当前元素中最底边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
+void UpdateChildrenZOrder ()
 更新子元素的Z轴位置
 
+void UpdateSiblingsZOrder ()
 更新兄弟元素的Z轴位置
 
+void SetNextTabStopFocus ()
 设置下一个TabStop属性为true的元素为焦点元素
 
virtual void SetBackColor (Color color, bool redraw)
 设置背景颜色
 
virtual void SetTextColor (Color color, bool redraw)
 设置文本颜色
 
virtual void OnAddedChild (UIElement &element)
 添加子元素后调用该函数
 
virtual void OnRemovedChild (UIElement &element)
 移除子元素后调用该函数
 
+virtual void OnTabStop ()
 通过tab键将焦点移动到当前元素时调用该函数
 
virtual bool SetParent (WndBase *parent) override
 设置父窗口
 
virtual void ParentChanged (WndBase *newParent) override
 父窗口改变时调用此函数
 
virtual void OnEndPaint () override
 在OnPaint函数完成之后调用该函数
 
virtual bool OnClose () override
 接收到WM_CLOSE时调用该函数
 
virtual bool OnMove (Point newClientPosition) override
 接收到WM_MOVE时调用该函数
 
virtual bool OnSize (Size newClientSize) override
 接收到WM_SIZE时调用该函数
 
virtual void OnTextChanged () override
 Text属性更改时调用此函数
 
virtual void VisibleChanged (bool newVisible) override
 Visible属性改变时调用此函数
 
virtual bool OnSetFocus (HWND hPrevFocus) override
 接收到WM_SETFOCUS时调用该函数
 
virtual bool OnKillFocus (HWND hNextFocus) override
 接收到WM_KILLFOCUS时调用该函数
 
virtual bool OnKeyUp (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYUP时调用该函数
 
virtual bool OnMouseMove (Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEMOVE时调用该函数
 
virtual bool OnMouseLeave () override
 接收到WM_MOUSELEAVE时调用该函数
 
virtual bool OnMouseWheel (int wheelDelta, Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEWHEEL时调用该函数
 
virtual bool OnMouseLeftButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONDOWN时调用该函数
 
virtual bool OnMouseLeftButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONUP时调用该函数
 
virtual bool OnMouseRightButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONDOWN时调用该函数
 
virtual bool OnMouseRightButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONUP时调用该函数
 
virtual bool OnMouseMiddleButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONDOWN时调用该函数
 
virtual bool OnMouseMiddleButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONUP时调用该函数
 
virtual bool OnContextMenu (bool isKeyboardMsg, Point mousePosition) override
 接收到WM_CONTEXTMENU后调用目标控件的该函数
 
virtual void OnMenuCommand (int id) override
 当WM_COMMAND接收到菜单命令时调用该函数
 
virtual bool OnColor (HDC hdc, HBRUSH &hRetBrush) override
 父窗口接收到WM_CTLCOLORxxx时调用对应控件的该函数
 
virtual bool OnSetCursor (HWND hwnd, HitTestResult hitTest, int message, bool &result) override
 接收到WM_SETCURSOR消息时调用该函数
 
- Protected Member Functions inherited from sw::WndBase
WndBase ()
 初始化WndBase
 
WndBase (const WndBase &)=delete
 
WndBase (WndBase &&)=delete
 
+WndBaseoperator= (const WndBase &)=delete
 
+WndBaseoperator= (WndBase &&)=delete
 
+void InitWindow (LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为窗口,该函数会调用CreateWindowExW
 
+void InitControl (LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为控件,该函数会调用CreateWindowExW
 
+LONG_PTR GetStyle ()
 获取窗口样式
 
+void SetStyle (LONG_PTR style)
 设置窗口样式
 
+bool GetStyle (LONG_PTR style)
 获取窗口的某个样式
 
+void SetStyle (LONG_PTR style, bool value)
 设置窗口的某个样式
 
+LONG_PTR GetExtendedStyle ()
 获取扩展窗口样式
 
+void SetExtendedStyle (LONG_PTR style)
 设置扩展窗口样式
 
+bool GetExtendedStyle (LONG_PTR style)
 获取窗口的某个扩展样式
 
+void SetExtendedStyle (LONG_PTR style, bool value)
 设置窗口的某个扩展样式
 
+HFONT GetFontHandle ()
 获取字体句柄
 
+LRESULT DefaultWndProc (const ProcMsg &refMsg)
 调用默认的WndProc,对于窗口则调用DefWindowProcW,控件则调用_controlOldWndProc
 
virtual LRESULT WndProc (const ProcMsg &refMsg)
 对WndProc的封装
 
+void UpdateText ()
 更新_text字段
 
virtual void SetText (const std::wstring &value)
 调用SetWindowTextW设置窗口文本
 
virtual bool OnCreate ()
 接收到WM_CREATE时调用该函数
 
virtual bool OnDestroy ()
 接收到WM_DESTROY时调用该函数
 
virtual bool OnPaint ()
 接收到WM_PAINT时调用该函数
 
virtual bool OnMouseLeftButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_LBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseRightButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_RBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseMiddleButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_MBUTTONDBLCLK时调用该函数
 
virtual bool OnDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_DEADCHAR时调用该函数
 
virtual bool OnSysChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSCHAR时调用该函数
 
virtual bool OnSysDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSDEADCHAR时调用该函数
 
virtual bool OnSysKeyDown (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYDOWN时调用该函数
 
virtual bool OnSysKeyUp (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYUP时调用该函数
 
virtual void OnControlCommand (WndBase *pControl, int code, int id)
 当WM_COMMAND接收到控件命令时调用该函数
 
virtual void OnAcceleratorCommand (int id)
 当WM_COMMAND接收到快捷键命令时调用该函数
 
virtual void HandleInitialized (HWND hwnd)
 窗口句柄初始化完成
 
virtual void FontChanged (HFONT hfont)
 字体改变时调用该函数
 
virtual bool OnNotify (NMHDR *pNMHDR)
 接收到WM_NOTIFY后调用该函数
 
virtual void OnNotified (NMHDR *pNMHDR)
 父窗口接收到WM_NOTIFY后调用发出通知控件的该函数
 
virtual bool OnVerticalScroll (int event, int pos)
 接收到WM_VSCROLL时调用目标控件的该函数
 
virtual bool OnHorizontalScroll (int event, int pos)
 接收到WM_HSCROLL时调用目标控件的该函数
 
virtual bool OnEnabledChanged (bool newValue)
 接收到WM_ENABLE时调用该函数
 
virtual bool OnCtlColor (WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)
 接收到WM_CTLCOLORxxx时调用该函数
 
virtual void OnNcHitTest (const Point &testPoint, HitTestResult &result)
 接收到WM_NCHITTEST后调用该函数
 
virtual bool OnEraseBackground (int &result)
 接收到WM_ERASEBKGND时调用该函数
 
virtual bool OnDrawItem (int id, DRAWITEMSTRUCT *pDrawItem)
 接收到WM_DRAWITEM时调用该函数
 
+ + + + + +

+Additional Inherited Members

- Static Public Member Functions inherited from sw::WndBase
static WndBaseGetWndBase (HWND hwnd)
 通过窗口句柄获取WndBase
 
+

Detailed Description

+

窗口类名为EDIT的控件类型的基类

+

Member Function Documentation

+ +

◆ GetText()

+ +
+
+ + + + + +
+ + + + + + + +
virtual std::wstring & sw::TextBoxBase::GetText ()
+
+overrideprotectedvirtual
+
+ +

获取窗口文本

+
Returns
编辑框的文本内容
+ +

Reimplemented from sw::WndBase.

+ +
+
+ +

◆ OnChar()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::TextBoxBase::OnChar (wchar_t ch,
KeyFlags flags )
+
+overrideprotectedvirtual
+
+ +

接收到WM_CHAR时调用该函数

+
Parameters
+ + + +
ch按键的字符代码
flags附加信息
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented from sw::UIElement.

+ +
+
+ +

◆ OnCommand()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::TextBoxBase::OnCommand (int code)
+
+overrideprotectedvirtual
+
+ +

当父窗口接收到控件的WM_COMMAND时调用该函数

+
Parameters
+ + +
code通知代码
+
+
+ +

Reimplemented from sw::WndBase.

+ +
+
+ +

◆ OnDrawFocusRect()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::TextBoxBase::OnDrawFocusRect ()
+
+overrideprotectedvirtual
+
+ +

绘制虚线框时调用该函数

+ +

Reimplemented from sw::UIElement.

+ +
+
+ +

◆ OnKeyDown()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::TextBoxBase::OnKeyDown (VirtualKey key,
KeyFlags flags )
+
+overrideprotectedvirtual
+
+ +

接收到WM_KEYDOWN时调用该函数

+
Parameters
+ + + +
key虚拟按键
flags附加信息
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented from sw::UIElement.

+ +
+
+ +

◆ Select()

+ +
+
+ + + + + + + + + + + +
void sw::TextBoxBase::Select (int start,
int length )
+
+ +

选择指定文本内容

+
Parameters
+ + + +
start起始位置
length选择文本的长度
+
+
+ +
+
+ +

◆ Undo()

+ +
+
+ + + + + + + +
bool sw::TextBoxBase::Undo ()
+
+ +

撤销

+
Returns
操作是否成功
+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_text_box_base.js b/docs/classsw_1_1_text_box_base.js new file mode 100644 index 00000000..2e077099 --- /dev/null +++ b/docs/classsw_1_1_text_box_base.js @@ -0,0 +1,20 @@ +var classsw_1_1_text_box_base = +[ + [ "TextBoxBase", "classsw_1_1_text_box_base.html#a67d628d8d0d746292ef4350ad1a5a84a", null ], + [ "~TextBoxBase", "classsw_1_1_text_box_base.html#a2fb455bb1ed2c1b3f3c12a82a5a4b720", null ], + [ "Clear", "classsw_1_1_text_box_base.html#a9100aef79b476bac6f50933c7d73d5ee", null ], + [ "GetText", "classsw_1_1_text_box_base.html#a364003a9b7b601f385861108a4e3273e", null ], + [ "InitTextBoxBase", "classsw_1_1_text_box_base.html#a3a6843f34013ed31f3828263f0984233", null ], + [ "OnChar", "classsw_1_1_text_box_base.html#aa88527cddd82fc158e0ac3ca662604c1", null ], + [ "OnCommand", "classsw_1_1_text_box_base.html#a1e7210993dcbf6cfdaff3dcc3246dfd5", null ], + [ "OnDrawFocusRect", "classsw_1_1_text_box_base.html#a89b507ceef32d379c93a60b5989b74fe", null ], + [ "OnKeyDown", "classsw_1_1_text_box_base.html#a83561e8ffe232f84c13dc14c941600f6", null ], + [ "ScrollToCaret", "classsw_1_1_text_box_base.html#a221765241d6ca76156d3564440306d51", null ], + [ "Select", "classsw_1_1_text_box_base.html#aa22188dc026379eb3e76a2415b8bf0c9", null ], + [ "SelectAll", "classsw_1_1_text_box_base.html#aa1e5c56604dd112fb3f116d12c1603d4", null ], + [ "Undo", "classsw_1_1_text_box_base.html#a7c7ccda9b5161642d002a88cab7da1c3", null ], + [ "AcceptTab", "classsw_1_1_text_box_base.html#a91bad54640a2bdd486232d3836611608", null ], + [ "CanUndo", "classsw_1_1_text_box_base.html#a63ae3c3e273a7a69d0f7ca07b102f64b", null ], + [ "HorizontalContentAlignment", "classsw_1_1_text_box_base.html#abaa4c52632b7a8d2bdb41341fc1ab0e8", null ], + [ "ReadOnly", "classsw_1_1_text_box_base.html#a77e44c645068eb384a5e77765fdccbae", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_text_box_base.png b/docs/classsw_1_1_text_box_base.png new file mode 100644 index 0000000000000000000000000000000000000000..f7ba46a759c174d9cd0a4218dd749d07b504fdcf GIT binary patch literal 2238 zcmai0c~nz(7Jgw0h03A_s0f1!1_3ebvKWQxs2GKmpoC&r)DWmZ!fIjx87f#8(2Nj3 zg=j0AWfKV`m;ezFq5|Qt3Bx16h!RrrhzyHB2+T`o<{Zuxo%hFkcYF8U_kH)?^Sj}V z_0amt@GAfSv@pky_y7Qc0LzQ&e}eB9r)#a?hmp7E>7#3FYp^&eoxezLE^)E7j5f&a zm>e4$gYEk|@rAHYBi;vl3V`+BFK3m!J^)b1V2&I*eF*_E39)6idSB$>^otZv7VmRj zw6tNgvDSb2H5C`49iHB8V_6ixt;6GlWnf#$>)jac_1MhJ_$@oEA~>0PKZ;KHXi}{( zc7qkj*61PfDerkFkqO3p@i!#TK65U=#blHUYO)R-?Aj40k3W-nbAcv$@Nj$+ML*h(d97PHC$kk5R)QBx(=it;HR`mI_NuuT9t_wL|PnDC;4J zqJVmnUO^wS@~MQ7=9*HvQyuHxhZj)v_;P~+!||9;_gu^YmpUIGCN+*Wf)pwN}f%u7GK`4`(`4?o|xSbD34~#!kXF1{xOf|`#t|w2#h4Tnn|wbI;305g}N)g z9NA;7XgRaNGgD>pDWAYw<>_Oop#oyszR#JI6jPn=&#rZ4@d`k-%CgiByD~1pE zCOucx#cNaaL5@WP2QaCDJVJj+ucmI=+*~kd{vYw`NBa~5>DN2ec&gW%D2Ve_gpJgn z*ksTM@qr(gj!{VhJ{!7mB5Y>ct_8y}>^s3Pf|#alWB7oQh1--TK2|B{JC&!(c<;$v zEQAs@;(O!8#qQ3E85jO?5KF@U1=KB@Hi?bqS%9Sk=8hIW1ud@qSSJy;V2ySbJ)4qs z6@Z6DM8ro$)<2iHQzbe9m0KlOFv|*)-p-;Z&gU_!VO%4X{FBLQ4+R~ zt%W5+h_Kx=MZchLa|jnm9}QMjeO@sb8c|gKQh2T#`?{E1F&SKG-gDNj0IST+ zf}6n%Ucm(p_=nCWiT+Any3jVOC92drh!U9EXKfOrLk)RQq+~gwKMIi>dz^NM^*kC@wPD; zpCI|O!DIT$X$PE5F+E3>Gp+2k)OAB{+;c!1Q~KR}ZfI*6R z4UD1SDIsO^(3@C+k$i4rGtRpWKKiVdV}hTWfC#g7hJ(-L&{#|cle;DB!SnrwJl5yo*4*Vo9o z(AR;qeK;=U_ipDCxl6>}Wj|(%Vj?|}2brNLW&N(yT(TQ~I^YB_e7%QkNt!Lzv8on= zT>eXNX*(4i)_ezi_1?blOg3xMQkQylG{MG*crHT-Y0u+#Gs*_;Rk5;s?^Q|tYuoyR zCh8BqOzVky8Y17C7&}-y*}=NG<}4(MXBb z_HiBl!aj}ydgGjgKjzb)Tmml9k<5a;x$c3+dJ4xmQE7FXW)oCIso2vLfok;%>KJy- z$jvWndd=6u2;d@B-Jakmj4?k=Ntot9ARL@fKv(giE~bK`7A0O^V$iagE^ z@|M+!E@zmk@8NhTKe1Ix8kf7M`Aeu8{PTggb{S!;8t-WE=(uZ=haG7Js1SFFAqE{e zyHL>(`O&V_)51wupv;Q4KUcf_+Vk#<3J-1G+{!b}=1#R_C*6ghEBz4n#J^LATtT+R v?$Jd`!k(^2>ksg`iD8T@-@+J=jPEcYtVEMLNv-fn1Hc@`9;rNh_R7BijDAXo literal 0 HcmV?d00001 diff --git a/docs/classsw_1_1_u_i_element-members.html b/docs/classsw_1_1_u_i_element-members.html new file mode 100644 index 00000000..21122c8b --- /dev/null +++ b/docs/classsw_1_1_u_i_element-members.html @@ -0,0 +1,284 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::UIElement Member List
+
+
+ +

This is the complete list of members for sw::UIElement, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AddChild(UIElement *element)sw::UIElement
AddChild(UIElement &element)sw::UIElement
AddChild(UIElement *element, uint64_t layoutTag)sw::UIElement
AddChild(UIElement &element, uint64_t layoutTag)sw::UIElement
Arrange(const sw::Rect &finalPosition) overridesw::UIElementvirtual
BackColorsw::UIElement
ChildCountsw::UIElement
ClearChildren()sw::UIElement
ClientHeightsw::WndBase
ClientRectsw::WndBase
ClientWidthsw::WndBase
Close()sw::WndBase
CollapseWhenHidesw::UIElement
ContextMenusw::UIElement
DefaultWndProc(const ProcMsg &refMsg)sw::WndBaseprotected
Enabledsw::WndBase
Floatsw::UIElement
Focusedsw::WndBase
Fontsw::WndBase
FontChanged(HFONT hfont)sw::WndBaseprotectedvirtual
FontNamesw::WndBase
FontSizesw::WndBase
FontWeightsw::WndBase
GetArrangeOffsetX()sw::UIElementprotected
GetArrangeOffsetY()sw::UIElementprotected
GetChildBottommost(bool update)sw::UIElementprotected
GetChildLayoutAt(int index) overridesw::UIElementvirtual
GetChildLayoutCount() overridesw::UIElementvirtual
GetChildRightmost(bool update)sw::UIElementprotected
GetDesireSize() overridesw::UIElementvirtual
GetExtendedStyle()sw::WndBaseprotected
GetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
GetFontHandle()sw::WndBaseprotected
GetLayoutTag() overridesw::UIElementvirtual
GetNextElement()sw::UIElement
GetNextTabStopElement()sw::UIElement
GetRealBackColor()sw::UIElement
GetRealTextColor()sw::UIElement
GetRootElement()sw::UIElement
GetStyle()sw::WndBaseprotected
GetStyle(LONG_PTR style)sw::WndBaseprotected
GetTag() overridesw::UIElementvirtual
GetText()sw::WndBaseprotectedvirtual
GetWndBase(HWND hwnd)sw::WndBasestatic
Handlesw::WndBase
HandleInitialized(HWND hwnd)sw::WndBaseprotectedvirtual
Heightsw::WndBase
HorizontalAlignmentsw::UIElement
IndexOf(UIElement *element)sw::UIElement
IndexOf(UIElement &element)sw::UIElement
InheritTextColorsw::UIElement
InitControl(LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
InitWindow(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
IsControl()sw::WndBase
IsDestroyedsw::WndBase
IsRootElement()sw::UIElement
IsRoutedEventRegistered(RoutedEventType eventType)sw::UIElement
IsVisible()sw::WndBase
LayoutTagsw::UIElement
Leftsw::WndBase
Marginsw::UIElement
Measure(const Size &availableSize) overridesw::UIElementvirtual
MoveToBottom()sw::UIElement
MoveToTop()sw::UIElement
NcHitTest(const Point &testPoint)sw::WndBase
NotifyLayoutUpdated()sw::UIElementprotected
OnAcceleratorCommand(int id)sw::WndBaseprotectedvirtual
OnAddedChild(UIElement &element)sw::UIElementprotectedvirtual
OnChar(wchar_t ch, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnClose() overridesw::UIElementprotectedvirtual
OnColor(HDC hdc, HBRUSH &hRetBrush) overridesw::UIElementprotectedvirtual
OnCommand(int code)sw::WndBaseprotectedvirtual
OnContextMenu(bool isKeyboardMsg, Point mousePosition) overridesw::UIElementprotectedvirtual
OnControlCommand(WndBase *pControl, int code, int id)sw::WndBaseprotectedvirtual
OnCreate()sw::WndBaseprotectedvirtual
OnCtlColor(WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)sw::WndBaseprotectedvirtual
OnDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnDestroy()sw::WndBaseprotectedvirtual
OnDrawFocusRect()sw::UIElementprotectedvirtual
OnDrawItem(int id, DRAWITEMSTRUCT *pDrawItem)sw::WndBaseprotectedvirtual
OnEnabledChanged(bool newValue)sw::WndBaseprotectedvirtual
OnEndPaint() overridesw::UIElementprotectedvirtual
OnEraseBackground(int &result)sw::WndBaseprotectedvirtual
OnHorizontalScroll(int event, int pos)sw::WndBaseprotectedvirtual
OnKeyDown(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKeyUp(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKillFocus(HWND hNextFocus) overridesw::UIElementprotectedvirtual
OnMenuCommand(int id) overridesw::UIElementprotectedvirtual
OnMouseLeave() overridesw::UIElementprotectedvirtual
OnMouseLeftButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseLeftButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseMiddleButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMove(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseRightButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseWheel(int wheelDelta, Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMove(Point newClientPosition) overridesw::UIElementprotectedvirtual
OnNcHitTest(const Point &testPoint, HitTestResult &result)sw::WndBaseprotectedvirtual
OnNotified(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnNotify(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnPaint()sw::WndBaseprotectedvirtual
OnRemovedChild(UIElement &element)sw::UIElementprotectedvirtual
OnSetCursor(HWND hwnd, HitTestResult hitTest, int message, bool &result) overridesw::UIElementprotectedvirtual
OnSetFocus(HWND hPrevFocus) overridesw::UIElementprotectedvirtual
OnSize(Size newClientSize) overridesw::UIElementprotectedvirtual
OnSysChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyDown(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyUp(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnTabStop()sw::UIElementprotectedvirtual
OnTextChanged() overridesw::UIElementprotectedvirtual
OnVerticalScroll(int event, int pos)sw::WndBaseprotectedvirtual
operator=(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator=(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator[](int index) constsw::UIElement
Parentsw::UIElement
ParentChanged(WndBase *newParent) overridesw::UIElementprotectedvirtual
PointFromScreen(const Point &screenPoint)sw::WndBase
PointToScreen(const Point &point)sw::WndBase
RaiseRoutedEvent(RoutedEventType eventType)sw::UIElementprotected
RaiseRoutedEvent(RoutedEventArgs &eventArgs)sw::UIElementprotected
Rectsw::WndBase
Redraw(bool erase=false)sw::WndBase
RegisterRoutedEvent(RoutedEventType eventType, const RoutedEvent &handler)sw::UIElement
RegisterRoutedEvent(RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))sw::UIElementinline
RegisterRoutedEvent(std::function< void(UIElement &, TEventArgs &)> handler)sw::UIElementinline
RegisterRoutedEvent(THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))sw::UIElementinline
RemoveChild(UIElement *element)sw::UIElement
RemoveChild(UIElement &element)sw::UIElement
RemoveChildAt(int index)sw::UIElement
ResetCursor()sw::UIElement
SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase
SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement
SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual
SetCursor(HCURSOR hCursor)sw::UIElement
SetCursor(StandardCursor cursor)sw::UIElement
SetDesireSize(const Size &size) overridesw::UIElementvirtual
SetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
SetExtendedStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetNextTabStopFocus()sw::UIElementprotected
SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual
SetStyle(LONG_PTR style)sw::WndBaseprotected
SetStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetTag(uint64_t tag) overridesw::UIElementvirtual
SetText(const std::wstring &value)sw::WndBaseprotectedvirtual
SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual
Show(int nCmdShow)sw::WndBase
ShowContextMenu(const Point &point)sw::UIElement
TabStopsw::UIElement
Tagsw::UIElement
Textsw::WndBase
TextColorsw::UIElement
Topsw::WndBase
Transparentsw::UIElement
UIElement()sw::UIElementprotected
UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement
Update()sw::WndBase
UpdateChildrenZOrder()sw::UIElementprotected
UpdateFont()sw::WndBase
UpdateSiblingsZOrder()sw::UIElementprotected
UpdateText()sw::WndBaseprotected
VerticalAlignmentsw::UIElement
Visiblesw::WndBase
VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual
Widthsw::WndBase
WndBase()sw::WndBaseprotected
WndBase(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndBase(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual
~UIElement()=0sw::UIElementpure virtual
~WndBase()=0sw::WndBasepure virtual
+
+ + + + diff --git a/docs/classsw_1_1_u_i_element.html b/docs/classsw_1_1_u_i_element.html new file mode 100644 index 00000000..28a0e26b --- /dev/null +++ b/docs/classsw_1_1_u_i_element.html @@ -0,0 +1,2893 @@ + + + + + + + +SimpleWindow: sw::UIElement Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
sw::UIElement Class Referenceabstract
+
+
+ +

表示界面中的元素 + More...

+ +

#include <UIElement.h>

+
+Inheritance diagram for sw::UIElement:
+
+
+ + +sw::WndBase +sw::ILayout +sw::ITag +sw::Control +sw::Layer +sw::ItemsControl< StrList > +sw::ButtonBase +sw::ItemsControl< TItem > +sw::PanelBase +sw::ProgressBar +sw::Slider +sw::StaticControl +sw::TabControl +sw::TextBoxBase +sw::PanelBase +sw::Window + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

+virtual ~UIElement ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
void RegisterRoutedEvent (RoutedEventType eventType, const RoutedEvent &handler)
 注册路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename T >
void RegisterRoutedEvent (RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))
 注册成员函数作为路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename TEventArgs , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (std::function< void(UIElement &, TEventArgs &)> handler)
 根据事件参数类型注册路由事件
 
template<typename TEventArgs , typename THandleObj , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))
 根据事件参数类型注册成员函数作为路由事件
 
void UnregisterRoutedEvent (RoutedEventType eventType)
 取消对应类型路由事件的注册
 
bool IsRoutedEventRegistered (RoutedEventType eventType)
 判断路由事件是否已被注册
 
bool AddChild (UIElement *element)
 添加子控件
 
bool AddChild (UIElement &element)
 添加子控件
 
bool AddChild (UIElement *element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool AddChild (UIElement &element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool RemoveChildAt (int index)
 移除指定索引处的子控件
 
bool RemoveChild (UIElement *element)
 移除子控件
 
bool RemoveChild (UIElement &element)
 移除子控件
 
+void ClearChildren ()
 移除所有子控件
 
int IndexOf (UIElement *element)
 获取指定元素的索引
 
int IndexOf (UIElement &element)
 获取指定元素的索引
 
+UIElementoperator[] (int index) const
 通过索引获取子控件
 
void ShowContextMenu (const Point &point)
 弹出当前元素的上下文菜单
 
+void MoveToTop ()
 移动到界面顶部
 
+void MoveToBottom ()
 移动到界面底部
 
+bool IsRootElement ()
 判断当前元素是否为根节点
 
+UIElementGetRootElement ()
 获取当前元素所在界面树的根节点
 
+UIElementGetNextElement ()
 获取当前元素在界面树上的下一个节点,若已是最后一个节点则返回根节点
 
+UIElementGetNextTabStopElement ()
 获取下一个TabStop属性为true的元素
 
+Color GetRealBackColor ()
 获取当前要显示的背景颜色:当Transparent为true时获取到祖先节点中首个Transparent为false的背景颜色,否则返回当前元素的背景颜色
 
+Color GetRealTextColor ()
 获取当前要显示的文本颜色:当InheritTextColor为true时获取到祖先节点中首个InheritTextColor为false的文本颜色,否则返回当前元素的文本颜色
 
void SetCursor (HCURSOR hCursor)
 设置鼠标样式
 
void SetCursor (StandardCursor cursor)
 设置鼠标样式
 
+void ResetCursor ()
 将鼠标样式设置为默认样式
 
void SetAlignment (sw::HorizontalAlignment horz, sw::VerticalAlignment vert)
 设置对齐方式
 
virtual uint64_t GetTag () override
 获取Tag
 
virtual void SetTag (uint64_t tag) override
 设置Tag
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取参与布局的子控件数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取对应索引处的子控件,使用此函数前必须先调用GetChildLayoutCount
 
virtual Size GetDesireSize () override
 获取控件所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置当前控件所需的尺寸
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const sw::Rect &finalPosition) override
 安排控件位置
 
- Public Member Functions inherited from sw::WndBase
+virtual ~WndBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void Show (int nCmdShow)
 该函数调用ShowWindow
 
+void Close ()
 发送关闭消息
 
+void Update ()
 该函数调用UpdateWindow
 
+void UpdateFont ()
 更新字体
 
void Redraw (bool erase=false)
 重画
 
+bool IsControl ()
 判断当前对象是否是控件
 
+bool IsVisible ()
 判断当前对象在界面中是否可视,与Visible属性不同的是该函数返回值会受父窗口的影响
 
Point PointToScreen (const Point &point)
 获取用户区点在屏幕上点的位置
 
Point PointFromScreen (const Point &screenPoint)
 获取屏幕上点在当前用户区点的位置
 
+LRESULT SendMessageW (UINT uMsg, WPARAM wParam, LPARAM lParam)
 发送消息
 
HitTestResult NcHitTest (const Point &testPoint)
 测试指定点在窗口的哪一部分
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Attributes

+const Property< ThicknessMargin
 边距
 
+const Property< HorizontalAlignment > HorizontalAlignment
 水平对齐方式
 
+const Property< VerticalAlignment > VerticalAlignment
 垂直对齐方式
 
+const ReadOnlyProperty< intChildCount
 子控件数量
 
+const Property< boolCollapseWhenHide
 是否在不可见时不参与布局
 
+const ReadOnlyProperty< UIElement * > Parent
 指向父元素的指针,当前元素为顶级窗口时该值为nullptr
 
+const Property< uint64_tTag
 储存用户自定义信息的标记
 
+const Property< uint64_tLayoutTag
 布局标记,对于不同的布局有不同含义
 
+const Property< sw::ContextMenu * > ContextMenu
 右键按下时弹出的菜单
 
+const Property< boolFloat
 元素是否悬浮,若元素悬浮则该元素不会随滚动条滚动而改变位置
 
+const Property< boolTabStop
 表示用户是否可以通过按下Tab键将焦点移动到当前元素
 
+const Property< ColorBackColor
 背景颜色,修改该属性会同时将Transparent属性设为false,对于部分控件该属性可能不生效
 
+const Property< ColorTextColor
 文本颜色,修改该属性会同时将InheritTextColor属性设为false,对于部分控件该属性可能不生效
 
+const Property< boolTransparent
 是否使用透明背景(此属性并非真正意义上的透明,将该属性设为true可继承父元素的背景颜色)
 
+const Property< boolInheritTextColor
 是否继承父元素的文本颜色
 
- Public Attributes inherited from sw::WndBase
+const ReadOnlyProperty< HWNDHandle
 窗口句柄
 
+const Property< sw::FontFont
 字体
 
+const Property< std::wstring > FontName
 字体名称
 
+const Property< doubleFontSize
 字体大小
 
+const Property< sw::FontWeight > FontWeight
 字体粗细
 
+const Property< sw::RectRect
 位置和尺寸
 
+const Property< doubleLeft
 左边
 
+const Property< doubleTop
 顶边
 
+const Property< doubleWidth
 宽度
 
+const Property< doubleHeight
 高度
 
+const ReadOnlyProperty< sw::RectClientRect
 用户区尺寸
 
+const ReadOnlyProperty< doubleClientWidth
 用户区宽度
 
+const ReadOnlyProperty< doubleClientHeight
 用户区高度
 
+const Property< boolEnabled
 窗口或控件是否可用
 
+const Property< boolVisible
 窗口或控件是否可见
 
+const Property< std::wstring > Text
 窗口标题或控件文本
 
+const Property< boolFocused
 窗口是否拥有焦点
 
+const ReadOnlyProperty< WndBase * > Parent
 父窗口
 
+const ReadOnlyProperty< boolIsDestroyed
 是否已销毁,当该值为true时不应该继续使用当前对象
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Protected Member Functions

UIElement ()
 初始化UIElement
 
void RaiseRoutedEvent (RoutedEventType eventType)
 触发路由事件
 
void RaiseRoutedEvent (RoutedEventArgs &eventArgs)
 触发路由事件
 
+void NotifyLayoutUpdated ()
 通知顶级窗口布局改变
 
+doubleGetArrangeOffsetX ()
 获取Arrange时子元素的水平偏移量
 
+doubleGetArrangeOffsetY ()
 获取Arrange时子元素的垂直偏移量
 
double GetChildRightmost (bool update)
 获取所有子元素在当前元素中最右边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
double GetChildBottommost (bool update)
 获取所有子元素在当前元素中最底边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
+void UpdateChildrenZOrder ()
 更新子元素的Z轴位置
 
+void UpdateSiblingsZOrder ()
 更新兄弟元素的Z轴位置
 
+void SetNextTabStopFocus ()
 设置下一个TabStop属性为true的元素为焦点元素
 
virtual void SetBackColor (Color color, bool redraw)
 设置背景颜色
 
virtual void SetTextColor (Color color, bool redraw)
 设置文本颜色
 
virtual void OnAddedChild (UIElement &element)
 添加子元素后调用该函数
 
virtual void OnRemovedChild (UIElement &element)
 移除子元素后调用该函数
 
+virtual void OnTabStop ()
 通过tab键将焦点移动到当前元素时调用该函数
 
virtual void OnDrawFocusRect ()
 绘制虚线框时调用该函数
 
virtual bool SetParent (WndBase *parent) override
 设置父窗口
 
virtual void ParentChanged (WndBase *newParent) override
 父窗口改变时调用此函数
 
virtual void OnEndPaint () override
 在OnPaint函数完成之后调用该函数
 
virtual bool OnClose () override
 接收到WM_CLOSE时调用该函数
 
virtual bool OnMove (Point newClientPosition) override
 接收到WM_MOVE时调用该函数
 
virtual bool OnSize (Size newClientSize) override
 接收到WM_SIZE时调用该函数
 
virtual void OnTextChanged () override
 Text属性更改时调用此函数
 
virtual void VisibleChanged (bool newVisible) override
 Visible属性改变时调用此函数
 
virtual bool OnSetFocus (HWND hPrevFocus) override
 接收到WM_SETFOCUS时调用该函数
 
virtual bool OnKillFocus (HWND hNextFocus) override
 接收到WM_KILLFOCUS时调用该函数
 
virtual bool OnChar (wchar_t ch, KeyFlags flags) override
 接收到WM_CHAR时调用该函数
 
virtual bool OnKeyDown (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYDOWN时调用该函数
 
virtual bool OnKeyUp (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYUP时调用该函数
 
virtual bool OnMouseMove (Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEMOVE时调用该函数
 
virtual bool OnMouseLeave () override
 接收到WM_MOUSELEAVE时调用该函数
 
virtual bool OnMouseWheel (int wheelDelta, Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEWHEEL时调用该函数
 
virtual bool OnMouseLeftButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONDOWN时调用该函数
 
virtual bool OnMouseLeftButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONUP时调用该函数
 
virtual bool OnMouseRightButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONDOWN时调用该函数
 
virtual bool OnMouseRightButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONUP时调用该函数
 
virtual bool OnMouseMiddleButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONDOWN时调用该函数
 
virtual bool OnMouseMiddleButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONUP时调用该函数
 
virtual bool OnContextMenu (bool isKeyboardMsg, Point mousePosition) override
 接收到WM_CONTEXTMENU后调用目标控件的该函数
 
virtual void OnMenuCommand (int id) override
 当WM_COMMAND接收到菜单命令时调用该函数
 
virtual bool OnColor (HDC hdc, HBRUSH &hRetBrush) override
 父窗口接收到WM_CTLCOLORxxx时调用对应控件的该函数
 
virtual bool OnSetCursor (HWND hwnd, HitTestResult hitTest, int message, bool &result) override
 接收到WM_SETCURSOR消息时调用该函数
 
- Protected Member Functions inherited from sw::WndBase
WndBase ()
 初始化WndBase
 
WndBase (const WndBase &)=delete
 
WndBase (WndBase &&)=delete
 
+WndBaseoperator= (const WndBase &)=delete
 
+WndBaseoperator= (WndBase &&)=delete
 
+void InitWindow (LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为窗口,该函数会调用CreateWindowExW
 
+void InitControl (LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为控件,该函数会调用CreateWindowExW
 
+LONG_PTR GetStyle ()
 获取窗口样式
 
+void SetStyle (LONG_PTR style)
 设置窗口样式
 
+bool GetStyle (LONG_PTR style)
 获取窗口的某个样式
 
+void SetStyle (LONG_PTR style, bool value)
 设置窗口的某个样式
 
+LONG_PTR GetExtendedStyle ()
 获取扩展窗口样式
 
+void SetExtendedStyle (LONG_PTR style)
 设置扩展窗口样式
 
+bool GetExtendedStyle (LONG_PTR style)
 获取窗口的某个扩展样式
 
+void SetExtendedStyle (LONG_PTR style, bool value)
 设置窗口的某个扩展样式
 
+HFONT GetFontHandle ()
 获取字体句柄
 
+LRESULT DefaultWndProc (const ProcMsg &refMsg)
 调用默认的WndProc,对于窗口则调用DefWindowProcW,控件则调用_controlOldWndProc
 
virtual LRESULT WndProc (const ProcMsg &refMsg)
 对WndProc的封装
 
+void UpdateText ()
 更新_text字段
 
virtual std::wstring & GetText ()
 获取窗口文本
 
virtual void SetText (const std::wstring &value)
 调用SetWindowTextW设置窗口文本
 
virtual bool OnCreate ()
 接收到WM_CREATE时调用该函数
 
virtual bool OnDestroy ()
 接收到WM_DESTROY时调用该函数
 
virtual bool OnPaint ()
 接收到WM_PAINT时调用该函数
 
virtual bool OnMouseLeftButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_LBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseRightButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_RBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseMiddleButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_MBUTTONDBLCLK时调用该函数
 
virtual bool OnDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_DEADCHAR时调用该函数
 
virtual bool OnSysChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSCHAR时调用该函数
 
virtual bool OnSysDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSDEADCHAR时调用该函数
 
virtual bool OnSysKeyDown (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYDOWN时调用该函数
 
virtual bool OnSysKeyUp (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYUP时调用该函数
 
virtual void OnCommand (int code)
 当父窗口接收到控件的WM_COMMAND时调用该函数
 
virtual void OnControlCommand (WndBase *pControl, int code, int id)
 当WM_COMMAND接收到控件命令时调用该函数
 
virtual void OnAcceleratorCommand (int id)
 当WM_COMMAND接收到快捷键命令时调用该函数
 
virtual void HandleInitialized (HWND hwnd)
 窗口句柄初始化完成
 
virtual void FontChanged (HFONT hfont)
 字体改变时调用该函数
 
virtual bool OnNotify (NMHDR *pNMHDR)
 接收到WM_NOTIFY后调用该函数
 
virtual void OnNotified (NMHDR *pNMHDR)
 父窗口接收到WM_NOTIFY后调用发出通知控件的该函数
 
virtual bool OnVerticalScroll (int event, int pos)
 接收到WM_VSCROLL时调用目标控件的该函数
 
virtual bool OnHorizontalScroll (int event, int pos)
 接收到WM_HSCROLL时调用目标控件的该函数
 
virtual bool OnEnabledChanged (bool newValue)
 接收到WM_ENABLE时调用该函数
 
virtual bool OnCtlColor (WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)
 接收到WM_CTLCOLORxxx时调用该函数
 
virtual void OnNcHitTest (const Point &testPoint, HitTestResult &result)
 接收到WM_NCHITTEST后调用该函数
 
virtual bool OnEraseBackground (int &result)
 接收到WM_ERASEBKGND时调用该函数
 
virtual bool OnDrawItem (int id, DRAWITEMSTRUCT *pDrawItem)
 接收到WM_DRAWITEM时调用该函数
 
+ + + + + +

+Additional Inherited Members

- Static Public Member Functions inherited from sw::WndBase
static WndBaseGetWndBase (HWND hwnd)
 通过窗口句柄获取WndBase
 
+

Detailed Description

+

表示界面中的元素

+

Member Function Documentation

+ +

◆ AddChild() [1/4]

+ +
+
+ + + + + + + +
bool sw::UIElement::AddChild (UIElement & element)
+
+ +

添加子控件

+
Returns
添加是否成功
+ +
+
+ +

◆ AddChild() [2/4]

+ +
+
+ + + + + + + + + + + +
bool sw::UIElement::AddChild (UIElement & element,
uint64_t layoutTag )
+
+ +

添加子控件并设置布局标记

+
Returns
添加是否成功
+ +
+
+ +

◆ AddChild() [3/4]

+ +
+
+ + + + + + + +
bool sw::UIElement::AddChild (UIElement * element)
+
+ +

添加子控件

+
Returns
添加是否成功
+ +
+
+ +

◆ AddChild() [4/4]

+ +
+
+ + + + + + + + + + + +
bool sw::UIElement::AddChild (UIElement * element,
uint64_t layoutTag )
+
+ +

添加子控件并设置布局标记

+
Returns
添加是否成功
+ +
+
+ +

◆ Arrange()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::UIElement::Arrange (const sw::Rect & finalPosition)
+
+overridevirtual
+
+ +

安排控件位置

+
Parameters
+ + +
finalSize最终控件所安排的位置
+
+
+ +

Implements sw::ILayout.

+ +

Reimplemented in sw::Layer, sw::PanelBase, and sw::TabControl.

+ +
+
+ +

◆ GetChildBottommost()

+ +
+
+ + + + + +
+ + + + + + + +
double sw::UIElement::GetChildBottommost (bool update)
+
+protected
+
+ +

获取所有子元素在当前元素中最底边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)

+
Parameters
+ + +
update是否更字段
+
+
+
Returns
_childBottommost字段
+ +
+
+ +

◆ GetChildLayoutAt()

+ +
+
+ + + + + +
+ + + + + + + +
virtual ILayout & sw::UIElement::GetChildLayoutAt (int index)
+
+overridevirtual
+
+ +

获取对应索引处的子控件,使用此函数前必须先调用GetChildLayoutCount

+ +

Implements sw::ILayout.

+ +
+
+ +

◆ GetChildLayoutCount()

+ +
+
+ + + + + +
+ + + + + + + +
virtual int sw::UIElement::GetChildLayoutCount ()
+
+overridevirtual
+
+ +

获取参与布局的子控件数量

+ +

Implements sw::ILayout.

+ +
+
+ +

◆ GetChildRightmost()

+ +
+
+ + + + + +
+ + + + + + + +
double sw::UIElement::GetChildRightmost (bool update)
+
+protected
+
+ +

获取所有子元素在当前元素中最右边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)

+
Parameters
+ + +
update是否更字段
+
+
+
Returns
_childRightmost字段
+ +
+
+ +

◆ GetDesireSize()

+ +
+
+ + + + + +
+ + + + + + + +
virtual Size sw::UIElement::GetDesireSize ()
+
+overridevirtual
+
+ +

获取控件所需尺寸

+ +

Implements sw::ILayout.

+ +
+
+ +

◆ GetLayoutTag()

+ +
+
+ + + + + +
+ + + + + + + +
virtual uint64_t sw::UIElement::GetLayoutTag ()
+
+overridevirtual
+
+ +

获取布局标记

+ +

Implements sw::ILayout.

+ +
+
+ +

◆ GetTag()

+ +
+
+ + + + + +
+ + + + + + + +
virtual uint64_t sw::UIElement::GetTag ()
+
+overridevirtual
+
+ +

获取Tag

+ +

Implements sw::ITag.

+ +
+
+ +

◆ IndexOf() [1/2]

+ +
+
+ + + + + + + +
int sw::UIElement::IndexOf (UIElement & element)
+
+ +

获取指定元素的索引

+
Parameters
+ + +
element要查找的元素
+
+
+
Returns
若找到指定元素则返回对应的索引,否则返回-1
+ +
+
+ +

◆ IndexOf() [2/2]

+ +
+
+ + + + + + + +
int sw::UIElement::IndexOf (UIElement * element)
+
+ +

获取指定元素的索引

+
Parameters
+ + +
element要查找的元素
+
+
+
Returns
若找到指定元素则返回对应的索引,否则返回-1
+ +
+
+ +

◆ IsRoutedEventRegistered()

+ +
+
+ + + + + + + +
bool sw::UIElement::IsRoutedEventRegistered (RoutedEventType eventType)
+
+ +

判断路由事件是否已被注册

+
Parameters
+ + +
eventType路由事件类型
+
+
+ +
+
+ +

◆ Measure()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::UIElement::Measure (const Size & availableSize)
+
+overridevirtual
+
+ +

测量控件所需尺寸

+
Parameters
+ + +
availableSize可用的尺寸
+
+
+ +

Implements sw::ILayout.

+ +

Reimplemented in sw::Label, sw::Layer, and sw::PanelBase.

+ +
+
+ +

◆ OnAddedChild()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::UIElement::OnAddedChild (UIElement & element)
+
+protectedvirtual
+
+ +

添加子元素后调用该函数

+
Parameters
+ + +
element添加的子元素
+
+
+ +

Reimplemented in sw::TabControl.

+ +
+
+ +

◆ OnChar()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::UIElement::OnChar (wchar_t ch,
KeyFlags flags )
+
+overrideprotectedvirtual
+
+ +

接收到WM_CHAR时调用该函数

+
Parameters
+ + + +
ch按键的字符代码
flags附加信息
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented from sw::WndBase.

+ +

Reimplemented in sw::TextBoxBase.

+ +
+
+ +

◆ OnClose()

+ +
+
+ + + + + +
+ + + + + + + +
virtual bool sw::UIElement::OnClose ()
+
+overrideprotectedvirtual
+
+ +

接收到WM_CLOSE时调用该函数

+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented from sw::WndBase.

+ +

Reimplemented in sw::Window.

+ +
+
+ +

◆ OnColor()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::UIElement::OnColor (HDC hdc,
HBRUSH & hRetBrush )
+
+overrideprotectedvirtual
+
+ +

父窗口接收到WM_CTLCOLORxxx时调用对应控件的该函数

+
Parameters
+ + + +
hdc控件的显示上下文句柄
hRetBrush要返回的画笔
+
+
+
Returns
若返回true则将hRetBrush作为消息的返回值,否则使用DefaultWndProc的返回值
+ +

Reimplemented from sw::WndBase.

+ +
+
+ +

◆ OnContextMenu()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::UIElement::OnContextMenu (bool isKeyboardMsg,
Point mousePosition )
+
+overrideprotectedvirtual
+
+ +

接收到WM_CONTEXTMENU后调用目标控件的该函数

+
Parameters
+ + + +
isKeyboardMsg消息是否由按下快捷键(Shift+F10、VK_APPS)产生
mousePosition鼠标在屏幕中的位置
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented from sw::WndBase.

+ +

Reimplemented in sw::ListBox.

+ +
+
+ +

◆ OnDrawFocusRect()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::UIElement::OnDrawFocusRect ()
+
+protectedvirtual
+
+ +

绘制虚线框时调用该函数

+ +

Reimplemented in sw::Button, and sw::TextBoxBase.

+ +
+
+ +

◆ OnEndPaint()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::UIElement::OnEndPaint ()
+
+overrideprotectedvirtual
+
+ +

在OnPaint函数完成之后调用该函数

+ +

Reimplemented from sw::WndBase.

+ +
+
+ +

◆ OnKeyDown()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::UIElement::OnKeyDown (VirtualKey key,
KeyFlags flags )
+
+overrideprotectedvirtual
+
+ +

接收到WM_KEYDOWN时调用该函数

+
Parameters
+ + + +
key虚拟按键
flags附加信息
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented from sw::WndBase.

+ +

Reimplemented in sw::Button, and sw::TextBoxBase.

+ +
+
+ +

◆ OnKeyUp()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::UIElement::OnKeyUp (VirtualKey key,
KeyFlags flags )
+
+overrideprotectedvirtual
+
+ +

接收到WM_KEYUP时调用该函数

+
Parameters
+ + + +
key虚拟按键
flags附加信息
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented from sw::WndBase.

+ +
+
+ +

◆ OnKillFocus()

+ +
+
+ + + + + +
+ + + + + + + +
virtual bool sw::UIElement::OnKillFocus (HWND hNextFocus)
+
+overrideprotectedvirtual
+
+ +

接收到WM_KILLFOCUS时调用该函数

+
Parameters
+ + +
hNextFocus接收到焦点的hwnd,可能为NULL
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented from sw::WndBase.

+ +

Reimplemented in sw::Button.

+ +
+
+ +

◆ OnMenuCommand()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::UIElement::OnMenuCommand (int id)
+
+overrideprotectedvirtual
+
+ +

当WM_COMMAND接收到菜单命令时调用该函数

+
Parameters
+ + +
id菜单id
+
+
+ +

Reimplemented from sw::WndBase.

+ +

Reimplemented in sw::Window.

+ +
+
+ +

◆ OnMouseLeave()

+ +
+
+ + + + + +
+ + + + + + + +
virtual bool sw::UIElement::OnMouseLeave ()
+
+overrideprotectedvirtual
+
+ +

接收到WM_MOUSELEAVE时调用该函数

+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented from sw::WndBase.

+ +
+
+ +

◆ OnMouseLeftButtonDown()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::UIElement::OnMouseLeftButtonDown (Point mousePosition,
MouseKey keyState )
+
+overrideprotectedvirtual
+
+ +

接收到WM_LBUTTONDOWN时调用该函数

+
Parameters
+ + + +
mousePosition鼠标在用户区中的位置
keyState指示某些按键是否按下
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented from sw::WndBase.

+ +
+
+ +

◆ OnMouseLeftButtonUp()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::UIElement::OnMouseLeftButtonUp (Point mousePosition,
MouseKey keyState )
+
+overrideprotectedvirtual
+
+ +

接收到WM_LBUTTONUP时调用该函数

+
Parameters
+ + + +
mousePosition鼠标在用户区中的位置
keyState指示某些按键是否按下
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented from sw::WndBase.

+ +
+
+ +

◆ OnMouseMiddleButtonDown()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::UIElement::OnMouseMiddleButtonDown (Point mousePosition,
MouseKey keyState )
+
+overrideprotectedvirtual
+
+ +

接收到WM_MBUTTONDOWN时调用该函数

+
Parameters
+ + + +
mousePosition鼠标在用户区中的位置
keyState指示某些按键是否按下
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented from sw::WndBase.

+ +
+
+ +

◆ OnMouseMiddleButtonUp()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::UIElement::OnMouseMiddleButtonUp (Point mousePosition,
MouseKey keyState )
+
+overrideprotectedvirtual
+
+ +

接收到WM_MBUTTONUP时调用该函数

+
Parameters
+ + + +
mousePosition鼠标在用户区中的位置
keyState指示某些按键是否按下
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented from sw::WndBase.

+ +
+
+ +

◆ OnMouseMove()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::UIElement::OnMouseMove (Point mousePosition,
MouseKey keyState )
+
+overrideprotectedvirtual
+
+ +

接收到WM_MOUSEMOVE时调用该函数

+
Parameters
+ + + +
mousePosition鼠标在用户区中的位置
keyState指示某些按键是否按下
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented from sw::WndBase.

+ +
+
+ +

◆ OnMouseRightButtonDown()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::UIElement::OnMouseRightButtonDown (Point mousePosition,
MouseKey keyState )
+
+overrideprotectedvirtual
+
+ +

接收到WM_RBUTTONDOWN时调用该函数

+
Parameters
+ + + +
mousePosition鼠标在用户区中的位置
keyState指示某些按键是否按下
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented from sw::WndBase.

+ +
+
+ +

◆ OnMouseRightButtonUp()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::UIElement::OnMouseRightButtonUp (Point mousePosition,
MouseKey keyState )
+
+overrideprotectedvirtual
+
+ +

接收到WM_RBUTTONUP时调用该函数

+
Parameters
+ + + +
mousePosition鼠标在用户区中的位置
keyState指示某些按键是否按下
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented from sw::WndBase.

+ +
+
+ +

◆ OnMouseWheel()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + +
virtual bool sw::UIElement::OnMouseWheel (int wheelDelta,
Point mousePosition,
MouseKey keyState )
+
+overrideprotectedvirtual
+
+ +

接收到WM_MOUSEWHEEL时调用该函数

+
Parameters
+ + + + +
wheelDelta滚轮滚动的距离,为120的倍数
mousePosition鼠标在用户区中的位置
keyState指示某些按键是否按下
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented from sw::WndBase.

+ +
+
+ +

◆ OnMove()

+ +
+
+ + + + + +
+ + + + + + + +
virtual bool sw::UIElement::OnMove (Point newClientPosition)
+
+overrideprotectedvirtual
+
+ +

接收到WM_MOVE时调用该函数

+
Parameters
+ + +
newClientPosition移动后用户区左上角的位置
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented from sw::WndBase.

+ +
+
+ +

◆ OnRemovedChild()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::UIElement::OnRemovedChild (UIElement & element)
+
+protectedvirtual
+
+ +

移除子元素后调用该函数

+
Parameters
+ + +
element移除的子元素
+
+
+ +

Reimplemented in sw::TabControl.

+ +
+
+ +

◆ OnSetCursor()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
virtual bool sw::UIElement::OnSetCursor (HWND hwnd,
HitTestResult hitTest,
int message,
bool & result )
+
+overrideprotectedvirtual
+
+ +

接收到WM_SETCURSOR消息时调用该函数

+
Parameters
+ + + + + +
hwnd鼠标所在窗口的句柄
hitTesthit-test的结果,详见WM_NCHITTEST消息的返回值
message触发该事件的鼠标消息,如WM_MOUSEMOVE
result消息的返回值,默认为false
+
+
+
Returns
若返回true则将result作为消息的返回值,否则使用DefaultWndProc的返回值
+ +

Reimplemented from sw::WndBase.

+ +
+
+ +

◆ OnSetFocus()

+ +
+
+ + + + + +
+ + + + + + + +
virtual bool sw::UIElement::OnSetFocus (HWND hPrevFocus)
+
+overrideprotectedvirtual
+
+ +

接收到WM_SETFOCUS时调用该函数

+
Parameters
+ + +
hPrevFocus丢失焦点的hwnd,可能为NULL
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented from sw::WndBase.

+ +

Reimplemented in sw::Button.

+ +
+
+ +

◆ OnSize()

+ +
+
+ + + + + +
+ + + + + + + +
virtual bool sw::UIElement::OnSize (Size newClientSize)
+
+overrideprotectedvirtual
+
+ +

接收到WM_SIZE时调用该函数

+
Parameters
+ + +
newClientSize改变后的用户区尺寸
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented from sw::WndBase.

+ +

Reimplemented in sw::Panel.

+ +
+
+ +

◆ OnTextChanged()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::UIElement::OnTextChanged ()
+
+overrideprotectedvirtual
+
+ +

Text属性更改时调用此函数

+ +

Reimplemented from sw::WndBase.

+ +

Reimplemented in sw::Label.

+ +
+
+ +

◆ ParentChanged()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::UIElement::ParentChanged (WndBase * newParent)
+
+overrideprotectedvirtual
+
+ +

父窗口改变时调用此函数

+
Parameters
+ + +
newParent新的父窗口
+
+
+ +

Reimplemented from sw::WndBase.

+ +
+
+ +

◆ RaiseRoutedEvent() [1/2]

+ +
+
+ + + + + +
+ + + + + + + +
void sw::UIElement::RaiseRoutedEvent (RoutedEventArgs & eventArgs)
+
+protected
+
+ +

触发路由事件

+
Parameters
+ + +
eventArgs要触发事件的事件参数
+
+
+ +
+
+ +

◆ RaiseRoutedEvent() [2/2]

+ +
+
+ + + + + +
+ + + + + + + +
void sw::UIElement::RaiseRoutedEvent (RoutedEventType eventType)
+
+protected
+
+ +

触发路由事件

+
Parameters
+ + +
eventType事件类型
+
+
+ +
+
+ +

◆ RegisterRoutedEvent() [1/4]

+ +
+
+ + + + + + + + + + + +
void sw::UIElement::RegisterRoutedEvent (RoutedEventType eventType,
const RoutedEvent & handler )
+
+ +

注册路由事件处理函数,当事件已注册时会覆盖已注册的函数

+
Parameters
+ + + +
eventType路由事件类型
handler处理函数,当值为nullptr时可取消注册
+
+
+ +
+
+ +

◆ RegisterRoutedEvent() [2/4]

+ +
+
+
+template<typename T >
+ + + + + +
+ + + + + + + + + + + + + + + + +
void sw::UIElement::RegisterRoutedEvent (RoutedEventType eventType,
T & obj,
void(T::*)(UIElement &, RoutedEventArgs &) handler )
+
+inline
+
+ +

注册成员函数作为路由事件处理函数,当事件已注册时会覆盖已注册的函数

+
Template Parameters
+ + +
T成员函数所在的类
+
+
+
Parameters
+ + + + +
eventType路由事件类型
obj注册的成员函数所在的对象
handler处理函数,当值为nullptr时可取消注册
+
+
+ +
+
+ +

◆ RegisterRoutedEvent() [3/4]

+ +
+
+
+template<typename TEventArgs , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
+ + + + + +
+ + + + + + + +
void sw::UIElement::RegisterRoutedEvent (std::function< void(UIElement &, TEventArgs &)> handler)
+
+inline
+
+ +

根据事件参数类型注册路由事件

+
Template Parameters
+ + +
TEventArgs路由事件的参数类型,必须继承自RoutedEventOfType<...>
+
+
+
Parameters
+ + +
handler事件的处理函数,当值为nullptr时可取消注册
+
+
+ +
+
+ +

◆ RegisterRoutedEvent() [4/4]

+ +
+
+
+template<typename TEventArgs , typename THandleObj , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
+ + + + + +
+ + + + + + + + + + + +
void sw::UIElement::RegisterRoutedEvent (THandleObj & obj,
void(THandleObj::*)(UIElement &, TEventArgs &) handler )
+
+inline
+
+ +

根据事件参数类型注册成员函数作为路由事件

+
Template Parameters
+ + + +
TEventArgs路由事件的参数类型,必须继承自RoutedEventOfType<...>
THandleObj成员函数所在的类
+
+
+
Parameters
+ + + +
obj注册的成员函数所在的对象
handler事件的处理函数,当值为nullptr时可取消注册
+
+
+ +
+
+ +

◆ RemoveChild() [1/2]

+ +
+
+ + + + + + + +
bool sw::UIElement::RemoveChild (UIElement & element)
+
+ +

移除子控件

+
Returns
移除是否成功
+ +
+
+ +

◆ RemoveChild() [2/2]

+ +
+
+ + + + + + + +
bool sw::UIElement::RemoveChild (UIElement * element)
+
+ +

移除子控件

+
Returns
移除是否成功
+ +
+
+ +

◆ RemoveChildAt()

+ +
+
+ + + + + + + +
bool sw::UIElement::RemoveChildAt (int index)
+
+ +

移除指定索引处的子控件

+
Parameters
+ + +
index要移除的索引
+
+
+
Returns
移除是否成功
+ +
+
+ +

◆ SetAlignment()

+ +
+
+ + + + + + + + + + + +
void sw::UIElement::SetAlignment (sw::HorizontalAlignment horz,
sw::VerticalAlignment vert )
+
+ +

设置对齐方式

+
Parameters
+ + + +
horz水平对齐方式
vert垂直对齐方式
+
+
+ +
+
+ +

◆ SetBackColor()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual void sw::UIElement::SetBackColor (Color color,
bool redraw )
+
+protectedvirtual
+
+ +

设置背景颜色

+
Parameters
+ + + +
color要设置的颜色
redraw是否重绘
+
+
+ +

Reimplemented in sw::ListView.

+ +
+
+ +

◆ SetCursor() [1/2]

+ +
+
+ + + + + + + +
void sw::UIElement::SetCursor (HCURSOR hCursor)
+
+ +

设置鼠标样式

+
Parameters
+ + +
hCursor鼠标句柄
+
+
+ +
+
+ +

◆ SetCursor() [2/2]

+ +
+
+ + + + + + + +
void sw::UIElement::SetCursor (StandardCursor cursor)
+
+ +

设置鼠标样式

+
Parameters
+ + +
cursor鼠标样式
+
+
+ +
+
+ +

◆ SetDesireSize()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::UIElement::SetDesireSize (const Size & size)
+
+overridevirtual
+
+ +

设置当前控件所需的尺寸

+ +

Implements sw::ILayout.

+ +
+
+ +

◆ SetParent()

+ +
+
+ + + + + +
+ + + + + + + +
virtual bool sw::UIElement::SetParent (WndBase * parent)
+
+overrideprotectedvirtual
+
+ +

设置父窗口

+
Returns
设置是否成功
+ +

Reimplemented from sw::WndBase.

+ +
+
+ +

◆ SetTag()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::UIElement::SetTag (uint64_t tag)
+
+overridevirtual
+
+ +

设置Tag

+ +

Implements sw::ITag.

+ +
+
+ +

◆ SetTextColor()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual void sw::UIElement::SetTextColor (Color color,
bool redraw )
+
+protectedvirtual
+
+ +

设置文本颜色

+
Parameters
+ + + +
color要设置的颜色
redraw是否重绘
+
+
+ +

Reimplemented in sw::ListView.

+ +
+
+ +

◆ ShowContextMenu()

+ +
+
+ + + + + + + +
void sw::UIElement::ShowContextMenu (const Point & point)
+
+ +

弹出当前元素的上下文菜单

+
Parameters
+ + +
point弹出菜单左上角在屏幕中的位置
+
+
+ +
+
+ +

◆ UnregisterRoutedEvent()

+ +
+
+ + + + + + + +
void sw::UIElement::UnregisterRoutedEvent (RoutedEventType eventType)
+
+ +

取消对应类型路由事件的注册

+
Parameters
+ + +
eventType路由事件类型
+
+
+ +
+
+ +

◆ VisibleChanged()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::UIElement::VisibleChanged (bool newVisible)
+
+overrideprotectedvirtual
+
+ +

Visible属性改变时调用此函数

+ +

Reimplemented from sw::WndBase.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_u_i_element.js b/docs/classsw_1_1_u_i_element.js new file mode 100644 index 00000000..0546e756 --- /dev/null +++ b/docs/classsw_1_1_u_i_element.js @@ -0,0 +1,101 @@ +var classsw_1_1_u_i_element = +[ + [ "UIElement", "classsw_1_1_u_i_element.html#aeebf42b059a9962fd9c2ba64dcc309ca", null ], + [ "~UIElement", "classsw_1_1_u_i_element.html#acbe28513919da89bf3f9a5102d6353c3", null ], + [ "AddChild", "classsw_1_1_u_i_element.html#a1576ecfeec8347256a1c43a33169e1dc", null ], + [ "AddChild", "classsw_1_1_u_i_element.html#a3e08b05c1a3ac1d95fd54a3ffaab81a0", null ], + [ "AddChild", "classsw_1_1_u_i_element.html#a32893339be348aa964441954f3a31101", null ], + [ "AddChild", "classsw_1_1_u_i_element.html#ac020bc2d263e0dcffa59e0f474ea6e95", null ], + [ "Arrange", "classsw_1_1_u_i_element.html#ac8088cf88b28c6b4a5f93cd7a66a769e", null ], + [ "ClearChildren", "classsw_1_1_u_i_element.html#a9585aee58045291cdca577e64f4a56e3", null ], + [ "GetArrangeOffsetX", "classsw_1_1_u_i_element.html#ae43f4f3c5a5c723d29f20e5590641388", null ], + [ "GetArrangeOffsetY", "classsw_1_1_u_i_element.html#ab48faeb3dde62fbbe944a28dce2f3133", null ], + [ "GetChildBottommost", "classsw_1_1_u_i_element.html#a7bda5652549fe9909e3b6b1383754b30", null ], + [ "GetChildLayoutAt", "classsw_1_1_u_i_element.html#a3683672f3c2fc8f80e4f808aac78d262", null ], + [ "GetChildLayoutCount", "classsw_1_1_u_i_element.html#a994aad366bc1f62ef7d53defa9456e64", null ], + [ "GetChildRightmost", "classsw_1_1_u_i_element.html#a1f0bde7d9646b68dfe7251eba908cc08", null ], + [ "GetDesireSize", "classsw_1_1_u_i_element.html#a633ace3fad478f1cc6480fa5512288fb", null ], + [ "GetLayoutTag", "classsw_1_1_u_i_element.html#aa89a8c272d1a9016d2586c6eeab64dce", null ], + [ "GetNextElement", "classsw_1_1_u_i_element.html#a06a50134522985f88bb0db352b2be689", null ], + [ "GetNextTabStopElement", "classsw_1_1_u_i_element.html#a6968c7b711722677fb0b9dd7f5f80442", null ], + [ "GetRealBackColor", "classsw_1_1_u_i_element.html#a82ef0065e6b21ce989852862bc1a0e21", null ], + [ "GetRealTextColor", "classsw_1_1_u_i_element.html#a18dde4a75ac25ae0458ae616eb9bca85", null ], + [ "GetRootElement", "classsw_1_1_u_i_element.html#a560ae73ce93ab62df8d04170b11a1f39", null ], + [ "GetTag", "classsw_1_1_u_i_element.html#a78f1c406d3faac2afcb956e9375f65ec", null ], + [ "IndexOf", "classsw_1_1_u_i_element.html#a8ff6722c909efcb10fbbc63476ab64d6", null ], + [ "IndexOf", "classsw_1_1_u_i_element.html#a45cf2817669c10b59535acf8406a1a09", null ], + [ "IsRootElement", "classsw_1_1_u_i_element.html#a67bd7d81e6091118e4c97cc24c68543d", null ], + [ "IsRoutedEventRegistered", "classsw_1_1_u_i_element.html#adf8152f31c5e109ba016316182bcec47", null ], + [ "Measure", "classsw_1_1_u_i_element.html#aef217f2655c4a746606bf302edc16cf4", null ], + [ "MoveToBottom", "classsw_1_1_u_i_element.html#a793adc7d50d0373d099b26b0a511b95d", null ], + [ "MoveToTop", "classsw_1_1_u_i_element.html#abce4a26101de27550375c300b121d95d", null ], + [ "NotifyLayoutUpdated", "classsw_1_1_u_i_element.html#ab5832ef956cdc4face3e9dbd0c72e66e", null ], + [ "OnAddedChild", "classsw_1_1_u_i_element.html#ae3e134d807af7614e1cc812abb860762", null ], + [ "OnChar", "classsw_1_1_u_i_element.html#a3a92f96787dd7981f0c1934ff618b36e", null ], + [ "OnClose", "classsw_1_1_u_i_element.html#a1c1f0b6a491e639c76e46a29bff00d65", null ], + [ "OnColor", "classsw_1_1_u_i_element.html#a5e16c574d3fc57a9da8ac8d9c2bf1a24", null ], + [ "OnContextMenu", "classsw_1_1_u_i_element.html#a656bb4995529a018d8c823fc45abf233", null ], + [ "OnDrawFocusRect", "classsw_1_1_u_i_element.html#a78d190af4c3b1768776db0ebd6d0d71a", null ], + [ "OnEndPaint", "classsw_1_1_u_i_element.html#a57a1cb1cc82765f93b21fa8261ec2e50", null ], + [ "OnKeyDown", "classsw_1_1_u_i_element.html#ab7adb46425947c0b14b3bc5b60f6fdac", null ], + [ "OnKeyUp", "classsw_1_1_u_i_element.html#ad2be8df1de363a180ef2c32606e2fc74", null ], + [ "OnKillFocus", "classsw_1_1_u_i_element.html#a6b8833ac8fe8798edd0480f737aea426", null ], + [ "OnMenuCommand", "classsw_1_1_u_i_element.html#aca1d15ee60f06d11aeccadfc92ed23d2", null ], + [ "OnMouseLeave", "classsw_1_1_u_i_element.html#ac65b1a6485b454004801a296c788db6a", null ], + [ "OnMouseLeftButtonDown", "classsw_1_1_u_i_element.html#a307e0afb1a83b8a31a54844089483f76", null ], + [ "OnMouseLeftButtonUp", "classsw_1_1_u_i_element.html#ad3360842adfd2298d4d505305250a6eb", null ], + [ "OnMouseMiddleButtonDown", "classsw_1_1_u_i_element.html#aabbfe747a3396f5cb08e952cd583c825", null ], + [ "OnMouseMiddleButtonUp", "classsw_1_1_u_i_element.html#a62da7e785db521278afb58d28e30f4fa", null ], + [ "OnMouseMove", "classsw_1_1_u_i_element.html#a2589db7fdbba4423307e64f6289a4650", null ], + [ "OnMouseRightButtonDown", "classsw_1_1_u_i_element.html#a8d1a3049967256fa8306f1364ba209c9", null ], + [ "OnMouseRightButtonUp", "classsw_1_1_u_i_element.html#a42ce311746de9bace84a221efeed7e1f", null ], + [ "OnMouseWheel", "classsw_1_1_u_i_element.html#a4d8e08dc4281b7bf67bb60c9f92fbde0", null ], + [ "OnMove", "classsw_1_1_u_i_element.html#a6482d770b94d6b40da944d64730e8237", null ], + [ "OnRemovedChild", "classsw_1_1_u_i_element.html#aadedba1a9bca85555b70bc247b8ef835", null ], + [ "OnSetCursor", "classsw_1_1_u_i_element.html#a6175e146290ecff80407d4c8afa1cf05", null ], + [ "OnSetFocus", "classsw_1_1_u_i_element.html#a95c6eb88c9f93bb135da9ee303ada3be", null ], + [ "OnSize", "classsw_1_1_u_i_element.html#af4f4d3a0d23a886c0257c439821f5809", null ], + [ "OnTabStop", "classsw_1_1_u_i_element.html#a0f0826e68eb96f7b7dd7882c4c0171b9", null ], + [ "OnTextChanged", "classsw_1_1_u_i_element.html#a7e1fbc142c7cfe4a4a60959daf0753bc", null ], + [ "operator[]", "classsw_1_1_u_i_element.html#a3dee0000f9edfdce128c7ca3c95ec4ab", null ], + [ "ParentChanged", "classsw_1_1_u_i_element.html#a87b86762809c8e4a0ace610a977caa78", null ], + [ "RaiseRoutedEvent", "classsw_1_1_u_i_element.html#a135d4fc74c3bf7a434271620944b9f9b", null ], + [ "RaiseRoutedEvent", "classsw_1_1_u_i_element.html#a0635558e1928f1144566a30b884303aa", null ], + [ "RegisterRoutedEvent", "classsw_1_1_u_i_element.html#a62c0e59790735abb3f0a9f002e651c16", null ], + [ "RegisterRoutedEvent", "classsw_1_1_u_i_element.html#a09946400c66a4bfd34cfb8918652a34a", null ], + [ "RegisterRoutedEvent", "classsw_1_1_u_i_element.html#a0fe3a905c1fd58baa911bc13aac9f181", null ], + [ "RegisterRoutedEvent", "classsw_1_1_u_i_element.html#abb7de98159e23ece7285c87a2592d7ea", null ], + [ "RemoveChild", "classsw_1_1_u_i_element.html#a9e825715639370ad2dd1f1276e6cb97f", null ], + [ "RemoveChild", "classsw_1_1_u_i_element.html#a925353891b62cb6989410d788a8a4e90", null ], + [ "RemoveChildAt", "classsw_1_1_u_i_element.html#a622a68f74b9122c0de9c57e547b0a62b", null ], + [ "ResetCursor", "classsw_1_1_u_i_element.html#a421400e98ae700b0593cda2ceec5c1f7", null ], + [ "SetAlignment", "classsw_1_1_u_i_element.html#a7b2f0c77c7ec5d6d68bc3c772a72201a", null ], + [ "SetBackColor", "classsw_1_1_u_i_element.html#af60b45de9f894f4fb152491413f1fa73", null ], + [ "SetCursor", "classsw_1_1_u_i_element.html#a0ce7edc8a920e950a9a75cf1a84ea627", null ], + [ "SetCursor", "classsw_1_1_u_i_element.html#a848d8b2ee3267758e9a784be75b65e46", null ], + [ "SetDesireSize", "classsw_1_1_u_i_element.html#a3370e535f462680d66063e45b92807f6", null ], + [ "SetNextTabStopFocus", "classsw_1_1_u_i_element.html#a0d9db652043bc5c5cd3483d82b35dcbe", null ], + [ "SetParent", "classsw_1_1_u_i_element.html#ad685138138402ddd8a5fde67bbb85a45", null ], + [ "SetTag", "classsw_1_1_u_i_element.html#a09acdba6221e69b6ecb17b49975a1414", null ], + [ "SetTextColor", "classsw_1_1_u_i_element.html#ab8557638ba9975346d62f5339de55664", null ], + [ "ShowContextMenu", "classsw_1_1_u_i_element.html#ae513a79247f76498e8f586d4ced1ff6e", null ], + [ "UnregisterRoutedEvent", "classsw_1_1_u_i_element.html#a0cbfb44f8280a3e5e01b71906e588d69", null ], + [ "UpdateChildrenZOrder", "classsw_1_1_u_i_element.html#acf5b0f1e5c2e24390b7f267db28c595a", null ], + [ "UpdateSiblingsZOrder", "classsw_1_1_u_i_element.html#ae7e788c5e662363d6244414c5250a39d", null ], + [ "VisibleChanged", "classsw_1_1_u_i_element.html#a98812949329f77e400f7e0e381c56c3d", null ], + [ "BackColor", "classsw_1_1_u_i_element.html#aaf6897b58dc2899c37a3b395bfe124b9", null ], + [ "ChildCount", "classsw_1_1_u_i_element.html#a5c452519bad920ad9b91f9610ea202e0", null ], + [ "CollapseWhenHide", "classsw_1_1_u_i_element.html#a952e87aef0f2dfdec6bd98e944b6d891", null ], + [ "ContextMenu", "classsw_1_1_u_i_element.html#ae5706cc9d6ef3fab9176ccded231b99e", null ], + [ "Float", "classsw_1_1_u_i_element.html#ac0d66604bc2dd555c37688135878a7f0", null ], + [ "HorizontalAlignment", "classsw_1_1_u_i_element.html#a05b569383791dce14d9d6789e3a43d85", null ], + [ "InheritTextColor", "classsw_1_1_u_i_element.html#a7da2f416b1ed5038d8a3a59d6e44fcf5", null ], + [ "LayoutTag", "classsw_1_1_u_i_element.html#a70e870fcabb76b1d74c06d50637f4f92", null ], + [ "Margin", "classsw_1_1_u_i_element.html#a8fe2c0aebc77409d3fbdefbd79d45a1e", null ], + [ "Parent", "classsw_1_1_u_i_element.html#ad825a0e12b75238b13f422f47ddf292b", null ], + [ "TabStop", "classsw_1_1_u_i_element.html#a2b54e00e1e41af2a634ad694da3ffa98", null ], + [ "Tag", "classsw_1_1_u_i_element.html#a895d79a2fa53382a43b3d02dee195360", null ], + [ "TextColor", "classsw_1_1_u_i_element.html#aeaf2381fdffd82bd41e90c1a2cf69022", null ], + [ "Transparent", "classsw_1_1_u_i_element.html#aa9d544a538ca2cfa3d022da61e7637e5", null ], + [ "VerticalAlignment", "classsw_1_1_u_i_element.html#ad9f49244beb6b854b436e8bbd18f4e21", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_u_i_element.png b/docs/classsw_1_1_u_i_element.png new file mode 100644 index 0000000000000000000000000000000000000000..dc154fa9858f8a09609741d4da0bbe9d553c8fa4 GIT binary patch literal 6581 zcmds6dstIfwx?sYx3tPP2Eiw}bz;DZVwHyqByA1W2q9P>R4GKp7pOcGB;-XpT1-(%sz4y)^bI zoU`{@>-Sr~yt)N*F6|pnS;c$RU z)u{d?tAW2^?aI`JoQJCC&!2+S2wEKtVa&cvnd`p_CvodMPSd3^_ zK~gyT&J>TretRlZ`R>CuNhtP00(2t|Z9wdSm zS&{{VcNisfd&d=ra?pNniO8BsUGFJ8%-eXwV}-fxD?FZi&4gy#ZZc83jk@>LoguV) zoWnwlKuscbBb$Tm?SuB=C0W~aLzn99tFiWPi!e&E#6q9sEb?wXZ0*Ac*dYX(Rhi>v z>KQRL>)T;8(;0!KxIk5^G4(r6Ba0A{i$Oh2^A)SjlZz;=No;GIgP_wO%*I3Io+IK& zU74XSMu+pqcAwb0nT1sk7>>O;2BQ@X97dTOmKrg&(a*yscYMq4>jeY8N69*Q535~- zCP_7@7Q_5d$7ZqpA$onML#QH%dX(N|k^!qd-r`{cpKqNW;&_tztz ze<{jI^2*${s#?%2?)rKb)s0q~N-@_o9>KY{ZCEOLOu;}jw z7ff49Mq{$&GRd;tN1+>A(Zo;6m<`KqUGWu2*PIs*`F{Tjo%efEH#`NW@9fz@S9!ti zZ?|GD@B440>+H<|+kF;(&HV6A6wclC%n>MR?M_(ssmnz^zhZLZz5*NxQK_YBwML_P z<0zCWoAJP~14*{p2=tJUvjl#)0URl&bB;r>?BdFGQkKUv%;o2^>^__wjKdlPIV6&9 zOBYc|_RP+1rBX?c0A^F(6&H(wJ5HLGOJ%X*z0}N6o+hPEEEYR1Azg#UB=c!`y}O_$ zK`F*iMW73v9bY&*@SZjbQynR#U5}O&`?yn|@cK@4=vfwfJ;s2J4NZZf#y_A}s_?mE z%PGN9p~Ye=$?$-`9uG>n7~r*k9z+bsHU{bIySt4Mx`X z>%LQiW6SANryLrW*|R78xBC^B{0PqZw z68p_o0HxNV1h((@04x=N403?Up0Pk!y+xmoh~~zUNSoPpBLgtocMsWpw4g%Oakk&R z4$QeedLqPIIMA4AT3dZ<^kEMV z8Z0}=#tL(^9iW#@*$$CAEm$o-iwtpcb=CPrKA&0+K$?iD#4j!W#R=@XaWi+L-3UDb zGlA=e4=5vU^TDs`>OaPvC+-b(QxXNEakef@N{SR+JbIAtFi$3)8I1RC_O@EXcnErP z?rJlFq&!?2q17e4aL+ds-<7w)nBK+tH_P_pE;~J!2)gzH&xHZcU7w~I@V(Li;JGWn z@(3{TaGG=)wx!D}lhzqCoF(RT%*oGAWpCQ`$(6>>TS3#Cs`8I7`!O5Zi~%i?unWUG zH4YIUbMQ((V!f6iyo-Tf(+xa_qs|-R@N8vmE`}wj%QV?A67i(3G$=>Z zicuEaZDnZ1i)|M`mAw@LPsPt(=BVJ}MJ=gQhS4~b(wsSXOIRNHXfjr~LpOvzf52cI zVv10PmMHEP;gX?S?Si;Sw$gHz$!*zG6F$Xi8aT_cwem%4N<>d9(Q9~zh~`9kd;dM# zklB9}&Q-;v(F0AkTO5IghiKM-nF_p9ZMrob=qcH=yT;M?pDm!!j)b5Cz2~e`6oZ~8e&^;6|jbLH|c*3%z zL}5#>kP8lR5aJ1(r|nj9cZ`lBkBiwXfhqJ;8BqJ+{qkX+SVg#Gkvq%;qtr;*FnJ#o%eqvyw@7DY(TIl5P)Ym{2IBW zky>yN*yM{2eOXkXrJ0B>fFg|Bsr!w-_}^ z^1#K^T)+>e2l2??z}<)D*Het0p`j@DsFx%e%SNZQFi~%-`^aY;N1>{GmA*O-r*lN! zW{Lt@5vJ?#LRI4)BlWgso-xA!Ibg=WdGUP6e|!gK5~-Y@dJ zw=rZ4YRa=ELijfZ;gPykuovk)$P@)C70n7;VGrsIOG5tFhV` zLV*u8PvUFlOwv|KWj6@6T!g8fCsY|WZ#+AE`v%=++ECLw{y2D~WAz{<63_0Nm5h)^ z4_b~u{CM8sXQ00EYV*Ngjg!Y`6v?BpZDDsMEGOp9EH{rX6Q(p5TiNE zLXaLQ1Oh~jcJzT>#!zM&uNoZPNLS^9Coi~Ifgy@pF+F@^FcWq03pd5Z&}-=-K5%>s zzfq%0CkArWp*HI@1;c214UT;j=RROr^>eZfPiOfNlDlo+uW)eqs!6fIREBdGWsCDw zyMiU$?iH3MJGBdN>wk7Hu*5+U4~KmU={jkv4|8mR+z8RJv1Q{*1exX=x58}I&=w`a zvQ6_CjXgP|^Xo^={Hv5$$*n)6KU!(l^1|@jjfd=Qkg{E097eAh3o8~N$h#C851an7 z91|}RSF3ofC%f)7&3wkOq6qdd%?@?kq~xWB)IrdM$2*O zz=z65$l8GI#yQCWQbKm%_5#fo7!4#w1GTD9b@K@rGVLG))WNwA?j(S0b$6%kp5gTW zfxds`p#M1984C$>1E$KUS58Sq>!$T$19iswA|OyIWC%by2t2!Kq1dcaFt0RNy)_RZ z2|<{`65)hvRkMjKB@HU69{diR~t-LT>nzceBQSdqK*52+f#!`b^G@<3Z8UwW=OQ;VqS+ zFfPeT5TLl_{9RcUT8V(?ILp$QKrVm#g%kHb1;I%nGa1ZA*nz2X_Lm{erOx;%5+Jwf zzy`uXJvzZa1QFA6&u8J-TOgFDB(Jt2`#*@-Klu=$K;@*JsI{HZfT>OgY%dVZSTxQ- zk`3ee2)KbsNQB0hMMUVdAF-+Ty|b<|8;Ij9z^xXq?>7mD$J9L%*@SUK620bfyD!#B7K1tV zvhg?sd83zLUbo`SE=%Dz*bcn41CbS%JXFF3iO7eurK z^)!}EjRJ!aVIg>TH&*+B^L=ahs>D2Rpzgu-mK+pz_mO|Ze*ex;)#K)a#hiY8%(x+L zE8D>b$W#77y8kOYEpU7Fg30-`4Que;11r8$7<&7KvZ@`mypalE(>p(OxADAc$9X&x z6*9GquEit)PWujHSRJ>lT-YL5T7lJi7x_F4N|TD&2`8#3A>1phViB`Ja?+_$`_3`r zGHksf`lh`E1o@;I+009HJ|E^daT?V89^)v);H9V_rGaS8=on&29(z*0Y>)){0qM93 zyte(<*Xe+nK*?$bCCe|u-PILUIwPTfncw~iT4r$FZzfK3 z5r2KQQ@rKQnOy>C0K4v!pO*TULp+iIHhT#izGVb^qQ4`b6NG3E2U9Ahe5no(c2KSM z<##|0Yx^7npLdT@{&?zYD7T2%M49qauYuF;`d%53;?tFHt8VGD=D)P_(PzglCCmFM zG!lmd(qR7A-rBEEJBE7AT)0R>56{xkCOFgF4yP3 zkg>oM@laIM_?{WQ`Yl-bWsm>Xw+z1pQ-JOJxvpD44mtN4ev*7IhxoJ(qwx}hHIbMr zI-$?a0m}~%pe3X)MgOIKN7^1o(*Kc7ecxHDjzexAJ>MLE*n(jV_U=FJhK@VZ6-&>U zn9vAAuxuib6dEOxd~9r`wDguXo#d#dI&62{{HLoRS0yU*9I;GLLlh@M!g&OAY*&6K zrss`CH&n`Px{H0X)zOFhuC`A?^a`+`-wZxCtxc&2X-hf1%OJr^-NtkyimYW6b{(j^ zILk9gsZmFJ*oK-s15mN_dN~*DfmXUX_dA8Nbk${&m8g)&5sTTZ{-Lp-A3R+plRKL{ zXl&~eoO?15s4q5z145)=_Ze4w2|%%@GB;8e4Ir1?*@uAxET+olc$0mBHpKz*0&d)G bcKf1`J!^yOx;x+>EH2ovNKE;M`%e88qR0RZ literal 0 HcmV?d00001 diff --git a/docs/classsw_1_1_uniform_grid-members.html b/docs/classsw_1_1_uniform_grid-members.html new file mode 100644 index 00000000..9eb444dd --- /dev/null +++ b/docs/classsw_1_1_uniform_grid-members.html @@ -0,0 +1,326 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::UniformGrid Member List
+
+
+ +

This is the complete list of members for sw::UniformGrid, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AddChild(UIElement *element)sw::UIElement
AddChild(UIElement &element)sw::UIElement
AddChild(UIElement *element, uint64_t layoutTag)sw::UIElement
AddChild(UIElement &element, uint64_t layoutTag)sw::UIElement
Arrange(const sw::Rect &finalPosition) overridesw::PanelBasevirtual
AutoSizesw::Layer
BackColorsw::UIElement
BorderStylesw::Panel
ChildCountsw::UIElement
ClearChildren()sw::UIElement
ClientHeightsw::WndBase
ClientRectsw::WndBase
ClientWidthsw::WndBase
Close()sw::WndBase
CollapseWhenHidesw::UIElement
Columnssw::UniformGrid
ContextMenusw::UIElement
Control()sw::Controlprotected
DefaultWndProc(const ProcMsg &refMsg)sw::WndBaseprotected
DisableLayout()sw::Layer
Enabledsw::WndBase
EnableLayout()sw::Layer
FirstColumnsw::UniformGrid
Floatsw::UIElement
Focusedsw::WndBase
Fontsw::WndBase
FontChanged(HFONT hfont)sw::WndBaseprotectedvirtual
FontNamesw::WndBase
FontSizesw::WndBase
FontWeightsw::WndBase
GetArrangeOffsetX()sw::UIElementprotected
GetArrangeOffsetY()sw::UIElementprotected
GetChildBottommost(bool update)sw::UIElementprotected
GetChildLayoutAt(int index) overridesw::UIElementvirtual
GetChildLayoutCount() overridesw::UIElementvirtual
GetChildRightmost(bool update)sw::UIElementprotected
GetDefaultLayout() overridesw::UniformGridprotectedvirtual
GetDesireSize() overridesw::UIElementvirtual
GetExtendedStyle()sw::WndBaseprotected
GetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
GetFontHandle()sw::WndBaseprotected
GetHorizontalScrollPageSize()sw::Layer
GetHorizontalScrollRange(double &refMin, double &refMax)sw::Layer
GetLayoutTag() overridesw::UIElementvirtual
GetNextElement()sw::UIElement
GetNextTabStopElement()sw::UIElement
GetRealBackColor()sw::UIElement
GetRealTextColor()sw::UIElement
GetRootElement()sw::UIElement
GetStyle()sw::WndBaseprotected
GetStyle(LONG_PTR style)sw::WndBaseprotected
GetTag() overridesw::UIElementvirtual
GetText()sw::WndBaseprotectedvirtual
GetVerticalScrollPageSize()sw::Layer
GetVerticalScrollRange(double &refMin, double &refMax)sw::Layer
GetWndBase(HWND hwnd)sw::WndBasestatic
Handlesw::WndBase
HandleChenged()sw::Controlprotectedvirtual
HandleInitialized(HWND hwnd)sw::WndBaseprotectedvirtual
Heightsw::WndBase
HorizontalAlignmentsw::UIElement
HorizontalScrollBarsw::Layer
HorizontalScrollLimitsw::Layer
HorizontalScrollPossw::Layer
IndexOf(UIElement *element)sw::UIElement
IndexOf(UIElement &element)sw::UIElement
InheritTextColorsw::UIElement
InitControl(LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
InitWindow(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
IsControl()sw::WndBase
IsDestroyedsw::WndBase
IsRootElement()sw::UIElement
IsRoutedEventRegistered(RoutedEventType eventType)sw::UIElement
IsVisible()sw::WndBase
Layer()sw::Layerprotected
Layoutsw::Layer
LayoutTagsw::UIElement
Leftsw::WndBase
Marginsw::UIElement
Measure(const Size &availableSize) overridesw::PanelBasevirtual
MoveToBottom()sw::UIElement
MoveToTop()sw::UIElement
NcHitTest(const Point &testPoint)sw::WndBase
NotifyLayoutUpdated()sw::UIElementprotected
OnAcceleratorCommand(int id)sw::WndBaseprotectedvirtual
OnAddedChild(UIElement &element)sw::UIElementprotectedvirtual
OnChar(wchar_t ch, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnClose() overridesw::UIElementprotectedvirtual
OnColor(HDC hdc, HBRUSH &hRetBrush) overridesw::UIElementprotectedvirtual
OnCommand(int code)sw::WndBaseprotectedvirtual
OnContextMenu(bool isKeyboardMsg, Point mousePosition) overridesw::UIElementprotectedvirtual
OnControlCommand(WndBase *pControl, int code, int id)sw::WndBaseprotectedvirtual
OnCreate()sw::WndBaseprotectedvirtual
OnCtlColor(WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)sw::WndBaseprotectedvirtual
OnDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnDestroy()sw::WndBaseprotectedvirtual
OnDrawFocusRect()sw::UIElementprotectedvirtual
OnDrawItem(int id, DRAWITEMSTRUCT *pDrawItem)sw::WndBaseprotectedvirtual
OnEnabledChanged(bool newValue)sw::WndBaseprotectedvirtual
OnEndPaint() overridesw::UIElementprotectedvirtual
OnEraseBackground(int &result)sw::WndBaseprotectedvirtual
OnHorizontalScroll(int event, int pos) overridesw::PanelBaseprotectedvirtual
OnKeyDown(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKeyUp(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKillFocus(HWND hNextFocus) overridesw::UIElementprotectedvirtual
OnMenuCommand(int id) overridesw::UIElementprotectedvirtual
OnMouseLeave() overridesw::UIElementprotectedvirtual
OnMouseLeftButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseLeftButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseMiddleButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMove(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseRightButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseWheel(int wheelDelta, Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMove(Point newClientPosition) overridesw::UIElementprotectedvirtual
OnNcHitTest(const Point &testPoint, HitTestResult &result)sw::WndBaseprotectedvirtual
OnNotified(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnNotify(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnPaint() overridesw::Panelprotectedvirtual
OnRemovedChild(UIElement &element)sw::UIElementprotectedvirtual
OnScroll(ScrollOrientation scrollbar, ScrollEvent event, double pos)sw::Layerprotectedvirtual
OnSetCursor(HWND hwnd, HitTestResult hitTest, int message, bool &result) overridesw::UIElementprotectedvirtual
OnSetFocus(HWND hPrevFocus) overridesw::UIElementprotectedvirtual
OnSize(Size newClientSize) overridesw::Panelprotectedvirtual
OnSysChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyDown(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyUp(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnTabStop()sw::UIElementprotectedvirtual
OnTextChanged() overridesw::UIElementprotectedvirtual
OnVerticalScroll(int event, int pos) overridesw::PanelBaseprotectedvirtual
operator=(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator=(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator[](int index) constsw::UIElement
Panel()sw::Panel
PanelBase()sw::PanelBaseprotected
Parentsw::UIElement
ParentChanged(WndBase *newParent) overridesw::UIElementprotectedvirtual
PointFromScreen(const Point &screenPoint)sw::WndBase
PointToScreen(const Point &point)sw::WndBase
RaiseRoutedEvent(RoutedEventType eventType)sw::UIElementprotected
RaiseRoutedEvent(RoutedEventArgs &eventArgs)sw::UIElementprotected
Rectsw::WndBase
Redraw(bool erase=false)sw::WndBase
RegisterRoutedEvent(RoutedEventType eventType, const RoutedEvent &handler)sw::UIElement
RegisterRoutedEvent(RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))sw::UIElementinline
RegisterRoutedEvent(std::function< void(UIElement &, TEventArgs &)> handler)sw::UIElementinline
RegisterRoutedEvent(THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))sw::UIElementinline
RemoveChild(UIElement *element)sw::UIElement
RemoveChild(UIElement &element)sw::UIElement
RemoveChildAt(int index)sw::UIElement
ResetCursor()sw::UIElement
ResetHandle()sw::Controlprotected
Rowssw::UniformGrid
ScrollHorizontal(double offset)sw::Layer
ScrollToBottom()sw::Layer
ScrollToLeft()sw::Layer
ScrollToRight()sw::Layer
ScrollToTop()sw::Layer
ScrollVertical(double offset)sw::Layer
SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase
SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement
SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual
SetCursor(HCURSOR hCursor)sw::UIElement
SetCursor(StandardCursor cursor)sw::UIElement
SetDesireSize(const Size &size) overridesw::UIElementvirtual
SetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
SetExtendedStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetHorizontalScrollPageSize(double pageSize)sw::Layer
SetHorizontalScrollRange(double min, double max)sw::Layer
SetNextTabStopFocus()sw::UIElementprotected
SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual
SetStyle(LONG_PTR style)sw::WndBaseprotected
SetStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetTag(uint64_t tag) overridesw::UIElementvirtual
SetText(const std::wstring &value)sw::WndBaseprotectedvirtual
SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual
SetVerticalScrollPageSize(double pageSize)sw::Layer
SetVerticalScrollRange(double min, double max)sw::Layer
Show(int nCmdShow)sw::WndBase
ShowContextMenu(const Point &point)sw::UIElement
TabStopsw::UIElement
Tagsw::UIElement
Textsw::WndBase
TextColorsw::UIElement
Topsw::WndBase
Transparentsw::UIElement
UIElement()sw::UIElementprotected
UniformGrid()sw::UniformGrid
UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement
Update()sw::WndBase
UpdateChildrenZOrder()sw::UIElementprotected
UpdateFont()sw::WndBase
UpdateLayout()sw::Layerprotected
UpdateScrollRange()sw::Layer
UpdateSiblingsZOrder()sw::UIElementprotected
UpdateText()sw::WndBaseprotected
VerticalAlignmentsw::UIElement
VerticalScrollBarsw::Layer
VerticalScrollLimitsw::Layer
VerticalScrollPossw::Layer
Visiblesw::WndBase
VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual
Widthsw::WndBase
WndBase()sw::WndBaseprotected
WndBase(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndBase(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual
~Control()=0sw::Controlpure virtual
~Layer()=0sw::Layerpure virtual
~PanelBase()=0sw::PanelBasepure virtual
~UIElement()=0sw::UIElementpure virtual
~WndBase()=0sw::WndBasepure virtual
+
+ + + + diff --git a/docs/classsw_1_1_uniform_grid.html b/docs/classsw_1_1_uniform_grid.html new file mode 100644 index 00000000..4c7d4640 --- /dev/null +++ b/docs/classsw_1_1_uniform_grid.html @@ -0,0 +1,969 @@ + + + + + + + +SimpleWindow: sw::UniformGrid Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+ +

提供一种在网格(网格中的所有单元格都具有相同的大小)中排列内容的方法 + More...

+ +

#include <UniformGrid.h>

+
+Inheritance diagram for sw::UniformGrid:
+
+
+ + +sw::Panel +sw::PanelBase +sw::Control +sw::Layer +sw::UIElement +sw::UIElement +sw::WndBase +sw::ILayout +sw::ITag +sw::WndBase +sw::ILayout +sw::ITag + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

UniformGrid ()
 初始化UniformGrid
 
- Public Member Functions inherited from sw::Panel
Panel ()
 初始化面板
 
- Public Member Functions inherited from sw::PanelBase
+virtual ~PanelBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const sw::Rect &finalPosition) override
 安排控件位置
 
- Public Member Functions inherited from sw::Control
+virtual ~Control ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
- Public Member Functions inherited from sw::UIElement
+virtual ~UIElement ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
void RegisterRoutedEvent (RoutedEventType eventType, const RoutedEvent &handler)
 注册路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename T >
void RegisterRoutedEvent (RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))
 注册成员函数作为路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename TEventArgs , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (std::function< void(UIElement &, TEventArgs &)> handler)
 根据事件参数类型注册路由事件
 
template<typename TEventArgs , typename THandleObj , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))
 根据事件参数类型注册成员函数作为路由事件
 
void UnregisterRoutedEvent (RoutedEventType eventType)
 取消对应类型路由事件的注册
 
bool IsRoutedEventRegistered (RoutedEventType eventType)
 判断路由事件是否已被注册
 
bool AddChild (UIElement *element)
 添加子控件
 
bool AddChild (UIElement &element)
 添加子控件
 
bool AddChild (UIElement *element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool AddChild (UIElement &element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool RemoveChildAt (int index)
 移除指定索引处的子控件
 
bool RemoveChild (UIElement *element)
 移除子控件
 
bool RemoveChild (UIElement &element)
 移除子控件
 
+void ClearChildren ()
 移除所有子控件
 
int IndexOf (UIElement *element)
 获取指定元素的索引
 
int IndexOf (UIElement &element)
 获取指定元素的索引
 
+UIElementoperator[] (int index) const
 通过索引获取子控件
 
void ShowContextMenu (const Point &point)
 弹出当前元素的上下文菜单
 
+void MoveToTop ()
 移动到界面顶部
 
+void MoveToBottom ()
 移动到界面底部
 
+bool IsRootElement ()
 判断当前元素是否为根节点
 
+UIElementGetRootElement ()
 获取当前元素所在界面树的根节点
 
+UIElementGetNextElement ()
 获取当前元素在界面树上的下一个节点,若已是最后一个节点则返回根节点
 
+UIElementGetNextTabStopElement ()
 获取下一个TabStop属性为true的元素
 
+Color GetRealBackColor ()
 获取当前要显示的背景颜色:当Transparent为true时获取到祖先节点中首个Transparent为false的背景颜色,否则返回当前元素的背景颜色
 
+Color GetRealTextColor ()
 获取当前要显示的文本颜色:当InheritTextColor为true时获取到祖先节点中首个InheritTextColor为false的文本颜色,否则返回当前元素的文本颜色
 
void SetCursor (HCURSOR hCursor)
 设置鼠标样式
 
void SetCursor (StandardCursor cursor)
 设置鼠标样式
 
+void ResetCursor ()
 将鼠标样式设置为默认样式
 
void SetAlignment (sw::HorizontalAlignment horz, sw::VerticalAlignment vert)
 设置对齐方式
 
virtual uint64_t GetTag () override
 获取Tag
 
virtual void SetTag (uint64_t tag) override
 设置Tag
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取参与布局的子控件数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取对应索引处的子控件,使用此函数前必须先调用GetChildLayoutCount
 
virtual Size GetDesireSize () override
 获取控件所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置当前控件所需的尺寸
 
- Public Member Functions inherited from sw::WndBase
+virtual ~WndBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void Show (int nCmdShow)
 该函数调用ShowWindow
 
+void Close ()
 发送关闭消息
 
+void Update ()
 该函数调用UpdateWindow
 
+void UpdateFont ()
 更新字体
 
void Redraw (bool erase=false)
 重画
 
+bool IsControl ()
 判断当前对象是否是控件
 
+bool IsVisible ()
 判断当前对象在界面中是否可视,与Visible属性不同的是该函数返回值会受父窗口的影响
 
Point PointToScreen (const Point &point)
 获取用户区点在屏幕上点的位置
 
Point PointFromScreen (const Point &screenPoint)
 获取屏幕上点在当前用户区点的位置
 
+LRESULT SendMessageW (UINT uMsg, WPARAM wParam, LPARAM lParam)
 发送消息
 
HitTestResult NcHitTest (const Point &testPoint)
 测试指定点在窗口的哪一部分
 
- Public Member Functions inherited from sw::Layer
+virtual ~Layer ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void DisableLayout ()
 禁用布局
 
+void EnableLayout ()
 启用布局
 
void GetHorizontalScrollRange (double &refMin, double &refMax)
 获取横向滚动条的范围
 
void GetVerticalScrollRange (double &refMin, double &refMax)
 获取纵向滚动条的范围
 
void SetHorizontalScrollRange (double min, double max)
 设置横向滚动条的范围
 
void SetVerticalScrollRange (double min, double max)
 设置纵向滚动条的范围
 
+double GetHorizontalScrollPageSize ()
 获取水平滚动条滚动页面大小
 
+double GetVerticalScrollPageSize ()
 获取垂直滚动条滚动页面大小
 
+void SetHorizontalScrollPageSize (double pageSize)
 设置水平滚动条滚动页面大小
 
+void SetVerticalScrollPageSize (double pageSize)
 设置垂直滚动条滚动页面大小
 
+void UpdateScrollRange ()
 根据子元素更新滚动条范围,未设定布局方式时该函数无效
 
+void ScrollToTop ()
 将垂直滚动条移动到顶部
 
+void ScrollToBottom ()
 将垂直滚动条移动到底部
 
+void ScrollToLeft ()
 将水平滚动条移动到最左
 
+void ScrollToRight ()
 将水平滚动条移动到最右
 
void ScrollHorizontal (double offset)
 水平滚动
 
void ScrollVertical (double offset)
 垂直滚动
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Attributes

+const Property< intRows
 行数
 
+const Property< intColumns
 列数
 
+const Property< intFirstColumn
 网格第一行中前导空白单元格的数量
 
- Public Attributes inherited from sw::Panel
+const Property< sw::BorderStyle > BorderStyle
 边框样式
 
- Public Attributes inherited from sw::UIElement
+const Property< ThicknessMargin
 边距
 
+const Property< HorizontalAlignment > HorizontalAlignment
 水平对齐方式
 
+const Property< VerticalAlignment > VerticalAlignment
 垂直对齐方式
 
+const ReadOnlyProperty< intChildCount
 子控件数量
 
+const Property< boolCollapseWhenHide
 是否在不可见时不参与布局
 
+const ReadOnlyProperty< UIElement * > Parent
 指向父元素的指针,当前元素为顶级窗口时该值为nullptr
 
+const Property< uint64_tTag
 储存用户自定义信息的标记
 
+const Property< uint64_tLayoutTag
 布局标记,对于不同的布局有不同含义
 
+const Property< sw::ContextMenu * > ContextMenu
 右键按下时弹出的菜单
 
+const Property< boolFloat
 元素是否悬浮,若元素悬浮则该元素不会随滚动条滚动而改变位置
 
+const Property< boolTabStop
 表示用户是否可以通过按下Tab键将焦点移动到当前元素
 
+const Property< ColorBackColor
 背景颜色,修改该属性会同时将Transparent属性设为false,对于部分控件该属性可能不生效
 
+const Property< ColorTextColor
 文本颜色,修改该属性会同时将InheritTextColor属性设为false,对于部分控件该属性可能不生效
 
+const Property< boolTransparent
 是否使用透明背景(此属性并非真正意义上的透明,将该属性设为true可继承父元素的背景颜色)
 
+const Property< boolInheritTextColor
 是否继承父元素的文本颜色
 
- Public Attributes inherited from sw::WndBase
+const ReadOnlyProperty< HWNDHandle
 窗口句柄
 
+const Property< sw::FontFont
 字体
 
+const Property< std::wstring > FontName
 字体名称
 
+const Property< doubleFontSize
 字体大小
 
+const Property< sw::FontWeight > FontWeight
 字体粗细
 
+const Property< sw::RectRect
 位置和尺寸
 
+const Property< doubleLeft
 左边
 
+const Property< doubleTop
 顶边
 
+const Property< doubleWidth
 宽度
 
+const Property< doubleHeight
 高度
 
+const ReadOnlyProperty< sw::RectClientRect
 用户区尺寸
 
+const ReadOnlyProperty< doubleClientWidth
 用户区宽度
 
+const ReadOnlyProperty< doubleClientHeight
 用户区高度
 
+const Property< boolEnabled
 窗口或控件是否可用
 
+const Property< boolVisible
 窗口或控件是否可见
 
+const Property< std::wstring > Text
 窗口标题或控件文本
 
+const Property< boolFocused
 窗口是否拥有焦点
 
+const ReadOnlyProperty< WndBase * > Parent
 父窗口
 
+const ReadOnlyProperty< boolIsDestroyed
 是否已销毁,当该值为true时不应该继续使用当前对象
 
- Public Attributes inherited from sw::Layer
+const Property< LayoutHost * > Layout
 自定义的布局方式,赋值后将自动与所指向的布局关联,每个布局只能关联一个对象,设为nullptr可恢复默认布局
 
+const Property< boolAutoSize
 是否按照布局方式与子元素自动调整尺寸,该属性仅在当前元素已设置布局方式并且非顶级元素时有效
 
+const Property< boolHorizontalScrollBar
 是否显示横向滚动条
 
+const Property< boolVerticalScrollBar
 是否显示纵向滚动条
 
+const Property< doubleHorizontalScrollPos
 横向滚动条位置
 
+const Property< doubleVerticalScrollPos
 纵向滚动条位置
 
+const ReadOnlyProperty< doubleHorizontalScrollLimit
 横向滚动条可设置的最大位置
 
+const ReadOnlyProperty< doubleVerticalScrollLimit
 纵向滚动条可设置的最大位置
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Protected Member Functions

virtual LayoutHostGetDefaultLayout () override
 获取默认布局对象
 
- Protected Member Functions inherited from sw::Panel
virtual bool OnPaint () override
 接收到WM_PAINT时调用该函数
 
virtual bool OnSize (Size newClientSize) override
 接收到WM_SIZE时调用该函数
 
- Protected Member Functions inherited from sw::PanelBase
PanelBase ()
 初始化PanelBase
 
virtual bool OnVerticalScroll (int event, int pos) override
 接收到WM_VSCROLL时调用目标控件的该函数
 
virtual bool OnHorizontalScroll (int event, int pos) override
 接收到WM_HSCROLL时调用目标控件的该函数
 
- Protected Member Functions inherited from sw::Control
Control ()
 初始化控件
 
+void ResetHandle ()
 销毁控件句柄并重新初始化,该操作会创建新的句柄并设置样式、文本、字体等
 
+virtual void HandleChenged ()
 控件句柄发生改变时调用该函数
 
- Protected Member Functions inherited from sw::UIElement
UIElement ()
 初始化UIElement
 
void RaiseRoutedEvent (RoutedEventType eventType)
 触发路由事件
 
void RaiseRoutedEvent (RoutedEventArgs &eventArgs)
 触发路由事件
 
+void NotifyLayoutUpdated ()
 通知顶级窗口布局改变
 
+doubleGetArrangeOffsetX ()
 获取Arrange时子元素的水平偏移量
 
+doubleGetArrangeOffsetY ()
 获取Arrange时子元素的垂直偏移量
 
double GetChildRightmost (bool update)
 获取所有子元素在当前元素中最右边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
double GetChildBottommost (bool update)
 获取所有子元素在当前元素中最底边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
+void UpdateChildrenZOrder ()
 更新子元素的Z轴位置
 
+void UpdateSiblingsZOrder ()
 更新兄弟元素的Z轴位置
 
+void SetNextTabStopFocus ()
 设置下一个TabStop属性为true的元素为焦点元素
 
virtual void SetBackColor (Color color, bool redraw)
 设置背景颜色
 
virtual void SetTextColor (Color color, bool redraw)
 设置文本颜色
 
virtual void OnAddedChild (UIElement &element)
 添加子元素后调用该函数
 
virtual void OnRemovedChild (UIElement &element)
 移除子元素后调用该函数
 
+virtual void OnTabStop ()
 通过tab键将焦点移动到当前元素时调用该函数
 
virtual void OnDrawFocusRect ()
 绘制虚线框时调用该函数
 
virtual bool SetParent (WndBase *parent) override
 设置父窗口
 
virtual void ParentChanged (WndBase *newParent) override
 父窗口改变时调用此函数
 
virtual void OnEndPaint () override
 在OnPaint函数完成之后调用该函数
 
virtual bool OnClose () override
 接收到WM_CLOSE时调用该函数
 
virtual bool OnMove (Point newClientPosition) override
 接收到WM_MOVE时调用该函数
 
virtual void OnTextChanged () override
 Text属性更改时调用此函数
 
virtual void VisibleChanged (bool newVisible) override
 Visible属性改变时调用此函数
 
virtual bool OnSetFocus (HWND hPrevFocus) override
 接收到WM_SETFOCUS时调用该函数
 
virtual bool OnKillFocus (HWND hNextFocus) override
 接收到WM_KILLFOCUS时调用该函数
 
virtual bool OnChar (wchar_t ch, KeyFlags flags) override
 接收到WM_CHAR时调用该函数
 
virtual bool OnKeyDown (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYDOWN时调用该函数
 
virtual bool OnKeyUp (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYUP时调用该函数
 
virtual bool OnMouseMove (Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEMOVE时调用该函数
 
virtual bool OnMouseLeave () override
 接收到WM_MOUSELEAVE时调用该函数
 
virtual bool OnMouseWheel (int wheelDelta, Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEWHEEL时调用该函数
 
virtual bool OnMouseLeftButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONDOWN时调用该函数
 
virtual bool OnMouseLeftButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONUP时调用该函数
 
virtual bool OnMouseRightButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONDOWN时调用该函数
 
virtual bool OnMouseRightButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONUP时调用该函数
 
virtual bool OnMouseMiddleButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONDOWN时调用该函数
 
virtual bool OnMouseMiddleButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONUP时调用该函数
 
virtual bool OnContextMenu (bool isKeyboardMsg, Point mousePosition) override
 接收到WM_CONTEXTMENU后调用目标控件的该函数
 
virtual void OnMenuCommand (int id) override
 当WM_COMMAND接收到菜单命令时调用该函数
 
virtual bool OnColor (HDC hdc, HBRUSH &hRetBrush) override
 父窗口接收到WM_CTLCOLORxxx时调用对应控件的该函数
 
virtual bool OnSetCursor (HWND hwnd, HitTestResult hitTest, int message, bool &result) override
 接收到WM_SETCURSOR消息时调用该函数
 
- Protected Member Functions inherited from sw::WndBase
WndBase ()
 初始化WndBase
 
WndBase (const WndBase &)=delete
 
WndBase (WndBase &&)=delete
 
+WndBaseoperator= (const WndBase &)=delete
 
+WndBaseoperator= (WndBase &&)=delete
 
+void InitWindow (LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为窗口,该函数会调用CreateWindowExW
 
+void InitControl (LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为控件,该函数会调用CreateWindowExW
 
+LONG_PTR GetStyle ()
 获取窗口样式
 
+void SetStyle (LONG_PTR style)
 设置窗口样式
 
+bool GetStyle (LONG_PTR style)
 获取窗口的某个样式
 
+void SetStyle (LONG_PTR style, bool value)
 设置窗口的某个样式
 
+LONG_PTR GetExtendedStyle ()
 获取扩展窗口样式
 
+void SetExtendedStyle (LONG_PTR style)
 设置扩展窗口样式
 
+bool GetExtendedStyle (LONG_PTR style)
 获取窗口的某个扩展样式
 
+void SetExtendedStyle (LONG_PTR style, bool value)
 设置窗口的某个扩展样式
 
+HFONT GetFontHandle ()
 获取字体句柄
 
+LRESULT DefaultWndProc (const ProcMsg &refMsg)
 调用默认的WndProc,对于窗口则调用DefWindowProcW,控件则调用_controlOldWndProc
 
virtual LRESULT WndProc (const ProcMsg &refMsg)
 对WndProc的封装
 
+void UpdateText ()
 更新_text字段
 
virtual std::wstring & GetText ()
 获取窗口文本
 
virtual void SetText (const std::wstring &value)
 调用SetWindowTextW设置窗口文本
 
virtual bool OnCreate ()
 接收到WM_CREATE时调用该函数
 
virtual bool OnDestroy ()
 接收到WM_DESTROY时调用该函数
 
virtual bool OnMouseLeftButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_LBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseRightButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_RBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseMiddleButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_MBUTTONDBLCLK时调用该函数
 
virtual bool OnDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_DEADCHAR时调用该函数
 
virtual bool OnSysChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSCHAR时调用该函数
 
virtual bool OnSysDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSDEADCHAR时调用该函数
 
virtual bool OnSysKeyDown (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYDOWN时调用该函数
 
virtual bool OnSysKeyUp (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYUP时调用该函数
 
virtual void OnCommand (int code)
 当父窗口接收到控件的WM_COMMAND时调用该函数
 
virtual void OnControlCommand (WndBase *pControl, int code, int id)
 当WM_COMMAND接收到控件命令时调用该函数
 
virtual void OnAcceleratorCommand (int id)
 当WM_COMMAND接收到快捷键命令时调用该函数
 
virtual void HandleInitialized (HWND hwnd)
 窗口句柄初始化完成
 
virtual void FontChanged (HFONT hfont)
 字体改变时调用该函数
 
virtual bool OnNotify (NMHDR *pNMHDR)
 接收到WM_NOTIFY后调用该函数
 
virtual void OnNotified (NMHDR *pNMHDR)
 父窗口接收到WM_NOTIFY后调用发出通知控件的该函数
 
virtual bool OnEnabledChanged (bool newValue)
 接收到WM_ENABLE时调用该函数
 
virtual bool OnCtlColor (WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)
 接收到WM_CTLCOLORxxx时调用该函数
 
virtual void OnNcHitTest (const Point &testPoint, HitTestResult &result)
 接收到WM_NCHITTEST后调用该函数
 
virtual bool OnEraseBackground (int &result)
 接收到WM_ERASEBKGND时调用该函数
 
virtual bool OnDrawItem (int id, DRAWITEMSTRUCT *pDrawItem)
 接收到WM_DRAWITEM时调用该函数
 
- Protected Member Functions inherited from sw::Layer
Layer ()
 初始化Layer
 
+void UpdateLayout ()
 更新布局
 
virtual void OnScroll (ScrollOrientation scrollbar, ScrollEvent event, double pos)
 触发滚动条相关事件时调用该函数
 
+ + + + + +

+Additional Inherited Members

- Static Public Member Functions inherited from sw::WndBase
static WndBaseGetWndBase (HWND hwnd)
 通过窗口句柄获取WndBase
 
+

Detailed Description

+

提供一种在网格(网格中的所有单元格都具有相同的大小)中排列内容的方法

+

Member Function Documentation

+ +

◆ GetDefaultLayout()

+ +
+
+ + + + + +
+ + + + + + + +
virtual LayoutHost * sw::UniformGrid::GetDefaultLayout ()
+
+overrideprotectedvirtual
+
+ +

获取默认布局对象

+ +

Reimplemented from sw::Layer.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_uniform_grid.js b/docs/classsw_1_1_uniform_grid.js new file mode 100644 index 00000000..f9baf7c0 --- /dev/null +++ b/docs/classsw_1_1_uniform_grid.js @@ -0,0 +1,8 @@ +var classsw_1_1_uniform_grid = +[ + [ "UniformGrid", "classsw_1_1_uniform_grid.html#a9e262983bba94ed0841bff604b4fbd29", null ], + [ "GetDefaultLayout", "classsw_1_1_uniform_grid.html#aeedb9dcb3c92bd39fa33589dc8922fcb", null ], + [ "Columns", "classsw_1_1_uniform_grid.html#ac6abb7aaf70869b91207c53cfaf59bca", null ], + [ "FirstColumn", "classsw_1_1_uniform_grid.html#a8fc9ee46df1fab2fd0538880d3d2e536", null ], + [ "Rows", "classsw_1_1_uniform_grid.html#a65a180db32f61dee181c0ae7e36364a6", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_uniform_grid.png b/docs/classsw_1_1_uniform_grid.png new file mode 100644 index 0000000000000000000000000000000000000000..9b9fcbd7f3eaef63b8383dab1f3a8b0f1f8c09b3 GIT binary patch literal 3399 zcmcgv3s6&68cvh~K4`2gTA%m`I${+qP^tm}sTHa~gig26`C6$MUVgig0d7f#L(guA%PGigjXa9#1IL|o*TB#>~=fuba#4Za`WfE|Kt4M zckXv4Uw`g(&}{MQ#TX36%)|W?9}H$eHU@*;Wx5b}Ow4cY0$*!BKTJHJ*Xw~fGNDSy zeNguCu5B^zQ#(cm1_prNp67QPJX;j+G1zYUkeg2Ja5%+jAcK5-=`V`Y7UxUq*T zj9S9BeJR(I72=(bf-a4IpSBKq$;q^XkFl-!H0mE6uDj0S(MAEIJR`{KE zn5}@vs{ErO^rH}z+t+a0s)eVZ6xY+KeuwfPh-L4m==UTdgQ}3la{8JSH;eos$U<$e zTmO78IpkGWI2YqBBj{&k-ZP_=m*wX*3iWdwa(jcH5*PsP$@9c!o`UOS)_vyz~DDNd^fnjq@EI^h`zAtm`A%Hwz` zty`c_>V3{p*95`8C#2IA}X_nh@ z3mnt?Q%q}2lB1EffC%_xo;D%RKc}de#dwsiDH33xaD|O@TJ&fNk5Lt;*M~woLionX zr;$R3qfmn27LqqKnb){_dk$ghNQShO87&KDh5d&Je==3yLmxhf5Ibnt6#w9na zE8A<9j^H&pcyjWzADCR{8UiJBx2_p&?#&-h3<0E6a&8Qfx3p}X8ecP@x>OEJ#yJ6P z`fj{_JJz`{L>d>wdk7zG)@4Fkj;E4i>j%TdS5ekyx*1k2FiZ{q72-ES<#41S@;MY+ zP&&$6!Lsx0n*Jh?R8UIKI>NZ`TPx>>*^h{El@v@#R=F`#5T%zmh5w7ELV=sy#&E@v zW9}K5I)&MvQQFX^0?l5}WHPK=Mm92BGw0n`4He9mZJUeLw!38y6>?_1VsoW0`1F&YOT|mF`hb&BEiRNJq7f#%u{)JLX>^>FUmtu$z4aCC zoF-_-2+Uco6tu^8oFMG;svfdC=7oJCnrMwmLKF|U3TJ+Jx}`5@V@9zRCyR1~J8g%) z;hxw>u9gN??{%KjY3t>S01^R1Nm}bC^&PfDcD_&QC#L$MbEc*gd)m3u2Vh2dL&RT2 zibD3D4vJe;*{ZnWZPK9OR2!-E#gxOWvff;q23B#HtGyCi#JS21wB=t>B~U?r$UoMTQCI@s!>Vco4tTnxZ?ir8|XLfy0<2sO!w@vYg(gC z>$3BlG$ubILaJbZISi{mLq+{|HUv4LH#5{XFYok|5QIZ-nW)BR5fwG0#A6Whm}T3& z5)BpgJ*ESxC&pguhc41j!lvtlOJnrYf~kjLl~Z)*s*6j<*>t>i_ti)Wb2(#~>9i%U^M%Am=G1tx4UXeP|tgH_%>wBo*{W z%yPRLso@ZE9k;HNzDfI_6`N+m>vIqGqMi@-hmLDntb zaD!yC$@JyG*ckKI4ASKetbs z_--9MM#){<3C_PT7k|hpk(CD7a}38Fx)e9Q{ccq5u37s*PRcNIUx3z%e+LRZ5#az3 zjNUeY@UeM`1UV{sJL6+i9OY^QAAb)Q?032Kv*3sm1f=B`6Mx=P55^NUR<36#Z-mGr zwG+t7|Ds-@?7pZ|;8W<@VoA|+m+cCGO|hAGvVWt|i2$W%ySlWj^M#NLpp4x87xkXw zAmIcHhL0siJEjt#iy2$B#5OJg?4Jq7%*Y(^y#>YJe>bR8)J7vcaCUo^XgKD_)aki7 zL_ptUghEuqzm&*GX#A$3!K?w%|I&9{q;ry&dK zjUdOh{DWLVBdxfHw$+d8C}Y^-ro`+AT^j`-B6^TRen9X$>`EIz#Fq|lhINNFhaphzmwtO zZ;${iHt8?~OdSzj^_t@rme5WxE>&0osA5HT8>o7LQbmLk z+yKbALdIapUjS20j{b^x-P31NM<8SesO+e`nN9ub_-C~jwCiY@#b&&&;3+#P z*PEL;wTlTipvY~;8ONhK1sdhO1;~HS-FJ55hR`A~)(^c=U4TYwFjrNg=i!wbLvI7` zSBKu)82UXhj1O7-Zbn1z*^dg7GBYyveG~$&U!x@#PEL+)4%K%Jzf=|W)xK^!ZvuGK z{w-UCYi@2H?pEDHagYd$=Qhja&yU%S1u=Pw6Lq3>v`b|USM(L>lGNAoKcO)vitm&e z-{_5h`TPWVPY^{F^Q!ZwsXJURTKWzE2dx8gTp3r1Xo-!1ZIT{M#2(rcz(H}<+Rn?6 zHhnJ$IsL(w@z@V7rSX6}{bR?QREyaJ3vct3H1y%ta^q>_6p3~GdK5V^R;HYQ?@-(S wh_c+lZ()Lq + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::UniformGridLayout Member List
+
+
+ +

This is the complete list of members for sw::UniformGridLayout, including all inherited members.

+ + + + + + + + + + + + + + +
Arrange(const Rect &finalPosition) overridesw::LayoutHostvirtual
ArrangeOverride(Size &finalSize) overridesw::UniformGridLayoutvirtual
Associate(ILayout *obj)sw::LayoutHost
columnssw::UniformGridLayout
firstColumnsw::UniformGridLayout
GetChildLayoutAt(int index) overridesw::LayoutHostvirtual
GetChildLayoutCount() overridesw::LayoutHostvirtual
GetDesireSize() overridesw::LayoutHostvirtual
GetLayoutTag() overridesw::LayoutHostvirtual
Measure(const Size &availableSize) overridesw::LayoutHostvirtual
MeasureOverride(Size &availableSize) overridesw::UniformGridLayoutvirtual
rowssw::UniformGridLayout
SetDesireSize(const Size &size) overridesw::LayoutHostvirtual
+
+ + + + diff --git a/docs/classsw_1_1_uniform_grid_layout.html b/docs/classsw_1_1_uniform_grid_layout.html new file mode 100644 index 00000000..3e59389f --- /dev/null +++ b/docs/classsw_1_1_uniform_grid_layout.html @@ -0,0 +1,240 @@ + + + + + + + +SimpleWindow: sw::UniformGridLayout Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
sw::UniformGridLayout Class Reference
+
+
+ +

均匀大小网格布局 + More...

+ +

#include <UniformGridLayout.h>

+
+Inheritance diagram for sw::UniformGridLayout:
+
+
+ + +sw::LayoutHost +sw::ILayout + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

virtual void MeasureOverride (Size &availableSize) override
 计算所需尺寸
 
virtual void ArrangeOverride (Size &finalSize) override
 安排控件
 
- Public Member Functions inherited from sw::LayoutHost
void Associate (ILayout *obj)
 设置关联的对象,每个LayoutHost只能关联一个对象
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取关联对象子控件的数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取关联对象对应索引处的子控件
 
virtual Size GetDesireSize () override
 获取关联对象所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置关联对象所需的尺寸
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const Rect &finalPosition) override
 安排控件位置
 
+ + + + + + + + + + +

+Public Attributes

+int rows = 1
 行数
 
+int columns = 1
 列数
 
+int firstColumn = 0
 网格第一行中前导空白单元格的数量
 
+

Detailed Description

+

均匀大小网格布局

+

Member Function Documentation

+ +

◆ ArrangeOverride()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::UniformGridLayout::ArrangeOverride (Size & finalSize)
+
+overridevirtual
+
+ +

安排控件

+ +

Implements sw::LayoutHost.

+ +
+
+ +

◆ MeasureOverride()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::UniformGridLayout::MeasureOverride (Size & availableSize)
+
+overridevirtual
+
+ +

计算所需尺寸

+ +

Implements sw::LayoutHost.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_uniform_grid_layout.js b/docs/classsw_1_1_uniform_grid_layout.js new file mode 100644 index 00000000..a647a048 --- /dev/null +++ b/docs/classsw_1_1_uniform_grid_layout.js @@ -0,0 +1,8 @@ +var classsw_1_1_uniform_grid_layout = +[ + [ "ArrangeOverride", "classsw_1_1_uniform_grid_layout.html#a62cfcb1c77d3d25b7adf07730aa3a144", null ], + [ "MeasureOverride", "classsw_1_1_uniform_grid_layout.html#aaf9adca410dd56a6736c5ec0b96a167f", null ], + [ "columns", "classsw_1_1_uniform_grid_layout.html#a73d71cc8e99540d40ab1f4fd528b9492", null ], + [ "firstColumn", "classsw_1_1_uniform_grid_layout.html#aa5e7c87ab71f2ffd2c9e227ab46dab0e", null ], + [ "rows", "classsw_1_1_uniform_grid_layout.html#a2cde92e2a61f62efb85761f11c221390", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_uniform_grid_layout.png b/docs/classsw_1_1_uniform_grid_layout.png new file mode 100644 index 0000000000000000000000000000000000000000..0321fe31eb7a8e84a23e483b0a747c515e856a78 GIT binary patch literal 835 zcmeAS@N?(olHy`uVBq!ia0vp^T|nHy!3-q%CpO0dDd_;85ZC|z{{xvX-h3_XKeXJ! zK(jz%`k5CG9y|bwo1P6@0+iz{3GxeO0P?}WoN4wI1_q{co-U3d6^w7^J}g?TAmGL? zZ!CH5e`mgkNQAWM#c!9+ZL>^nDgAz;>!){*VIO1QB)0>hDkmRlO-k9hOz2s^%G*Mv zC)ZcC1eG6L(UQ53%_RNjZk4yiQK{>0J&CvRnrZa;lY%Gvp2eHg;)=hQ)_JAoUFbWt znYZ-Q?9gj+Pwgb9t}DHNU*Y$Kd4Z8~Wu8_K&a&Nf+G%)t-pYBY*Pm?MT|Pl&?!zZS z9+MvCO+D}XE^KGQqy1+lZ8->Zg3&au9z#CH1Eq2d$p(F=9vk+Yw$SpQ92mnE^ih^& z!_iO%opnqJg`y1Is~I9pIesHJZF+&BfOB_48R3c+sC+Wzq zVDY^5TyoOloHzHj?sr$6vV=Q#mx1rKo6mB7#f5(I@teBe>(aE^sgX-GFWz}?^yk%v zRVB{z*L%&*KYMA(?ckI3ch5X!+Zzq}2G-d8-*OZ~tIacZ=n2>*t3@=IR}Mzv9N^DM5d8lI_E0=4I}C ztM+)3-IJp;_$pIRx%_*t7uoi_rPpg`QS9xiZ930ZP2#@xv&#E&q3zqxPpe{2>h0*8 zo*gIGbIR)C_C34RmQ3L}>r(x^cCPOt*{Mre!$aO|$h@F-SbOSL_nrRct4r3}=S`^1 zxF59AdatBiSf=wYw%j?nzl#IJZ}-hwUbQZ?Ja+GSRcFqh_W8HxieKhm{U+ph;?%q0 ryZ;+4pEBuSXpk2uIdCZQ9JKef=)Jb{@6se-a%b>#^>bP0l+XkKpl*(8 literal 0 HcmV?d00001 diff --git a/docs/classsw_1_1_utils-members.html b/docs/classsw_1_1_utils-members.html new file mode 100644 index 00000000..74d6576b --- /dev/null +++ b/docs/classsw_1_1_utils-members.html @@ -0,0 +1,118 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::Utils Member List
+
+
+ +

This is the complete list of members for sw::Utils, including all inherited members.

+ + + + + + + + + + +
BuildStr(const Args &...args)sw::Utilsinlinestatic
Max(const T &a, const T &b)sw::Utilsinlinestatic
Min(const T &a, const T &b)sw::Utilsinlinestatic
Split(const std::wstring &str, const std::wstring &delimiter)sw::Utilsstatic
ToMultiByteStr(const std::wstring &wstr, bool utf8=false)sw::Utilsstatic
ToWideStr(const std::string &str, bool utf8=false)sw::Utilsstatic
Trim(const std::wstring &str)sw::Utilsstatic
TrimEnd(const std::wstring &str)sw::Utilsstatic
TrimStart(const std::wstring &str)sw::Utilsstatic
+
+ + + + diff --git a/docs/classsw_1_1_utils.html b/docs/classsw_1_1_utils.html new file mode 100644 index 00000000..cdf4184f --- /dev/null +++ b/docs/classsw_1_1_utils.html @@ -0,0 +1,377 @@ + + + + + + + +SimpleWindow: sw::Utils Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
sw::Utils Class Reference
+
+
+ +

工具类 + More...

+ +

#include <Utils.h>

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Static Public Member Functions

+template<typename... Args>
static std::wstring BuildStr (const Args &...args)
 拼接字符串,也可使用此函数将其他类型转为wstring
 
+template<typename T >
static constexprMax (const T &a, const T &b)
 取两值中的较大值
 
+template<typename T >
static constexprMin (const T &a, const T &b)
 取两值中的较小值
 
static std::wstring ToWideStr (const std::string &str, bool utf8=false)
 将窄字符串转为宽字符串
 
static std::string ToMultiByteStr (const std::wstring &wstr, bool utf8=false)
 将宽字符串转为窄字符串
 
static std::wstring Trim (const std::wstring &str)
 删除首尾空白字符
 
static std::wstring TrimStart (const std::wstring &str)
 删除串首空白字符
 
static std::wstring TrimEnd (const std::wstring &str)
 删除串尾空白字符
 
static std::vector< std::wstring > Split (const std::wstring &str, const std::wstring &delimiter)
 对字符串按照指定分隔符进行拆分
 
+

Detailed Description

+

工具类

+

Member Function Documentation

+ +

◆ Split()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
static std::vector< std::wstring > sw::Utils::Split (const std::wstring & str,
const std::wstring & delimiter )
+
+static
+
+ +

对字符串按照指定分隔符进行拆分

+
Parameters
+ + + +
str输入的字符串
delimiter分隔符
+
+
+
Returns
包含字串的vector
+ +
+
+ +

◆ ToMultiByteStr()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
static std::string sw::Utils::ToMultiByteStr (const std::wstring & wstr,
bool utf8 = false )
+
+static
+
+ +

将宽字符串转为窄字符串

+
Parameters
+ + + +
wstr要转换的字符串
utf8是否使用utf8编码
+
+
+
Returns
转换后的字符串
+ +
+
+ +

◆ ToWideStr()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
static std::wstring sw::Utils::ToWideStr (const std::string & str,
bool utf8 = false )
+
+static
+
+ +

将窄字符串转为宽字符串

+
Parameters
+ + + +
str要转换的字符串
utf8是否使用utf8编码
+
+
+
Returns
转换后的字符串
+ +
+
+ +

◆ Trim()

+ +
+
+ + + + + +
+ + + + + + + +
static std::wstring sw::Utils::Trim (const std::wstring & str)
+
+static
+
+ +

删除首尾空白字符

+
Parameters
+ + +
str输入的字符串
+
+
+
Returns
删除首位空白字符后的字符串
+ +
+
+ +

◆ TrimEnd()

+ +
+
+ + + + + +
+ + + + + + + +
static std::wstring sw::Utils::TrimEnd (const std::wstring & str)
+
+static
+
+ +

删除串尾空白字符

+
Parameters
+ + +
str输入的字符串
+
+
+
Returns
删除串尾空白字符后的字符串
+ +
+
+ +

◆ TrimStart()

+ +
+
+ + + + + +
+ + + + + + + +
static std::wstring sw::Utils::TrimStart (const std::wstring & str)
+
+static
+
+ +

删除串首空白字符

+
Parameters
+ + +
str输入的字符串
+
+
+
Returns
删除串首空白字符后的字符串
+ +
+
+
The documentation for this class was generated from the following file:
    +
  • D:/code/GitHub/sw/sw/inc/Utils.h
  • +
+
+
+ + + + diff --git a/docs/classsw_1_1_window-members.html b/docs/classsw_1_1_window-members.html new file mode 100644 index 00000000..fb432f27 --- /dev/null +++ b/docs/classsw_1_1_window-members.html @@ -0,0 +1,340 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::Window Member List
+
+
+ +

This is the complete list of members for sw::Window, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ActiveWindowsw::Windowstatic
AddChild(UIElement *element)sw::UIElement
AddChild(UIElement &element)sw::UIElement
AddChild(UIElement *element, uint64_t layoutTag)sw::UIElement
AddChild(UIElement &element, uint64_t layoutTag)sw::UIElement
Arrange(const sw::Rect &finalPosition) overridesw::Layervirtual
AutoSizesw::Layer
BackColorsw::UIElement
ChildCountsw::UIElement
ClearChildren()sw::UIElement
ClientHeightsw::WndBase
ClientRectsw::WndBase
ClientWidthsw::WndBase
Close()sw::WndBase
CollapseWhenHidesw::UIElement
ContextMenusw::UIElement
DefaultWndProc(const ProcMsg &refMsg)sw::WndBaseprotected
DisableLayout()sw::Layer
DrawMenuBar()sw::Window
Enabledsw::WndBase
EnableLayout()sw::Layer
Floatsw::UIElement
Focusedsw::WndBase
Fontsw::WndBase
FontChanged(HFONT hfont)sw::WndBaseprotectedvirtual
FontNamesw::WndBase
FontSizesw::WndBase
FontWeightsw::WndBase
GetArrangeOffsetX()sw::UIElementprotected
GetArrangeOffsetY()sw::UIElementprotected
GetChildBottommost(bool update)sw::UIElementprotected
GetChildLayoutAt(int index) overridesw::UIElementvirtual
GetChildLayoutCount() overridesw::UIElementvirtual
GetChildRightmost(bool update)sw::UIElementprotected
GetDefaultLayout() overridesw::Windowprotectedvirtual
GetDesireSize() overridesw::UIElementvirtual
GetExtendedStyle()sw::WndBaseprotected
GetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
GetFontHandle()sw::WndBaseprotected
GetHorizontalScrollPageSize()sw::Layer
GetHorizontalScrollRange(double &refMin, double &refMax)sw::Layer
GetLayoutTag() overridesw::UIElementvirtual
GetNextElement()sw::UIElement
GetNextTabStopElement()sw::UIElement
GetRealBackColor()sw::UIElement
GetRealTextColor()sw::UIElement
GetRootElement()sw::UIElement
GetStyle()sw::WndBaseprotected
GetStyle(LONG_PTR style)sw::WndBaseprotected
GetTag() overridesw::UIElementvirtual
GetText()sw::WndBaseprotectedvirtual
GetVerticalScrollPageSize()sw::Layer
GetVerticalScrollRange(double &refMin, double &refMax)sw::Layer
GetWndBase(HWND hwnd)sw::WndBasestatic
Handlesw::WndBase
HandleInitialized(HWND hwnd)sw::WndBaseprotectedvirtual
Heightsw::WndBase
HorizontalAlignmentsw::UIElement
HorizontalScrollBarsw::Layer
HorizontalScrollLimitsw::Layer
HorizontalScrollPossw::Layer
IndexOf(UIElement *element)sw::UIElement
IndexOf(UIElement &element)sw::UIElement
InheritTextColorsw::UIElement
InitControl(LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
InitWindow(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
IsControl()sw::WndBase
IsDestroyedsw::WndBase
IsModal()sw::Window
IsRootElement()sw::UIElement
IsRoutedEventRegistered(RoutedEventType eventType)sw::UIElement
IsVisible()sw::WndBase
Layer()sw::Layerprotected
Layoutsw::Layer
LayoutTagsw::UIElement
Leftsw::WndBase
Marginsw::UIElement
MaxHeightsw::Window
MaximizeBoxsw::Window
MaxWidthsw::Window
Measure(const Size &availableSize) overridesw::Layervirtual
Menusw::Window
MinHeightsw::Window
MinimizeBoxsw::Window
MinWidthsw::Window
MoveToBottom()sw::UIElement
MoveToTop()sw::UIElement
NcHitTest(const Point &testPoint)sw::WndBase
NotifyLayoutUpdated()sw::UIElementprotected
OnAcceleratorCommand(int id)sw::WndBaseprotectedvirtual
OnActived()sw::Windowprotectedvirtual
OnAddedChild(UIElement &element)sw::UIElementprotectedvirtual
OnChar(wchar_t ch, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnClose() overridesw::Windowprotectedvirtual
OnColor(HDC hdc, HBRUSH &hRetBrush) overridesw::UIElementprotectedvirtual
OnCommand(int code)sw::WndBaseprotectedvirtual
OnContextMenu(bool isKeyboardMsg, Point mousePosition) overridesw::UIElementprotectedvirtual
OnControlCommand(WndBase *pControl, int code, int id)sw::WndBaseprotectedvirtual
OnCreate()sw::WndBaseprotectedvirtual
OnCtlColor(WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)sw::WndBaseprotectedvirtual
OnDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnDestroy() overridesw::Windowprotectedvirtual
OnDrawFocusRect()sw::UIElementprotectedvirtual
OnDrawItem(int id, DRAWITEMSTRUCT *pDrawItem)sw::WndBaseprotectedvirtual
OnEnabledChanged(bool newValue)sw::WndBaseprotectedvirtual
OnEndPaint() overridesw::UIElementprotectedvirtual
OnEraseBackground(int &result) overridesw::Windowprotectedvirtual
OnFirstShow()sw::Windowprotectedvirtual
OnHorizontalScroll(int event, int pos) overridesw::Layerprotectedvirtual
OnInactived()sw::Windowprotectedvirtual
OnKeyDown(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKeyUp(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKillFocus(HWND hNextFocus) overridesw::UIElementprotectedvirtual
OnMenuCommand(int id) overridesw::Windowprotectedvirtual
OnMouseLeave() overridesw::UIElementprotectedvirtual
OnMouseLeftButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseLeftButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseMiddleButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMove(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseRightButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseWheel(int wheelDelta, Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMove(Point newClientPosition) overridesw::UIElementprotectedvirtual
OnNcHitTest(const Point &testPoint, HitTestResult &result)sw::WndBaseprotectedvirtual
OnNotified(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnNotify(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnPaint() overridesw::Windowprotectedvirtual
OnRemovedChild(UIElement &element)sw::UIElementprotectedvirtual
OnScroll(ScrollOrientation scrollbar, ScrollEvent event, double pos)sw::Layerprotectedvirtual
OnSetCursor(HWND hwnd, HitTestResult hitTest, int message, bool &result) overridesw::UIElementprotectedvirtual
OnSetFocus(HWND hPrevFocus) overridesw::UIElementprotectedvirtual
OnSize(Size newClientSize) overridesw::UIElementprotectedvirtual
OnSysChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyDown(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyUp(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnTabStop()sw::UIElementprotectedvirtual
OnTextChanged() overridesw::UIElementprotectedvirtual
OnVerticalScroll(int event, int pos) overridesw::Layerprotectedvirtual
operator=(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator=(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator[](int index) constsw::UIElement
Parentsw::UIElement
ParentChanged(WndBase *newParent) overridesw::UIElementprotectedvirtual
PointFromScreen(const Point &screenPoint)sw::WndBase
PointToScreen(const Point &point)sw::WndBase
RaiseRoutedEvent(RoutedEventType eventType)sw::UIElementprotected
RaiseRoutedEvent(RoutedEventArgs &eventArgs)sw::UIElementprotected
Rectsw::WndBase
Redraw(bool erase=false)sw::WndBase
RegisterRoutedEvent(RoutedEventType eventType, const RoutedEvent &handler)sw::UIElement
RegisterRoutedEvent(RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))sw::UIElementinline
RegisterRoutedEvent(std::function< void(UIElement &, TEventArgs &)> handler)sw::UIElementinline
RegisterRoutedEvent(THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))sw::UIElementinline
RemoveChild(UIElement *element)sw::UIElement
RemoveChild(UIElement &element)sw::UIElement
RemoveChildAt(int index)sw::UIElement
ResetCursor()sw::UIElement
ScrollHorizontal(double offset)sw::Layer
ScrollToBottom()sw::Layer
ScrollToLeft()sw::Layer
ScrollToRight()sw::Layer
ScrollToTop()sw::Layer
ScrollVertical(double offset)sw::Layer
SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase
SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement
SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual
SetCursor(HCURSOR hCursor)sw::UIElement
SetCursor(StandardCursor cursor)sw::UIElement
SetDesireSize(const Size &size) overridesw::UIElementvirtual
SetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
SetExtendedStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetHorizontalScrollPageSize(double pageSize)sw::Layer
SetHorizontalScrollRange(double min, double max)sw::Layer
SetIcon(HICON hIcon)sw::Window
SetLayout()sw::Windowinline
SetLayout()sw::Windowinline
SetNextTabStopFocus()sw::UIElementprotected
SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual
SetStyle(LONG_PTR style)sw::WndBaseprotected
SetStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetTag(uint64_t tag) overridesw::UIElementvirtual
SetText(const std::wstring &value)sw::WndBaseprotectedvirtual
SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual
SetVerticalScrollPageSize(double pageSize)sw::Layer
SetVerticalScrollRange(double min, double max)sw::Layer
Show()sw::Window
sw::Layer::Show(int nCmdShow)sw::WndBase
ShowContextMenu(const Point &point)sw::UIElement
ShowDialog(Window &owner)sw::Window
SizeBoxsw::Window
SizeToContent()sw::Window
StartupLocationsw::Window
Statesw::Window
TabStopsw::UIElement
Tagsw::UIElement
Textsw::WndBase
TextColorsw::UIElement
ToolWindowsw::Window
Topsw::WndBase
Topmostsw::Window
Transparentsw::UIElement
UIElement()sw::UIElementprotected
UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement
Update()sw::WndBase
UpdateChildrenZOrder()sw::UIElementprotected
UpdateFont()sw::WndBase
UpdateLayout()sw::Layerprotected
UpdateScrollRange()sw::Layer
UpdateSiblingsZOrder()sw::UIElementprotected
UpdateText()sw::WndBaseprotected
VerticalAlignmentsw::UIElement
VerticalScrollBarsw::Layer
VerticalScrollLimitsw::Layer
VerticalScrollPossw::Layer
Visiblesw::WndBase
VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual
Widthsw::WndBase
Window()sw::Window
WindowCountsw::Windowstatic
WndBase()sw::WndBaseprotected
WndBase(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndBase(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndProc(const ProcMsg &refMsg) overridesw::Windowprotectedvirtual
~Layer()=0sw::Layerpure virtual
~UIElement()=0sw::UIElementpure virtual
~WndBase()=0sw::WndBasepure virtual
+
+ + + + diff --git a/docs/classsw_1_1_window.html b/docs/classsw_1_1_window.html new file mode 100644 index 00000000..773e3208 --- /dev/null +++ b/docs/classsw_1_1_window.html @@ -0,0 +1,1274 @@ + + + + + + + +SimpleWindow: sw::Window Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+ +

窗口 + More...

+ +

#include <Window.h>

+
+Inheritance diagram for sw::Window:
+
+
+ + +sw::Layer +sw::UIElement +sw::WndBase +sw::ILayout +sw::ITag + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

Window ()
 初始化窗口
 
+void Show ()
 显示窗口
 
void ShowDialog (Window &owner)
 将窗体显示为模式对话框
 
void SetIcon (HICON hIcon)
 设置图标
 
+void DrawMenuBar ()
 重回窗口的菜单栏
 
bool IsModal ()
 窗口是否显示为模态窗口
 
+void SizeToContent ()
 调整窗口尺寸以适应其内容大小,只对设置了布局方式的顶级窗口有效
 
+template<typename TLayout , typename std::enable_if< std::is_base_of< LayoutHost, TLayout >::value, int >::type = 0>
void SetLayout ()
 设置窗口的默认布局方式
 
+template<std::nullptr_t >
void SetLayout ()
 取消通过SetLayout设置的布局方式
 
- Public Member Functions inherited from sw::Layer
+virtual ~Layer ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const sw::Rect &finalPosition) override
 安排控件位置
 
+void DisableLayout ()
 禁用布局
 
+void EnableLayout ()
 启用布局
 
void GetHorizontalScrollRange (double &refMin, double &refMax)
 获取横向滚动条的范围
 
void GetVerticalScrollRange (double &refMin, double &refMax)
 获取纵向滚动条的范围
 
void SetHorizontalScrollRange (double min, double max)
 设置横向滚动条的范围
 
void SetVerticalScrollRange (double min, double max)
 设置纵向滚动条的范围
 
+double GetHorizontalScrollPageSize ()
 获取水平滚动条滚动页面大小
 
+double GetVerticalScrollPageSize ()
 获取垂直滚动条滚动页面大小
 
+void SetHorizontalScrollPageSize (double pageSize)
 设置水平滚动条滚动页面大小
 
+void SetVerticalScrollPageSize (double pageSize)
 设置垂直滚动条滚动页面大小
 
+void UpdateScrollRange ()
 根据子元素更新滚动条范围,未设定布局方式时该函数无效
 
+void ScrollToTop ()
 将垂直滚动条移动到顶部
 
+void ScrollToBottom ()
 将垂直滚动条移动到底部
 
+void ScrollToLeft ()
 将水平滚动条移动到最左
 
+void ScrollToRight ()
 将水平滚动条移动到最右
 
void ScrollHorizontal (double offset)
 水平滚动
 
void ScrollVertical (double offset)
 垂直滚动
 
- Public Member Functions inherited from sw::UIElement
+virtual ~UIElement ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
void RegisterRoutedEvent (RoutedEventType eventType, const RoutedEvent &handler)
 注册路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename T >
void RegisterRoutedEvent (RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))
 注册成员函数作为路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename TEventArgs , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (std::function< void(UIElement &, TEventArgs &)> handler)
 根据事件参数类型注册路由事件
 
template<typename TEventArgs , typename THandleObj , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))
 根据事件参数类型注册成员函数作为路由事件
 
void UnregisterRoutedEvent (RoutedEventType eventType)
 取消对应类型路由事件的注册
 
bool IsRoutedEventRegistered (RoutedEventType eventType)
 判断路由事件是否已被注册
 
bool AddChild (UIElement *element)
 添加子控件
 
bool AddChild (UIElement &element)
 添加子控件
 
bool AddChild (UIElement *element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool AddChild (UIElement &element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool RemoveChildAt (int index)
 移除指定索引处的子控件
 
bool RemoveChild (UIElement *element)
 移除子控件
 
bool RemoveChild (UIElement &element)
 移除子控件
 
+void ClearChildren ()
 移除所有子控件
 
int IndexOf (UIElement *element)
 获取指定元素的索引
 
int IndexOf (UIElement &element)
 获取指定元素的索引
 
+UIElementoperator[] (int index) const
 通过索引获取子控件
 
void ShowContextMenu (const Point &point)
 弹出当前元素的上下文菜单
 
+void MoveToTop ()
 移动到界面顶部
 
+void MoveToBottom ()
 移动到界面底部
 
+bool IsRootElement ()
 判断当前元素是否为根节点
 
+UIElementGetRootElement ()
 获取当前元素所在界面树的根节点
 
+UIElementGetNextElement ()
 获取当前元素在界面树上的下一个节点,若已是最后一个节点则返回根节点
 
+UIElementGetNextTabStopElement ()
 获取下一个TabStop属性为true的元素
 
+Color GetRealBackColor ()
 获取当前要显示的背景颜色:当Transparent为true时获取到祖先节点中首个Transparent为false的背景颜色,否则返回当前元素的背景颜色
 
+Color GetRealTextColor ()
 获取当前要显示的文本颜色:当InheritTextColor为true时获取到祖先节点中首个InheritTextColor为false的文本颜色,否则返回当前元素的文本颜色
 
void SetCursor (HCURSOR hCursor)
 设置鼠标样式
 
void SetCursor (StandardCursor cursor)
 设置鼠标样式
 
+void ResetCursor ()
 将鼠标样式设置为默认样式
 
void SetAlignment (sw::HorizontalAlignment horz, sw::VerticalAlignment vert)
 设置对齐方式
 
virtual uint64_t GetTag () override
 获取Tag
 
virtual void SetTag (uint64_t tag) override
 设置Tag
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取参与布局的子控件数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取对应索引处的子控件,使用此函数前必须先调用GetChildLayoutCount
 
virtual Size GetDesireSize () override
 获取控件所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置当前控件所需的尺寸
 
- Public Member Functions inherited from sw::WndBase
+virtual ~WndBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void Show (int nCmdShow)
 该函数调用ShowWindow
 
+void Close ()
 发送关闭消息
 
+void Update ()
 该函数调用UpdateWindow
 
+void UpdateFont ()
 更新字体
 
void Redraw (bool erase=false)
 重画
 
+bool IsControl ()
 判断当前对象是否是控件
 
+bool IsVisible ()
 判断当前对象在界面中是否可视,与Visible属性不同的是该函数返回值会受父窗口的影响
 
Point PointToScreen (const Point &point)
 获取用户区点在屏幕上点的位置
 
Point PointFromScreen (const Point &screenPoint)
 获取屏幕上点在当前用户区点的位置
 
+LRESULT SendMessageW (UINT uMsg, WPARAM wParam, LPARAM lParam)
 发送消息
 
HitTestResult NcHitTest (const Point &testPoint)
 测试指定点在窗口的哪一部分
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Attributes

+const Property< WindowStartupLocation > StartupLocation
 窗口初次启动的位置
 
+const Property< WindowState > State
 窗口状态
 
+const Property< boolSizeBox
 窗口是否可调整大小
 
+const Property< boolMaximizeBox
 最大化按钮是否可用
 
+const Property< boolMinimizeBox
 最小化按钮是否可用
 
+const Property< boolTopmost
 窗口是否置顶
 
+const Property< boolToolWindow
 是否显示为ToolWindow (窄边框)
 
+const Property< doubleMaxWidth
 最大宽度,当值不大于0时表示不限制
 
+const Property< doubleMaxHeight
 最大高度,当值不大于0时表示不限制
 
+const Property< doubleMinWidth
 最小宽度,当值不大于0时表示不限制
 
+const Property< doubleMinHeight
 最小高度,当值不大于0时表示不限制
 
+const Property< sw::Menu * > Menu
 窗口顶部的菜单栏
 
- Public Attributes inherited from sw::Layer
+const Property< LayoutHost * > Layout
 自定义的布局方式,赋值后将自动与所指向的布局关联,每个布局只能关联一个对象,设为nullptr可恢复默认布局
 
+const Property< boolAutoSize
 是否按照布局方式与子元素自动调整尺寸,该属性仅在当前元素已设置布局方式并且非顶级元素时有效
 
+const Property< boolHorizontalScrollBar
 是否显示横向滚动条
 
+const Property< boolVerticalScrollBar
 是否显示纵向滚动条
 
+const Property< doubleHorizontalScrollPos
 横向滚动条位置
 
+const Property< doubleVerticalScrollPos
 纵向滚动条位置
 
+const ReadOnlyProperty< doubleHorizontalScrollLimit
 横向滚动条可设置的最大位置
 
+const ReadOnlyProperty< doubleVerticalScrollLimit
 纵向滚动条可设置的最大位置
 
- Public Attributes inherited from sw::UIElement
+const Property< ThicknessMargin
 边距
 
+const Property< HorizontalAlignment > HorizontalAlignment
 水平对齐方式
 
+const Property< VerticalAlignment > VerticalAlignment
 垂直对齐方式
 
+const ReadOnlyProperty< intChildCount
 子控件数量
 
+const Property< boolCollapseWhenHide
 是否在不可见时不参与布局
 
+const ReadOnlyProperty< UIElement * > Parent
 指向父元素的指针,当前元素为顶级窗口时该值为nullptr
 
+const Property< uint64_tTag
 储存用户自定义信息的标记
 
+const Property< uint64_tLayoutTag
 布局标记,对于不同的布局有不同含义
 
+const Property< sw::ContextMenu * > ContextMenu
 右键按下时弹出的菜单
 
+const Property< boolFloat
 元素是否悬浮,若元素悬浮则该元素不会随滚动条滚动而改变位置
 
+const Property< boolTabStop
 表示用户是否可以通过按下Tab键将焦点移动到当前元素
 
+const Property< ColorBackColor
 背景颜色,修改该属性会同时将Transparent属性设为false,对于部分控件该属性可能不生效
 
+const Property< ColorTextColor
 文本颜色,修改该属性会同时将InheritTextColor属性设为false,对于部分控件该属性可能不生效
 
+const Property< boolTransparent
 是否使用透明背景(此属性并非真正意义上的透明,将该属性设为true可继承父元素的背景颜色)
 
+const Property< boolInheritTextColor
 是否继承父元素的文本颜色
 
- Public Attributes inherited from sw::WndBase
+const ReadOnlyProperty< HWNDHandle
 窗口句柄
 
+const Property< sw::FontFont
 字体
 
+const Property< std::wstring > FontName
 字体名称
 
+const Property< doubleFontSize
 字体大小
 
+const Property< sw::FontWeight > FontWeight
 字体粗细
 
+const Property< sw::RectRect
 位置和尺寸
 
+const Property< doubleLeft
 左边
 
+const Property< doubleTop
 顶边
 
+const Property< doubleWidth
 宽度
 
+const Property< doubleHeight
 高度
 
+const ReadOnlyProperty< sw::RectClientRect
 用户区尺寸
 
+const ReadOnlyProperty< doubleClientWidth
 用户区宽度
 
+const ReadOnlyProperty< doubleClientHeight
 用户区高度
 
+const Property< boolEnabled
 窗口或控件是否可用
 
+const Property< boolVisible
 窗口或控件是否可见
 
+const Property< std::wstring > Text
 窗口标题或控件文本
 
+const Property< boolFocused
 窗口是否拥有焦点
 
+const ReadOnlyProperty< WndBase * > Parent
 父窗口
 
+const ReadOnlyProperty< boolIsDestroyed
 是否已销毁,当该值为true时不应该继续使用当前对象
 
+ + + + + + + +

+Static Public Attributes

+static const ReadOnlyProperty< Window * > ActiveWindow
 程序的当前活动窗体
 
+static const ReadOnlyProperty< intWindowCount
 当前已创建的窗口数
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Protected Member Functions

virtual LRESULT WndProc (const ProcMsg &refMsg) override
 对WndProc的封装
 
virtual LayoutHostGetDefaultLayout () override
 获取默认布局对象
 
virtual bool OnClose () override
 接收到WM_CLOSE时调用该函数
 
virtual bool OnDestroy () override
 接收到WM_DESTROY时调用该函数
 
virtual bool OnEraseBackground (int &result) override
 接收到WM_ERASEBKGND时调用该函数
 
virtual bool OnPaint () override
 接收到WM_PAINT时调用该函数
 
virtual void OnMenuCommand (int id) override
 当OnCommand接收到菜单命令时调用该函数
 
+virtual void OnFirstShow ()
 窗口第一次显示时调用该函数
 
+virtual void OnActived ()
 窗口成为前台窗口时调用该函数
 
+virtual void OnInactived ()
 窗口成为后台窗口时调用该函数
 
- Protected Member Functions inherited from sw::Layer
Layer ()
 初始化Layer
 
+void UpdateLayout ()
 更新布局
 
virtual void OnScroll (ScrollOrientation scrollbar, ScrollEvent event, double pos)
 触发滚动条相关事件时调用该函数
 
virtual bool OnVerticalScroll (int event, int pos) override
 接收到WM_VSCROLL时调用目标控件的该函数
 
virtual bool OnHorizontalScroll (int event, int pos) override
 接收到WM_HSCROLL时调用目标控件的该函数
 
- Protected Member Functions inherited from sw::UIElement
UIElement ()
 初始化UIElement
 
void RaiseRoutedEvent (RoutedEventType eventType)
 触发路由事件
 
void RaiseRoutedEvent (RoutedEventArgs &eventArgs)
 触发路由事件
 
+void NotifyLayoutUpdated ()
 通知顶级窗口布局改变
 
+doubleGetArrangeOffsetX ()
 获取Arrange时子元素的水平偏移量
 
+doubleGetArrangeOffsetY ()
 获取Arrange时子元素的垂直偏移量
 
double GetChildRightmost (bool update)
 获取所有子元素在当前元素中最右边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
double GetChildBottommost (bool update)
 获取所有子元素在当前元素中最底边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
+void UpdateChildrenZOrder ()
 更新子元素的Z轴位置
 
+void UpdateSiblingsZOrder ()
 更新兄弟元素的Z轴位置
 
+void SetNextTabStopFocus ()
 设置下一个TabStop属性为true的元素为焦点元素
 
virtual void SetBackColor (Color color, bool redraw)
 设置背景颜色
 
virtual void SetTextColor (Color color, bool redraw)
 设置文本颜色
 
virtual void OnAddedChild (UIElement &element)
 添加子元素后调用该函数
 
virtual void OnRemovedChild (UIElement &element)
 移除子元素后调用该函数
 
+virtual void OnTabStop ()
 通过tab键将焦点移动到当前元素时调用该函数
 
virtual void OnDrawFocusRect ()
 绘制虚线框时调用该函数
 
virtual bool SetParent (WndBase *parent) override
 设置父窗口
 
virtual void ParentChanged (WndBase *newParent) override
 父窗口改变时调用此函数
 
virtual void OnEndPaint () override
 在OnPaint函数完成之后调用该函数
 
virtual bool OnMove (Point newClientPosition) override
 接收到WM_MOVE时调用该函数
 
virtual bool OnSize (Size newClientSize) override
 接收到WM_SIZE时调用该函数
 
virtual void OnTextChanged () override
 Text属性更改时调用此函数
 
virtual void VisibleChanged (bool newVisible) override
 Visible属性改变时调用此函数
 
virtual bool OnSetFocus (HWND hPrevFocus) override
 接收到WM_SETFOCUS时调用该函数
 
virtual bool OnKillFocus (HWND hNextFocus) override
 接收到WM_KILLFOCUS时调用该函数
 
virtual bool OnChar (wchar_t ch, KeyFlags flags) override
 接收到WM_CHAR时调用该函数
 
virtual bool OnKeyDown (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYDOWN时调用该函数
 
virtual bool OnKeyUp (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYUP时调用该函数
 
virtual bool OnMouseMove (Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEMOVE时调用该函数
 
virtual bool OnMouseLeave () override
 接收到WM_MOUSELEAVE时调用该函数
 
virtual bool OnMouseWheel (int wheelDelta, Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEWHEEL时调用该函数
 
virtual bool OnMouseLeftButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONDOWN时调用该函数
 
virtual bool OnMouseLeftButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONUP时调用该函数
 
virtual bool OnMouseRightButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONDOWN时调用该函数
 
virtual bool OnMouseRightButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONUP时调用该函数
 
virtual bool OnMouseMiddleButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONDOWN时调用该函数
 
virtual bool OnMouseMiddleButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONUP时调用该函数
 
virtual bool OnContextMenu (bool isKeyboardMsg, Point mousePosition) override
 接收到WM_CONTEXTMENU后调用目标控件的该函数
 
virtual bool OnColor (HDC hdc, HBRUSH &hRetBrush) override
 父窗口接收到WM_CTLCOLORxxx时调用对应控件的该函数
 
virtual bool OnSetCursor (HWND hwnd, HitTestResult hitTest, int message, bool &result) override
 接收到WM_SETCURSOR消息时调用该函数
 
- Protected Member Functions inherited from sw::WndBase
WndBase ()
 初始化WndBase
 
WndBase (const WndBase &)=delete
 
WndBase (WndBase &&)=delete
 
+WndBaseoperator= (const WndBase &)=delete
 
+WndBaseoperator= (WndBase &&)=delete
 
+void InitWindow (LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为窗口,该函数会调用CreateWindowExW
 
+void InitControl (LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为控件,该函数会调用CreateWindowExW
 
+LONG_PTR GetStyle ()
 获取窗口样式
 
+void SetStyle (LONG_PTR style)
 设置窗口样式
 
+bool GetStyle (LONG_PTR style)
 获取窗口的某个样式
 
+void SetStyle (LONG_PTR style, bool value)
 设置窗口的某个样式
 
+LONG_PTR GetExtendedStyle ()
 获取扩展窗口样式
 
+void SetExtendedStyle (LONG_PTR style)
 设置扩展窗口样式
 
+bool GetExtendedStyle (LONG_PTR style)
 获取窗口的某个扩展样式
 
+void SetExtendedStyle (LONG_PTR style, bool value)
 设置窗口的某个扩展样式
 
+HFONT GetFontHandle ()
 获取字体句柄
 
+LRESULT DefaultWndProc (const ProcMsg &refMsg)
 调用默认的WndProc,对于窗口则调用DefWindowProcW,控件则调用_controlOldWndProc
 
+void UpdateText ()
 更新_text字段
 
virtual std::wstring & GetText ()
 获取窗口文本
 
virtual void SetText (const std::wstring &value)
 调用SetWindowTextW设置窗口文本
 
virtual bool OnCreate ()
 接收到WM_CREATE时调用该函数
 
virtual bool OnMouseLeftButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_LBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseRightButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_RBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseMiddleButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_MBUTTONDBLCLK时调用该函数
 
virtual bool OnDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_DEADCHAR时调用该函数
 
virtual bool OnSysChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSCHAR时调用该函数
 
virtual bool OnSysDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSDEADCHAR时调用该函数
 
virtual bool OnSysKeyDown (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYDOWN时调用该函数
 
virtual bool OnSysKeyUp (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYUP时调用该函数
 
virtual void OnCommand (int code)
 当父窗口接收到控件的WM_COMMAND时调用该函数
 
virtual void OnControlCommand (WndBase *pControl, int code, int id)
 当WM_COMMAND接收到控件命令时调用该函数
 
virtual void OnAcceleratorCommand (int id)
 当WM_COMMAND接收到快捷键命令时调用该函数
 
virtual void HandleInitialized (HWND hwnd)
 窗口句柄初始化完成
 
virtual void FontChanged (HFONT hfont)
 字体改变时调用该函数
 
virtual bool OnNotify (NMHDR *pNMHDR)
 接收到WM_NOTIFY后调用该函数
 
virtual void OnNotified (NMHDR *pNMHDR)
 父窗口接收到WM_NOTIFY后调用发出通知控件的该函数
 
virtual bool OnEnabledChanged (bool newValue)
 接收到WM_ENABLE时调用该函数
 
virtual bool OnCtlColor (WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)
 接收到WM_CTLCOLORxxx时调用该函数
 
virtual void OnNcHitTest (const Point &testPoint, HitTestResult &result)
 接收到WM_NCHITTEST后调用该函数
 
virtual bool OnDrawItem (int id, DRAWITEMSTRUCT *pDrawItem)
 接收到WM_DRAWITEM时调用该函数
 
+ + + + + +

+Additional Inherited Members

- Static Public Member Functions inherited from sw::WndBase
static WndBaseGetWndBase (HWND hwnd)
 通过窗口句柄获取WndBase
 
+

Detailed Description

+

窗口

+

Member Function Documentation

+ +

◆ GetDefaultLayout()

+ +
+
+ + + + + +
+ + + + + + + +
virtual LayoutHost * sw::Window::GetDefaultLayout ()
+
+overrideprotectedvirtual
+
+ +

获取默认布局对象

+ +

Reimplemented from sw::Layer.

+ +
+
+ +

◆ IsModal()

+ +
+
+ + + + + + + +
bool sw::Window::IsModal ()
+
+ +

窗口是否显示为模态窗口

+
Returns
当调用ShowDialog时该函数返回true,否则返回false
+ +
+
+ +

◆ OnClose()

+ +
+
+ + + + + +
+ + + + + + + +
virtual bool sw::Window::OnClose ()
+
+overrideprotectedvirtual
+
+ +

接收到WM_CLOSE时调用该函数

+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented from sw::UIElement.

+ +
+
+ +

◆ OnDestroy()

+ +
+
+ + + + + +
+ + + + + + + +
virtual bool sw::Window::OnDestroy ()
+
+overrideprotectedvirtual
+
+ +

接收到WM_DESTROY时调用该函数

+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented from sw::WndBase.

+ +
+
+ +

◆ OnEraseBackground()

+ +
+
+ + + + + +
+ + + + + + + +
virtual bool sw::Window::OnEraseBackground (int & result)
+
+overrideprotectedvirtual
+
+ +

接收到WM_ERASEBKGND时调用该函数

+
Parameters
+ + +
result若已处理该消息则设为非零值,默认值为0
+
+
+
Returns
若返回true则将result作为消息的返回值,否则使用DefaultWndProc的返回值
+ +

Reimplemented from sw::WndBase.

+ +
+
+ +

◆ OnMenuCommand()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::Window::OnMenuCommand (int id)
+
+overrideprotectedvirtual
+
+ +

当OnCommand接收到菜单命令时调用该函数

+
Parameters
+ + +
id菜单id
+
+
+ +

Reimplemented from sw::UIElement.

+ +
+
+ +

◆ OnPaint()

+ +
+
+ + + + + +
+ + + + + + + +
virtual bool sw::Window::OnPaint ()
+
+overrideprotectedvirtual
+
+ +

接收到WM_PAINT时调用该函数

+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented from sw::WndBase.

+ +
+
+ +

◆ SetIcon()

+ +
+
+ + + + + + + +
void sw::Window::SetIcon (HICON hIcon)
+
+ +

设置图标

+
Parameters
+ + +
hIcon图标句柄
+
+
+ +
+
+ +

◆ ShowDialog()

+ +
+
+ + + + + + + +
void sw::Window::ShowDialog (Window & owner)
+
+ +

将窗体显示为模式对话框

+
Parameters
+ + +
owner窗体的所有者,窗体显示期间该窗体的Enabled属性将被设为false,该参数不能设为自己
+
+
+ +
+
+ +

◆ WndProc()

+ +
+
+ + + + + +
+ + + + + + + +
virtual LRESULT sw::Window::WndProc (const ProcMsg & refMsg)
+
+overrideprotectedvirtual
+
+ +

对WndProc的封装

+ +

Reimplemented from sw::WndBase.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_window.js b/docs/classsw_1_1_window.js new file mode 100644 index 00000000..4ea3ba21 --- /dev/null +++ b/docs/classsw_1_1_window.js @@ -0,0 +1,34 @@ +var classsw_1_1_window = +[ + [ "Window", "classsw_1_1_window.html#a24eed02d394d13b368f5cf99b2a68c44", null ], + [ "DrawMenuBar", "classsw_1_1_window.html#a3daeab5c99e045449a8a5f086c19877e", null ], + [ "GetDefaultLayout", "classsw_1_1_window.html#abafe422b0435aa15ec04ced4300b6b76", null ], + [ "IsModal", "classsw_1_1_window.html#a1cdd78ebe0571b1c9bb49403ed8d8381", null ], + [ "OnActived", "classsw_1_1_window.html#a2403f422df1271f56f2ef574d91f232d", null ], + [ "OnClose", "classsw_1_1_window.html#a50969fbd9f30ad27e72f11cb28ee4697", null ], + [ "OnDestroy", "classsw_1_1_window.html#a09165434040ada6ea3f00a7d79b1f7a2", null ], + [ "OnEraseBackground", "classsw_1_1_window.html#adfcacbd8da1c33b53a16990c76d86079", null ], + [ "OnFirstShow", "classsw_1_1_window.html#a35a8bd930f1cf8a85204569f00b33f34", null ], + [ "OnInactived", "classsw_1_1_window.html#a9f8bea034629f087944e9b33af60d9ec", null ], + [ "OnMenuCommand", "classsw_1_1_window.html#a8ff6176f2fb886593f448b430c21fc90", null ], + [ "OnPaint", "classsw_1_1_window.html#afa57e21216664a6fa3f9fdf04dad7a7d", null ], + [ "SetIcon", "classsw_1_1_window.html#a9046c167eb2a1572f420ecd5bd8aef1c", null ], + [ "SetLayout", "classsw_1_1_window.html#abdf47e48c8a4e9d9c368cb549ba3d938", null ], + [ "SetLayout", "classsw_1_1_window.html#a236c7f298b6bbb432ce7c3c82a5eaacd", null ], + [ "Show", "classsw_1_1_window.html#a3281c944ffc505243ff2b958b42e6fa7", null ], + [ "ShowDialog", "classsw_1_1_window.html#a37bc59a8775b6f39e244cdd6f82d5e51", null ], + [ "SizeToContent", "classsw_1_1_window.html#abff0275ae90d22951d40b769f952d415", null ], + [ "WndProc", "classsw_1_1_window.html#a5c4a30ad5dd71cba0de201846867de25", null ], + [ "MaxHeight", "classsw_1_1_window.html#a64ad0c8611945758af32b7681a74a0f7", null ], + [ "MaximizeBox", "classsw_1_1_window.html#a6852326120a03242ffef09aa3bae9e09", null ], + [ "MaxWidth", "classsw_1_1_window.html#a881e11126ef89b4b0badb890c8f7ac21", null ], + [ "Menu", "classsw_1_1_window.html#a27de84e46eda2bccca6f5b2f30fb3117", null ], + [ "MinHeight", "classsw_1_1_window.html#aa9782debda43bce7438531290aa509ae", null ], + [ "MinimizeBox", "classsw_1_1_window.html#aa9476a0b4bff312e523bba76aa82b96b", null ], + [ "MinWidth", "classsw_1_1_window.html#aa39df901ba7c3d77ac013ccdf6caf161", null ], + [ "SizeBox", "classsw_1_1_window.html#a518c14e6ddbf171489a86baff4cbb6a3", null ], + [ "StartupLocation", "classsw_1_1_window.html#a4a09a7ec772a2febfcda54b9aa6a8557", null ], + [ "State", "classsw_1_1_window.html#a257ba940703f41b12990678bb3ff0e0e", null ], + [ "ToolWindow", "classsw_1_1_window.html#ac61382d82d410403dc2a9bc0afe49f38", null ], + [ "Topmost", "classsw_1_1_window.html#a1a15faeb81c21aa3327dcd8fefdc5ffd", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_window.png b/docs/classsw_1_1_window.png new file mode 100644 index 0000000000000000000000000000000000000000..6d7291f7101cb252c7dacb311f2da697b2cc434d GIT binary patch literal 1611 zcmb_cc~DbF9DX#V;DHsi6-YR21B#-kAmK@1Btap75edhDAhZDmN*H{A0#!mqaa2ek z9BG?CN=0I*qLy$f!4@##3dIm^2$h5=H^j&xG<`Zwr_-5s`iDF79sAq;?d;6Xx7WOh zZhGsD*8>2cM{sxb0RSx&>>ukQVE(<>`T#6QZ!g~?8jS|F&!^Oh^k2CS`>f&&neER< zM@QlM!4Cftcx_#R50M1G^S1-@0jnDTw0j7yF1|@x(}mNFo90`!2l0N_7pc$GTe^}M z?RR1+bBA7S-uOXvvYynX(l834xOR8BL?`d>k0Fr!9 zGI52?qf>CJL>iLk@e^H2KIuUa{94W)*oZ)EXr!^W_bvGhkd5kt4U}N*ONr6Dyh}{s5h%b~vAu@Z;(@|BxYX z=IaS{E}v0Su@v6r$!PXkYSJH}sb#InljGJPCsxEr_>>B&7h{PhLFp-To|Q+HkwH$j4*boQ)fh)QA}M5hPvCM#Qy`omCGtytQ7k+2(l7 zGkx5qGz6n9|H;g*9UZ+jRMP>Qn%~l3~ zAOF?uJ)5{{JFHPm%p|#yXL1naXz4@h3EPE0#F59k6#>p(z=HT^(qwKgJ1n)C4@!(~k)bp!9BqwtMU7KD4?-1eyYS!-n> z%drhk!pNK2-|zIsN4gR{tU`dtcawk*fzHdQG_ooEJ|fOtq~%b0e#<$4rV9cE-iR<* zGP2*Z)D*JIC+l_tODT2icxO&_ZoD|-AH)(F8Mns_3NENpAxJE}hyjNmVWW)(^Cel7 zCk11TH!%Zww%Vb%kg;;-{DCrsJ!F5NfGd$b=@RtKx@VR8i5?&q*nzp3!{sWRcqZ%g zB0GI;%v+qgd!$eWgm%UUO^dmBkR_S0gwJ0_;fP`o`QK!mBS{Q7uLblj=+FUf)A6l$ R$nduh5RMRC%W+|s{sf^b=U4y$ literal 0 HcmV?d00001 diff --git a/docs/classsw_1_1_wnd_base-members.html b/docs/classsw_1_1_wnd_base-members.html new file mode 100644 index 00000000..dad5e515 --- /dev/null +++ b/docs/classsw_1_1_wnd_base-members.html @@ -0,0 +1,215 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::WndBase Member List
+
+
+ +

This is the complete list of members for sw::WndBase, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ClientHeightsw::WndBase
ClientRectsw::WndBase
ClientWidthsw::WndBase
Close()sw::WndBase
DefaultWndProc(const ProcMsg &refMsg)sw::WndBaseprotected
Enabledsw::WndBase
Focusedsw::WndBase
Fontsw::WndBase
FontChanged(HFONT hfont)sw::WndBaseprotectedvirtual
FontNamesw::WndBase
FontSizesw::WndBase
FontWeightsw::WndBase
GetExtendedStyle()sw::WndBaseprotected
GetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
GetFontHandle()sw::WndBaseprotected
GetStyle()sw::WndBaseprotected
GetStyle(LONG_PTR style)sw::WndBaseprotected
GetText()sw::WndBaseprotectedvirtual
GetWndBase(HWND hwnd)sw::WndBasestatic
Handlesw::WndBase
HandleInitialized(HWND hwnd)sw::WndBaseprotectedvirtual
Heightsw::WndBase
InitControl(LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
InitWindow(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
IsControl()sw::WndBase
IsDestroyedsw::WndBase
IsVisible()sw::WndBase
Leftsw::WndBase
NcHitTest(const Point &testPoint)sw::WndBase
OnAcceleratorCommand(int id)sw::WndBaseprotectedvirtual
OnChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnClose()sw::WndBaseprotectedvirtual
OnColor(HDC hdc, HBRUSH &hRetBrush)sw::WndBaseprotectedvirtual
OnCommand(int code)sw::WndBaseprotectedvirtual
OnContextMenu(bool isKeyboardMsg, Point mousePosition)sw::WndBaseprotectedvirtual
OnControlCommand(WndBase *pControl, int code, int id)sw::WndBaseprotectedvirtual
OnCreate()sw::WndBaseprotectedvirtual
OnCtlColor(WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)sw::WndBaseprotectedvirtual
OnDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnDestroy()sw::WndBaseprotectedvirtual
OnDrawItem(int id, DRAWITEMSTRUCT *pDrawItem)sw::WndBaseprotectedvirtual
OnEnabledChanged(bool newValue)sw::WndBaseprotectedvirtual
OnEndPaint()sw::WndBaseprotectedvirtual
OnEraseBackground(int &result)sw::WndBaseprotectedvirtual
OnHorizontalScroll(int event, int pos)sw::WndBaseprotectedvirtual
OnKeyDown(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnKeyUp(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnKillFocus(HWND hNextFocus)sw::WndBaseprotectedvirtual
OnMenuCommand(int id)sw::WndBaseprotectedvirtual
OnMouseLeave()sw::WndBaseprotectedvirtual
OnMouseLeftButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseLeftButtonDown(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseMiddleButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseMiddleButtonDown(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseMiddleButtonUp(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseMove(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseRightButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseRightButtonDown(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseRightButtonUp(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseWheel(int wheelDelta, Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMove(Point newClientPosition)sw::WndBaseprotectedvirtual
OnNcHitTest(const Point &testPoint, HitTestResult &result)sw::WndBaseprotectedvirtual
OnNotified(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnNotify(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnPaint()sw::WndBaseprotectedvirtual
OnSetCursor(HWND hwnd, HitTestResult hitTest, int message, bool &result)sw::WndBaseprotectedvirtual
OnSetFocus(HWND hPrevFocus)sw::WndBaseprotectedvirtual
OnSize(Size newClientSize)sw::WndBaseprotectedvirtual
OnSysChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyDown(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyUp(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnTextChanged()sw::WndBaseprotectedvirtual
OnVerticalScroll(int event, int pos)sw::WndBaseprotectedvirtual
operator!=sw::WndBasefriend
operator=(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator=(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator==sw::WndBasefriend
Parentsw::WndBase
ParentChanged(WndBase *newParent)sw::WndBaseprotectedvirtual
PointFromScreen(const Point &screenPoint)sw::WndBase
PointToScreen(const Point &point)sw::WndBase
Rectsw::WndBase
Redraw(bool erase=false)sw::WndBase
SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase
SetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
SetExtendedStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetParent(WndBase *parent)sw::WndBaseprotectedvirtual
SetStyle(LONG_PTR style)sw::WndBaseprotected
SetStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetText(const std::wstring &value)sw::WndBaseprotectedvirtual
Show(int nCmdShow)sw::WndBase
Textsw::WndBase
Topsw::WndBase
Update()sw::WndBase
UpdateFont()sw::WndBase
UpdateText()sw::WndBaseprotected
Visiblesw::WndBase
VisibleChanged(bool newVisible)sw::WndBaseprotectedvirtual
Widthsw::WndBase
WndBase()sw::WndBaseprotected
WndBase(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndBase(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual
~WndBase()=0sw::WndBasepure virtual
+
+ + + + diff --git a/docs/classsw_1_1_wnd_base.html b/docs/classsw_1_1_wnd_base.html new file mode 100644 index 00000000..9124b660 --- /dev/null +++ b/docs/classsw_1_1_wnd_base.html @@ -0,0 +1,2656 @@ + + + + + + + +SimpleWindow: sw::WndBase Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+ +

表示一个Windows窗口,是所有窗口和控件的基类 + More...

+ +

#include <WndBase.h>

+
+Inheritance diagram for sw::WndBase:
+
+
+ + +sw::UIElement +sw::Control +sw::Layer +sw::ItemsControl< StrList > +sw::ButtonBase +sw::ItemsControl< TItem > +sw::PanelBase +sw::ProgressBar +sw::Slider +sw::StaticControl +sw::TabControl +sw::TextBoxBase +sw::PanelBase +sw::Window + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

+virtual ~WndBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void Show (int nCmdShow)
 该函数调用ShowWindow
 
+void Close ()
 发送关闭消息
 
+void Update ()
 该函数调用UpdateWindow
 
+void UpdateFont ()
 更新字体
 
void Redraw (bool erase=false)
 重画
 
+bool IsControl ()
 判断当前对象是否是控件
 
+bool IsVisible ()
 判断当前对象在界面中是否可视,与Visible属性不同的是该函数返回值会受父窗口的影响
 
Point PointToScreen (const Point &point)
 获取用户区点在屏幕上点的位置
 
Point PointFromScreen (const Point &screenPoint)
 获取屏幕上点在当前用户区点的位置
 
+LRESULT SendMessageW (UINT uMsg, WPARAM wParam, LPARAM lParam)
 发送消息
 
HitTestResult NcHitTest (const Point &testPoint)
 测试指定点在窗口的哪一部分
 
+ + + + +

+Static Public Member Functions

static WndBaseGetWndBase (HWND hwnd)
 通过窗口句柄获取WndBase
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Attributes

+const ReadOnlyProperty< HWNDHandle
 窗口句柄
 
+const Property< sw::FontFont
 字体
 
+const Property< std::wstring > FontName
 字体名称
 
+const Property< doubleFontSize
 字体大小
 
+const Property< sw::FontWeight > FontWeight
 字体粗细
 
+const Property< sw::RectRect
 位置和尺寸
 
+const Property< doubleLeft
 左边
 
+const Property< doubleTop
 顶边
 
+const Property< doubleWidth
 宽度
 
+const Property< doubleHeight
 高度
 
+const ReadOnlyProperty< sw::RectClientRect
 用户区尺寸
 
+const ReadOnlyProperty< doubleClientWidth
 用户区宽度
 
+const ReadOnlyProperty< doubleClientHeight
 用户区高度
 
+const Property< boolEnabled
 窗口或控件是否可用
 
+const Property< boolVisible
 窗口或控件是否可见
 
+const Property< std::wstring > Text
 窗口标题或控件文本
 
+const Property< boolFocused
 窗口是否拥有焦点
 
+const ReadOnlyProperty< WndBase * > Parent
 父窗口
 
+const ReadOnlyProperty< boolIsDestroyed
 是否已销毁,当该值为true时不应该继续使用当前对象
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Protected Member Functions

WndBase ()
 初始化WndBase
 
WndBase (const WndBase &)=delete
 
WndBase (WndBase &&)=delete
 
+WndBaseoperator= (const WndBase &)=delete
 
+WndBaseoperator= (WndBase &&)=delete
 
+void InitWindow (LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为窗口,该函数会调用CreateWindowExW
 
+void InitControl (LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为控件,该函数会调用CreateWindowExW
 
+LONG_PTR GetStyle ()
 获取窗口样式
 
+void SetStyle (LONG_PTR style)
 设置窗口样式
 
+bool GetStyle (LONG_PTR style)
 获取窗口的某个样式
 
+void SetStyle (LONG_PTR style, bool value)
 设置窗口的某个样式
 
+LONG_PTR GetExtendedStyle ()
 获取扩展窗口样式
 
+void SetExtendedStyle (LONG_PTR style)
 设置扩展窗口样式
 
+bool GetExtendedStyle (LONG_PTR style)
 获取窗口的某个扩展样式
 
+void SetExtendedStyle (LONG_PTR style, bool value)
 设置窗口的某个扩展样式
 
+HFONT GetFontHandle ()
 获取字体句柄
 
+LRESULT DefaultWndProc (const ProcMsg &refMsg)
 调用默认的WndProc,对于窗口则调用DefWindowProcW,控件则调用_controlOldWndProc
 
virtual LRESULT WndProc (const ProcMsg &refMsg)
 对WndProc的封装
 
+void UpdateText ()
 更新_text字段
 
virtual std::wstring & GetText ()
 获取窗口文本
 
virtual void SetText (const std::wstring &value)
 调用SetWindowTextW设置窗口文本
 
virtual bool OnCreate ()
 接收到WM_CREATE时调用该函数
 
virtual bool OnClose ()
 接收到WM_CLOSE时调用该函数
 
virtual bool OnDestroy ()
 接收到WM_DESTROY时调用该函数
 
virtual bool OnPaint ()
 接收到WM_PAINT时调用该函数
 
virtual void OnEndPaint ()
 在OnPaint函数完成之后调用该函数
 
virtual bool OnMove (Point newClientPosition)
 接收到WM_MOVE时调用该函数
 
virtual bool OnSize (Size newClientSize)
 接收到WM_SIZE时调用该函数
 
virtual void OnTextChanged ()
 Text属性更改时调用此函数
 
virtual bool OnSetFocus (HWND hPrevFocus)
 接收到WM_SETFOCUS时调用该函数
 
virtual bool OnKillFocus (HWND hNextFocus)
 接收到WM_KILLFOCUS时调用该函数
 
virtual bool OnMouseMove (Point mousePosition, MouseKey keyState)
 接收到WM_MOUSEMOVE时调用该函数
 
virtual bool OnMouseLeave ()
 接收到WM_MOUSELEAVE时调用该函数
 
virtual bool OnMouseWheel (int wheelDelta, Point mousePosition, MouseKey keyState)
 接收到WM_MOUSEWHEEL时调用该函数
 
virtual bool OnMouseLeftButtonDown (Point mousePosition, MouseKey keyState)
 接收到WM_LBUTTONDOWN时调用该函数
 
virtual bool OnMouseLeftButtonUp (Point mousePosition, MouseKey keyState)
 接收到WM_LBUTTONUP时调用该函数
 
virtual bool OnMouseLeftButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_LBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseRightButtonDown (Point mousePosition, MouseKey keyState)
 接收到WM_RBUTTONDOWN时调用该函数
 
virtual bool OnMouseRightButtonUp (Point mousePosition, MouseKey keyState)
 接收到WM_RBUTTONUP时调用该函数
 
virtual bool OnMouseRightButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_RBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseMiddleButtonDown (Point mousePosition, MouseKey keyState)
 接收到WM_MBUTTONDOWN时调用该函数
 
virtual bool OnMouseMiddleButtonUp (Point mousePosition, MouseKey keyState)
 接收到WM_MBUTTONUP时调用该函数
 
virtual bool OnMouseMiddleButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_MBUTTONDBLCLK时调用该函数
 
virtual bool OnChar (wchar_t ch, KeyFlags flags)
 接收到WM_CHAR时调用该函数
 
virtual bool OnDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_DEADCHAR时调用该函数
 
virtual bool OnKeyDown (VirtualKey key, KeyFlags flags)
 接收到WM_KEYDOWN时调用该函数
 
virtual bool OnKeyUp (VirtualKey key, KeyFlags flags)
 接收到WM_KEYUP时调用该函数
 
virtual bool OnSysChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSCHAR时调用该函数
 
virtual bool OnSysDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSDEADCHAR时调用该函数
 
virtual bool OnSysKeyDown (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYDOWN时调用该函数
 
virtual bool OnSysKeyUp (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYUP时调用该函数
 
virtual void VisibleChanged (bool newVisible)
 Visible属性改变时调用此函数
 
virtual bool SetParent (WndBase *parent)
 设置父窗口
 
virtual void ParentChanged (WndBase *newParent)
 父窗口改变时调用此函数
 
virtual void OnCommand (int code)
 当父窗口接收到控件的WM_COMMAND时调用该函数
 
virtual void OnControlCommand (WndBase *pControl, int code, int id)
 当WM_COMMAND接收到控件命令时调用该函数
 
virtual void OnMenuCommand (int id)
 当WM_COMMAND接收到菜单命令时调用该函数
 
virtual void OnAcceleratorCommand (int id)
 当WM_COMMAND接收到快捷键命令时调用该函数
 
virtual void HandleInitialized (HWND hwnd)
 窗口句柄初始化完成
 
virtual void FontChanged (HFONT hfont)
 字体改变时调用该函数
 
virtual bool OnSetCursor (HWND hwnd, HitTestResult hitTest, int message, bool &result)
 接收到WM_SETCURSOR消息时调用该函数
 
virtual bool OnContextMenu (bool isKeyboardMsg, Point mousePosition)
 接收到WM_CONTEXTMENU后调用目标控件的该函数
 
virtual bool OnNotify (NMHDR *pNMHDR)
 接收到WM_NOTIFY后调用该函数
 
virtual void OnNotified (NMHDR *pNMHDR)
 父窗口接收到WM_NOTIFY后调用发出通知控件的该函数
 
virtual bool OnVerticalScroll (int event, int pos)
 接收到WM_VSCROLL时调用目标控件的该函数
 
virtual bool OnHorizontalScroll (int event, int pos)
 接收到WM_HSCROLL时调用目标控件的该函数
 
virtual bool OnEnabledChanged (bool newValue)
 接收到WM_ENABLE时调用该函数
 
virtual bool OnCtlColor (WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)
 接收到WM_CTLCOLORxxx时调用该函数
 
virtual bool OnColor (HDC hdc, HBRUSH &hRetBrush)
 父窗口接收到WM_CTLCOLORxxx时调用对应控件的该函数
 
virtual void OnNcHitTest (const Point &testPoint, HitTestResult &result)
 接收到WM_NCHITTEST后调用该函数
 
virtual bool OnEraseBackground (int &result)
 接收到WM_ERASEBKGND时调用该函数
 
virtual bool OnDrawItem (int id, DRAWITEMSTRUCT *pDrawItem)
 接收到WM_DRAWITEM时调用该函数
 
+ + + + + + + +

+Friends

+bool operator== (const WndBase &left, const WndBase &right)
 重载==运算符,判断是否为同一个引用
 
+bool operator!= (const WndBase &left, const WndBase &right)
 重载!=运算符,判断是否为不同引用
 
+

Detailed Description

+

表示一个Windows窗口,是所有窗口和控件的基类

+

Member Function Documentation

+ +

◆ FontChanged()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::WndBase::FontChanged (HFONT hfont)
+
+protectedvirtual
+
+ +

字体改变时调用该函数

+
Parameters
+ + +
hfont字体句柄
+
+
+ +

Reimplemented in sw::Label.

+ +
+
+ +

◆ GetText()

+ +
+
+ + + + + +
+ + + + + + + +
virtual std::wstring & sw::WndBase::GetText ()
+
+protectedvirtual
+
+ +

获取窗口文本

+
Returns
_text字段
+ +

Reimplemented in sw::ComboBox, and sw::TextBoxBase.

+ +
+
+ +

◆ GetWndBase()

+ +
+
+ + + + + +
+ + + + + + + +
static WndBase * sw::WndBase::GetWndBase (HWND hwnd)
+
+static
+
+ +

通过窗口句柄获取WndBase

+
Parameters
+ + +
hwnd窗口句柄
+
+
+
Returns
若函数成功则返回对象的指针,否则返回nullptr
+ +
+
+ +

◆ HandleInitialized()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::WndBase::HandleInitialized (HWND hwnd)
+
+protectedvirtual
+
+ +

窗口句柄初始化完成

+
Parameters
+ + +
hwnd窗口句柄
+
+
+ +
+
+ +

◆ NcHitTest()

+ +
+
+ + + + + + + +
HitTestResult sw::WndBase::NcHitTest (const Point & testPoint)
+
+ +

测试指定点在窗口的哪一部分

+
Parameters
+ + +
testPoint要测试的点在屏幕中的位置
+
+
+ +
+
+ +

◆ OnAcceleratorCommand()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::WndBase::OnAcceleratorCommand (int id)
+
+protectedvirtual
+
+ +

当WM_COMMAND接收到快捷键命令时调用该函数

+
Parameters
+ + +
id快捷键id
+
+
+ +
+
+ +

◆ OnChar()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::WndBase::OnChar (wchar_t ch,
KeyFlags flags )
+
+protectedvirtual
+
+ +

接收到WM_CHAR时调用该函数

+
Parameters
+ + + +
ch按键的字符代码
flags附加信息
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented in sw::TextBoxBase, and sw::UIElement.

+ +
+
+ +

◆ OnClose()

+ +
+
+ + + + + +
+ + + + + + + +
virtual bool sw::WndBase::OnClose ()
+
+protectedvirtual
+
+ +

接收到WM_CLOSE时调用该函数

+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented in sw::UIElement, and sw::Window.

+ +
+
+ +

◆ OnColor()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::WndBase::OnColor (HDC hdc,
HBRUSH & hRetBrush )
+
+protectedvirtual
+
+ +

父窗口接收到WM_CTLCOLORxxx时调用对应控件的该函数

+
Parameters
+ + + +
hdc控件的显示上下文句柄
hRetBrush要返回的画笔
+
+
+
Returns
若返回true则将hRetBrush作为消息的返回值,否则使用DefaultWndProc的返回值
+ +

Reimplemented in sw::UIElement.

+ +
+
+ +

◆ OnCommand()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::WndBase::OnCommand (int code)
+
+protectedvirtual
+
+ +

当父窗口接收到控件的WM_COMMAND时调用该函数

+
Parameters
+ + +
code通知代码
+
+
+ +

Reimplemented in sw::ButtonBase, sw::ComboBox, sw::ListBox, and sw::TextBoxBase.

+ +
+
+ +

◆ OnContextMenu()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::WndBase::OnContextMenu (bool isKeyboardMsg,
Point mousePosition )
+
+protectedvirtual
+
+ +

接收到WM_CONTEXTMENU后调用目标控件的该函数

+
Parameters
+ + + +
isKeyboardMsg消息是否由按下快捷键(Shift+F10、VK_APPS)产生
mousePosition鼠标在屏幕中的位置
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented in sw::ListBox, and sw::UIElement.

+ +
+
+ +

◆ OnControlCommand()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + +
virtual void sw::WndBase::OnControlCommand (WndBase * pControl,
int code,
int id )
+
+protectedvirtual
+
+ +

当WM_COMMAND接收到控件命令时调用该函数

+
Parameters
+ + + + +
pControl控件对象指针
code通知代码
id控件id
+
+
+ +
+
+ +

◆ OnCreate()

+ +
+
+ + + + + +
+ + + + + + + +
virtual bool sw::WndBase::OnCreate ()
+
+protectedvirtual
+
+ +

接收到WM_CREATE时调用该函数

+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +
+
+ +

◆ OnCtlColor()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + +
virtual bool sw::WndBase::OnCtlColor (WndBase * pControl,
HDC hdc,
HBRUSH & hRetBrush )
+
+protectedvirtual
+
+ +

接收到WM_CTLCOLORxxx时调用该函数

+
Parameters
+ + + + +
pControl消息相关的控件
hdc控件的显示上下文句柄
hRetBrush要返回的画笔
+
+
+
Returns
若返回true则将hRetBrush作为消息的返回值,否则使用DefaultWndProc的返回值
+ +
+
+ +

◆ OnDeadChar()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::WndBase::OnDeadChar (wchar_t ch,
KeyFlags flags )
+
+protectedvirtual
+
+ +

接收到WM_DEADCHAR时调用该函数

+
Parameters
+ + + +
ch按键的字符代码
flags附加信息
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +
+
+ +

◆ OnDestroy()

+ +
+
+ + + + + +
+ + + + + + + +
virtual bool sw::WndBase::OnDestroy ()
+
+protectedvirtual
+
+ +

接收到WM_DESTROY时调用该函数

+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented in sw::Window.

+ +
+
+ +

◆ OnDrawItem()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::WndBase::OnDrawItem (int id,
DRAWITEMSTRUCT * pDrawItem )
+
+protectedvirtual
+
+ +

接收到WM_DRAWITEM时调用该函数

+
Parameters
+ + + +
id控件的标识符,若消息是通过菜单发送的则此参数为零
pDrawItem包含有关要绘制的项和所需绘图类型的信息的结构体指针
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +
+
+ +

◆ OnEnabledChanged()

+ +
+
+ + + + + +
+ + + + + + + +
virtual bool sw::WndBase::OnEnabledChanged (bool newValue)
+
+protectedvirtual
+
+ +

接收到WM_ENABLE时调用该函数

+
Parameters
+ + +
newValueEnabled的新值
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +
+
+ +

◆ OnEndPaint()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::WndBase::OnEndPaint ()
+
+protectedvirtual
+
+ +

在OnPaint函数完成之后调用该函数

+ +

Reimplemented in sw::UIElement.

+ +
+
+ +

◆ OnEraseBackground()

+ +
+
+ + + + + +
+ + + + + + + +
virtual bool sw::WndBase::OnEraseBackground (int & result)
+
+protectedvirtual
+
+ +

接收到WM_ERASEBKGND时调用该函数

+
Parameters
+ + +
result若已处理该消息则设为非零值,默认值为0
+
+
+
Returns
若返回true则将result作为消息的返回值,否则使用DefaultWndProc的返回值
+ +

Reimplemented in sw::Window.

+ +
+
+ +

◆ OnHorizontalScroll()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::WndBase::OnHorizontalScroll (int event,
int pos )
+
+protectedvirtual
+
+ +

接收到WM_HSCROLL时调用目标控件的该函数

+
Parameters
+ + + +
event事件类型,即消息wParam的低字
pos当前滚动条的位置,仅当event为SB_THUMBPOSITION或SB_THUMBTRACK时有效
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented in sw::Layer, sw::PanelBase, and sw::Slider.

+ +
+
+ +

◆ OnKeyDown()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::WndBase::OnKeyDown (VirtualKey key,
KeyFlags flags )
+
+protectedvirtual
+
+ +

接收到WM_KEYDOWN时调用该函数

+
Parameters
+ + + +
key虚拟按键
flags附加信息
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented in sw::Button, sw::TextBoxBase, and sw::UIElement.

+ +
+
+ +

◆ OnKeyUp()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::WndBase::OnKeyUp (VirtualKey key,
KeyFlags flags )
+
+protectedvirtual
+
+ +

接收到WM_KEYUP时调用该函数

+
Parameters
+ + + +
key虚拟按键
flags附加信息
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented in sw::UIElement.

+ +
+
+ +

◆ OnKillFocus()

+ +
+
+ + + + + +
+ + + + + + + +
virtual bool sw::WndBase::OnKillFocus (HWND hNextFocus)
+
+protectedvirtual
+
+ +

接收到WM_KILLFOCUS时调用该函数

+
Parameters
+ + +
hNextFocus接收到焦点的hwnd,可能为NULL
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented in sw::Button, and sw::UIElement.

+ +
+
+ +

◆ OnMenuCommand()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::WndBase::OnMenuCommand (int id)
+
+protectedvirtual
+
+ +

当WM_COMMAND接收到菜单命令时调用该函数

+
Parameters
+ + +
id菜单id
+
+
+ +

Reimplemented in sw::UIElement, and sw::Window.

+ +
+
+ +

◆ OnMouseLeave()

+ +
+
+ + + + + +
+ + + + + + + +
virtual bool sw::WndBase::OnMouseLeave ()
+
+protectedvirtual
+
+ +

接收到WM_MOUSELEAVE时调用该函数

+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented in sw::UIElement.

+ +
+
+ +

◆ OnMouseLeftButtonDoubleClick()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::WndBase::OnMouseLeftButtonDoubleClick (Point mousePosition,
MouseKey keyState )
+
+protectedvirtual
+
+ +

接收到WM_LBUTTONDBLCLK时调用该函数

+
Parameters
+ + + +
mousePosition鼠标在用户区中的位置
keyState指示某些按键是否按下
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +
+
+ +

◆ OnMouseLeftButtonDown()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::WndBase::OnMouseLeftButtonDown (Point mousePosition,
MouseKey keyState )
+
+protectedvirtual
+
+ +

接收到WM_LBUTTONDOWN时调用该函数

+
Parameters
+ + + +
mousePosition鼠标在用户区中的位置
keyState指示某些按键是否按下
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented in sw::UIElement.

+ +
+
+ +

◆ OnMouseLeftButtonUp()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::WndBase::OnMouseLeftButtonUp (Point mousePosition,
MouseKey keyState )
+
+protectedvirtual
+
+ +

接收到WM_LBUTTONUP时调用该函数

+
Parameters
+ + + +
mousePosition鼠标在用户区中的位置
keyState指示某些按键是否按下
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented in sw::UIElement.

+ +
+
+ +

◆ OnMouseMiddleButtonDoubleClick()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::WndBase::OnMouseMiddleButtonDoubleClick (Point mousePosition,
MouseKey keyState )
+
+protectedvirtual
+
+ +

接收到WM_MBUTTONDBLCLK时调用该函数

+
Parameters
+ + + +
mousePosition鼠标在用户区中的位置
keyState指示某些按键是否按下
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +
+
+ +

◆ OnMouseMiddleButtonDown()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::WndBase::OnMouseMiddleButtonDown (Point mousePosition,
MouseKey keyState )
+
+protectedvirtual
+
+ +

接收到WM_MBUTTONDOWN时调用该函数

+
Parameters
+ + + +
mousePosition鼠标在用户区中的位置
keyState指示某些按键是否按下
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented in sw::UIElement.

+ +
+
+ +

◆ OnMouseMiddleButtonUp()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::WndBase::OnMouseMiddleButtonUp (Point mousePosition,
MouseKey keyState )
+
+protectedvirtual
+
+ +

接收到WM_MBUTTONUP时调用该函数

+
Parameters
+ + + +
mousePosition鼠标在用户区中的位置
keyState指示某些按键是否按下
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented in sw::UIElement.

+ +
+
+ +

◆ OnMouseMove()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::WndBase::OnMouseMove (Point mousePosition,
MouseKey keyState )
+
+protectedvirtual
+
+ +

接收到WM_MOUSEMOVE时调用该函数

+
Parameters
+ + + +
mousePosition鼠标在用户区中的位置
keyState指示某些按键是否按下
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented in sw::UIElement.

+ +
+
+ +

◆ OnMouseRightButtonDoubleClick()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::WndBase::OnMouseRightButtonDoubleClick (Point mousePosition,
MouseKey keyState )
+
+protectedvirtual
+
+ +

接收到WM_RBUTTONDBLCLK时调用该函数

+
Parameters
+ + + +
mousePosition鼠标在用户区中的位置
keyState指示某些按键是否按下
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +
+
+ +

◆ OnMouseRightButtonDown()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::WndBase::OnMouseRightButtonDown (Point mousePosition,
MouseKey keyState )
+
+protectedvirtual
+
+ +

接收到WM_RBUTTONDOWN时调用该函数

+
Parameters
+ + + +
mousePosition鼠标在用户区中的位置
keyState指示某些按键是否按下
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented in sw::UIElement.

+ +
+
+ +

◆ OnMouseRightButtonUp()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::WndBase::OnMouseRightButtonUp (Point mousePosition,
MouseKey keyState )
+
+protectedvirtual
+
+ +

接收到WM_RBUTTONUP时调用该函数

+
Parameters
+ + + +
mousePosition鼠标在用户区中的位置
keyState指示某些按键是否按下
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented in sw::UIElement.

+ +
+
+ +

◆ OnMouseWheel()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + +
virtual bool sw::WndBase::OnMouseWheel (int wheelDelta,
Point mousePosition,
MouseKey keyState )
+
+protectedvirtual
+
+ +

接收到WM_MOUSEWHEEL时调用该函数

+
Parameters
+ + + + +
wheelDelta滚轮滚动的距离,为120的倍数
mousePosition鼠标在用户区中的位置
keyState指示某些按键是否按下
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented in sw::UIElement.

+ +
+
+ +

◆ OnMove()

+ +
+
+ + + + + +
+ + + + + + + +
virtual bool sw::WndBase::OnMove (Point newClientPosition)
+
+protectedvirtual
+
+ +

接收到WM_MOVE时调用该函数

+
Parameters
+ + +
newClientPosition移动后用户区左上角的位置
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented in sw::UIElement.

+ +
+
+ +

◆ OnNcHitTest()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual void sw::WndBase::OnNcHitTest (const Point & testPoint,
HitTestResult & result )
+
+protectedvirtual
+
+ +

接收到WM_NCHITTEST后调用该函数

+
Parameters
+ + + +
testPoint要测试的点在屏幕中的位置
result测试的结果,默认为调用DefaultWndProc的结果
+
+
+ +
+
+ +

◆ OnNotified()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::WndBase::OnNotified (NMHDR * pNMHDR)
+
+protectedvirtual
+
+ +

父窗口接收到WM_NOTIFY后调用发出通知控件的该函数

+ +

Reimplemented in sw::ListView, and sw::TabControl.

+ +
+
+ +

◆ OnNotify()

+ +
+
+ + + + + +
+ + + + + + + +
virtual bool sw::WndBase::OnNotify (NMHDR * pNMHDR)
+
+protectedvirtual
+
+ +

接收到WM_NOTIFY后调用该函数

+
Parameters
+ + +
pNMHDR包含有关通知消息的信息
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented in sw::ListView.

+ +
+
+ +

◆ OnPaint()

+ +
+
+ + + + + +
+ + + + + + + +
virtual bool sw::WndBase::OnPaint ()
+
+protectedvirtual
+
+ +

接收到WM_PAINT时调用该函数

+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented in sw::Panel, and sw::Window.

+ +
+
+ +

◆ OnSetCursor()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
virtual bool sw::WndBase::OnSetCursor (HWND hwnd,
HitTestResult hitTest,
int message,
bool & result )
+
+protectedvirtual
+
+ +

接收到WM_SETCURSOR消息时调用该函数

+
Parameters
+ + + + + +
hwnd鼠标所在窗口的句柄
hitTesthit-test的结果,详见WM_NCHITTEST消息的返回值
message触发该事件的鼠标消息,如WM_MOUSEMOVE
result消息的返回值,默认为false
+
+
+
Returns
若返回true则将result作为消息的返回值,否则使用DefaultWndProc的返回值
+ +

Reimplemented in sw::UIElement.

+ +
+
+ +

◆ OnSetFocus()

+ +
+
+ + + + + +
+ + + + + + + +
virtual bool sw::WndBase::OnSetFocus (HWND hPrevFocus)
+
+protectedvirtual
+
+ +

接收到WM_SETFOCUS时调用该函数

+
Parameters
+ + +
hPrevFocus丢失焦点的hwnd,可能为NULL
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented in sw::Button, and sw::UIElement.

+ +
+
+ +

◆ OnSize()

+ +
+
+ + + + + +
+ + + + + + + +
virtual bool sw::WndBase::OnSize (Size newClientSize)
+
+protectedvirtual
+
+ +

接收到WM_SIZE时调用该函数

+
Parameters
+ + +
newClientSize改变后的用户区尺寸
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented in sw::Panel, and sw::UIElement.

+ +
+
+ +

◆ OnSysChar()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::WndBase::OnSysChar (wchar_t ch,
KeyFlags flags )
+
+protectedvirtual
+
+ +

接收到WM_SYSCHAR时调用该函数

+
Parameters
+ + + +
ch按键的字符代码
flags附加信息
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +
+
+ +

◆ OnSysDeadChar()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::WndBase::OnSysDeadChar (wchar_t ch,
KeyFlags flags )
+
+protectedvirtual
+
+ +

接收到WM_SYSDEADCHAR时调用该函数

+
Parameters
+ + + +
ch按键的字符代码
flags附加信息
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +
+
+ +

◆ OnSysKeyDown()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::WndBase::OnSysKeyDown (VirtualKey key,
KeyFlags flags )
+
+protectedvirtual
+
+ +

接收到WM_SYSKEYDOWN时调用该函数

+
Parameters
+ + + +
key虚拟按键
flags附加信息
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +
+
+ +

◆ OnSysKeyUp()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::WndBase::OnSysKeyUp (VirtualKey key,
KeyFlags flags )
+
+protectedvirtual
+
+ +

接收到WM_SYSKEYUP时调用该函数

+
Parameters
+ + + +
key虚拟按键
flags附加信息
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +
+
+ +

◆ OnTextChanged()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::WndBase::OnTextChanged ()
+
+protectedvirtual
+
+ +

Text属性更改时调用此函数

+ +

Reimplemented in sw::Label, and sw::UIElement.

+ +
+
+ +

◆ OnVerticalScroll()

+ +
+
+ + + + + +
+ + + + + + + + + + + +
virtual bool sw::WndBase::OnVerticalScroll (int event,
int pos )
+
+protectedvirtual
+
+ +

接收到WM_VSCROLL时调用目标控件的该函数

+
Parameters
+ + + +
event事件类型,即消息wParam的低字
pos当前滚动条的位置,仅当event为SB_THUMBPOSITION或SB_THUMBTRACK时有效
+
+
+
Returns
若已处理该消息则返回true,否则返回false以调用DefaultWndProc
+ +

Reimplemented in sw::Layer, sw::PanelBase, and sw::Slider.

+ +
+
+ +

◆ ParentChanged()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::WndBase::ParentChanged (WndBase * newParent)
+
+protectedvirtual
+
+ +

父窗口改变时调用此函数

+
Parameters
+ + +
newParent新的父窗口
+
+
+ +

Reimplemented in sw::UIElement.

+ +
+
+ +

◆ PointFromScreen()

+ +
+
+ + + + + + + +
Point sw::WndBase::PointFromScreen (const Point & screenPoint)
+
+ +

获取屏幕上点在当前用户区点的位置

+
Parameters
+ + +
screenPoint屏幕上点的坐标
+
+
+
Returns
该点在用户区的坐标
+ +
+
+ +

◆ PointToScreen()

+ +
+
+ + + + + + + +
Point sw::WndBase::PointToScreen (const Point & point)
+
+ +

获取用户区点在屏幕上点的位置

+
Parameters
+ + +
point用户区坐标
+
+
+
Returns
该点在屏幕上的坐标
+ +
+
+ +

◆ Redraw()

+ +
+
+ + + + + + + +
void sw::WndBase::Redraw (bool erase = false)
+
+ +

重画

+
Parameters
+ + +
erase是否擦除旧的背景
+
+
+ +
+
+ +

◆ SetParent()

+ +
+
+ + + + + +
+ + + + + + + +
virtual bool sw::WndBase::SetParent (WndBase * parent)
+
+protectedvirtual
+
+ +

设置父窗口

+
Returns
设置是否成功
+ +

Reimplemented in sw::UIElement.

+ +
+
+ +

◆ SetText()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::WndBase::SetText (const std::wstring & value)
+
+protectedvirtual
+
+ +

调用SetWindowTextW设置窗口文本

+
Parameters
+ + +
value要设置的文本
+
+
+ +

Reimplemented in sw::ComboBox.

+ +
+
+ +

◆ VisibleChanged()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::WndBase::VisibleChanged (bool newVisible)
+
+protectedvirtual
+
+ +

Visible属性改变时调用此函数

+ +

Reimplemented in sw::UIElement.

+ +
+
+ +

◆ WndProc()

+ +
+
+ + + + + +
+ + + + + + + +
virtual LRESULT sw::WndBase::WndProc (const ProcMsg & refMsg)
+
+protectedvirtual
+
+ +

对WndProc的封装

+ +

Reimplemented in sw::Window.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_wnd_base.js b/docs/classsw_1_1_wnd_base.js new file mode 100644 index 00000000..f43316ae --- /dev/null +++ b/docs/classsw_1_1_wnd_base.js @@ -0,0 +1,104 @@ +var classsw_1_1_wnd_base = +[ + [ "WndBase", "classsw_1_1_wnd_base.html#aab509b68c9c0b612862cf41d8ef685a3", null ], + [ "~WndBase", "classsw_1_1_wnd_base.html#a6c99714fa3f313e7535936585f63b9cb", null ], + [ "Close", "classsw_1_1_wnd_base.html#a436818f8ad91446f86b42081dd1a7358", null ], + [ "DefaultWndProc", "classsw_1_1_wnd_base.html#a585967d861673ea0477f25c1a5c0fb30", null ], + [ "FontChanged", "classsw_1_1_wnd_base.html#ac34494921eed0f67a053a9393d78bcf9", null ], + [ "GetExtendedStyle", "classsw_1_1_wnd_base.html#a12044a0ffde9b79b03adef97bd266a1a", null ], + [ "GetExtendedStyle", "classsw_1_1_wnd_base.html#a40c635116230de013fbbda5c76e00612", null ], + [ "GetFontHandle", "classsw_1_1_wnd_base.html#a2eec178adddff9e44d83238f19d57b1b", null ], + [ "GetStyle", "classsw_1_1_wnd_base.html#a792eeeffd1b43bd75024352f99822144", null ], + [ "GetStyle", "classsw_1_1_wnd_base.html#a39b4f05dd2900f08e7344e645c514ec3", null ], + [ "GetText", "classsw_1_1_wnd_base.html#a888df1f6b89e8da1ba8c7cc8f4671370", null ], + [ "HandleInitialized", "classsw_1_1_wnd_base.html#a4b368860fef40406c091880fc72f9cbb", null ], + [ "InitControl", "classsw_1_1_wnd_base.html#a60707bc74fd7d0599da1ea014cc37b5d", null ], + [ "InitWindow", "classsw_1_1_wnd_base.html#a4889c45dfad820c103dd7f74f2cd0661", null ], + [ "IsControl", "classsw_1_1_wnd_base.html#ace8f6b05caa5d335f7d574c38035bfa7", null ], + [ "IsVisible", "classsw_1_1_wnd_base.html#a6ee668e7a5261f96df0bd69a1fb868d3", null ], + [ "NcHitTest", "classsw_1_1_wnd_base.html#a87c9d860ba24487f2b61b72987a4bd63", null ], + [ "OnAcceleratorCommand", "classsw_1_1_wnd_base.html#a935f2bb51b99929ac5166ad52396971a", null ], + [ "OnChar", "classsw_1_1_wnd_base.html#ad0f719a2feffe354737cef9b13b63db0", null ], + [ "OnClose", "classsw_1_1_wnd_base.html#a0e30c4d0b87c473115e7521c5c95703a", null ], + [ "OnColor", "classsw_1_1_wnd_base.html#aa605b4a21b4cd8c43c226349665a5f28", null ], + [ "OnCommand", "classsw_1_1_wnd_base.html#a60e633e3cfea36b186c4a210925e865a", null ], + [ "OnContextMenu", "classsw_1_1_wnd_base.html#a2c436f7819721b3f1a700c39ea538003", null ], + [ "OnControlCommand", "classsw_1_1_wnd_base.html#a69256166096bb51cde45f101c4e9ae95", null ], + [ "OnCreate", "classsw_1_1_wnd_base.html#a7dd30ab5e8700832140c329739b4b671", null ], + [ "OnCtlColor", "classsw_1_1_wnd_base.html#aa04cd83e79c42d21127799e573d9f299", null ], + [ "OnDeadChar", "classsw_1_1_wnd_base.html#a4c72db003eeb8a29565576ad26cc89b8", null ], + [ "OnDestroy", "classsw_1_1_wnd_base.html#a98d960679d1889998ba548af6a3c8fc4", null ], + [ "OnDrawItem", "classsw_1_1_wnd_base.html#a6e9cac4e02b3a420c42968cbf061fd02", null ], + [ "OnEnabledChanged", "classsw_1_1_wnd_base.html#a755bd826227232fd30ba5fda47bfb060", null ], + [ "OnEndPaint", "classsw_1_1_wnd_base.html#ad90b0eebbaa959949cae5b736e2104aa", null ], + [ "OnEraseBackground", "classsw_1_1_wnd_base.html#a748fda35e75d416077598f243afe9da1", null ], + [ "OnHorizontalScroll", "classsw_1_1_wnd_base.html#af6773148b0a9a1fdd3c8a0d8cd54a2fd", null ], + [ "OnKeyDown", "classsw_1_1_wnd_base.html#aea1d61cd6e108834e498009926ff3ebd", null ], + [ "OnKeyUp", "classsw_1_1_wnd_base.html#af4e6b89a39f12d2fbdf987d79c05b190", null ], + [ "OnKillFocus", "classsw_1_1_wnd_base.html#a6de15bd6a264721f6bfadd40d9fce3b0", null ], + [ "OnMenuCommand", "classsw_1_1_wnd_base.html#afffc1d57f289f965bc50d8150c4586e1", null ], + [ "OnMouseLeave", "classsw_1_1_wnd_base.html#aaf334072263bea6dddf93a7601979023", null ], + [ "OnMouseLeftButtonDoubleClick", "classsw_1_1_wnd_base.html#a5a8952400bee12db2117fbf76312d373", null ], + [ "OnMouseLeftButtonDown", "classsw_1_1_wnd_base.html#a118948e07b472d90fce7e9811ea174aa", null ], + [ "OnMouseLeftButtonUp", "classsw_1_1_wnd_base.html#ad82a0ab5f0622abaf30456e7e309409e", null ], + [ "OnMouseMiddleButtonDoubleClick", "classsw_1_1_wnd_base.html#a4aa14c2130ef0fbb656d28c287e401f5", null ], + [ "OnMouseMiddleButtonDown", "classsw_1_1_wnd_base.html#a348d10334d2f74a44f741bf85eddaa2c", null ], + [ "OnMouseMiddleButtonUp", "classsw_1_1_wnd_base.html#a143aff6cca9e55608630d1fc320d4666", null ], + [ "OnMouseMove", "classsw_1_1_wnd_base.html#ad188b201bbbc650c4ad9c388dbac18b4", null ], + [ "OnMouseRightButtonDoubleClick", "classsw_1_1_wnd_base.html#a5b90855aaaa4556e5ef5fe68e8149669", null ], + [ "OnMouseRightButtonDown", "classsw_1_1_wnd_base.html#a4c802a79d332af6e6a6ddcf13005a587", null ], + [ "OnMouseRightButtonUp", "classsw_1_1_wnd_base.html#aeb7286fd72b6d49b6d0b22d8cde07941", null ], + [ "OnMouseWheel", "classsw_1_1_wnd_base.html#adcf94f9017f5589b3027955e48c34b62", null ], + [ "OnMove", "classsw_1_1_wnd_base.html#a17769747f602f2f7c18a0a49ce97a125", null ], + [ "OnNcHitTest", "classsw_1_1_wnd_base.html#a1445af2018a8e840a25a7487da22c51b", null ], + [ "OnNotified", "classsw_1_1_wnd_base.html#a4aad533e3d37a7de43645d703dda1a84", null ], + [ "OnNotify", "classsw_1_1_wnd_base.html#a191f7c32914b029dca7c93e03b4841e0", null ], + [ "OnPaint", "classsw_1_1_wnd_base.html#a029ba4be0e492f8383f2b5fe22125acb", null ], + [ "OnSetCursor", "classsw_1_1_wnd_base.html#ab37c3f3ea7654eb6a0b15405196c4549", null ], + [ "OnSetFocus", "classsw_1_1_wnd_base.html#a4b15e8f2bcac32da4d5e540445ae201a", null ], + [ "OnSize", "classsw_1_1_wnd_base.html#aaba3c3ea0a8d12be237ef28e44018677", null ], + [ "OnSysChar", "classsw_1_1_wnd_base.html#a515de5eb7bc6dbc8314c447a99154c6c", null ], + [ "OnSysDeadChar", "classsw_1_1_wnd_base.html#acf4e6c0bbc8fddc9e790864e403c5c91", null ], + [ "OnSysKeyDown", "classsw_1_1_wnd_base.html#ad63e584926b894913ee1ef4c039a2f98", null ], + [ "OnSysKeyUp", "classsw_1_1_wnd_base.html#a46dafa7371fbef198ee7a38c4aabc632", null ], + [ "OnTextChanged", "classsw_1_1_wnd_base.html#adb808283f6ccd5a32834ad25fa2f407b", null ], + [ "OnVerticalScroll", "classsw_1_1_wnd_base.html#a72a4024b2096ecef4248b1c254b674e2", null ], + [ "ParentChanged", "classsw_1_1_wnd_base.html#a4d09cfbc382789150798ff6ad3d9f988", null ], + [ "PointFromScreen", "classsw_1_1_wnd_base.html#a6f1b33e5930fc14467f65ad89c2c35c3", null ], + [ "PointToScreen", "classsw_1_1_wnd_base.html#a292d93c230f5534cdf68ac5d685dd487", null ], + [ "Redraw", "classsw_1_1_wnd_base.html#a1c0d183115a35f097b0598af43c9ca9a", null ], + [ "SendMessageW", "classsw_1_1_wnd_base.html#ad50166a8ade9a7eaf0088f13fd708e2f", null ], + [ "SetExtendedStyle", "classsw_1_1_wnd_base.html#a58f8e7dd73212a5aed4785a5af1f8a76", null ], + [ "SetExtendedStyle", "classsw_1_1_wnd_base.html#ab34424818cb41b88aaefa796ef4b1995", null ], + [ "SetParent", "classsw_1_1_wnd_base.html#a5fd142cef45421381b2e8b89cac67d86", null ], + [ "SetStyle", "classsw_1_1_wnd_base.html#a163464ef6f42dc8e6c10557715607ad2", null ], + [ "SetStyle", "classsw_1_1_wnd_base.html#acbd2d5eb7aa20574b9ad80e166b6f0f6", null ], + [ "SetText", "classsw_1_1_wnd_base.html#aba0ab3734c3d4c07f3b9bbb029b98edb", null ], + [ "Show", "classsw_1_1_wnd_base.html#ae2f1b78dd8165c8bca0313180a9f4b81", null ], + [ "Update", "classsw_1_1_wnd_base.html#ab7ac81f0ed48a5093fd3170c7c756963", null ], + [ "UpdateFont", "classsw_1_1_wnd_base.html#af8df0384e2be0569e0da1f51985204c8", null ], + [ "UpdateText", "classsw_1_1_wnd_base.html#a292bd97b5820a1b4e7a38d65e2b609e8", null ], + [ "VisibleChanged", "classsw_1_1_wnd_base.html#aef02bbac8ef450e5f3f478b41031a3ab", null ], + [ "WndProc", "classsw_1_1_wnd_base.html#a863b26226e16cf37f7169c6edc96a3b4", null ], + [ "operator!=", "classsw_1_1_wnd_base.html#a3e4f8edb05ac0381561f4a105db73a34", null ], + [ "operator==", "classsw_1_1_wnd_base.html#a91165e81b129c626cabcc7b3d8a5dc43", null ], + [ "ClientHeight", "classsw_1_1_wnd_base.html#a4030b80afd9e81e3046ccd5ec94ec83f", null ], + [ "ClientRect", "classsw_1_1_wnd_base.html#a0126115c0626d137ba3e7b0a5c8d793b", null ], + [ "ClientWidth", "classsw_1_1_wnd_base.html#a97898f967c916e67c152c69f4c7c6cd6", null ], + [ "Enabled", "classsw_1_1_wnd_base.html#ad5e7d8d1a548315b3e709151f71766b3", null ], + [ "Focused", "classsw_1_1_wnd_base.html#a71498b3ad8ae548fd7f4a531a6b70982", null ], + [ "Font", "classsw_1_1_wnd_base.html#a529436cd730fc39ad2875728cdfe4a51", null ], + [ "FontName", "classsw_1_1_wnd_base.html#a72a604f374bba1e6c34b5d5e56cd26f0", null ], + [ "FontSize", "classsw_1_1_wnd_base.html#ac49c6452ceb4950dd581189615753b0c", null ], + [ "FontWeight", "classsw_1_1_wnd_base.html#a50e006e69f07abb4e6ba381121abcd22", null ], + [ "Handle", "classsw_1_1_wnd_base.html#abc0b653ccc071c2cfcba42fa8eef738f", null ], + [ "Height", "classsw_1_1_wnd_base.html#a51fdc4b943e62bd67ffbff4a6e65de2a", null ], + [ "IsDestroyed", "classsw_1_1_wnd_base.html#a54aa973b24b4bc4b681ac2c21a50d204", null ], + [ "Left", "classsw_1_1_wnd_base.html#a4f0b57de9babc053c655872ed91468dd", null ], + [ "Parent", "classsw_1_1_wnd_base.html#a7bda583e7535a89b8b5bd327c1f32ccd", null ], + [ "Rect", "classsw_1_1_wnd_base.html#a7598603457217f09aae0deaad59ef063", null ], + [ "Text", "classsw_1_1_wnd_base.html#a9afff86d32e9b54cccc204ef29a85891", null ], + [ "Top", "classsw_1_1_wnd_base.html#a6dbe3776aeb038659f0a290fbe1dc6d7", null ], + [ "Visible", "classsw_1_1_wnd_base.html#a808f5d6fd407e3b65cff88f1873bd754", null ], + [ "Width", "classsw_1_1_wnd_base.html#a445edbe5db50a5a4486ddff98e8ffbae", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_wnd_base.png b/docs/classsw_1_1_wnd_base.png new file mode 100644 index 0000000000000000000000000000000000000000..7afd1ee7165df992695f61542096a269146175c0 GIT binary patch literal 6256 zcmds6YgAL$w)S-u=~a4x7K7`-6Iu*}@neBQiy%kbN9JLb(>zy_ZaW(&ca!+gao_*(g4$j%^>$pjve z5lwPVQ-!zt`ok;oA0Uq(KL+nTTXuZ~`j%36goe)pf6q0q1w}v1n`fiP<2LO)HeV@K z?of1Fo)T}W_R7Yy>U$K>PCJC{ zzK$`UPjCn`i+h{7`TcOb^@2iOA9K`r>-!%S2egw@pb0Qwl#L@@r&fa2bAH{G?tI(s zlFvKwtuo4#*9fJ^iS8Fd6bN>GVwnl)gWa>tMR*e3zrjb~cRlT>NSUffr}-3P&Y8M{ zv%#~fRvW!?#?KBt`IjGKEpzj&>c)Dclt{gS5MxK!Jv`8e=*F;`B$*})6Pq>swXg_> zT_R_XpnXp0cCc=`u9%rHHa~abZSnp7qHya4tZ_{cqoJK*DV5$3sc*K^h{8h_6d7o& zJY0;Vu|BmAJR2{8ZCt>u{j&05nN3B=;PgT5BhxA@1o=-4EyG*yPh*Q-zldA=cqtjLrs7y>XAz@!IwQF*Era3x z2?u87q82)f1n{=AtKBG;{xXg1$I%UpK*2Rw@h;wam+~M}_S4O6R8#dfYKDHI5>~u{ zzU5>a%W$z3h+oGYJ+LQH7tEGNGahN}9efzqkClQ2@#H;f;oSr0{6neXo{YbVx7_MX zOBIXWl?Ey!rc;Z^Rc;Uc1%bW0Ax$xgkLy8XNJIHeSiWFoPeS_-wu=_cGWM96Ax;3f z#GX%VGf!LqMo_Csap3U`c&y2L{|_Dg++-N@;c96j?;7}Q*>ua4AJY_9@b-V6|Mz}z zSPBn9`?j9=!t!&EJLh~W2`_)3fp49u+ukMabBuG2zn(VB9U?#*0m|D40j*EaKMdwIBjnI8?j)dj(i^RI#uiI zN;~NrxqRaA#l+<_yF~wnU@*J=blkW3OGoW?b!6OtAhKF$%O%--Vq#WrB?gE_=Hdd4yA~sIqBWS#b7^L zWyAwQs!&pWoR$8LUVYpux{oa=97(MZm>M69d5pj?Wm=!z2rKL(yVzV<_lU;10^ffN zm}1#^94BFF#f~`CHV({Pk|!I=+fZW#qc2>49szIN4pupd0UHpbHeG|-v<4lv4IQSW zIrsoeLRPqjXKs+i7Q{Dw z_zP5W!~P85{IcHv4MHcHVnW+Jt}o`Et87}sU3CD0J`#8U``rBv`}~#}jUntJLm8}K zwdjeEq)C!Dyz)%n#^`{6QdQlg>Be0gEu8K>EoFR>6963cgO8<@ku*6jWU?BM<{{1O z&O+p5q>Hg^mb;blF`Li0P_b}yN1Ks6JoJ;VMQny>WT5?OmM?cSs<^O%f1m<+V!8|; z$Pus*Lv3kR(i_S{UqzH+1FB$MFC|31vqM~-VD$FjF&=P9I-eZf-k#Z;^$$j;6EZqy z?#>L+-Qur$3O;6KQl{!B=U@S_Wh+UeTnd3&Wy)_4J13W>izi@cQx0J=s&=c zb$X_(KtCE=+nH~&OAI7$V#}$c82XCuCca4X5%(yM^1BjEh{Hoq7v1sfp>N1Ij?RN$wKK@}nqcoNU++AG90PyX1lZ`Vd>72+pc4 zLdn2($TK`z?yjv40izZ+#KGKEgC2zN*fCpxSpc)9;E!SVZKsx&{lEPB?v<>KXkMz{ zT5f)_KItL^oi;oKEN=UUjPpxG?IEy>q@od}F$}5}N?ZXOR}bOt~=?MOJzGCO=TX2PHW6@q%+@TlDHQlQ-sZ9X**>Y zdf_mt&^!S^TzgAYjkk|x<*;7wyA0EtN~6_Y%na)1t%ZK0UpKeAC;LruFWWx0plO38jzb01+1~AW&&$e&>)MFTgOd!9DEQ zITZlvOhB;OdxQ@b)Aja6t0ymwe2~2NkxF2Z+hd`ssjf=gC_S1M4rxA{+dIw5f4SbH z8IZW9tOEtHAoq8Y=Renj)0{?A>#2+Az{4o}f2Q4x0(maGo`}BmEFox2%2x;g$7O~p zTt$4L&q;D@VR@zJ3PmQ+8@FgLXyzBh$-hwo7QVcYjU$?{Y!}r`-Fu3)HZm$=f2D2a z6AXL*2SY#Uk$R<&b<--xuxY5!vCj0<;DCiyNxCz$i98M@bjd&XiJ{BaD=qFd$ER+b zJwu6&9T=Al3^$iV&|Iw=^fV3(w3b>+wDiwQuBj{xT;8IzpXA7q<@Ti%R{Bt}Nx7bG zpm8Y#_L%c52WO+)+aTT9Vm~=~O)1QHsU zp`c^WC+u*`O!B^~%tjk@4|$Gt&K}IojNuR}InFZENGd>3PJ6Yj`xUFq6DL$JyX4t~ z&#zQ}$`EV_6~(7noH7rb4Cu#SPWF5w2}Q^OZ8(%H(l4>kAc5Ei=F$+Ozr$kWcG;nqv2YP9IF2#prqDk|6x=6>nlAREz)yh{Rej zlP8`UDI53mEB!~dCDBWk!NT>6;;RvgWeLy6H-xAf%r=fuCCQK^3t)!_#5Q&!?dgRf z8%H@Knz>f{NI7|n0|%g9am+SacYl3N$aEu$@8r4Ar$5rU=u*qGPn(QG{Z#*|i97cK z(=&7{MXDK$x#0b50DfZw*u?X=941hM*=>CZRwd`x%`P}dP&c%J?yDYR5aPhgv26Y3 zTma#FPlNkJ2kGLvMT^oRUJ9P)6QY;nKgE;iLi89msz5ire~=qe1H;#TeX{2pX~uc+ zOJP`^KH!YE&Nz97$zp&j-;|r*)nv&n~J)74usvSR;W=fYo9MV2<7G{go zD6mTjRC~lhyoFmWYgLXm*Ee_^FD@nWASitufO{YdspqwSPY-xS?oaY%(2RMUg|)B( z+@B4ey8->Tl6$wS9}S!gD#i6%bODWHlj%m@|l3L5!8ME0X3xneoPFq@I|El&YgZAewzF;(0HE%3u^YNX_i;JAFR&GRev*-yKXkRN1393voAzlKWw2l zCe_F=b>4vC8yx`*>}(9m#R5E)mUckg+}BAJi}XE#B{W^XbZCEQ*mRH10c2ew=C?fX zLJDelM+`2yt!usnr6lwD^ZWkXB>DS{OuC4&`9Z+u&OievxPT)+53grbAlV>p(Thfh zl46X5v#C(a>Zf<@sBP>vax+ew>*qfi8905t9QGj>hh>>BfTsiNljP5lvQ8fa}L9 zzCpO{K8Li1Sbl`c%Lr+qau?1l2dDe*FZ(iU^omEPN2iDPW=NNB}_H18&?5% z^;VQsIu^}-&ID=%n*BNokVce8|I+^S5V!QpXHzm7;Dmm~J>@b8;(;S~YOPE1Q|Jwh zM!Y+)xMZzZdi&9g*8%@&aEkcIwgTO1Nvlpe*57xb1@cL7AB0N)-1XDNLFEr_nnw49dWWD$7c0_bIZT8)Y-#V!s4csMXBTJ$%4t&N=z=oXJVKO=%noXEeKAEz+cW z+vo5`L=T6Dh1u0RfTPwfLmfrLlM*9~&&f%|Y-1uwh!$Wm3SXK?{;2>b;v2tFaf#xJ z6kQSz`w-st>tZ6v|IufZg zx;MJ9H*797a;AFG3Km*Pb$yn;5?BZ*lu77LKA;H7>zI?EF%lmqRDw3ao}qIR6e=o@ gPgu5KtInd-F8GQmdcP3-Z(triC=^$9uylmGw# literal 0 HcmV?d00001 diff --git a/docs/classsw_1_1_wrap_layout-members.html b/docs/classsw_1_1_wrap_layout-members.html new file mode 100644 index 00000000..7dbdf5ae --- /dev/null +++ b/docs/classsw_1_1_wrap_layout-members.html @@ -0,0 +1,120 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::WrapLayout Member List
+
+
+ +

This is the complete list of members for sw::WrapLayout, including all inherited members.

+ + + + + + + + + + + + +
Arrange(const Rect &finalPosition) overridesw::LayoutHostvirtual
ArrangeOverride(Size &finalSize) overridesw::WrapLayoutvirtual
Associate(ILayout *obj)sw::LayoutHost
GetChildLayoutAt(int index) overridesw::LayoutHostvirtual
GetChildLayoutCount() overridesw::LayoutHostvirtual
GetDesireSize() overridesw::LayoutHostvirtual
GetLayoutTag() overridesw::LayoutHostvirtual
Measure(const Size &availableSize) overridesw::LayoutHostvirtual
MeasureOverride(Size &availableSize) overridesw::WrapLayoutvirtual
orientationsw::WrapLayout
SetDesireSize(const Size &size) overridesw::LayoutHostvirtual
+
+ + + + diff --git a/docs/classsw_1_1_wrap_layout.html b/docs/classsw_1_1_wrap_layout.html new file mode 100644 index 00000000..037f3936 --- /dev/null +++ b/docs/classsw_1_1_wrap_layout.html @@ -0,0 +1,236 @@ + + + + + + + +SimpleWindow: sw::WrapLayout Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
sw::WrapLayout Class Reference
+
+
+ +

自动换行布局 + More...

+ +

#include <WrapLayout.h>

+
+Inheritance diagram for sw::WrapLayout:
+
+
+ + +sw::WrapLayoutH +sw::WrapLayoutV +sw::LayoutHost +sw::LayoutHost +sw::ILayout +sw::ILayout + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

virtual void MeasureOverride (Size &availableSize) override
 计算所需尺寸
 
virtual void ArrangeOverride (Size &finalSize) override
 安排控件
 
- Public Member Functions inherited from sw::LayoutHost
void Associate (ILayout *obj)
 设置关联的对象,每个LayoutHost只能关联一个对象
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取关联对象子控件的数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取关联对象对应索引处的子控件
 
virtual Size GetDesireSize () override
 获取关联对象所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置关联对象所需的尺寸
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const Rect &finalPosition) override
 安排控件位置
 
+ + + + +

+Public Attributes

+Orientation orientation = Orientation::Horizontal
 排列方式
 
+

Detailed Description

+

自动换行布局

+

Member Function Documentation

+ +

◆ ArrangeOverride()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::WrapLayout::ArrangeOverride (Size & finalSize)
+
+overridevirtual
+
+ +

安排控件

+ +

Reimplemented from sw::WrapLayoutH.

+ +
+
+ +

◆ MeasureOverride()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::WrapLayout::MeasureOverride (Size & availableSize)
+
+overridevirtual
+
+ +

计算所需尺寸

+ +

Reimplemented from sw::WrapLayoutH.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_wrap_layout.js b/docs/classsw_1_1_wrap_layout.js new file mode 100644 index 00000000..64252dac --- /dev/null +++ b/docs/classsw_1_1_wrap_layout.js @@ -0,0 +1,6 @@ +var classsw_1_1_wrap_layout = +[ + [ "ArrangeOverride", "classsw_1_1_wrap_layout.html#ab9be93cbdff99c85100c72559ed36b1b", null ], + [ "MeasureOverride", "classsw_1_1_wrap_layout.html#a5d7818fc025713f3a29df602ca934178", null ], + [ "orientation", "classsw_1_1_wrap_layout.html#a1ce0e6707fe1463b857889755df7ee09", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_wrap_layout.png b/docs/classsw_1_1_wrap_layout.png new file mode 100644 index 0000000000000000000000000000000000000000..98443033d0d7f1cf210851f832f1d4b953c099ef GIT binary patch literal 1557 zcmbVMdpOf;9N$DClTs(yo;s&k$)UNdS#HPeM6D$%nHUy_7E2+rjgUev&26)z$QtFA zhAoR6T^tPM)MtjspA0uCpxQ zOe4|*>j?tZ{|uB0vmXRfD|T~sI2{9?E1IKKe6Qo2b>d8iEdEnP;zrE6Yil+?LLl9% z*|!_Uc#*8*Xk82YA^9y<)$QU#m?sU_Zf5wX0Vo9HblP%p_*xFjHcUGfxulycx8UbB&T3C=tpDB29aWX zs21umPUY-nXNW(Z&0gF;@wTJdwc;@y-YgfnKHK_hEfb~VcKz)XiPI={SgcHX&0@%S zat_Pa)K5+>tD2YN6f{;Iwx828!#1c|E)AOj_yr#h1~yO2BNknIy$3Kj zw3|a=jI?r`X*>M76SnnGD08)RLS~RS2K8!;wA#4a*RSFqgv2pg1{k zRXA1RkZXv?)|rEnY4*3TFL-#V7ac;`#4img75-KTImLfupVA{PP;BEoBBA-vV8~b* zQh#J&tyddWy4oKti}+l`lX}MMqqOukW-iPxESZ$olBN!)K+OYirDK=U?4&uw=h@Xg z#9bEqs}+jSw$vrup1~7wqP@ELT0H*tSU+cD-&<<1EUQBqKJj>FRNu#I65H)WkBQZ7 zVcnIjNITy`l<&Qh-TfzsqFZaos&{mUPA{13X&fC**lliT_gWa_Jz^2nH^{BTuRf?W zKj_mLgt|?HmA+Y!A@M<@RH3EJcc5k}V>0fe715@5H_Be{#k@YE2C6(H^8B#5%m%ZN zIm50Or>;qUwjBwJHJQ|uRYQEjQX`n`kU^=r5zD9C;?#TGcxDCK{)cl=*&WX4v~4 zXtu#XKH(URQJu8QQN1fSAVtT~0{pxb+Oo6%51BrlJ95nm3K;C_Ww|C`uyp@5>}LN1 z|6!P!gTUQ6DFnO@QIs52i}A|T_-YJv27i~JvYrOh9rXhEezCVrb!7({-V$F{J<}Mi zvXa)=ES3X=gPhR8A{oUOaA!#-qD{_OYZf0bI>#d4CaCB=j!7%wyy=h&SK`a53w3(+ z%kZG4m~Zw0*lfdIGIH@kXEwHPR?eI3Ql@wZKBTVakyh@G_4u2{^3u^4#`e9uV%8~C zes{HfB>4=r$Xd&Vt-QgaG}HjZO2h2@yTuB7%&=s$cL3IBa`|}N^oNPh9>sMQ%A1Wt zGK$g}+Nb?Mp+0fyiKxZqj${%cZx-VV09YMnKsD202G$yg@_mm5iKqAM*tBkMz}V^z PeBdBA7p!x&qkrOGE@vBE literal 0 HcmV?d00001 diff --git a/docs/classsw_1_1_wrap_layout_h-members.html b/docs/classsw_1_1_wrap_layout_h-members.html new file mode 100644 index 00000000..1755fb67 --- /dev/null +++ b/docs/classsw_1_1_wrap_layout_h-members.html @@ -0,0 +1,119 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::WrapLayoutH Member List
+
+
+ +

This is the complete list of members for sw::WrapLayoutH, including all inherited members.

+ + + + + + + + + + + +
Arrange(const Rect &finalPosition) overridesw::LayoutHostvirtual
ArrangeOverride(Size &finalSize) overridesw::WrapLayoutHvirtual
Associate(ILayout *obj)sw::LayoutHost
GetChildLayoutAt(int index) overridesw::LayoutHostvirtual
GetChildLayoutCount() overridesw::LayoutHostvirtual
GetDesireSize() overridesw::LayoutHostvirtual
GetLayoutTag() overridesw::LayoutHostvirtual
Measure(const Size &availableSize) overridesw::LayoutHostvirtual
MeasureOverride(Size &availableSize) overridesw::WrapLayoutHvirtual
SetDesireSize(const Size &size) overridesw::LayoutHostvirtual
+
+ + + + diff --git a/docs/classsw_1_1_wrap_layout_h.html b/docs/classsw_1_1_wrap_layout_h.html new file mode 100644 index 00000000..8cd60eef --- /dev/null +++ b/docs/classsw_1_1_wrap_layout_h.html @@ -0,0 +1,229 @@ + + + + + + + +SimpleWindow: sw::WrapLayoutH Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
sw::WrapLayoutH Class Reference
+
+
+ +

横向自动换行布局 + More...

+ +

#include <WrapLayoutH.h>

+
+Inheritance diagram for sw::WrapLayoutH:
+
+
+ + +sw::LayoutHost +sw::ILayout +sw::WrapLayout + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

virtual void MeasureOverride (Size &availableSize) override
 计算所需尺寸
 
virtual void ArrangeOverride (Size &finalSize) override
 安排控件
 
- Public Member Functions inherited from sw::LayoutHost
void Associate (ILayout *obj)
 设置关联的对象,每个LayoutHost只能关联一个对象
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取关联对象子控件的数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取关联对象对应索引处的子控件
 
virtual Size GetDesireSize () override
 获取关联对象所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置关联对象所需的尺寸
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const Rect &finalPosition) override
 安排控件位置
 
+

Detailed Description

+

横向自动换行布局

+

Member Function Documentation

+ +

◆ ArrangeOverride()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::WrapLayoutH::ArrangeOverride (Size & finalSize)
+
+overridevirtual
+
+ +

安排控件

+ +

Implements sw::LayoutHost.

+ +

Reimplemented in sw::WrapLayout.

+ +
+
+ +

◆ MeasureOverride()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::WrapLayoutH::MeasureOverride (Size & availableSize)
+
+overridevirtual
+
+ +

计算所需尺寸

+ +

Implements sw::LayoutHost.

+ +

Reimplemented in sw::WrapLayout.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_wrap_layout_h.js b/docs/classsw_1_1_wrap_layout_h.js new file mode 100644 index 00000000..fdbbab18 --- /dev/null +++ b/docs/classsw_1_1_wrap_layout_h.js @@ -0,0 +1,5 @@ +var classsw_1_1_wrap_layout_h = +[ + [ "ArrangeOverride", "classsw_1_1_wrap_layout_h.html#a1c8f53445bcda82c733b1e6d1e45b788", null ], + [ "MeasureOverride", "classsw_1_1_wrap_layout_h.html#a66eacfc28ef8001230272227cb4fcbe3", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_wrap_layout_h.png b/docs/classsw_1_1_wrap_layout_h.png new file mode 100644 index 0000000000000000000000000000000000000000..ee12624eff9831225b2d66c203dc513f831527d1 GIT binary patch literal 1073 zcmeAS@N?(olHy`uVBq!ia0vp^c|d%CgBeI(n!GF=NJ$6ygt-3y{~ySF@#br3|Doj; z2ATyD)6cwk@ZbSZ-1KbN5}+JsNswPK1CS2}=1jA%FfcIh@pN$vsbG9N_w}V$3Ougj ziOUZEw*UArZo%46|0l&VtD^H1xt%uDZ@hM^@=#aDnM;Q{J2YONE>x>?b&-2{=}C8i z+HXCn0=1s^Y`)r8U0vL454fK1?LTyC-KP_&ib_Qnl4It^JpaDWq|k5%e}P@f?*&Zj zju{^d9+s7Qabp)^-N8rPd)Q?w0G?Y&-mY8 z-MQ@^hmum%ugW=FulWfdu)f9cEK@J<_OegU9@*ro_Ze0A3Vat{R2Cpa!231{| zhDl<44xZfX3zoDp2V6SD7<1y;^TW9X{{;V^(XcI7@>R-{I{WyI%dChuE>XwsM$D|v zKi1iq`~PKmG+{o&u&#oiHknC5R9eJO78^_2bZYb_>zt`=9m@GNbH=)5`IsfLY0r>9JQ zxP4ynshbsgH}89Yf7e@G5h(ZWu6t&C_4mkIRrmk?`t7&=i$#6Szl}dV*Yph?HCw-x zCc3%+{psQ|We=An*DKd|yt#kviGSfS{@!=Dw{h-QgZuL8`2wIX_4c03-#jPg z?7FhupC55u-+lh=mzU)=U%ncxJN8`hocr?^t3h5odbJ|$``?$gAFj?lz^x@(= zH*d-osPgeQS?U!WI2zJDe@^q#oVS}6&pFBUUrSv4-7`6@$M5p?>b?7BpSHIF + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::WrapLayoutV Member List
+
+
+ +

This is the complete list of members for sw::WrapLayoutV, including all inherited members.

+ + + + + + + + + + + +
Arrange(const Rect &finalPosition) overridesw::LayoutHostvirtual
ArrangeOverride(Size &finalSize) overridesw::WrapLayoutVvirtual
Associate(ILayout *obj)sw::LayoutHost
GetChildLayoutAt(int index) overridesw::LayoutHostvirtual
GetChildLayoutCount() overridesw::LayoutHostvirtual
GetDesireSize() overridesw::LayoutHostvirtual
GetLayoutTag() overridesw::LayoutHostvirtual
Measure(const Size &availableSize) overridesw::LayoutHostvirtual
MeasureOverride(Size &availableSize) overridesw::WrapLayoutVvirtual
SetDesireSize(const Size &size) overridesw::LayoutHostvirtual
+
+ + + + diff --git a/docs/classsw_1_1_wrap_layout_v.html b/docs/classsw_1_1_wrap_layout_v.html new file mode 100644 index 00000000..3676f1cb --- /dev/null +++ b/docs/classsw_1_1_wrap_layout_v.html @@ -0,0 +1,229 @@ + + + + + + + +SimpleWindow: sw::WrapLayoutV Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
sw::WrapLayoutV Class Reference
+
+
+ +

纵向自动换行布局 + More...

+ +

#include <WrapLayoutV.h>

+
+Inheritance diagram for sw::WrapLayoutV:
+
+
+ + +sw::LayoutHost +sw::ILayout +sw::WrapLayout + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

virtual void MeasureOverride (Size &availableSize) override
 计算所需尺寸
 
virtual void ArrangeOverride (Size &finalSize) override
 安排控件
 
- Public Member Functions inherited from sw::LayoutHost
void Associate (ILayout *obj)
 设置关联的对象,每个LayoutHost只能关联一个对象
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取关联对象子控件的数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取关联对象对应索引处的子控件
 
virtual Size GetDesireSize () override
 获取关联对象所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置关联对象所需的尺寸
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const Rect &finalPosition) override
 安排控件位置
 
+

Detailed Description

+

纵向自动换行布局

+

Member Function Documentation

+ +

◆ ArrangeOverride()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::WrapLayoutV::ArrangeOverride (Size & finalSize)
+
+overridevirtual
+
+ +

安排控件

+ +

Implements sw::LayoutHost.

+ +

Reimplemented in sw::WrapLayout.

+ +
+
+ +

◆ MeasureOverride()

+ +
+
+ + + + + +
+ + + + + + + +
virtual void sw::WrapLayoutV::MeasureOverride (Size & availableSize)
+
+overridevirtual
+
+ +

计算所需尺寸

+ +

Implements sw::LayoutHost.

+ +

Reimplemented in sw::WrapLayout.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_wrap_layout_v.js b/docs/classsw_1_1_wrap_layout_v.js new file mode 100644 index 00000000..a3381a91 --- /dev/null +++ b/docs/classsw_1_1_wrap_layout_v.js @@ -0,0 +1,5 @@ +var classsw_1_1_wrap_layout_v = +[ + [ "ArrangeOverride", "classsw_1_1_wrap_layout_v.html#a010cae9030f68a485430c9cbe4b230a6", null ], + [ "MeasureOverride", "classsw_1_1_wrap_layout_v.html#a3e87afe055e4d53c9ac4c6ad0794ddf4", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_wrap_layout_v.png b/docs/classsw_1_1_wrap_layout_v.png new file mode 100644 index 0000000000000000000000000000000000000000..6971eae4b6f64abf994128e0adbaeab8e5080ff3 GIT binary patch literal 1079 zcmV-71jze|P)vTJr#LVva2S`&=-}Ys|Ns9r%~qrU000SeQchC<|NsC0|NsC0Hv*f~000BR zNklyoo75JeYFmBsr%@!>9@Mw8Rwn@VA34}#5J*fhysthIKYup%O}v~VIK zO8VnC6aPd+UgAVz;$WXN#*t+mqx@QF5nd76vcwyC_iI8U3&n~eMM%3L@AEiD{? zk`@j?Nec&{q=f@e(!v2KY2g5rv~U0yvibUQADq9$Uo%?Iok)|2n@00EJCP<9JCT-g zH&N!^%{Vc!@Beqt`+mgTxdq(K+P$lZ{b1id@B98B^s|khmMd~Y|S1Q zo}?VaevI=0J}~(0{^=kzv|#5m6W8kRqI>9PY8uGn<(*O{Qx5jkhKc2!ug+b~$WH0< z-?{Zv|03Z^^K#s{?}u|&GL+WV=fAp@On20@x;!rqmz$U8F0M6XwC-}Mx!tB@@Q}H* zik(v5@#@^QiyJcByi=`~^sdP@#qaMv?8y1Kiy3HZGt3HCuEnyLK#6Ut$?(7KbE?_6 zFWK*{bN9hHyl4;S?yI!Jx%)0{{oeih@10)jaen*!W%HGKU+V*Wq77i4=Hj+(DsL{% z(`ND}<9@s{7Y;y63kRU2g#%F1!T~60;Q*AhZ~#hLH~=Lr9Ka}JjF~5lbI#4u!a3)h zlKvDfJS%d}xn2(z>O)dgj{RpilOMJAZQsPXAu8NEF2VIvsp~tND3}3*SQrTpeu8+mLK9mP*cN^R!*sh1amTPjM%2 zevLcZy92J|q03gE%yEGOE|yySdbmeE>j%g= z=alsGIAe^NCV)@00nF1}+_p{S&Bb}zOx|SNk5}fx0cdIA0F<-p1AZyu|tJ9KGsb zlha#V&1bgnckhK)w*zk^^Q;cfac6sXz?D3_Nanb}0T)XxesT?#wvEe1xsnyWRW1(P x%{f%Y-JN<}-0gSF`T-IVQPR)jthIKU{sX9QpK}2Vt=Iqn002ovPDHLkV1g$7E|vfQ literal 0 HcmV?d00001 diff --git a/docs/classsw_1_1_wrap_panel-members.html b/docs/classsw_1_1_wrap_panel-members.html new file mode 100644 index 00000000..4ed87d21 --- /dev/null +++ b/docs/classsw_1_1_wrap_panel-members.html @@ -0,0 +1,324 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::WrapPanel Member List
+
+
+ +

This is the complete list of members for sw::WrapPanel, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AddChild(UIElement *element)sw::UIElement
AddChild(UIElement &element)sw::UIElement
AddChild(UIElement *element, uint64_t layoutTag)sw::UIElement
AddChild(UIElement &element, uint64_t layoutTag)sw::UIElement
Arrange(const sw::Rect &finalPosition) overridesw::PanelBasevirtual
AutoSizesw::Layer
BackColorsw::UIElement
BorderStylesw::Panel
ChildCountsw::UIElement
ClearChildren()sw::UIElement
ClientHeightsw::WndBase
ClientRectsw::WndBase
ClientWidthsw::WndBase
Close()sw::WndBase
CollapseWhenHidesw::UIElement
ContextMenusw::UIElement
Control()sw::Controlprotected
DefaultWndProc(const ProcMsg &refMsg)sw::WndBaseprotected
DisableLayout()sw::Layer
Enabledsw::WndBase
EnableLayout()sw::Layer
Floatsw::UIElement
Focusedsw::WndBase
Fontsw::WndBase
FontChanged(HFONT hfont)sw::WndBaseprotectedvirtual
FontNamesw::WndBase
FontSizesw::WndBase
FontWeightsw::WndBase
GetArrangeOffsetX()sw::UIElementprotected
GetArrangeOffsetY()sw::UIElementprotected
GetChildBottommost(bool update)sw::UIElementprotected
GetChildLayoutAt(int index) overridesw::UIElementvirtual
GetChildLayoutCount() overridesw::UIElementvirtual
GetChildRightmost(bool update)sw::UIElementprotected
GetDefaultLayout() overridesw::WrapPanelprotectedvirtual
GetDesireSize() overridesw::UIElementvirtual
GetExtendedStyle()sw::WndBaseprotected
GetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
GetFontHandle()sw::WndBaseprotected
GetHorizontalScrollPageSize()sw::Layer
GetHorizontalScrollRange(double &refMin, double &refMax)sw::Layer
GetLayoutTag() overridesw::UIElementvirtual
GetNextElement()sw::UIElement
GetNextTabStopElement()sw::UIElement
GetRealBackColor()sw::UIElement
GetRealTextColor()sw::UIElement
GetRootElement()sw::UIElement
GetStyle()sw::WndBaseprotected
GetStyle(LONG_PTR style)sw::WndBaseprotected
GetTag() overridesw::UIElementvirtual
GetText()sw::WndBaseprotectedvirtual
GetVerticalScrollPageSize()sw::Layer
GetVerticalScrollRange(double &refMin, double &refMax)sw::Layer
GetWndBase(HWND hwnd)sw::WndBasestatic
Handlesw::WndBase
HandleChenged()sw::Controlprotectedvirtual
HandleInitialized(HWND hwnd)sw::WndBaseprotectedvirtual
Heightsw::WndBase
HorizontalAlignmentsw::UIElement
HorizontalScrollBarsw::Layer
HorizontalScrollLimitsw::Layer
HorizontalScrollPossw::Layer
IndexOf(UIElement *element)sw::UIElement
IndexOf(UIElement &element)sw::UIElement
InheritTextColorsw::UIElement
InitControl(LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
InitWindow(LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)sw::WndBaseprotected
IsControl()sw::WndBase
IsDestroyedsw::WndBase
IsRootElement()sw::UIElement
IsRoutedEventRegistered(RoutedEventType eventType)sw::UIElement
IsVisible()sw::WndBase
Layer()sw::Layerprotected
Layoutsw::Layer
LayoutTagsw::UIElement
Leftsw::WndBase
Marginsw::UIElement
Measure(const Size &availableSize) overridesw::PanelBasevirtual
MoveToBottom()sw::UIElement
MoveToTop()sw::UIElement
NcHitTest(const Point &testPoint)sw::WndBase
NotifyLayoutUpdated()sw::UIElementprotected
OnAcceleratorCommand(int id)sw::WndBaseprotectedvirtual
OnAddedChild(UIElement &element)sw::UIElementprotectedvirtual
OnChar(wchar_t ch, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnClose() overridesw::UIElementprotectedvirtual
OnColor(HDC hdc, HBRUSH &hRetBrush) overridesw::UIElementprotectedvirtual
OnCommand(int code)sw::WndBaseprotectedvirtual
OnContextMenu(bool isKeyboardMsg, Point mousePosition) overridesw::UIElementprotectedvirtual
OnControlCommand(WndBase *pControl, int code, int id)sw::WndBaseprotectedvirtual
OnCreate()sw::WndBaseprotectedvirtual
OnCtlColor(WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)sw::WndBaseprotectedvirtual
OnDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnDestroy()sw::WndBaseprotectedvirtual
OnDrawFocusRect()sw::UIElementprotectedvirtual
OnDrawItem(int id, DRAWITEMSTRUCT *pDrawItem)sw::WndBaseprotectedvirtual
OnEnabledChanged(bool newValue)sw::WndBaseprotectedvirtual
OnEndPaint() overridesw::UIElementprotectedvirtual
OnEraseBackground(int &result)sw::WndBaseprotectedvirtual
OnHorizontalScroll(int event, int pos) overridesw::PanelBaseprotectedvirtual
OnKeyDown(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKeyUp(VirtualKey key, KeyFlags flags) overridesw::UIElementprotectedvirtual
OnKillFocus(HWND hNextFocus) overridesw::UIElementprotectedvirtual
OnMenuCommand(int id) overridesw::UIElementprotectedvirtual
OnMouseLeave() overridesw::UIElementprotectedvirtual
OnMouseLeftButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseLeftButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseMiddleButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMiddleButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseMove(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonDoubleClick(Point mousePosition, MouseKey keyState)sw::WndBaseprotectedvirtual
OnMouseRightButtonDown(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseRightButtonUp(Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMouseWheel(int wheelDelta, Point mousePosition, MouseKey keyState) overridesw::UIElementprotectedvirtual
OnMove(Point newClientPosition) overridesw::UIElementprotectedvirtual
OnNcHitTest(const Point &testPoint, HitTestResult &result)sw::WndBaseprotectedvirtual
OnNotified(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnNotify(NMHDR *pNMHDR)sw::WndBaseprotectedvirtual
OnPaint() overridesw::Panelprotectedvirtual
OnRemovedChild(UIElement &element)sw::UIElementprotectedvirtual
OnScroll(ScrollOrientation scrollbar, ScrollEvent event, double pos)sw::Layerprotectedvirtual
OnSetCursor(HWND hwnd, HitTestResult hitTest, int message, bool &result) overridesw::UIElementprotectedvirtual
OnSetFocus(HWND hPrevFocus) overridesw::UIElementprotectedvirtual
OnSize(Size newClientSize) overridesw::Panelprotectedvirtual
OnSysChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysDeadChar(wchar_t ch, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyDown(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnSysKeyUp(VirtualKey key, KeyFlags flags)sw::WndBaseprotectedvirtual
OnTabStop()sw::UIElementprotectedvirtual
OnTextChanged() overridesw::UIElementprotectedvirtual
OnVerticalScroll(int event, int pos) overridesw::PanelBaseprotectedvirtual
operator=(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator=(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
operator[](int index) constsw::UIElement
Orientationsw::WrapPanel
Panel()sw::Panel
PanelBase()sw::PanelBaseprotected
Parentsw::UIElement
ParentChanged(WndBase *newParent) overridesw::UIElementprotectedvirtual
PointFromScreen(const Point &screenPoint)sw::WndBase
PointToScreen(const Point &point)sw::WndBase
RaiseRoutedEvent(RoutedEventType eventType)sw::UIElementprotected
RaiseRoutedEvent(RoutedEventArgs &eventArgs)sw::UIElementprotected
Rectsw::WndBase
Redraw(bool erase=false)sw::WndBase
RegisterRoutedEvent(RoutedEventType eventType, const RoutedEvent &handler)sw::UIElement
RegisterRoutedEvent(RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))sw::UIElementinline
RegisterRoutedEvent(std::function< void(UIElement &, TEventArgs &)> handler)sw::UIElementinline
RegisterRoutedEvent(THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))sw::UIElementinline
RemoveChild(UIElement *element)sw::UIElement
RemoveChild(UIElement &element)sw::UIElement
RemoveChildAt(int index)sw::UIElement
ResetCursor()sw::UIElement
ResetHandle()sw::Controlprotected
ScrollHorizontal(double offset)sw::Layer
ScrollToBottom()sw::Layer
ScrollToLeft()sw::Layer
ScrollToRight()sw::Layer
ScrollToTop()sw::Layer
ScrollVertical(double offset)sw::Layer
SendMessageW(UINT uMsg, WPARAM wParam, LPARAM lParam)sw::WndBase
SetAlignment(sw::HorizontalAlignment horz, sw::VerticalAlignment vert)sw::UIElement
SetBackColor(Color color, bool redraw)sw::UIElementprotectedvirtual
SetCursor(HCURSOR hCursor)sw::UIElement
SetCursor(StandardCursor cursor)sw::UIElement
SetDesireSize(const Size &size) overridesw::UIElementvirtual
SetExtendedStyle(LONG_PTR style)sw::WndBaseprotected
SetExtendedStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetHorizontalScrollPageSize(double pageSize)sw::Layer
SetHorizontalScrollRange(double min, double max)sw::Layer
SetNextTabStopFocus()sw::UIElementprotected
SetParent(WndBase *parent) overridesw::UIElementprotectedvirtual
SetStyle(LONG_PTR style)sw::WndBaseprotected
SetStyle(LONG_PTR style, bool value)sw::WndBaseprotected
SetTag(uint64_t tag) overridesw::UIElementvirtual
SetText(const std::wstring &value)sw::WndBaseprotectedvirtual
SetTextColor(Color color, bool redraw)sw::UIElementprotectedvirtual
SetVerticalScrollPageSize(double pageSize)sw::Layer
SetVerticalScrollRange(double min, double max)sw::Layer
Show(int nCmdShow)sw::WndBase
ShowContextMenu(const Point &point)sw::UIElement
TabStopsw::UIElement
Tagsw::UIElement
Textsw::WndBase
TextColorsw::UIElement
Topsw::WndBase
Transparentsw::UIElement
UIElement()sw::UIElementprotected
UnregisterRoutedEvent(RoutedEventType eventType)sw::UIElement
Update()sw::WndBase
UpdateChildrenZOrder()sw::UIElementprotected
UpdateFont()sw::WndBase
UpdateLayout()sw::Layerprotected
UpdateScrollRange()sw::Layer
UpdateSiblingsZOrder()sw::UIElementprotected
UpdateText()sw::WndBaseprotected
VerticalAlignmentsw::UIElement
VerticalScrollBarsw::Layer
VerticalScrollLimitsw::Layer
VerticalScrollPossw::Layer
Visiblesw::WndBase
VisibleChanged(bool newVisible) overridesw::UIElementprotectedvirtual
Widthsw::WndBase
WndBase()sw::WndBaseprotected
WndBase(const WndBase &)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndBase(WndBase &&)=delete (defined in sw::WndBase)sw::WndBaseprotected
WndProc(const ProcMsg &refMsg)sw::WndBaseprotectedvirtual
WrapPanel()sw::WrapPanel
~Control()=0sw::Controlpure virtual
~Layer()=0sw::Layerpure virtual
~PanelBase()=0sw::PanelBasepure virtual
~UIElement()=0sw::UIElementpure virtual
~WndBase()=0sw::WndBasepure virtual
+
+ + + + diff --git a/docs/classsw_1_1_wrap_panel.html b/docs/classsw_1_1_wrap_panel.html new file mode 100644 index 00000000..be9427b1 --- /dev/null +++ b/docs/classsw_1_1_wrap_panel.html @@ -0,0 +1,961 @@ + + + + + + + +SimpleWindow: sw::WrapPanel Class Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+ +

自动换行面板 + More...

+ +

#include <WrapPanel.h>

+
+Inheritance diagram for sw::WrapPanel:
+
+
+ + +sw::Panel +sw::PanelBase +sw::Control +sw::Layer +sw::UIElement +sw::UIElement +sw::WndBase +sw::ILayout +sw::ITag +sw::WndBase +sw::ILayout +sw::ITag + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

WrapPanel ()
 初始化WrapPanel
 
- Public Member Functions inherited from sw::Panel
Panel ()
 初始化面板
 
- Public Member Functions inherited from sw::PanelBase
+virtual ~PanelBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
virtual void Measure (const Size &availableSize) override
 测量控件所需尺寸
 
virtual void Arrange (const sw::Rect &finalPosition) override
 安排控件位置
 
- Public Member Functions inherited from sw::Control
+virtual ~Control ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
- Public Member Functions inherited from sw::UIElement
+virtual ~UIElement ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
void RegisterRoutedEvent (RoutedEventType eventType, const RoutedEvent &handler)
 注册路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename T >
void RegisterRoutedEvent (RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))
 注册成员函数作为路由事件处理函数,当事件已注册时会覆盖已注册的函数
 
template<typename TEventArgs , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (std::function< void(UIElement &, TEventArgs &)> handler)
 根据事件参数类型注册路由事件
 
template<typename TEventArgs , typename THandleObj , typename std::enable_if< std::is_base_of< RoutedEventArgs, TEventArgs >::value, int >::type = 0, typename std::enable_if< sw::_IsTypedRoutedEventArgs< TEventArgs >::value, int >::type = 0>
void RegisterRoutedEvent (THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))
 根据事件参数类型注册成员函数作为路由事件
 
void UnregisterRoutedEvent (RoutedEventType eventType)
 取消对应类型路由事件的注册
 
bool IsRoutedEventRegistered (RoutedEventType eventType)
 判断路由事件是否已被注册
 
bool AddChild (UIElement *element)
 添加子控件
 
bool AddChild (UIElement &element)
 添加子控件
 
bool AddChild (UIElement *element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool AddChild (UIElement &element, uint64_t layoutTag)
 添加子控件并设置布局标记
 
bool RemoveChildAt (int index)
 移除指定索引处的子控件
 
bool RemoveChild (UIElement *element)
 移除子控件
 
bool RemoveChild (UIElement &element)
 移除子控件
 
+void ClearChildren ()
 移除所有子控件
 
int IndexOf (UIElement *element)
 获取指定元素的索引
 
int IndexOf (UIElement &element)
 获取指定元素的索引
 
+UIElementoperator[] (int index) const
 通过索引获取子控件
 
void ShowContextMenu (const Point &point)
 弹出当前元素的上下文菜单
 
+void MoveToTop ()
 移动到界面顶部
 
+void MoveToBottom ()
 移动到界面底部
 
+bool IsRootElement ()
 判断当前元素是否为根节点
 
+UIElementGetRootElement ()
 获取当前元素所在界面树的根节点
 
+UIElementGetNextElement ()
 获取当前元素在界面树上的下一个节点,若已是最后一个节点则返回根节点
 
+UIElementGetNextTabStopElement ()
 获取下一个TabStop属性为true的元素
 
+Color GetRealBackColor ()
 获取当前要显示的背景颜色:当Transparent为true时获取到祖先节点中首个Transparent为false的背景颜色,否则返回当前元素的背景颜色
 
+Color GetRealTextColor ()
 获取当前要显示的文本颜色:当InheritTextColor为true时获取到祖先节点中首个InheritTextColor为false的文本颜色,否则返回当前元素的文本颜色
 
void SetCursor (HCURSOR hCursor)
 设置鼠标样式
 
void SetCursor (StandardCursor cursor)
 设置鼠标样式
 
+void ResetCursor ()
 将鼠标样式设置为默认样式
 
void SetAlignment (sw::HorizontalAlignment horz, sw::VerticalAlignment vert)
 设置对齐方式
 
virtual uint64_t GetTag () override
 获取Tag
 
virtual void SetTag (uint64_t tag) override
 设置Tag
 
virtual uint64_t GetLayoutTag () override
 获取布局标记
 
virtual int GetChildLayoutCount () override
 获取参与布局的子控件数量
 
virtual ILayoutGetChildLayoutAt (int index) override
 获取对应索引处的子控件,使用此函数前必须先调用GetChildLayoutCount
 
virtual Size GetDesireSize () override
 获取控件所需尺寸
 
virtual void SetDesireSize (const Size &size) override
 设置当前控件所需的尺寸
 
- Public Member Functions inherited from sw::WndBase
+virtual ~WndBase ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void Show (int nCmdShow)
 该函数调用ShowWindow
 
+void Close ()
 发送关闭消息
 
+void Update ()
 该函数调用UpdateWindow
 
+void UpdateFont ()
 更新字体
 
void Redraw (bool erase=false)
 重画
 
+bool IsControl ()
 判断当前对象是否是控件
 
+bool IsVisible ()
 判断当前对象在界面中是否可视,与Visible属性不同的是该函数返回值会受父窗口的影响
 
Point PointToScreen (const Point &point)
 获取用户区点在屏幕上点的位置
 
Point PointFromScreen (const Point &screenPoint)
 获取屏幕上点在当前用户区点的位置
 
+LRESULT SendMessageW (UINT uMsg, WPARAM wParam, LPARAM lParam)
 发送消息
 
HitTestResult NcHitTest (const Point &testPoint)
 测试指定点在窗口的哪一部分
 
- Public Member Functions inherited from sw::Layer
+virtual ~Layer ()=0
 析构函数,这里用纯虚函数使该类成为抽象类
 
+void DisableLayout ()
 禁用布局
 
+void EnableLayout ()
 启用布局
 
void GetHorizontalScrollRange (double &refMin, double &refMax)
 获取横向滚动条的范围
 
void GetVerticalScrollRange (double &refMin, double &refMax)
 获取纵向滚动条的范围
 
void SetHorizontalScrollRange (double min, double max)
 设置横向滚动条的范围
 
void SetVerticalScrollRange (double min, double max)
 设置纵向滚动条的范围
 
+double GetHorizontalScrollPageSize ()
 获取水平滚动条滚动页面大小
 
+double GetVerticalScrollPageSize ()
 获取垂直滚动条滚动页面大小
 
+void SetHorizontalScrollPageSize (double pageSize)
 设置水平滚动条滚动页面大小
 
+void SetVerticalScrollPageSize (double pageSize)
 设置垂直滚动条滚动页面大小
 
+void UpdateScrollRange ()
 根据子元素更新滚动条范围,未设定布局方式时该函数无效
 
+void ScrollToTop ()
 将垂直滚动条移动到顶部
 
+void ScrollToBottom ()
 将垂直滚动条移动到底部
 
+void ScrollToLeft ()
 将水平滚动条移动到最左
 
+void ScrollToRight ()
 将水平滚动条移动到最右
 
void ScrollHorizontal (double offset)
 水平滚动
 
void ScrollVertical (double offset)
 垂直滚动
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Attributes

+const Property< sw::Orientation > Orientation
 排列方式
 
- Public Attributes inherited from sw::Panel
+const Property< sw::BorderStyle > BorderStyle
 边框样式
 
- Public Attributes inherited from sw::UIElement
+const Property< ThicknessMargin
 边距
 
+const Property< HorizontalAlignment > HorizontalAlignment
 水平对齐方式
 
+const Property< VerticalAlignment > VerticalAlignment
 垂直对齐方式
 
+const ReadOnlyProperty< intChildCount
 子控件数量
 
+const Property< boolCollapseWhenHide
 是否在不可见时不参与布局
 
+const ReadOnlyProperty< UIElement * > Parent
 指向父元素的指针,当前元素为顶级窗口时该值为nullptr
 
+const Property< uint64_tTag
 储存用户自定义信息的标记
 
+const Property< uint64_tLayoutTag
 布局标记,对于不同的布局有不同含义
 
+const Property< sw::ContextMenu * > ContextMenu
 右键按下时弹出的菜单
 
+const Property< boolFloat
 元素是否悬浮,若元素悬浮则该元素不会随滚动条滚动而改变位置
 
+const Property< boolTabStop
 表示用户是否可以通过按下Tab键将焦点移动到当前元素
 
+const Property< ColorBackColor
 背景颜色,修改该属性会同时将Transparent属性设为false,对于部分控件该属性可能不生效
 
+const Property< ColorTextColor
 文本颜色,修改该属性会同时将InheritTextColor属性设为false,对于部分控件该属性可能不生效
 
+const Property< boolTransparent
 是否使用透明背景(此属性并非真正意义上的透明,将该属性设为true可继承父元素的背景颜色)
 
+const Property< boolInheritTextColor
 是否继承父元素的文本颜色
 
- Public Attributes inherited from sw::WndBase
+const ReadOnlyProperty< HWNDHandle
 窗口句柄
 
+const Property< sw::FontFont
 字体
 
+const Property< std::wstring > FontName
 字体名称
 
+const Property< doubleFontSize
 字体大小
 
+const Property< sw::FontWeight > FontWeight
 字体粗细
 
+const Property< sw::RectRect
 位置和尺寸
 
+const Property< doubleLeft
 左边
 
+const Property< doubleTop
 顶边
 
+const Property< doubleWidth
 宽度
 
+const Property< doubleHeight
 高度
 
+const ReadOnlyProperty< sw::RectClientRect
 用户区尺寸
 
+const ReadOnlyProperty< doubleClientWidth
 用户区宽度
 
+const ReadOnlyProperty< doubleClientHeight
 用户区高度
 
+const Property< boolEnabled
 窗口或控件是否可用
 
+const Property< boolVisible
 窗口或控件是否可见
 
+const Property< std::wstring > Text
 窗口标题或控件文本
 
+const Property< boolFocused
 窗口是否拥有焦点
 
+const ReadOnlyProperty< WndBase * > Parent
 父窗口
 
+const ReadOnlyProperty< boolIsDestroyed
 是否已销毁,当该值为true时不应该继续使用当前对象
 
- Public Attributes inherited from sw::Layer
+const Property< LayoutHost * > Layout
 自定义的布局方式,赋值后将自动与所指向的布局关联,每个布局只能关联一个对象,设为nullptr可恢复默认布局
 
+const Property< boolAutoSize
 是否按照布局方式与子元素自动调整尺寸,该属性仅在当前元素已设置布局方式并且非顶级元素时有效
 
+const Property< boolHorizontalScrollBar
 是否显示横向滚动条
 
+const Property< boolVerticalScrollBar
 是否显示纵向滚动条
 
+const Property< doubleHorizontalScrollPos
 横向滚动条位置
 
+const Property< doubleVerticalScrollPos
 纵向滚动条位置
 
+const ReadOnlyProperty< doubleHorizontalScrollLimit
 横向滚动条可设置的最大位置
 
+const ReadOnlyProperty< doubleVerticalScrollLimit
 纵向滚动条可设置的最大位置
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Protected Member Functions

virtual LayoutHostGetDefaultLayout () override
 获取默认布局对象
 
- Protected Member Functions inherited from sw::Panel
virtual bool OnPaint () override
 接收到WM_PAINT时调用该函数
 
virtual bool OnSize (Size newClientSize) override
 接收到WM_SIZE时调用该函数
 
- Protected Member Functions inherited from sw::PanelBase
PanelBase ()
 初始化PanelBase
 
virtual bool OnVerticalScroll (int event, int pos) override
 接收到WM_VSCROLL时调用目标控件的该函数
 
virtual bool OnHorizontalScroll (int event, int pos) override
 接收到WM_HSCROLL时调用目标控件的该函数
 
- Protected Member Functions inherited from sw::Control
Control ()
 初始化控件
 
+void ResetHandle ()
 销毁控件句柄并重新初始化,该操作会创建新的句柄并设置样式、文本、字体等
 
+virtual void HandleChenged ()
 控件句柄发生改变时调用该函数
 
- Protected Member Functions inherited from sw::UIElement
UIElement ()
 初始化UIElement
 
void RaiseRoutedEvent (RoutedEventType eventType)
 触发路由事件
 
void RaiseRoutedEvent (RoutedEventArgs &eventArgs)
 触发路由事件
 
+void NotifyLayoutUpdated ()
 通知顶级窗口布局改变
 
+doubleGetArrangeOffsetX ()
 获取Arrange时子元素的水平偏移量
 
+doubleGetArrangeOffsetY ()
 获取Arrange时子元素的垂直偏移量
 
double GetChildRightmost (bool update)
 获取所有子元素在当前元素中最右边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
double GetChildBottommost (bool update)
 获取所有子元素在当前元素中最底边的位置(只考虑参与布局的子窗口且忽略悬浮的元素)
 
+void UpdateChildrenZOrder ()
 更新子元素的Z轴位置
 
+void UpdateSiblingsZOrder ()
 更新兄弟元素的Z轴位置
 
+void SetNextTabStopFocus ()
 设置下一个TabStop属性为true的元素为焦点元素
 
virtual void SetBackColor (Color color, bool redraw)
 设置背景颜色
 
virtual void SetTextColor (Color color, bool redraw)
 设置文本颜色
 
virtual void OnAddedChild (UIElement &element)
 添加子元素后调用该函数
 
virtual void OnRemovedChild (UIElement &element)
 移除子元素后调用该函数
 
+virtual void OnTabStop ()
 通过tab键将焦点移动到当前元素时调用该函数
 
virtual void OnDrawFocusRect ()
 绘制虚线框时调用该函数
 
virtual bool SetParent (WndBase *parent) override
 设置父窗口
 
virtual void ParentChanged (WndBase *newParent) override
 父窗口改变时调用此函数
 
virtual void OnEndPaint () override
 在OnPaint函数完成之后调用该函数
 
virtual bool OnClose () override
 接收到WM_CLOSE时调用该函数
 
virtual bool OnMove (Point newClientPosition) override
 接收到WM_MOVE时调用该函数
 
virtual void OnTextChanged () override
 Text属性更改时调用此函数
 
virtual void VisibleChanged (bool newVisible) override
 Visible属性改变时调用此函数
 
virtual bool OnSetFocus (HWND hPrevFocus) override
 接收到WM_SETFOCUS时调用该函数
 
virtual bool OnKillFocus (HWND hNextFocus) override
 接收到WM_KILLFOCUS时调用该函数
 
virtual bool OnChar (wchar_t ch, KeyFlags flags) override
 接收到WM_CHAR时调用该函数
 
virtual bool OnKeyDown (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYDOWN时调用该函数
 
virtual bool OnKeyUp (VirtualKey key, KeyFlags flags) override
 接收到WM_KEYUP时调用该函数
 
virtual bool OnMouseMove (Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEMOVE时调用该函数
 
virtual bool OnMouseLeave () override
 接收到WM_MOUSELEAVE时调用该函数
 
virtual bool OnMouseWheel (int wheelDelta, Point mousePosition, MouseKey keyState) override
 接收到WM_MOUSEWHEEL时调用该函数
 
virtual bool OnMouseLeftButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONDOWN时调用该函数
 
virtual bool OnMouseLeftButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_LBUTTONUP时调用该函数
 
virtual bool OnMouseRightButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONDOWN时调用该函数
 
virtual bool OnMouseRightButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_RBUTTONUP时调用该函数
 
virtual bool OnMouseMiddleButtonDown (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONDOWN时调用该函数
 
virtual bool OnMouseMiddleButtonUp (Point mousePosition, MouseKey keyState) override
 接收到WM_MBUTTONUP时调用该函数
 
virtual bool OnContextMenu (bool isKeyboardMsg, Point mousePosition) override
 接收到WM_CONTEXTMENU后调用目标控件的该函数
 
virtual void OnMenuCommand (int id) override
 当WM_COMMAND接收到菜单命令时调用该函数
 
virtual bool OnColor (HDC hdc, HBRUSH &hRetBrush) override
 父窗口接收到WM_CTLCOLORxxx时调用对应控件的该函数
 
virtual bool OnSetCursor (HWND hwnd, HitTestResult hitTest, int message, bool &result) override
 接收到WM_SETCURSOR消息时调用该函数
 
- Protected Member Functions inherited from sw::WndBase
WndBase ()
 初始化WndBase
 
WndBase (const WndBase &)=delete
 
WndBase (WndBase &&)=delete
 
+WndBaseoperator= (const WndBase &)=delete
 
+WndBaseoperator= (WndBase &&)=delete
 
+void InitWindow (LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为窗口,该函数会调用CreateWindowExW
 
+void InitControl (LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle)
 初始化为控件,该函数会调用CreateWindowExW
 
+LONG_PTR GetStyle ()
 获取窗口样式
 
+void SetStyle (LONG_PTR style)
 设置窗口样式
 
+bool GetStyle (LONG_PTR style)
 获取窗口的某个样式
 
+void SetStyle (LONG_PTR style, bool value)
 设置窗口的某个样式
 
+LONG_PTR GetExtendedStyle ()
 获取扩展窗口样式
 
+void SetExtendedStyle (LONG_PTR style)
 设置扩展窗口样式
 
+bool GetExtendedStyle (LONG_PTR style)
 获取窗口的某个扩展样式
 
+void SetExtendedStyle (LONG_PTR style, bool value)
 设置窗口的某个扩展样式
 
+HFONT GetFontHandle ()
 获取字体句柄
 
+LRESULT DefaultWndProc (const ProcMsg &refMsg)
 调用默认的WndProc,对于窗口则调用DefWindowProcW,控件则调用_controlOldWndProc
 
virtual LRESULT WndProc (const ProcMsg &refMsg)
 对WndProc的封装
 
+void UpdateText ()
 更新_text字段
 
virtual std::wstring & GetText ()
 获取窗口文本
 
virtual void SetText (const std::wstring &value)
 调用SetWindowTextW设置窗口文本
 
virtual bool OnCreate ()
 接收到WM_CREATE时调用该函数
 
virtual bool OnDestroy ()
 接收到WM_DESTROY时调用该函数
 
virtual bool OnMouseLeftButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_LBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseRightButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_RBUTTONDBLCLK时调用该函数
 
virtual bool OnMouseMiddleButtonDoubleClick (Point mousePosition, MouseKey keyState)
 接收到WM_MBUTTONDBLCLK时调用该函数
 
virtual bool OnDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_DEADCHAR时调用该函数
 
virtual bool OnSysChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSCHAR时调用该函数
 
virtual bool OnSysDeadChar (wchar_t ch, KeyFlags flags)
 接收到WM_SYSDEADCHAR时调用该函数
 
virtual bool OnSysKeyDown (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYDOWN时调用该函数
 
virtual bool OnSysKeyUp (VirtualKey key, KeyFlags flags)
 接收到WM_SYSKEYUP时调用该函数
 
virtual void OnCommand (int code)
 当父窗口接收到控件的WM_COMMAND时调用该函数
 
virtual void OnControlCommand (WndBase *pControl, int code, int id)
 当WM_COMMAND接收到控件命令时调用该函数
 
virtual void OnAcceleratorCommand (int id)
 当WM_COMMAND接收到快捷键命令时调用该函数
 
virtual void HandleInitialized (HWND hwnd)
 窗口句柄初始化完成
 
virtual void FontChanged (HFONT hfont)
 字体改变时调用该函数
 
virtual bool OnNotify (NMHDR *pNMHDR)
 接收到WM_NOTIFY后调用该函数
 
virtual void OnNotified (NMHDR *pNMHDR)
 父窗口接收到WM_NOTIFY后调用发出通知控件的该函数
 
virtual bool OnEnabledChanged (bool newValue)
 接收到WM_ENABLE时调用该函数
 
virtual bool OnCtlColor (WndBase *pControl, HDC hdc, HBRUSH &hRetBrush)
 接收到WM_CTLCOLORxxx时调用该函数
 
virtual void OnNcHitTest (const Point &testPoint, HitTestResult &result)
 接收到WM_NCHITTEST后调用该函数
 
virtual bool OnEraseBackground (int &result)
 接收到WM_ERASEBKGND时调用该函数
 
virtual bool OnDrawItem (int id, DRAWITEMSTRUCT *pDrawItem)
 接收到WM_DRAWITEM时调用该函数
 
- Protected Member Functions inherited from sw::Layer
Layer ()
 初始化Layer
 
+void UpdateLayout ()
 更新布局
 
virtual void OnScroll (ScrollOrientation scrollbar, ScrollEvent event, double pos)
 触发滚动条相关事件时调用该函数
 
+ + + + + +

+Additional Inherited Members

- Static Public Member Functions inherited from sw::WndBase
static WndBaseGetWndBase (HWND hwnd)
 通过窗口句柄获取WndBase
 
+

Detailed Description

+

自动换行面板

+

Member Function Documentation

+ +

◆ GetDefaultLayout()

+ +
+
+ + + + + +
+ + + + + + + +
virtual LayoutHost * sw::WrapPanel::GetDefaultLayout ()
+
+overrideprotectedvirtual
+
+ +

获取默认布局对象

+ +

Reimplemented from sw::Layer.

+ +
+
+
The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_wrap_panel.js b/docs/classsw_1_1_wrap_panel.js new file mode 100644 index 00000000..79bf1ec7 --- /dev/null +++ b/docs/classsw_1_1_wrap_panel.js @@ -0,0 +1,6 @@ +var classsw_1_1_wrap_panel = +[ + [ "WrapPanel", "classsw_1_1_wrap_panel.html#a7dfc71028a9f60941ff4387ae175b078", null ], + [ "GetDefaultLayout", "classsw_1_1_wrap_panel.html#ab2961a927e8b28a38d9b5e2d4487d163", null ], + [ "Orientation", "classsw_1_1_wrap_panel.html#a2b718024b1dd81f08906afd3fa18a3f7", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_wrap_panel.png b/docs/classsw_1_1_wrap_panel.png new file mode 100644 index 0000000000000000000000000000000000000000..3362906e239e6c8fe5501542ee0bca314c15d179 GIT binary patch literal 3336 zcmd5JexaeEoA2f3dLm)fj9}{0FGrfR z`g;7eIu$OGS6i+(2V^s=T}pJBCk?BDoV;e*tIic`UrPL(MA4VVXixRz8447lsPN8l66)(t2`&f8q*T)va zVGwuqvBwb=mn{SW+vX+okTpJmFFDTUt6q&!8A*Rm-k}pU-<&!pkF8a_l}DQof7xZ* z9CqO1`M~{#X=D3x16Bb^BsLSd$N$Xs?M2i)$!pt#>ojM*9`L?ML#*zH+I43=$Sri z9arLvlss#t<4Ud#+(vRG+iD@C7R!6%^D^!*`)v!l?|2)fquUz}hkqh^`=DoEWRL-1$t3XBk$%*yT%AI0@;0$aL$gvv9)dHsi-`LoV09%fzS zqqwRD&Cl+?Bk^v{+Iq*&&L=|}IeAYA4dnkCOB zb=_t~EerN)W^@`NWA|g?P97geq&QjDAXV>D$n*W9T+8nT@gPuF;^8y%!em}94HB;5L_^Ns9nueUHPjOO-H`QTQ(eCLvKs!0vaxQ8~4C|0lgq+{Jm zr~qTt3dT=5=yWVe?*KYm_itNd{vZ#ZZ(hw$i3h+r?y*AK)`{(dD~QKR#pj$|?5YVe z6S_|YF^y)>_bG_fN;?D$8;DxJ0e9pBOAyjD>zxr~(Fz$!dV^N>qP!2z3N!ydou{BA z56)54GM{e03xW{y0#L)ITUH7ghmZ+nf*P5J>1OtC9Xr#`Vq{TSwbkWcs*EdF`zdB z;<9D=XB*(j#;r>*JhkfsG=g_`FR0KokM@Q%;j~2Z1Eq00LM+ME|7IV)el>^3wg|4v;-0 z`1AEN>8`5yLme?TNG)A5)%D*q4z`{vu1d4Cl)mQ<@d(dS*mM_bu;Ua%dsWvxU<@&- zk$Sl>>?t)44L!!QJYdHk0~dkp!@STC;F=fC)VZ4_?FufOX-JFAiEc3$gocIqu5_F% zy}wV8O|wt&@f^aF%m%(qoo1AR3I^u2kOe&{ta)b9WVvboyz;K6*9me#cbfMob-4|jDzvQ=|`rjnP$`S_|()Q5dI3*@gdI_*@-!^{z`KdFka5g2VB&aMEho|3M zX>B<*KFT3X31*+yaJJxM(O~Ofro%fLwmONTz+ILmfyqPUnVnwjv6iR=vX5Budf_W? zz|okLP-gvo&TT4XcZY(C2`64DVW4q9KNST0X2*4q89hF`T z?HeGhXfHLzbExW*XZoS9g0!W2f6#;#tRn#=2MtvE3`$TKe`9(b_-4`Ya`$zsIdnSx EA0O>}#sB~S literal 0 HcmV?d00001 diff --git a/docs/classsw_1_1_write_only_property-members.html b/docs/classsw_1_1_write_only_property-members.html new file mode 100644 index 00000000..1d1ec10d --- /dev/null +++ b/docs/classsw_1_1_write_only_property-members.html @@ -0,0 +1,113 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw::WriteOnlyProperty< T > Member List
+
+
+ +

This is the complete list of members for sw::WriteOnlyProperty< T >, including all inherited members.

+ + + + + +
operator=(const T &value) constsw::WriteOnlyProperty< T >inline
Property< T > (defined in sw::WriteOnlyProperty< T >)sw::WriteOnlyProperty< T >friend
Set(const T &value) constsw::WriteOnlyProperty< T >inline
WriteOnlyProperty(const std::function< void(const T &)> &funcSet)sw::WriteOnlyProperty< T >inline
+
+ + + + diff --git a/docs/classsw_1_1_write_only_property.html b/docs/classsw_1_1_write_only_property.html new file mode 100644 index 00000000..42b28c3c --- /dev/null +++ b/docs/classsw_1_1_write_only_property.html @@ -0,0 +1,181 @@ + + + + + + + +SimpleWindow: sw::WriteOnlyProperty< T > Class Template Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+ +
sw::WriteOnlyProperty< T > Class Template Reference
+
+
+ +

只写属性 + More...

+ +

#include <Property.h>

+
+Inheritance diagram for sw::WriteOnlyProperty< T >:
+
+
+ + +sw::Property< int > +sw::Property< std::wstring > +sw::Property< AppQuitMode > +sw::Property< bool > +sw::Property< sw::CheckState > +sw::Property< sw::HorizontalAlignment > +sw::Property< sw::VerticalAlignment > +sw::Property< sw::TextTrimming > +sw::Property< sw::LayoutHost * > +sw::Property< double > +sw::Property< sw::BorderStyle > +sw::Property< wchar_t > +sw::Property< uint16_t > +sw::Property< ProgressBarState > +sw::Property< sw::Orientation > +sw::Property< TabAlignment > +sw::Property< sw::Thickness > +sw::Property< HorizontalAlignment > +sw::Property< VerticalAlignment > +sw::Property< uint64_t > +sw::Property< sw::ContextMenu * > +sw::Property< sw::Color > +sw::Property< WindowStartupLocation > +sw::Property< WindowState > +sw::Property< sw::Menu * > +sw::Property< sw::Font > +sw::Property< sw::FontWeight > +sw::Property< sw::Rect > +sw::Property< T > + +
+ + + + + + + + + + + +

+Public Member Functions

WriteOnlyProperty (const std::function< void(const T &)> &funcSet)
 初始化WriteOnlyProperty
 
+void Set (const T &value) const
 写属性
 
+const WriteOnlyPropertyoperator= (const T &value) const
 写属性
 
+ + + +

+Friends

+class Property< T >
 
+

Detailed Description

+
template<typename T>
+class sw::WriteOnlyProperty< T >

只写属性

+

The documentation for this class was generated from the following file: +
+
+ + + + diff --git a/docs/classsw_1_1_write_only_property.js b/docs/classsw_1_1_write_only_property.js new file mode 100644 index 00000000..36431411 --- /dev/null +++ b/docs/classsw_1_1_write_only_property.js @@ -0,0 +1,6 @@ +var classsw_1_1_write_only_property = +[ + [ "WriteOnlyProperty", "classsw_1_1_write_only_property.html#a38c348942cc3981b10e3929da579a147", null ], + [ "operator=", "classsw_1_1_write_only_property.html#a63a9ab87270f1ce81833bb36349e258a", null ], + [ "Set", "classsw_1_1_write_only_property.html#a870a065cc24bec479bc35eeaa0afee87", null ] +]; \ No newline at end of file diff --git a/docs/classsw_1_1_write_only_property.png b/docs/classsw_1_1_write_only_property.png new file mode 100644 index 0000000000000000000000000000000000000000..94cd30872e579fbddc8529493626fe715ad350f9 GIT binary patch literal 14836 zcmdUWeOOX?-o7uTTc)hjl&J|jk2^K9l~$HoidfC$%vf5PT54KZY579tI|yh^T9+xi zJ2ROnisKXoDHSS;0X14qgD7ffia_b4hyt2`3Ie|`nlsg2&;I^-cCV}c=^Rg&opU~K z_vgOvb9rBYpY>9Qr6wjO)?a`1#Q_r&Q;CU*#o0fZgP-KAUQ-7Ca@@D);Fku20US!k zRH^u%NuC=&Kf9`^Rr2D+3-I%;+>oEZwIwMB0)kAy`P?55vyx{fCfjgdf3f3WhN(;_ zOCx{NXz}u!O}R~zhyka?-wy5S_-lTHc)0DGy(=oX1NR#ZuT?5l@MqcAF-NF9am8jB zW+Zj-Ql$#TT=^NVXH*qN^o;@+a^^0Sr!;28XTV_-quQ7xwem?0UgZ4>EBgn9+A~_a z!T8TLU;9f6NF~S(;)Y0SPl38^T1mAr{x+7>{j&S1@jF`FRF`~tqUQ*CK=2{Lu|sw%Re-8{kMI=gh`MB{JW;Zwu3Xs$h{NS9Lpe}Q5~;#W#W zRVYlyS-PEed}Bcj4ZR$t>aORsUHw*lOmz-T!{N8j-3+-`s$I&6>CZ`AIcP0;>BWoe z(i8GS^9*a}9*61}qA;!dA*|{*0gv_y2SKUYqN9JgVljQkV@mQkE6Ysh$@;PXVq}!} zg*K@5c&5Td=ufwnU}v0MPP?GIkrjDe>@Q=eHw!Wc1GD@+ct}^F@f8fFA(9jYQM1d< zjW5%%R|~73Y(wfV=CHskG5oZ)oUZGp>T~8!%@%9G16h4+e4q{ch{pHmJAWZKSFh1% z$jg1rrtu7uzh)a`X4d0u@vDzcXB%eb4(Z81nd*D2w)kHDdD%XquldKH@k|yk-Qt^L zX8nJCD#?;mk1}?emUbXas={viQb2N$7cZ?jlVer|GK8W(6GeydhZD*-JHa=8EA23= z(olpKBi)$Wop~ng4y3R6rhM;-J2`rWPS7q_kaRC!zVwlmP;TaHlOa`0$(B|%Qj%(Y z!RTs~X63R#7^%)xYmT>#X=)W8&^_>_VEc&A9_~RaXgrHI?+jh?i-ZC<5GYGU;7 zY%gC=%v1O#2M^XS)~$Osyd%n`h;v(Kp^R3^L&uAFl=NJJmz%>2yrv3{V)e*(x~e5B zQTO~@Ss(XSnqqm>4Z{4}f&f`k6|}AN2oDSI=CRFJOQLc@;GNJu#c{HHMJykIv{bT_ zZEB=q`UVYbyJcAI&YTbsv0$r@WBF!_!)kqhsA#Mnl`cBFdw7@mU$YS#{$s)TH({PM z-ow(xXLlP+YR(kT$L6h2X}+Ed6Wr@$22%0;#B@&JeoQ1W7%_s?Mmf%!)kyIm4wS^8 zsWd^0gM=zz>&EohJ{S}#?_xEO?e7^#_DQiQ^eX+Panfu~2&llO;p$|`Nccu?Olco$ z46?_$kUdDN3S1?QZ%b@BfH^`8j@t6sUKSS$FTccXlD_)F4VL77Li>r<9Ovs4%MZ04 zJ!b{S-5+1YGUosM<7@K9KPi-wea#Q+^!WD_}gUFOMmpGu)1_UY*sHiCM$tO+a$4OAns2`E_QfPVB;%J zoRF~!x2{RQkNqDkLI#0Abc+a4wckRkGrU`ek_=~IM=jts@MY)|`}dQ?z7+X0@x+r< z8+dZD=sMHQHefv`==xTa4csuU&TxBuhDAvPB}1^daf)54mh>J(!a`hQJ{FK3mZHrG+Y!SHyXB?u;c7HideAILa9N zDSp+~7up%-0G* zNq@3X(r%1~an>q)58SuJl{>v;GIXxz1PU5QwGM*^Lv?{mYovjK3DnQ4VzUi55qa2~ za|co1hUi+}%LMW=Vd|04wb^dlVGe&Wojv_u3;kRF5dmVnhtIOzG?v6*&O!_NBNL*e zqv}e{16hze9=d9;3gn3HhI~CW0SpeY%1t78#@uveD=&(U)As6gH3)C-ei9~`KRBRn zetCv32F+cO9#cj{tCqagk0+6B8NEtg=?%?(Q2Xp1w>z#a1b6L2?qm$o@b~RJGHgrr z9c!gof{S~W<#md~13Mn##zHa2@bLV`s7FydK|s?6T4S>jvSG9`iwZ`?SjPrq@gn4Q zSLKhNC6LthA&{6hmsmCwAJ?~>-hM!L3yhg#=!0y(TN;M((2HoOO(q5#?k98@`nU1O zEB+Wqa|Qb$gsBN5#2ze9fAM`E+l0wqYK$p(emqqAVMI10}zyL@sY%Rh?EzQ8=s z+WTV?w7^4cs!L^0GX5&oVgEf#EX~-nnt1F{bQ2VsIqv4VI(&SoM zEVt;y5F^*e*q^!Gal_Y72DlkR*{8*wXg+rBQ>F6jK>=RTzezetbOm+#EOG~;yX}}R zYcUfQ!;(UwN!M$ep1@g$s>iD0PHlOZ=BJkMmo_YBKCcXyyn-@UCso(aY`mVhBL;7g z!LPW1-jpi1>{-okDyCVjycW27wcTLvP0pp-^oyzZ#`KdB315O7XiMX4rOUc0Ur`Uc7^EBe4^sDnu)95uvT%V`PD((YuiAgAdk@GFZIR89p!As-LJnqc)YRngshVZ zAFxoaM(a0X*4>0;nF+J}&g?wwJBFi#MF|DyZAN z`szS~Y-0w^N!g-R@XoccVPHI1?i*$UwDwFh1V>bBJTR{>8_(KgIy`~i^Jo4r$ew)y z`V^wPz3Eq~Cg6`YIS1T~rzeg0c00hgGdzUIFy0;U9N4b)&(bEa#&!_six*L;jWmoDxFAYHsfZ>LLH zfhY5MJ=SO3jDch0-1YWcU){^KR{MxCoZ;q9@#7_b4hir|^GMf+a`74i%tVyOCM49N`eei?CU~#NA(qK24 zd8jWK@$P=}!3-4Vg@H1Y&H04g*HlvJWVqyuGsBEQ**EU`%)B7oVuccei-c>Q$rABf z7m2@<`#9yzcc=(Y30}5~d4T6qeeNfiBT{?P!-z zDZ9rA#r(1G`_Owcuh%0^I>-w9yo+(2O566w=2eW?(*1ZZ@mL4#a<9*w$m*MkUdOG3 z`#*C_{zJCCPCCcb3LPAbEF;sEI zQPO4W*j;eLxWWyCAreYYn#cU0Uqo933|a?@bB*hHO{o9WacNx;I)akt7Gt-5)0AJ< zB^z;3OGaJ=l7yJDRtClLon^w`E_g(#S^(}n43K~MHY62FrU2xBTHrB*C~a>ltIz|^9>EM&>%#f zD((0BJFgnLMk`^fV)^Dmq-3;F1KWiY8iFvv#9%ui7$oYs&hXAU9$7eDujv@$d-lx| zu(w(U&OHM&Hedc3O#tWK(PI$@b4lOrpS+J4Ki+)$4k6DnB{?>3H$r^atg6qQO~;o^ zJ+F-EqGAp)BNBh&*oOKm*Q6M_9?9bw z%>K&s-TfEJtXXV7*h%pF$yMBX!ll75c`p*H^VQy&=3B|9#Oa2p8~pN_l3^i1Y;fC()bEH*R}V#lcc;f>*;F%^((fx+y zs`z^TrYwn?@)=m3M_+CwIy0$C&P06Qfq~RMv2G{cP z;f#yeIzMsLNxa4M57_%DuApVq&M)sfw5n?b&)HsWD(us1b(8Ix=DKY)(toH^u)FrE zxS(k5WZ7lEtp@DO>2T%xVP8tfdu{uJDBJnigy15gbj**0Z@MZtHm4=9kURP7Pin!|`s^NKUkGrBtjtl#de2rMEgDb^F?{(5W? zzh`k+s!$ghuwGY1xaa*KmxK=zfOz&eySPTJcJM34j15>#{?nUB9v$*fCoPA0N#l># z0d9@+I4!2xHMQgTYdk4o7yBlttKBq5uY0ZK>l3rqx$kW?cdlly<=6@ozYKgEy+F3X z^RRbn@lLO|ff;^m*k|K_jq-T&NX_FVU{Mc5F#(cm*&qRMVW;bqglp>&qA#%ZsG#|o zKaf1^WL`U#f7$cS9V7k^Yb81Rr0GV4g3G#%le=`pWYxsnv#2a(!cmW92gMTFKR_a0 zNK4eRhd|)VYcOKNwhuJ&xMy!RfJ{{Pz0qL6I7#sgs|Tn4wB?~a#tc)!pnLgr`{IOp zSPB zf~)iOIyutoeJ9dAi+h&#HT#-@7Uxp|!um4zRqaJlSRRZsk@5ISioC`W-gq_|ug_lS z#DPQ@WvV9A=VBz&E&d_xW$wK&$;^Sj+gp!c@DWxPEh^#VSJhoC3s0cR1Bu39cD49V zncXDx4gS;1*n&;z+1QBbLyVGp2n!pfACK(Uw`<1!s+0uoyGLNEYo0+Tim?ZA2SBf4 zCKOE$foA=`Ys#pFL@k`clGzGL@Wk-dxyo1 zuYc;Tj0s|bX&WE<+few%3uU-pW_$gffz_wK{;oUEs-~fD+$pyD46$s7Lf%onuY4YE zs{y!LAjYA|s$>b^VLUV`c+scVb{Uy*hOknQ95uI{Q}9LakTEY$IoI*JPB%S9n7;{V z&`iZuY2KTFKAb^^83PKSGzjRm4>q7wEkk$92dVx3f*t$82~T$?Tr>}`GIFecl(@%9 z;;}!?#U2j;WJV*8e%h_AbRxtjakfVn0&%01r!@69GH0>fZ4JVFWKZI12Lr(+bD2*e z3XrW}+s_F}V7LYHn3}OC2$tzQGt*HOT;c-#Qm~6A=D!%s=B&Gk99;g|m*UP<3=Ouy z)va#`)OBO}$DCbVMJKM`cH_)InYq~AfTF3JNOb2-uC81Z|ASttq`<&k? zJXBbu=A>y0GInF2%2($aO8ZSlR`>pBUJ2!?`ZU+O47b9q(zFi6@IzXy zzq1mZVg;~O4{tK{p=%Ml#n`9E)LA2uR;|1zuTmo7VyqG-RnO03OGUU(R^~yYz3Wu^ z2NN^XpXgpr6if5L>^hA0nC2DWM!(?0R>tz%`;xXlp>Ic-RHTsfnfvizYv0b>1k6MfBpRMh%kD!(lc+{3z$AKL58dE}Gtk%|B?PRtSPUT44Y z8q)v34M!GG0*vH?NEg6n2^HB7R=s|j?yHK;2@%TO+Y>#~@9dvp1m4vioSjorG@oy0 zOJ7~;x;E9)dv|IWkGrZML)Y=hCBpq{u8LyMm$fd8YCGq|Bion`koX4zY_=4T7Q*;_ zXQrOCK;b3VWI#$eCp%K;S>E9|xL4uIAEsykH$zGESpSdk^(7md(uo9I!Nc!theOro zTt66OYzO=10t@>oSgvF}f_Y&~%e$06aW!fcyA%s@z$QHwA1UnkeOB{NWQ{Fq^q*QM z8S5}t$?Wu= z*%!BREHbFhJo?l0#v9Sr$|I!ma&e%xsi_Ggbr0PzoS59ZOoOe5HQ{y48z*RX$WQUN2vglDv0PxXpK=0oY1f zr11D3sbH^ORx6#=;3Id@gQj{r2|!IbomV6; z*pRZ@{Z4}sqxDf+P$Tl5%OiK}hjmu>zr|)f>&_)=YCz=cnT`6JPh2BzF~E|E>o4TQ zM0okuX#Fy)b|H}u<(ITo@lV$+d~tUt{$i&b*Eq4rVu zH-cyjhZikQImTT}294V%Prh3&d=vevMs8(d)6mB5EoTgZLbx_mbrcjdh0T3K%LW8+ zImMizOM?hJ1^VmgqwC3{zko3xdEr2EGzpG!-z3Q6b6(XouDW;l(^HBqFgNs}JInKK z0lp=icHSkuZO+}$#;X0*k2m<-(SOQxft)Y&MTGFMD=wt^$wew2KPQc4^ z3gz!`uiFOJC{az_RJ8{hT(of&=4bNfMDfsPBj-OI(qCF9X}QI{Q|8)dnQ4ysbC~KY zG+lSZhR+6w2$5*16ej^t*)CYA%PTdn3afaJL;00=q$f4i%(HT`!t|qupf~)NWmCYR z@Metna1q=C&LpgM&%dz1n9eykE+8rW>=d#q?oMSl?x{$6+?^bjcm|t>n^R4vPKzUI&zA)_C2`Iu_o)XuNFnf#Bd$|bGOiHT8TKQzQ1bGDyXE0TQ zzd%}N9&=I$p2p5o@qxF@nTHsmVD#sEc~w8;6w_z;6aFQ2EcY(@aR=>^l*tWed@{aV zsC);ofLa8%;!l__4S(l{qttwoc|f zctGqRYCFL6L>+2qhTqvzQI0OsH>aBY;S~A}0)r6pZVHSc2>= zk@ZiqlSL6O2k~~Xd=CL@7`LrF?}sQ=(|c--@$^GT5aC-1f?-Dx;PVW8VJUdL9--pZ zsG|mIWZ*xy1W4b6D!6Fu1x&{{qGH+GPKq-w_tK?VR~Dxju!i{A=2Jxdct!0R9(k`0 zlkmt#Y1cK#|i&A5*t`Oug6)o!k z2&gNd#F{gYsjr1}F$8;>hB$66^`k+ssGlaRUV9ENQI5@~k)Bt+K?4bP#>DWRn+UfY zd9vGGk2&Vrp!DJUU@ef9z11Q{ABVH!`*I??Xc0pQ z(azj%`UcKQLfp-U288cK=+9SScBX<^fQVD5q4hFyp7w_cBR=#pVM`y-civ*nU2}X< zG(35?2FQBvH4Sk3Auu>^_V~cSV$lOQ`ie*6(8IO2cLJO>`rOZ233o1O>^QKQ6~~w^OeNzIZw1Gkv!2EI+GvpV9OLt(uB`D;>6# zP~0Rf+wjPz-JQD6Gk}T3ecoA9A~nLn|z`vP~DFn{@r^178H&=N3W5 z!_Q^c$a^`?Vrt7SR|}l37uX*}Iu{n}2Zb*Z(y&+vL+iiPG7Ka}6p`PnkQIvLy@x8# zu?f0&LH}SY_DUK~WSG3BOqL9NSAs{$R>!8Q(d?&Pm@&o7B6zX&ob@dx=q#>zWYn!O z%X_1)jVhS_?bQ`gi8d#MB;IklVpHNRTJbZWt+d@78v=f)q3>J%B;d*Xs_b+Lp!#Xz z5eo%vOIKV(;4tlOLzmy~Qo?2%Pc}I-Zh06%m$?584N$j4S6@p@P}mzOJ2VE_%uj#m zAH(L*%XY==HlGv=;i&W@rMp~1`c|SE{HPI62uEW^prS;o@S2XCf8Wo1iwr;nfgqrH z-Zys_{?wg5rQPlgOVFsVaFPwSTzV{4K7CXA4^Z*gMnR>NeF$i5z(-e}3Nq9ZYy^!T z=th9;Uy$xwX2%ck3E%;f(sO%ODq=U}F5B`DkFwK%)sK!bu6{Z};Nv;NV@3IolN2Cc zwvA0NTfQQf1Cq!2t)=g~1M|Yl$S7^~ZKoYZdz&JnLyQZqqgU!IY~KF35XP{~bic8l*_l}GS7aEt$Ebw%LB9Yp;%_`MyU#|_079k{ z)_ob6_CdQY1f>2#o7%PU1fMM4Ko!5ZU4M-~e9Nc~k+lVA%v9t~P)G$`EfCEoHPT5l z9h}td4v|nBf8IEv`P!#dCEzGxyt=(sEt)XuJ>^Y4SHU1MiRnV^q<#Cs~>4I~x{Spfl+8)|HVY%1sFydlap{pf!i7;wn z5lX{po0nT0D*$gB-I8SkAbb7!ZXtwhvl~8i^DQ07>D%oRn(!D@Gz{XwvkTZCWNmF75i8Pvpid zX>?PpAy>PN`->NDKbS_fsoFB9P+cZ_D~cElsZHh>y0`I65Toft!}Ga=Be8q~`#r_pwMW!NaYt>6@>rXYGD^s!}x?xc?`ho=KWdY_r%xfqa%=^KW4@5W0eIYOpued?&Rlw&n2GPnh z4gKfmTzKa9t>FTN0N;NesOo3$dc5z)YbPRyZAO#PPc~+-k3(Rc)%|2kK!mu~q$>~` z_v=)k8CuD*_3Mm{qM+_egZ&4p&LAXn7D{u{`an$5Q%7eDjRz4gRHhTP$>lfb*kewN{z-}EIk&~1DgXxewpt*ij$;et4@tuq#7;MF2oI-v8QIIrfs%_ z)~@k#_F0pT_<2pub}f9*!h)A1vHUsyLY4(6`sWQ%h0n*VEQx^8i&TlA%*OL=bG#0q zb?LkNBWR(cI{>O{Vm73>{-y6WeBOIkM;a7e>cWaxeMcC<5M$>*lkOZ0Zvec`0pPVf z57ZePC7}cN^M|UDFW4il+lCIaH)TujgD3mR>tWo*bYgHQp!2`;$!2kB0_!(AdC3GAH|^Lr%!Y`H&j%Z|Xetd(nLd->d2GVlsZA6eWOVg-U&&Izi^ z`CYa>7j)Txr1NuB;F^GU?(X5s*2|U8FQIv`1vI8MeTS5NehCPt2u0Id-zzluDGKT* ztDXX<%kFYuZw6m1ycyZN<50(Yho_C2%vz(!<~CFO!<;xs7ns63K(yGRI!W;d3bml} zH&wXBxw_5ZbJokfZgpyg`bo>8FjdA>xK^WQ0TS%Ya#ZSmqG_ahDF9wq)3v}PORs-} zyI%Ty?NN~CSL&j$EPsF_0Kb;rG-3Oi=#q)8VYk`+ZS2#A$zttAERTQC>qDxew z0FIgv{tC6e+XH;D(fHD=CvzV$?8wiIZ$9-B$+o3U$;IU}hvzyjzOPY${OlG~PD=tK zpfW9Sw%ij*{g_MzDT?o7P2jea=jnE+m>(wDqMQF##mV#4%q8S9A_GXLh!LCdu$N8} z?xeZ(_}4IB@tQtaE`IBJqm8{`dfvvq_H;7;o^4F!>UV23Ix}N_x6+zZ{Z?C+K(EII z8%e1P*57b3(Bn<wRmXrp*e6z~?x#ShhLlU%ot8ClQDLY_xq?+;~b~P`yj@ z-P>`OL0d(fK2#JwXC^et-C?mVk-DV|pOCN@0o`Y1w&$*?;Atq2+90OTaH z!6bagcJ%x(BNzuhjWXn`mHM5*pt*p` +let clipboard_successIcon = `` +let clipboard_successDuration = 1000 + +$(function() { + if(navigator.clipboard) { + const fragments = document.getElementsByClassName("fragment") + for(const fragment of fragments) { + const clipboard_div = document.createElement("div") + clipboard_div.classList.add("clipboard") + clipboard_div.innerHTML = clipboard_icon + clipboard_div.title = clipboard_title + $(clipboard_div).click(function() { + const content = this.parentNode.cloneNode(true) + // filter out line number and folded fragments from file listings + content.querySelectorAll(".lineno, .ttc, .foldclosed").forEach((node) => { node.remove() }) + let text = content.textContent + // remove trailing newlines and trailing spaces from empty lines + text = text.replace(/^\s*\n/gm,'\n').replace(/\n*$/,'') + navigator.clipboard.writeText(text); + this.classList.add("success") + this.innerHTML = clipboard_successIcon + window.setTimeout(() => { // switch back to normal icon after timeout + this.classList.remove("success") + this.innerHTML = clipboard_icon + }, clipboard_successDuration); + }) + fragment.insertBefore(clipboard_div, fragment.firstChild) + } + } +}) diff --git a/docs/closed.png b/docs/closed.png new file mode 100644 index 0000000000000000000000000000000000000000..98cc2c909da37a6df914fbf67780eebd99c597f5 GIT binary patch literal 132 zcmeAS@N?(olHy`uVBq!ia0vp^oFL4>1|%O$WD@{V-kvUwAr*{o@8{^CZMh(5KoB^r_<4^zF@3)Cp&&t3hdujKf f*?bjBoY!V+E))@{xMcbjXe@)LtDnm{r-UW|*e5JT literal 0 HcmV?d00001 diff --git a/docs/cookie.js b/docs/cookie.js new file mode 100644 index 00000000..53ad21d9 --- /dev/null +++ b/docs/cookie.js @@ -0,0 +1,58 @@ +/*! + Cookie helper functions + Copyright (c) 2023 Dimitri van Heesch + Released under MIT license. +*/ +let Cookie = { + cookie_namespace: 'doxygen_', + + readSetting(cookie,defVal) { + if (window.chrome) { + const val = localStorage.getItem(this.cookie_namespace+cookie) || + sessionStorage.getItem(this.cookie_namespace+cookie); + if (val) return val; + } else { + let myCookie = this.cookie_namespace+cookie+"="; + if (document.cookie) { + const index = document.cookie.indexOf(myCookie); + if (index != -1) { + const valStart = index + myCookie.length; + let valEnd = document.cookie.indexOf(";", valStart); + if (valEnd == -1) { + valEnd = document.cookie.length; + } + return document.cookie.substring(valStart, valEnd); + } + } + } + return defVal; + }, + + writeSetting(cookie,val,days=10*365) { // default days='forever', 0=session cookie, -1=delete + if (window.chrome) { + if (days==0) { + sessionStorage.setItem(this.cookie_namespace+cookie,val); + } else { + localStorage.setItem(this.cookie_namespace+cookie,val); + } + } else { + let date = new Date(); + date.setTime(date.getTime()+(days*24*60*60*1000)); + const expiration = days!=0 ? "expires="+date.toGMTString()+";" : ""; + document.cookie = this.cookie_namespace + cookie + "=" + + val + "; SameSite=Lax;" + expiration + "path=/"; + } + }, + + eraseSetting(cookie) { + if (window.chrome) { + if (localStorage.getItem(this.cookie_namespace+cookie)) { + localStorage.removeItem(this.cookie_namespace+cookie); + } else if (sessionStorage.getItem(this.cookie_namespace+cookie)) { + sessionStorage.removeItem(this.cookie_namespace+cookie); + } + } else { + this.writeSetting(cookie,'',-1); + } + }, +} diff --git a/docs/dir_01fcd3835fb4e7d9331b722d86291b65.html b/docs/dir_01fcd3835fb4e7d9331b722d86291b65.html new file mode 100644 index 00000000..f40191a4 --- /dev/null +++ b/docs/dir_01fcd3835fb4e7d9331b722d86291b65.html @@ -0,0 +1,113 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw Directory Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
sw Directory Reference
+
+
+ + + + +

+Directories

 inc
 
+
+
+ + + + diff --git a/docs/dir_01fcd3835fb4e7d9331b722d86291b65.js b/docs/dir_01fcd3835fb4e7d9331b722d86291b65.js new file mode 100644 index 00000000..9829dc57 --- /dev/null +++ b/docs/dir_01fcd3835fb4e7d9331b722d86291b65.js @@ -0,0 +1,4 @@ +var dir_01fcd3835fb4e7d9331b722d86291b65 = +[ + [ "inc", "dir_ed5f6ece24ffcc4307a76d27c2494db3.html", "dir_ed5f6ece24ffcc4307a76d27c2494db3" ] +]; \ No newline at end of file diff --git a/docs/dir_ed5f6ece24ffcc4307a76d27c2494db3.html b/docs/dir_ed5f6ece24ffcc4307a76d27c2494db3.html new file mode 100644 index 00000000..898e8af9 --- /dev/null +++ b/docs/dir_ed5f6ece24ffcc4307a76d27c2494db3.html @@ -0,0 +1,261 @@ + + + + + + + +SimpleWindow: D:/code/GitHub/sw/sw/inc Directory Reference + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
inc Directory Reference
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Files

 Alignment.h
 
 App.h
 
 Button.h
 
 ButtonBase.h
 
 Canvas.h
 
 CanvasLayout.h
 
 CheckableButton.h
 
 CheckBox.h
 
 Color.h
 
 ComboBox.h
 
 ContextMenu.h
 
 Control.h
 
 Cursor.h
 
 Dictionary.h
 
 Dip.h
 
 DockLayout.h
 
 DockPanel.h
 
 FillLayout.h
 
 Font.h
 
 Grid.h
 
 GridLayout.h
 
 GroupBox.h
 
 HitTestResult.h
 
 Icon.h
 
 ILayout.h
 
 ITag.h
 
 ItemsControl.h
 
 Keys.h
 
 Label.h
 
 Layer.h
 
 LayoutHost.h
 
 List.h
 
 ListBox.h
 
 ListView.h
 
 Menu.h
 
 MenuBase.h
 
 MenuItem.h
 
 MsgBox.h
 
 Panel.h
 
 PanelBase.h
 
 PasswordBox.h
 
 Path.h
 
 Point.h
 
 ProcMsg.h
 
 ProgressBar.h
 
 Property.h
 
 RadioButton.h
 
 Rect.h
 
 RoutedEvent.h
 
 RoutedEventArgs.h
 
 Screen.h
 
 ScrollEnums.h
 
 SimpleWindow.h
 
 Size.h
 
 Slider.h
 
 StackLayout.h
 
 StackLayoutH.h
 
 StackLayoutV.h
 
 StackPanel.h
 
 StaticControl.h
 
 TabControl.h
 
 TextBox.h
 
 TextBoxBase.h
 
 Thickness.h
 
 UIElement.h
 
 UniformGrid.h
 
 UniformGridLayout.h
 
 Utils.h
 
 Window.h
 
 WndBase.h
 
 WndMsg.h
 
 WrapLayout.h
 
 WrapLayoutH.h
 
 WrapLayoutV.h
 
 WrapPanel.h
 
+
+
+ + + + diff --git a/docs/dir_ed5f6ece24ffcc4307a76d27c2494db3.js b/docs/dir_ed5f6ece24ffcc4307a76d27c2494db3.js new file mode 100644 index 00000000..a8cf253c --- /dev/null +++ b/docs/dir_ed5f6ece24ffcc4307a76d27c2494db3.js @@ -0,0 +1,78 @@ +var dir_ed5f6ece24ffcc4307a76d27c2494db3 = +[ + [ "Alignment.h", "_alignment_8h_source.html", null ], + [ "App.h", "_app_8h_source.html", null ], + [ "Button.h", "_button_8h_source.html", null ], + [ "ButtonBase.h", "_button_base_8h_source.html", null ], + [ "Canvas.h", "_canvas_8h_source.html", null ], + [ "CanvasLayout.h", "_canvas_layout_8h_source.html", null ], + [ "CheckableButton.h", "_checkable_button_8h_source.html", null ], + [ "CheckBox.h", "_check_box_8h_source.html", null ], + [ "Color.h", "_color_8h_source.html", null ], + [ "ComboBox.h", "_combo_box_8h_source.html", null ], + [ "ContextMenu.h", "_context_menu_8h_source.html", null ], + [ "Control.h", "_control_8h_source.html", null ], + [ "Cursor.h", "_cursor_8h_source.html", null ], + [ "Dictionary.h", "_dictionary_8h_source.html", null ], + [ "Dip.h", "_dip_8h_source.html", null ], + [ "DockLayout.h", "_dock_layout_8h_source.html", null ], + [ "DockPanel.h", "_dock_panel_8h_source.html", null ], + [ "FillLayout.h", "_fill_layout_8h_source.html", null ], + [ "Font.h", "_font_8h_source.html", null ], + [ "Grid.h", "_grid_8h_source.html", null ], + [ "GridLayout.h", "_grid_layout_8h_source.html", null ], + [ "GroupBox.h", "_group_box_8h_source.html", null ], + [ "HitTestResult.h", "_hit_test_result_8h_source.html", null ], + [ "Icon.h", "_icon_8h_source.html", null ], + [ "ILayout.h", "_i_layout_8h_source.html", null ], + [ "ITag.h", "_i_tag_8h_source.html", null ], + [ "ItemsControl.h", "_items_control_8h_source.html", null ], + [ "Keys.h", "_keys_8h_source.html", null ], + [ "Label.h", "_label_8h_source.html", null ], + [ "Layer.h", "_layer_8h_source.html", null ], + [ "LayoutHost.h", "_layout_host_8h_source.html", null ], + [ "List.h", "_list_8h_source.html", null ], + [ "ListBox.h", "_list_box_8h_source.html", null ], + [ "ListView.h", "_list_view_8h_source.html", null ], + [ "Menu.h", "_menu_8h_source.html", null ], + [ "MenuBase.h", "_menu_base_8h_source.html", null ], + [ "MenuItem.h", "_menu_item_8h_source.html", null ], + [ "MsgBox.h", "_msg_box_8h_source.html", null ], + [ "Panel.h", "_panel_8h_source.html", null ], + [ "PanelBase.h", "_panel_base_8h_source.html", null ], + [ "PasswordBox.h", "_password_box_8h_source.html", null ], + [ "Path.h", "_path_8h_source.html", null ], + [ "Point.h", "_point_8h_source.html", null ], + [ "ProcMsg.h", "_proc_msg_8h_source.html", null ], + [ "ProgressBar.h", "_progress_bar_8h_source.html", null ], + [ "Property.h", "_property_8h_source.html", null ], + [ "RadioButton.h", "_radio_button_8h_source.html", null ], + [ "Rect.h", "_rect_8h_source.html", null ], + [ "RoutedEvent.h", "_routed_event_8h_source.html", null ], + [ "RoutedEventArgs.h", "_routed_event_args_8h_source.html", null ], + [ "Screen.h", "_screen_8h_source.html", null ], + [ "ScrollEnums.h", "_scroll_enums_8h_source.html", null ], + [ "SimpleWindow.h", "_simple_window_8h_source.html", null ], + [ "Size.h", "_size_8h_source.html", null ], + [ "Slider.h", "_slider_8h_source.html", null ], + [ "StackLayout.h", "_stack_layout_8h_source.html", null ], + [ "StackLayoutH.h", "_stack_layout_h_8h_source.html", null ], + [ "StackLayoutV.h", "_stack_layout_v_8h_source.html", null ], + [ "StackPanel.h", "_stack_panel_8h_source.html", null ], + [ "StaticControl.h", "_static_control_8h_source.html", null ], + [ "TabControl.h", "_tab_control_8h_source.html", null ], + [ "TextBox.h", "_text_box_8h_source.html", null ], + [ "TextBoxBase.h", "_text_box_base_8h_source.html", null ], + [ "Thickness.h", "_thickness_8h_source.html", null ], + [ "UIElement.h", "_u_i_element_8h_source.html", null ], + [ "UniformGrid.h", "_uniform_grid_8h_source.html", null ], + [ "UniformGridLayout.h", "_uniform_grid_layout_8h_source.html", null ], + [ "Utils.h", "_utils_8h_source.html", null ], + [ "Window.h", "_window_8h_source.html", null ], + [ "WndBase.h", "_wnd_base_8h_source.html", null ], + [ "WndMsg.h", "_wnd_msg_8h_source.html", null ], + [ "WrapLayout.h", "_wrap_layout_8h_source.html", null ], + [ "WrapLayoutH.h", "_wrap_layout_h_8h_source.html", null ], + [ "WrapLayoutV.h", "_wrap_layout_v_8h_source.html", null ], + [ "WrapPanel.h", "_wrap_panel_8h_source.html", null ] +]; \ No newline at end of file diff --git a/docs/doc.svg b/docs/doc.svg new file mode 100644 index 00000000..0b928a53 --- /dev/null +++ b/docs/doc.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + diff --git a/docs/docd.svg b/docs/docd.svg new file mode 100644 index 00000000..ac18b275 --- /dev/null +++ b/docs/docd.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + diff --git a/docs/doxygen.css b/docs/doxygen.css new file mode 100644 index 00000000..7b7d851b --- /dev/null +++ b/docs/doxygen.css @@ -0,0 +1,2225 @@ +/* The standard CSS for doxygen 1.10.0*/ + +html { +/* page base colors */ +--page-background-color: white; +--page-foreground-color: black; +--page-link-color: #3D578C; +--page-visited-link-color: #4665A2; + +/* index */ +--index-odd-item-bg-color: #F8F9FC; +--index-even-item-bg-color: white; +--index-header-color: black; +--index-separator-color: #A0A0A0; + +/* header */ +--header-background-color: #F9FAFC; +--header-separator-color: #C4CFE5; +--header-gradient-image: url('nav_h.png'); +--group-header-separator-color: #879ECB; +--group-header-color: #354C7B; +--inherit-header-color: gray; + +--footer-foreground-color: #2A3D61; +--footer-logo-width: 104px; +--citation-label-color: #334975; +--glow-color: cyan; + +--title-background-color: white; +--title-separator-color: #5373B4; +--directory-separator-color: #9CAFD4; +--separator-color: #4A6AAA; + +--blockquote-background-color: #F7F8FB; +--blockquote-border-color: #9CAFD4; + +--scrollbar-thumb-color: #9CAFD4; +--scrollbar-background-color: #F9FAFC; + +--icon-background-color: #728DC1; +--icon-foreground-color: white; +--icon-doc-image: url('doc.svg'); +--icon-folder-open-image: url('folderopen.svg'); +--icon-folder-closed-image: url('folderclosed.svg'); + +/* brief member declaration list */ +--memdecl-background-color: #F9FAFC; +--memdecl-separator-color: #DEE4F0; +--memdecl-foreground-color: #555; +--memdecl-template-color: #4665A2; + +/* detailed member list */ +--memdef-border-color: #A8B8D9; +--memdef-title-background-color: #E2E8F2; +--memdef-title-gradient-image: url('nav_f.png'); +--memdef-proto-background-color: #DFE5F1; +--memdef-proto-text-color: #253555; +--memdef-proto-text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9); +--memdef-doc-background-color: white; +--memdef-param-name-color: #602020; +--memdef-template-color: #4665A2; + +/* tables */ +--table-cell-border-color: #2D4068; +--table-header-background-color: #374F7F; +--table-header-foreground-color: #FFFFFF; + +/* labels */ +--label-background-color: #728DC1; +--label-left-top-border-color: #5373B4; +--label-right-bottom-border-color: #C4CFE5; +--label-foreground-color: white; + +/** navigation bar/tree/menu */ +--nav-background-color: #F9FAFC; +--nav-foreground-color: #364D7C; +--nav-gradient-image: url('tab_b.png'); +--nav-gradient-hover-image: url('tab_h.png'); +--nav-gradient-active-image: url('tab_a.png'); +--nav-gradient-active-image-parent: url("../tab_a.png"); +--nav-separator-image: url('tab_s.png'); +--nav-breadcrumb-image: url('bc_s.png'); +--nav-breadcrumb-border-color: #C2CDE4; +--nav-splitbar-image: url('splitbar.png'); +--nav-font-size-level1: 13px; +--nav-font-size-level2: 10px; +--nav-font-size-level3: 9px; +--nav-text-normal-color: #283A5D; +--nav-text-hover-color: white; +--nav-text-active-color: white; +--nav-text-normal-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9); +--nav-text-hover-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); +--nav-text-active-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); +--nav-menu-button-color: #364D7C; +--nav-menu-background-color: white; +--nav-menu-foreground-color: #555555; +--nav-menu-toggle-color: rgba(255, 255, 255, 0.5); +--nav-arrow-color: #9CAFD4; +--nav-arrow-selected-color: #9CAFD4; + +/* table of contents */ +--toc-background-color: #F4F6FA; +--toc-border-color: #D8DFEE; +--toc-header-color: #4665A2; +--toc-down-arrow-image: url("data:image/svg+xml;utf8,&%238595;"); + +/** search field */ +--search-background-color: white; +--search-foreground-color: #909090; +--search-magnification-image: url('mag.svg'); +--search-magnification-select-image: url('mag_sel.svg'); +--search-active-color: black; +--search-filter-background-color: #F9FAFC; +--search-filter-foreground-color: black; +--search-filter-border-color: #90A5CE; +--search-filter-highlight-text-color: white; +--search-filter-highlight-bg-color: #3D578C; +--search-results-foreground-color: #425E97; +--search-results-background-color: #EEF1F7; +--search-results-border-color: black; +--search-box-shadow: inset 0.5px 0.5px 3px 0px #555; + +/** code fragments */ +--code-keyword-color: #008000; +--code-type-keyword-color: #604020; +--code-flow-keyword-color: #E08000; +--code-comment-color: #800000; +--code-preprocessor-color: #806020; +--code-string-literal-color: #002080; +--code-char-literal-color: #008080; +--code-xml-cdata-color: black; +--code-vhdl-digit-color: #FF00FF; +--code-vhdl-char-color: #000000; +--code-vhdl-keyword-color: #700070; +--code-vhdl-logic-color: #FF0000; +--code-link-color: #4665A2; +--code-external-link-color: #4665A2; +--fragment-foreground-color: black; +--fragment-background-color: #FBFCFD; +--fragment-border-color: #C4CFE5; +--fragment-lineno-border-color: #00FF00; +--fragment-lineno-background-color: #E8E8E8; +--fragment-lineno-foreground-color: black; +--fragment-lineno-link-fg-color: #4665A2; +--fragment-lineno-link-bg-color: #D8D8D8; +--fragment-lineno-link-hover-fg-color: #4665A2; +--fragment-lineno-link-hover-bg-color: #C8C8C8; +--fragment-copy-ok-color: #2EC82E; +--tooltip-foreground-color: black; +--tooltip-background-color: white; +--tooltip-border-color: gray; +--tooltip-doc-color: grey; +--tooltip-declaration-color: #006318; +--tooltip-link-color: #4665A2; +--tooltip-shadow: 1px 1px 7px gray; +--fold-line-color: #808080; +--fold-minus-image: url('minus.svg'); +--fold-plus-image: url('plus.svg'); +--fold-minus-image-relpath: url('../../minus.svg'); +--fold-plus-image-relpath: url('../../plus.svg'); + +/** font-family */ +--font-family-normal: Roboto,sans-serif; +--font-family-monospace: 'JetBrains Mono',Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace,fixed; +--font-family-nav: 'Lucida Grande',Geneva,Helvetica,Arial,sans-serif; +--font-family-title: Tahoma,Arial,sans-serif; +--font-family-toc: Verdana,'DejaVu Sans',Geneva,sans-serif; +--font-family-search: Arial,Verdana,sans-serif; +--font-family-icon: Arial,Helvetica; +--font-family-tooltip: Roboto,sans-serif; + +/** special sections */ +--warning-color-bg: #f8d1cc; +--warning-color-hl: #b61825; +--warning-color-text: #75070f; +--note-color-bg: #faf3d8; +--note-color-hl: #f3a600; +--note-color-text: #5f4204; +--todo-color-bg: #e4f3ff; +--todo-color-hl: #1879C4; +--todo-color-text: #274a5c; +--test-color-bg: #e8e8ff; +--test-color-hl: #3939C4; +--test-color-text: #1a1a5c; +--deprecated-color-bg: #ecf0f3; +--deprecated-color-hl: #5b6269; +--deprecated-color-text: #43454a; +--bug-color-bg: #e4dafd; +--bug-color-hl: #5b2bdd; +--bug-color-text: #2a0d72; +--invariant-color-bg: #d8f1e3; +--invariant-color-hl: #44b86f; +--invariant-color-text: #265532; +} + +@media (prefers-color-scheme: dark) { + html:not(.dark-mode) { + color-scheme: dark; + +/* page base colors */ +--page-background-color: black; +--page-foreground-color: #C9D1D9; +--page-link-color: #90A5CE; +--page-visited-link-color: #A3B4D7; + +/* index */ +--index-odd-item-bg-color: #0B101A; +--index-even-item-bg-color: black; +--index-header-color: #C4CFE5; +--index-separator-color: #334975; + +/* header */ +--header-background-color: #070B11; +--header-separator-color: #141C2E; +--header-gradient-image: url('nav_hd.png'); +--group-header-separator-color: #283A5D; +--group-header-color: #90A5CE; +--inherit-header-color: #A0A0A0; + +--footer-foreground-color: #5B7AB7; +--footer-logo-width: 60px; +--citation-label-color: #90A5CE; +--glow-color: cyan; + +--title-background-color: #090D16; +--title-separator-color: #354C79; +--directory-separator-color: #283A5D; +--separator-color: #283A5D; + +--blockquote-background-color: #101826; +--blockquote-border-color: #283A5D; + +--scrollbar-thumb-color: #283A5D; +--scrollbar-background-color: #070B11; + +--icon-background-color: #334975; +--icon-foreground-color: #C4CFE5; +--icon-doc-image: url('docd.svg'); +--icon-folder-open-image: url('folderopend.svg'); +--icon-folder-closed-image: url('folderclosedd.svg'); + +/* brief member declaration list */ +--memdecl-background-color: #0B101A; +--memdecl-separator-color: #2C3F65; +--memdecl-foreground-color: #BBB; +--memdecl-template-color: #7C95C6; + +/* detailed member list */ +--memdef-border-color: #233250; +--memdef-title-background-color: #1B2840; +--memdef-title-gradient-image: url('nav_fd.png'); +--memdef-proto-background-color: #19243A; +--memdef-proto-text-color: #9DB0D4; +--memdef-proto-text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.9); +--memdef-doc-background-color: black; +--memdef-param-name-color: #D28757; +--memdef-template-color: #7C95C6; + +/* tables */ +--table-cell-border-color: #283A5D; +--table-header-background-color: #283A5D; +--table-header-foreground-color: #C4CFE5; + +/* labels */ +--label-background-color: #354C7B; +--label-left-top-border-color: #4665A2; +--label-right-bottom-border-color: #283A5D; +--label-foreground-color: #CCCCCC; + +/** navigation bar/tree/menu */ +--nav-background-color: #101826; +--nav-foreground-color: #364D7C; +--nav-gradient-image: url('tab_bd.png'); +--nav-gradient-hover-image: url('tab_hd.png'); +--nav-gradient-active-image: url('tab_ad.png'); +--nav-gradient-active-image-parent: url("../tab_ad.png"); +--nav-separator-image: url('tab_sd.png'); +--nav-breadcrumb-image: url('bc_sd.png'); +--nav-breadcrumb-border-color: #2A3D61; +--nav-splitbar-image: url('splitbard.png'); +--nav-font-size-level1: 13px; +--nav-font-size-level2: 10px; +--nav-font-size-level3: 9px; +--nav-text-normal-color: #B6C4DF; +--nav-text-hover-color: #DCE2EF; +--nav-text-active-color: #DCE2EF; +--nav-text-normal-shadow: 0px 1px 1px black; +--nav-text-hover-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); +--nav-text-active-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); +--nav-menu-button-color: #B6C4DF; +--nav-menu-background-color: #05070C; +--nav-menu-foreground-color: #BBBBBB; +--nav-menu-toggle-color: rgba(255, 255, 255, 0.2); +--nav-arrow-color: #334975; +--nav-arrow-selected-color: #90A5CE; + +/* table of contents */ +--toc-background-color: #151E30; +--toc-border-color: #202E4A; +--toc-header-color: #A3B4D7; +--toc-down-arrow-image: url("data:image/svg+xml;utf8,&%238595;"); + +/** search field */ +--search-background-color: black; +--search-foreground-color: #C5C5C5; +--search-magnification-image: url('mag_d.svg'); +--search-magnification-select-image: url('mag_seld.svg'); +--search-active-color: #C5C5C5; +--search-filter-background-color: #101826; +--search-filter-foreground-color: #90A5CE; +--search-filter-border-color: #7C95C6; +--search-filter-highlight-text-color: #BCC9E2; +--search-filter-highlight-bg-color: #283A5D; +--search-results-background-color: #101826; +--search-results-foreground-color: #90A5CE; +--search-results-border-color: #7C95C6; +--search-box-shadow: inset 0.5px 0.5px 3px 0px #2F436C; + +/** code fragments */ +--code-keyword-color: #CC99CD; +--code-type-keyword-color: #AB99CD; +--code-flow-keyword-color: #E08000; +--code-comment-color: #717790; +--code-preprocessor-color: #65CABE; +--code-string-literal-color: #7EC699; +--code-char-literal-color: #00E0F0; +--code-xml-cdata-color: #C9D1D9; +--code-vhdl-digit-color: #FF00FF; +--code-vhdl-char-color: #C0C0C0; +--code-vhdl-keyword-color: #CF53C9; +--code-vhdl-logic-color: #FF0000; +--code-link-color: #79C0FF; +--code-external-link-color: #79C0FF; +--fragment-foreground-color: #C9D1D9; +--fragment-background-color: #090D16; +--fragment-border-color: #30363D; +--fragment-lineno-border-color: #30363D; +--fragment-lineno-background-color: black; +--fragment-lineno-foreground-color: #6E7681; +--fragment-lineno-link-fg-color: #6E7681; +--fragment-lineno-link-bg-color: #303030; +--fragment-lineno-link-hover-fg-color: #8E96A1; +--fragment-lineno-link-hover-bg-color: #505050; +--fragment-copy-ok-color: #0EA80E; +--tooltip-foreground-color: #C9D1D9; +--tooltip-background-color: #202020; +--tooltip-border-color: #C9D1D9; +--tooltip-doc-color: #D9E1E9; +--tooltip-declaration-color: #20C348; +--tooltip-link-color: #79C0FF; +--tooltip-shadow: none; +--fold-line-color: #808080; +--fold-minus-image: url('minusd.svg'); +--fold-plus-image: url('plusd.svg'); +--fold-minus-image-relpath: url('../../minusd.svg'); +--fold-plus-image-relpath: url('../../plusd.svg'); + +/** font-family */ +--font-family-normal: Roboto,sans-serif; +--font-family-monospace: 'JetBrains Mono',Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace,fixed; +--font-family-nav: 'Lucida Grande',Geneva,Helvetica,Arial,sans-serif; +--font-family-title: Tahoma,Arial,sans-serif; +--font-family-toc: Verdana,'DejaVu Sans',Geneva,sans-serif; +--font-family-search: Arial,Verdana,sans-serif; +--font-family-icon: Arial,Helvetica; +--font-family-tooltip: Roboto,sans-serif; + +/** special sections */ +--warning-color-bg: #2e1917; +--warning-color-hl: #ad2617; +--warning-color-text: #f5b1aa; +--note-color-bg: #3b2e04; +--note-color-hl: #f1b602; +--note-color-text: #ceb670; +--todo-color-bg: #163750; +--todo-color-hl: #1982D2; +--todo-color-text: #dcf0fa; +--test-color-bg: #121258; +--test-color-hl: #4242cf; +--test-color-text: #c0c0da; +--deprecated-color-bg: #2e323b; +--deprecated-color-hl: #738396; +--deprecated-color-text: #abb0bd; +--bug-color-bg: #2a2536; +--bug-color-hl: #7661b3; +--bug-color-text: #ae9ed6; +--invariant-color-bg: #303a35; +--invariant-color-hl: #76ce96; +--invariant-color-text: #cceed5; +}} +body { + background-color: var(--page-background-color); + color: var(--page-foreground-color); +} + +body, table, div, p, dl { + font-weight: 400; + font-size: 14px; + font-family: var(--font-family-normal); + line-height: 22px; +} + +/* @group Heading Levels */ + +.title { + font-family: var(--font-family-normal); + line-height: 28px; + font-size: 150%; + font-weight: bold; + margin: 10px 2px; +} + +h1.groupheader { + font-size: 150%; +} + +h2.groupheader { + border-bottom: 1px solid var(--group-header-separator-color); + color: var(--group-header-color); + font-size: 150%; + font-weight: normal; + margin-top: 1.75em; + padding-top: 8px; + padding-bottom: 4px; + width: 100%; +} + +h3.groupheader { + font-size: 100%; +} + +h1, h2, h3, h4, h5, h6 { + -webkit-transition: text-shadow 0.5s linear; + -moz-transition: text-shadow 0.5s linear; + -ms-transition: text-shadow 0.5s linear; + -o-transition: text-shadow 0.5s linear; + transition: text-shadow 0.5s linear; + margin-right: 15px; +} + +h1.glow, h2.glow, h3.glow, h4.glow, h5.glow, h6.glow { + text-shadow: 0 0 15px var(--glow-color); +} + +dt { + font-weight: bold; +} + +p.startli, p.startdd { + margin-top: 2px; +} + +th p.starttd, th p.intertd, th p.endtd { + font-size: 100%; + font-weight: 700; +} + +p.starttd { + margin-top: 0px; +} + +p.endli { + margin-bottom: 0px; +} + +p.enddd { + margin-bottom: 4px; +} + +p.endtd { + margin-bottom: 2px; +} + +p.interli { +} + +p.interdd { +} + +p.intertd { +} + +/* @end */ + +caption { + font-weight: bold; +} + +span.legend { + font-size: 70%; + text-align: center; +} + +h3.version { + font-size: 90%; + text-align: center; +} + +div.navtab { + padding-right: 15px; + text-align: right; + line-height: 110%; +} + +div.navtab table { + border-spacing: 0; +} + +td.navtab { + padding-right: 6px; + padding-left: 6px; +} + +td.navtabHL { + background-image: var(--nav-gradient-active-image); + background-repeat:repeat-x; + padding-right: 6px; + padding-left: 6px; +} + +td.navtabHL a, td.navtabHL a:visited { + color: var(--nav-text-hover-color); + text-shadow: var(--nav-text-hover-shadow); +} + +a.navtab { + font-weight: bold; +} + +div.qindex{ + text-align: center; + width: 100%; + line-height: 140%; + font-size: 130%; + color: var(--index-separator-color); +} + +#main-menu a:focus { + outline: auto; + z-index: 10; + position: relative; +} + +dt.alphachar{ + font-size: 180%; + font-weight: bold; +} + +.alphachar a{ + color: var(--index-header-color); +} + +.alphachar a:hover, .alphachar a:visited{ + text-decoration: none; +} + +.classindex dl { + padding: 25px; + column-count:1 +} + +.classindex dd { + display:inline-block; + margin-left: 50px; + width: 90%; + line-height: 1.15em; +} + +.classindex dl.even { + background-color: var(--index-even-item-bg-color); +} + +.classindex dl.odd { + background-color: var(--index-odd-item-bg-color); +} + +@media(min-width: 1120px) { + .classindex dl { + column-count:2 + } +} + +@media(min-width: 1320px) { + .classindex dl { + column-count:3 + } +} + + +/* @group Link Styling */ + +a { + color: var(--page-link-color); + font-weight: normal; + text-decoration: none; +} + +.contents a:visited { + color: var(--page-visited-link-color); +} + +a:hover { + text-decoration: none; + background: linear-gradient(to bottom, transparent 0,transparent calc(100% - 1px), currentColor 100%); +} + +a:hover > span.arrow { + text-decoration: none; + background : var(--nav-background-color); +} + +a.el { + font-weight: bold; +} + +a.elRef { +} + +a.code, a.code:visited, a.line, a.line:visited { + color: var(--code-link-color); +} + +a.codeRef, a.codeRef:visited, a.lineRef, a.lineRef:visited { + color: var(--code-external-link-color); +} + +a.code.hl_class { /* style for links to class names in code snippets */ } +a.code.hl_struct { /* style for links to struct names in code snippets */ } +a.code.hl_union { /* style for links to union names in code snippets */ } +a.code.hl_interface { /* style for links to interface names in code snippets */ } +a.code.hl_protocol { /* style for links to protocol names in code snippets */ } +a.code.hl_category { /* style for links to category names in code snippets */ } +a.code.hl_exception { /* style for links to exception names in code snippets */ } +a.code.hl_service { /* style for links to service names in code snippets */ } +a.code.hl_singleton { /* style for links to singleton names in code snippets */ } +a.code.hl_concept { /* style for links to concept names in code snippets */ } +a.code.hl_namespace { /* style for links to namespace names in code snippets */ } +a.code.hl_package { /* style for links to package names in code snippets */ } +a.code.hl_define { /* style for links to macro names in code snippets */ } +a.code.hl_function { /* style for links to function names in code snippets */ } +a.code.hl_variable { /* style for links to variable names in code snippets */ } +a.code.hl_typedef { /* style for links to typedef names in code snippets */ } +a.code.hl_enumvalue { /* style for links to enum value names in code snippets */ } +a.code.hl_enumeration { /* style for links to enumeration names in code snippets */ } +a.code.hl_signal { /* style for links to Qt signal names in code snippets */ } +a.code.hl_slot { /* style for links to Qt slot names in code snippets */ } +a.code.hl_friend { /* style for links to friend names in code snippets */ } +a.code.hl_dcop { /* style for links to KDE3 DCOP names in code snippets */ } +a.code.hl_property { /* style for links to property names in code snippets */ } +a.code.hl_event { /* style for links to event names in code snippets */ } +a.code.hl_sequence { /* style for links to sequence names in code snippets */ } +a.code.hl_dictionary { /* style for links to dictionary names in code snippets */ } + +/* @end */ + +dl.el { + margin-left: -1cm; +} + +ul { + overflow: visible; +} + +ul.multicol { + -moz-column-gap: 1em; + -webkit-column-gap: 1em; + column-gap: 1em; + -moz-column-count: 3; + -webkit-column-count: 3; + column-count: 3; + list-style-type: none; +} + +#side-nav ul { + overflow: visible; /* reset ul rule for scroll bar in GENERATE_TREEVIEW window */ +} + +#main-nav ul { + overflow: visible; /* reset ul rule for the navigation bar drop down lists */ +} + +.fragment { + text-align: left; + direction: ltr; + overflow-x: auto; + overflow-y: hidden; + position: relative; + min-height: 12px; + margin: 10px 0px; + padding: 10px 10px; + border: 1px solid var(--fragment-border-color); + border-radius: 4px; + background-color: var(--fragment-background-color); + color: var(--fragment-foreground-color); +} + +pre.fragment { + word-wrap: break-word; + font-size: 10pt; + line-height: 125%; + font-family: var(--font-family-monospace); +} + +.clipboard { + width: 24px; + height: 24px; + right: 5px; + top: 5px; + opacity: 0; + position: absolute; + display: inline; + overflow: auto; + fill: var(--fragment-foreground-color); + justify-content: center; + align-items: center; + cursor: pointer; +} + +.clipboard.success { + border: 1px solid var(--fragment-foreground-color); + border-radius: 4px; +} + +.fragment:hover .clipboard, .clipboard.success { + opacity: .28; +} + +.clipboard:hover, .clipboard.success { + opacity: 1 !important; +} + +.clipboard:active:not([class~=success]) svg { + transform: scale(.91); +} + +.clipboard.success svg { + fill: var(--fragment-copy-ok-color); +} + +.clipboard.success { + border-color: var(--fragment-copy-ok-color); +} + +div.line { + font-family: var(--font-family-monospace); + font-size: 13px; + min-height: 13px; + line-height: 1.2; + text-wrap: unrestricted; + white-space: -moz-pre-wrap; /* Moz */ + white-space: -pre-wrap; /* Opera 4-6 */ + white-space: -o-pre-wrap; /* Opera 7 */ + white-space: pre-wrap; /* CSS3 */ + word-wrap: break-word; /* IE 5.5+ */ + text-indent: -53px; + padding-left: 53px; + padding-bottom: 0px; + margin: 0px; + -webkit-transition-property: background-color, box-shadow; + -webkit-transition-duration: 0.5s; + -moz-transition-property: background-color, box-shadow; + -moz-transition-duration: 0.5s; + -ms-transition-property: background-color, box-shadow; + -ms-transition-duration: 0.5s; + -o-transition-property: background-color, box-shadow; + -o-transition-duration: 0.5s; + transition-property: background-color, box-shadow; + transition-duration: 0.5s; +} + +div.line:after { + content:"\000A"; + white-space: pre; +} + +div.line.glow { + background-color: var(--glow-color); + box-shadow: 0 0 10px var(--glow-color); +} + +span.fold { + margin-left: 5px; + margin-right: 1px; + margin-top: 0px; + margin-bottom: 0px; + padding: 0px; + display: inline-block; + width: 12px; + height: 12px; + background-repeat:no-repeat; + background-position:center; +} + +span.lineno { + padding-right: 4px; + margin-right: 9px; + text-align: right; + border-right: 2px solid var(--fragment-lineno-border-color); + color: var(--fragment-lineno-foreground-color); + background-color: var(--fragment-lineno-background-color); + white-space: pre; +} +span.lineno a, span.lineno a:visited { + color: var(--fragment-lineno-link-fg-color); + background-color: var(--fragment-lineno-link-bg-color); +} + +span.lineno a:hover { + color: var(--fragment-lineno-link-hover-fg-color); + background-color: var(--fragment-lineno-link-hover-bg-color); +} + +.lineno { + -webkit-touch-callout: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} + +div.classindex ul { + list-style: none; + padding-left: 0; +} + +div.classindex span.ai { + display: inline-block; +} + +div.groupHeader { + margin-left: 16px; + margin-top: 12px; + font-weight: bold; +} + +div.groupText { + margin-left: 16px; + font-style: italic; +} + +body { + color: var(--page-foreground-color); + margin: 0; +} + +div.contents { + margin-top: 10px; + margin-left: 12px; + margin-right: 8px; +} + +p.formulaDsp { + text-align: center; +} + +img.dark-mode-visible { + display: none; +} +img.light-mode-visible { + display: none; +} + +img.formulaInl, img.inline { + vertical-align: middle; +} + +div.center { + text-align: center; + margin-top: 0px; + margin-bottom: 0px; + padding: 0px; +} + +div.center img { + border: 0px; +} + +address.footer { + text-align: right; + padding-right: 12px; +} + +img.footer { + border: 0px; + vertical-align: middle; + width: var(--footer-logo-width); +} + +.compoundTemplParams { + color: var(--memdecl-template-color); + font-size: 80%; + line-height: 120%; +} + +/* @group Code Colorization */ + +span.keyword { + color: var(--code-keyword-color); +} + +span.keywordtype { + color: var(--code-type-keyword-color); +} + +span.keywordflow { + color: var(--code-flow-keyword-color); +} + +span.comment { + color: var(--code-comment-color); +} + +span.preprocessor { + color: var(--code-preprocessor-color); +} + +span.stringliteral { + color: var(--code-string-literal-color); +} + +span.charliteral { + color: var(--code-char-literal-color); +} + +span.xmlcdata { + color: var(--code-xml-cdata-color); +} + +span.vhdldigit { + color: var(--code-vhdl-digit-color); +} + +span.vhdlchar { + color: var(--code-vhdl-char-color); +} + +span.vhdlkeyword { + color: var(--code-vhdl-keyword-color); +} + +span.vhdllogic { + color: var(--code-vhdl-logic-color); +} + +blockquote { + background-color: var(--blockquote-background-color); + border-left: 2px solid var(--blockquote-border-color); + margin: 0 24px 0 4px; + padding: 0 12px 0 16px; +} + +/* @end */ + +td.tiny { + font-size: 75%; +} + +.dirtab { + padding: 4px; + border-collapse: collapse; + border: 1px solid var(--table-cell-border-color); +} + +th.dirtab { + background-color: var(--table-header-background-color); + color: var(--table-header-foreground-color); + font-weight: bold; +} + +hr { + height: 0px; + border: none; + border-top: 1px solid var(--separator-color); +} + +hr.footer { + height: 1px; +} + +/* @group Member Descriptions */ + +table.memberdecls { + border-spacing: 0px; + padding: 0px; +} + +.memberdecls td, .fieldtable tr { + -webkit-transition-property: background-color, box-shadow; + -webkit-transition-duration: 0.5s; + -moz-transition-property: background-color, box-shadow; + -moz-transition-duration: 0.5s; + -ms-transition-property: background-color, box-shadow; + -ms-transition-duration: 0.5s; + -o-transition-property: background-color, box-shadow; + -o-transition-duration: 0.5s; + transition-property: background-color, box-shadow; + transition-duration: 0.5s; +} + +.memberdecls td.glow, .fieldtable tr.glow { + background-color: var(--glow-color); + box-shadow: 0 0 15px var(--glow-color); +} + +.mdescLeft, .mdescRight, +.memItemLeft, .memItemRight, +.memTemplItemLeft, .memTemplItemRight, .memTemplParams { + background-color: var(--memdecl-background-color); + border: none; + margin: 4px; + padding: 1px 0 0 8px; +} + +.mdescLeft, .mdescRight { + padding: 0px 8px 4px 8px; + color: var(--memdecl-foreground-color); +} + +.memSeparator { + border-bottom: 1px solid var(--memdecl-separator-color); + line-height: 1px; + margin: 0px; + padding: 0px; +} + +.memItemLeft, .memTemplItemLeft { + white-space: nowrap; +} + +.memItemRight, .memTemplItemRight { + width: 100%; +} + +.memTemplParams { + color: var(--memdecl-template-color); + white-space: nowrap; + font-size: 80%; +} + +/* @end */ + +/* @group Member Details */ + +/* Styles for detailed member documentation */ + +.memtitle { + padding: 8px; + border-top: 1px solid var(--memdef-border-color); + border-left: 1px solid var(--memdef-border-color); + border-right: 1px solid var(--memdef-border-color); + border-top-right-radius: 4px; + border-top-left-radius: 4px; + margin-bottom: -1px; + background-image: var(--memdef-title-gradient-image); + background-repeat: repeat-x; + background-color: var(--memdef-title-background-color); + line-height: 1.25; + font-weight: 300; + float:left; +} + +.permalink +{ + font-size: 65%; + display: inline-block; + vertical-align: middle; +} + +.memtemplate { + font-size: 80%; + color: var(--memdef-template-color); + font-weight: normal; + margin-left: 9px; +} + +.mempage { + width: 100%; +} + +.memitem { + padding: 0; + margin-bottom: 10px; + margin-right: 5px; + -webkit-transition: box-shadow 0.5s linear; + -moz-transition: box-shadow 0.5s linear; + -ms-transition: box-shadow 0.5s linear; + -o-transition: box-shadow 0.5s linear; + transition: box-shadow 0.5s linear; + display: table !important; + width: 100%; +} + +.memitem.glow { + box-shadow: 0 0 15px var(--glow-color); +} + +.memname { + font-weight: 400; + margin-left: 6px; +} + +.memname td { + vertical-align: bottom; +} + +.memproto, dl.reflist dt { + border-top: 1px solid var(--memdef-border-color); + border-left: 1px solid var(--memdef-border-color); + border-right: 1px solid var(--memdef-border-color); + padding: 6px 0px 6px 0px; + color: var(--memdef-proto-text-color); + font-weight: bold; + text-shadow: var(--memdef-proto-text-shadow); + background-color: var(--memdef-proto-background-color); + box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); + border-top-right-radius: 4px; +} + +.overload { + font-family: var(--font-family-monospace); + font-size: 65%; +} + +.memdoc, dl.reflist dd { + border-bottom: 1px solid var(--memdef-border-color); + border-left: 1px solid var(--memdef-border-color); + border-right: 1px solid var(--memdef-border-color); + padding: 6px 10px 2px 10px; + border-top-width: 0; + background-image:url('nav_g.png'); + background-repeat:repeat-x; + background-color: var(--memdef-doc-background-color); + /* opera specific markup */ + border-bottom-left-radius: 4px; + border-bottom-right-radius: 4px; + box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); + /* firefox specific markup */ + -moz-border-radius-bottomleft: 4px; + -moz-border-radius-bottomright: 4px; + -moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px; + /* webkit specific markup */ + -webkit-border-bottom-left-radius: 4px; + -webkit-border-bottom-right-radius: 4px; + -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); +} + +dl.reflist dt { + padding: 5px; +} + +dl.reflist dd { + margin: 0px 0px 10px 0px; + padding: 5px; +} + +.paramkey { + text-align: right; +} + +.paramtype { + white-space: nowrap; + padding: 0px; + padding-bottom: 1px; +} + +.paramname { + white-space: nowrap; + padding: 0px; + padding-bottom: 1px; + margin-left: 2px; +} + +.paramname em { + color: var(--memdef-param-name-color); + font-style: normal; + margin-right: 1px; +} + +.paramname .paramdefval { + font-family: var(--font-family-monospace); +} + +.params, .retval, .exception, .tparams { + margin-left: 0px; + padding-left: 0px; +} + +.params .paramname, .retval .paramname, .tparams .paramname, .exception .paramname { + font-weight: bold; + vertical-align: top; +} + +.params .paramtype, .tparams .paramtype { + font-style: italic; + vertical-align: top; +} + +.params .paramdir, .tparams .paramdir { + font-family: var(--font-family-monospace); + vertical-align: top; +} + +table.mlabels { + border-spacing: 0px; +} + +td.mlabels-left { + width: 100%; + padding: 0px; +} + +td.mlabels-right { + vertical-align: bottom; + padding: 0px; + white-space: nowrap; +} + +span.mlabels { + margin-left: 8px; +} + +span.mlabel { + background-color: var(--label-background-color); + border-top:1px solid var(--label-left-top-border-color); + border-left:1px solid var(--label-left-top-border-color); + border-right:1px solid var(--label-right-bottom-border-color); + border-bottom:1px solid var(--label-right-bottom-border-color); + text-shadow: none; + color: var(--label-foreground-color); + margin-right: 4px; + padding: 2px 3px; + border-radius: 3px; + font-size: 7pt; + white-space: nowrap; + vertical-align: middle; +} + + + +/* @end */ + +/* these are for tree view inside a (index) page */ + +div.directory { + margin: 10px 0px; + border-top: 1px solid var(--directory-separator-color); + border-bottom: 1px solid var(--directory-separator-color); + width: 100%; +} + +.directory table { + border-collapse:collapse; +} + +.directory td { + margin: 0px; + padding: 0px; + vertical-align: top; +} + +.directory td.entry { + white-space: nowrap; + padding-right: 6px; + padding-top: 3px; +} + +.directory td.entry a { + outline:none; +} + +.directory td.entry a img { + border: none; +} + +.directory td.desc { + width: 100%; + padding-left: 6px; + padding-right: 6px; + padding-top: 3px; + border-left: 1px solid rgba(0,0,0,0.05); +} + +.directory tr.odd { + padding-left: 6px; + background-color: var(--index-odd-item-bg-color); +} + +.directory tr.even { + padding-left: 6px; + background-color: var(--index-even-item-bg-color); +} + +.directory img { + vertical-align: -30%; +} + +.directory .levels { + white-space: nowrap; + width: 100%; + text-align: right; + font-size: 9pt; +} + +.directory .levels span { + cursor: pointer; + padding-left: 2px; + padding-right: 2px; + color: var(--page-link-color); +} + +.arrow { + color: var(--nav-arrow-color); + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + cursor: pointer; + font-size: 80%; + display: inline-block; + width: 16px; + height: 22px; +} + +.icon { + font-family: var(--font-family-icon); + line-height: normal; + font-weight: bold; + font-size: 12px; + height: 14px; + width: 16px; + display: inline-block; + background-color: var(--icon-background-color); + color: var(--icon-foreground-color); + text-align: center; + border-radius: 4px; + margin-left: 2px; + margin-right: 2px; +} + +.icona { + width: 24px; + height: 22px; + display: inline-block; +} + +.iconfopen { + width: 24px; + height: 18px; + margin-bottom: 4px; + background-image:var(--icon-folder-open-image); + background-repeat: repeat-y; + vertical-align:top; + display: inline-block; +} + +.iconfclosed { + width: 24px; + height: 18px; + margin-bottom: 4px; + background-image:var(--icon-folder-closed-image); + background-repeat: repeat-y; + vertical-align:top; + display: inline-block; +} + +.icondoc { + width: 24px; + height: 18px; + margin-bottom: 4px; + background-image:var(--icon-doc-image); + background-position: 0px -4px; + background-repeat: repeat-y; + vertical-align:top; + display: inline-block; +} + +/* @end */ + +div.dynheader { + margin-top: 8px; + -webkit-touch-callout: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} + +address { + font-style: normal; + color: var(--footer-foreground-color); +} + +table.doxtable caption { + caption-side: top; +} + +table.doxtable { + border-collapse:collapse; + margin-top: 4px; + margin-bottom: 4px; +} + +table.doxtable td, table.doxtable th { + border: 1px solid var(--table-cell-border-color); + padding: 3px 7px 2px; +} + +table.doxtable th { + background-color: var(--table-header-background-color); + color: var(--table-header-foreground-color); + font-size: 110%; + padding-bottom: 4px; + padding-top: 5px; +} + +table.fieldtable { + margin-bottom: 10px; + border: 1px solid var(--memdef-border-color); + border-spacing: 0px; + border-radius: 4px; + box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.15); +} + +.fieldtable td, .fieldtable th { + padding: 3px 7px 2px; +} + +.fieldtable td.fieldtype, .fieldtable td.fieldname { + white-space: nowrap; + border-right: 1px solid var(--memdef-border-color); + border-bottom: 1px solid var(--memdef-border-color); + vertical-align: top; +} + +.fieldtable td.fieldname { + padding-top: 3px; +} + +.fieldtable td.fielddoc { + border-bottom: 1px solid var(--memdef-border-color); +} + +.fieldtable td.fielddoc p:first-child { + margin-top: 0px; +} + +.fieldtable td.fielddoc p:last-child { + margin-bottom: 2px; +} + +.fieldtable tr:last-child td { + border-bottom: none; +} + +.fieldtable th { + background-image: var(--memdef-title-gradient-image); + background-repeat:repeat-x; + background-color: var(--memdef-title-background-color); + font-size: 90%; + color: var(--memdef-proto-text-color); + padding-bottom: 4px; + padding-top: 5px; + text-align:left; + font-weight: 400; + border-top-left-radius: 4px; + border-top-right-radius: 4px; + border-bottom: 1px solid var(--memdef-border-color); +} + + +.tabsearch { + top: 0px; + left: 10px; + height: 36px; + background-image: var(--nav-gradient-image); + z-index: 101; + overflow: hidden; + font-size: 13px; +} + +.navpath ul +{ + font-size: 11px; + background-image: var(--nav-gradient-image); + background-repeat:repeat-x; + background-position: 0 -5px; + height:30px; + line-height:30px; + color:var(--nav-text-normal-color); + border:solid 1px var(--nav-breadcrumb-border-color); + overflow:hidden; + margin:0px; + padding:0px; +} + +.navpath li +{ + list-style-type:none; + float:left; + padding-left:10px; + padding-right:15px; + background-image:var(--nav-breadcrumb-image); + background-repeat:no-repeat; + background-position:right; + color: var(--nav-foreground-color); +} + +.navpath li.navelem a +{ + height:32px; + display:block; + outline: none; + color: var(--nav-text-normal-color); + font-family: var(--font-family-nav); + text-shadow: var(--nav-text-normal-shadow); + text-decoration: none; +} + +.navpath li.navelem a:hover +{ + color: var(--nav-text-hover-color); + text-shadow: var(--nav-text-hover-shadow); +} + +.navpath li.footer +{ + list-style-type:none; + float:right; + padding-left:10px; + padding-right:15px; + background-image:none; + background-repeat:no-repeat; + background-position:right; + color: var(--footer-foreground-color); + font-size: 8pt; +} + + +div.summary +{ + float: right; + font-size: 8pt; + padding-right: 5px; + width: 50%; + text-align: right; +} + +div.summary a +{ + white-space: nowrap; +} + +table.classindex +{ + margin: 10px; + white-space: nowrap; + margin-left: 3%; + margin-right: 3%; + width: 94%; + border: 0; + border-spacing: 0; + padding: 0; +} + +div.ingroups +{ + font-size: 8pt; + width: 50%; + text-align: left; +} + +div.ingroups a +{ + white-space: nowrap; +} + +div.header +{ + background-image: var(--header-gradient-image); + background-repeat:repeat-x; + background-color: var(--header-background-color); + margin: 0px; + border-bottom: 1px solid var(--header-separator-color); +} + +div.headertitle +{ + padding: 5px 5px 5px 10px; +} + +.PageDocRTL-title div.headertitle { + text-align: right; + direction: rtl; +} + +dl { + padding: 0 0 0 0; +} + +/* + +dl.section { + margin-left: 0px; + padding-left: 0px; +} + +dl.note { + margin-left: -7px; + padding-left: 3px; + border-left: 4px solid; + border-color: #D0C000; +} + +dl.warning, dl.attention { + margin-left: -7px; + padding-left: 3px; + border-left: 4px solid; + border-color: #FF0000; +} + +dl.pre, dl.post, dl.invariant { + margin-left: -7px; + padding-left: 3px; + border-left: 4px solid; + border-color: #00D000; +} + +dl.deprecated { + margin-left: -7px; + padding-left: 3px; + border-left: 4px solid; + border-color: #505050; +} + +dl.todo { + margin-left: -7px; + padding-left: 3px; + border-left: 4px solid; + border-color: #00C0E0; +} + +dl.test { + margin-left: -7px; + padding-left: 3px; + border-left: 4px solid; + border-color: #3030E0; +} + +dl.bug { + margin-left: -7px; + padding-left: 3px; + border-left: 4px solid; + border-color: #C08050; +} + +*/ + +dl.bug dt a, dl.deprecated dt a, dl.todo dt a, dl.test a { + font-weight: bold !important; +} + +dl.warning, dl.attention, dl.note, dl.deprecated, dl.bug, +dl.invariant, dl.pre, dl.post, dl.todo, dl.test, dl.remark { + padding: 10px; + margin: 10px 0px; + overflow: hidden; + margin-left: 0; + border-radius: 4px; +} + +dl.section dd { + margin-bottom: 2px; +} + +dl.warning, dl.attention { + background: var(--warning-color-bg); + border-left: 8px solid var(--warning-color-hl); + color: var(--warning-color-text); +} + +dl.warning dt, dl.attention dt { + color: var(--warning-color-hl); +} + +dl.note, dl.remark { + background: var(--note-color-bg); + border-left: 8px solid var(--note-color-hl); + color: var(--note-color-text); +} + +dl.note dt, dl.remark dt { + color: var(--note-color-hl); +} + +dl.todo { + background: var(--todo-color-bg); + border-left: 8px solid var(--todo-color-hl); + color: var(--todo-color-text); +} + +dl.todo dt { + color: var(--todo-color-hl); +} + +dl.test { + background: var(--test-color-bg); + border-left: 8px solid var(--test-color-hl); + color: var(--test-color-text); +} + +dl.test dt { + color: var(--test-color-hl); +} + +dl.bug dt a { + color: var(--bug-color-hl) !important; +} + +dl.bug { + background: var(--bug-color-bg); + border-left: 8px solid var(--bug-color-hl); + color: var(--bug-color-text); +} + +dl.bug dt a { + color: var(--bug-color-hl) !important; +} + +dl.deprecated { + background: var(--deprecated-color-bg); + border-left: 8px solid var(--deprecated-color-hl); + color: var(--deprecated-color-text); +} + +dl.deprecated dt a { + color: var(--deprecated-color-hl) !important; +} + +dl.section dd, dl.bug dd, dl.deprecated dd, dl.todo dd, dl.test dd { + margin-inline-start: 0px; +} + +dl.invariant, dl.pre, dl.post { + background: var(--invariant-color-bg); + border-left: 8px solid var(--invariant-color-hl); + color: var(--invariant-color-text); +} + +dl.invariant dt, dl.pre dt, dl.post dt { + color: var(--invariant-color-hl); +} + + +#projectrow +{ + height: 56px; +} + +#projectlogo +{ + text-align: center; + vertical-align: bottom; + border-collapse: separate; +} + +#projectlogo img +{ + border: 0px none; +} + +#projectalign +{ + vertical-align: middle; + padding-left: 0.5em; +} + +#projectname +{ + font-size: 200%; + font-family: var(--font-family-title); + margin: 0px; + padding: 2px 0px; +} + +#projectbrief +{ + font-size: 90%; + font-family: var(--font-family-title); + margin: 0px; + padding: 0px; +} + +#projectnumber +{ + font-size: 50%; + font-family: 50% var(--font-family-title); + margin: 0px; + padding: 0px; +} + +#titlearea +{ + padding: 0px; + margin: 0px; + width: 100%; + border-bottom: 1px solid var(--title-separator-color); + background-color: var(--title-background-color); +} + +.image +{ + text-align: center; +} + +.dotgraph +{ + text-align: center; +} + +.mscgraph +{ + text-align: center; +} + +.plantumlgraph +{ + text-align: center; +} + +.diagraph +{ + text-align: center; +} + +.caption +{ + font-weight: bold; +} + +dl.citelist { + margin-bottom:50px; +} + +dl.citelist dt { + color:var(--citation-label-color); + float:left; + font-weight:bold; + margin-right:10px; + padding:5px; + text-align:right; + width:52px; +} + +dl.citelist dd { + margin:2px 0 2px 72px; + padding:5px 0; +} + +div.toc { + padding: 14px 25px; + background-color: var(--toc-background-color); + border: 1px solid var(--toc-border-color); + border-radius: 7px 7px 7px 7px; + float: right; + height: auto; + margin: 0 8px 10px 10px; + width: 200px; +} + +div.toc li { + background: var(--toc-down-arrow-image) no-repeat scroll 0 5px transparent; + font: 10px/1.2 var(--font-family-toc); + margin-top: 5px; + padding-left: 10px; + padding-top: 2px; +} + +div.toc h3 { + font: bold 12px/1.2 var(--font-family-toc); + color: var(--toc-header-color); + border-bottom: 0 none; + margin: 0; +} + +div.toc ul { + list-style: none outside none; + border: medium none; + padding: 0px; +} + +div.toc li.level1 { + margin-left: 0px; +} + +div.toc li.level2 { + margin-left: 15px; +} + +div.toc li.level3 { + margin-left: 15px; +} + +div.toc li.level4 { + margin-left: 15px; +} + +span.emoji { + /* font family used at the site: https://unicode.org/emoji/charts/full-emoji-list.html + * font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", Times, Symbola, Aegyptus, Code2000, Code2001, Code2002, Musica, serif, LastResort; + */ +} + +span.obfuscator { + display: none; +} + +.inherit_header { + font-weight: bold; + color: var(--inherit-header-color); + cursor: pointer; + -webkit-touch-callout: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} + +.inherit_header td { + padding: 6px 0px 2px 5px; +} + +.inherit { + display: none; +} + +tr.heading h2 { + margin-top: 12px; + margin-bottom: 4px; +} + +/* tooltip related style info */ + +.ttc { + position: absolute; + display: none; +} + +#powerTip { + cursor: default; + /*white-space: nowrap;*/ + color: var(--tooltip-foreground-color); + background-color: var(--tooltip-background-color); + border: 1px solid var(--tooltip-border-color); + border-radius: 4px 4px 4px 4px; + box-shadow: var(--tooltip-shadow); + display: none; + font-size: smaller; + max-width: 80%; + opacity: 0.9; + padding: 1ex 1em 1em; + position: absolute; + z-index: 2147483647; +} + +#powerTip div.ttdoc { + color: var(--tooltip-doc-color); + font-style: italic; +} + +#powerTip div.ttname a { + font-weight: bold; +} + +#powerTip a { + color: var(--tooltip-link-color); +} + +#powerTip div.ttname { + font-weight: bold; +} + +#powerTip div.ttdeci { + color: var(--tooltip-declaration-color); +} + +#powerTip div { + margin: 0px; + padding: 0px; + font-size: 12px; + font-family: var(--font-family-tooltip); + line-height: 16px; +} + +#powerTip:before, #powerTip:after { + content: ""; + position: absolute; + margin: 0px; +} + +#powerTip.n:after, #powerTip.n:before, +#powerTip.s:after, #powerTip.s:before, +#powerTip.w:after, #powerTip.w:before, +#powerTip.e:after, #powerTip.e:before, +#powerTip.ne:after, #powerTip.ne:before, +#powerTip.se:after, #powerTip.se:before, +#powerTip.nw:after, #powerTip.nw:before, +#powerTip.sw:after, #powerTip.sw:before { + border: solid transparent; + content: " "; + height: 0; + width: 0; + position: absolute; +} + +#powerTip.n:after, #powerTip.s:after, +#powerTip.w:after, #powerTip.e:after, +#powerTip.nw:after, #powerTip.ne:after, +#powerTip.sw:after, #powerTip.se:after { + border-color: rgba(255, 255, 255, 0); +} + +#powerTip.n:before, #powerTip.s:before, +#powerTip.w:before, #powerTip.e:before, +#powerTip.nw:before, #powerTip.ne:before, +#powerTip.sw:before, #powerTip.se:before { + border-color: rgba(128, 128, 128, 0); +} + +#powerTip.n:after, #powerTip.n:before, +#powerTip.ne:after, #powerTip.ne:before, +#powerTip.nw:after, #powerTip.nw:before { + top: 100%; +} + +#powerTip.n:after, #powerTip.ne:after, #powerTip.nw:after { + border-top-color: var(--tooltip-background-color); + border-width: 10px; + margin: 0px -10px; +} +#powerTip.n:before, #powerTip.ne:before, #powerTip.nw:before { + border-top-color: var(--tooltip-border-color); + border-width: 11px; + margin: 0px -11px; +} +#powerTip.n:after, #powerTip.n:before { + left: 50%; +} + +#powerTip.nw:after, #powerTip.nw:before { + right: 14px; +} + +#powerTip.ne:after, #powerTip.ne:before { + left: 14px; +} + +#powerTip.s:after, #powerTip.s:before, +#powerTip.se:after, #powerTip.se:before, +#powerTip.sw:after, #powerTip.sw:before { + bottom: 100%; +} + +#powerTip.s:after, #powerTip.se:after, #powerTip.sw:after { + border-bottom-color: var(--tooltip-background-color); + border-width: 10px; + margin: 0px -10px; +} + +#powerTip.s:before, #powerTip.se:before, #powerTip.sw:before { + border-bottom-color: var(--tooltip-border-color); + border-width: 11px; + margin: 0px -11px; +} + +#powerTip.s:after, #powerTip.s:before { + left: 50%; +} + +#powerTip.sw:after, #powerTip.sw:before { + right: 14px; +} + +#powerTip.se:after, #powerTip.se:before { + left: 14px; +} + +#powerTip.e:after, #powerTip.e:before { + left: 100%; +} +#powerTip.e:after { + border-left-color: var(--tooltip-border-color); + border-width: 10px; + top: 50%; + margin-top: -10px; +} +#powerTip.e:before { + border-left-color: var(--tooltip-border-color); + border-width: 11px; + top: 50%; + margin-top: -11px; +} + +#powerTip.w:after, #powerTip.w:before { + right: 100%; +} +#powerTip.w:after { + border-right-color: var(--tooltip-border-color); + border-width: 10px; + top: 50%; + margin-top: -10px; +} +#powerTip.w:before { + border-right-color: var(--tooltip-border-color); + border-width: 11px; + top: 50%; + margin-top: -11px; +} + +@media print +{ + #top { display: none; } + #side-nav { display: none; } + #nav-path { display: none; } + body { overflow:visible; } + h1, h2, h3, h4, h5, h6 { page-break-after: avoid; } + .summary { display: none; } + .memitem { page-break-inside: avoid; } + #doc-content + { + margin-left:0 !important; + height:auto !important; + width:auto !important; + overflow:inherit; + display:inline; + } +} + +/* @group Markdown */ + +table.markdownTable { + border-collapse:collapse; + margin-top: 4px; + margin-bottom: 4px; +} + +table.markdownTable td, table.markdownTable th { + border: 1px solid var(--table-cell-border-color); + padding: 3px 7px 2px; +} + +table.markdownTable tr { +} + +th.markdownTableHeadLeft, th.markdownTableHeadRight, th.markdownTableHeadCenter, th.markdownTableHeadNone { + background-color: var(--table-header-background-color); + color: var(--table-header-foreground-color); + font-size: 110%; + padding-bottom: 4px; + padding-top: 5px; +} + +th.markdownTableHeadLeft, td.markdownTableBodyLeft { + text-align: left +} + +th.markdownTableHeadRight, td.markdownTableBodyRight { + text-align: right +} + +th.markdownTableHeadCenter, td.markdownTableBodyCenter { + text-align: center +} + +tt, code, kbd, samp +{ + display: inline-block; +} +/* @end */ + +u { + text-decoration: underline; +} + +details>summary { + list-style-type: none; +} + +details > summary::-webkit-details-marker { + display: none; +} + +details>summary::before { + content: "\25ba"; + padding-right:4px; + font-size: 80%; +} + +details[open]>summary::before { + content: "\25bc"; + padding-right:4px; + font-size: 80%; +} + +body { + scrollbar-color: var(--scrollbar-thumb-color) var(--scrollbar-background-color); +} + +::-webkit-scrollbar { + background-color: var(--scrollbar-background-color); + height: 12px; + width: 12px; +} +::-webkit-scrollbar-thumb { + border-radius: 6px; + box-shadow: inset 0 0 12px 12px var(--scrollbar-thumb-color); + border: solid 2px transparent; +} +::-webkit-scrollbar-corner { + background-color: var(--scrollbar-background-color); +} + diff --git a/docs/doxygen.svg b/docs/doxygen.svg new file mode 100644 index 00000000..79a76354 --- /dev/null +++ b/docs/doxygen.svg @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/doxygen_crawl.html b/docs/doxygen_crawl.html new file mode 100644 index 00000000..fc9d3825 --- /dev/null +++ b/docs/doxygen_crawl.html @@ -0,0 +1,364 @@ + + + +Validator / crawler helper + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/dynsections.js b/docs/dynsections.js new file mode 100644 index 00000000..8f493264 --- /dev/null +++ b/docs/dynsections.js @@ -0,0 +1,194 @@ +/* + @licstart The following is the entire license notice for the JavaScript code in this file. + + The MIT License (MIT) + + Copyright (C) 1997-2020 by Dimitri van Heesch + + Permission is hereby granted, free of charge, to any person obtaining a copy of this software + and associated documentation files (the "Software"), to deal in the Software without restriction, + including without limitation the rights to use, copy, modify, merge, publish, distribute, + sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all copies or + substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING + BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + @licend The above is the entire license notice for the JavaScript code in this file + */ + +let dynsection = { + + // helper function + updateStripes : function() { + $('table.directory tr'). + removeClass('even').filter(':visible:even').addClass('even'); + $('table.directory tr'). + removeClass('odd').filter(':visible:odd').addClass('odd'); + }, + + toggleVisibility : function(linkObj) { + const base = $(linkObj).attr('id'); + const summary = $('#'+base+'-summary'); + const content = $('#'+base+'-content'); + const trigger = $('#'+base+'-trigger'); + const src=$(trigger).attr('src'); + if (content.is(':visible')===true) { + content.hide(); + summary.show(); + $(linkObj).addClass('closed').removeClass('opened'); + $(trigger).attr('src',src.substring(0,src.length-8)+'closed.png'); + } else { + content.show(); + summary.hide(); + $(linkObj).removeClass('closed').addClass('opened'); + $(trigger).attr('src',src.substring(0,src.length-10)+'open.png'); + } + return false; + }, + + toggleLevel : function(level) { + $('table.directory tr').each(function() { + const l = this.id.split('_').length-1; + const i = $('#img'+this.id.substring(3)); + const a = $('#arr'+this.id.substring(3)); + if (l'); + // add vertical lines to other rows + $('span[class=lineno]').not(':eq(0)').append(''); + // add toggle controls to lines with fold divs + $('div[class=foldopen]').each(function() { + // extract specific id to use + const id = $(this).attr('id').replace('foldopen',''); + // extract start and end foldable fragment attributes + const start = $(this).attr('data-start'); + const end = $(this).attr('data-end'); + // replace normal fold span with controls for the first line of a foldable fragment + $(this).find('span[class=fold]:first').replaceWith(''); + // append div for folded (closed) representation + $(this).after(''); + // extract the first line from the "open" section to represent closed content + const line = $(this).children().first().clone(); + // remove any glow that might still be active on the original line + $(line).removeClass('glow'); + if (start) { + // if line already ends with a start marker (e.g. trailing {), remove it + $(line).html($(line).html().replace(new RegExp('\\s*'+start+'\\s*$','g'),'')); + } + // replace minus with plus symbol + $(line).find('span[class=fold]').css('background-image',codefold.plusImg[relPath]); + // append ellipsis + $(line).append(' '+start+''+end); + // insert constructed line into closed div + $('#foldclosed'+id).html(line); + }); + }, +}; +/* @license-end */ diff --git a/docs/files.html b/docs/files.html new file mode 100644 index 00000000..24bba6a2 --- /dev/null +++ b/docs/files.html @@ -0,0 +1,187 @@ + + + + + + + +SimpleWindow: File List + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
File List
+
+
+
Here is a list of all documented files with brief descriptions:
+
[detail level 123]
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
  sw
  inc
 Alignment.h
 App.h
 Button.h
 ButtonBase.h
 Canvas.h
 CanvasLayout.h
 CheckableButton.h
 CheckBox.h
 Color.h
 ComboBox.h
 ContextMenu.h
 Control.h
 Cursor.h
 Dictionary.h
 Dip.h
 DockLayout.h
 DockPanel.h
 FillLayout.h
 Font.h
 Grid.h
 GridLayout.h
 GroupBox.h
 HitTestResult.h
 Icon.h
 ILayout.h
 ITag.h
 ItemsControl.h
 Keys.h
 Label.h
 Layer.h
 LayoutHost.h
 List.h
 ListBox.h
 ListView.h
 Menu.h
 MenuBase.h
 MenuItem.h
 MsgBox.h
 Panel.h
 PanelBase.h
 PasswordBox.h
 Path.h
 Point.h
 ProcMsg.h
 ProgressBar.h
 Property.h
 RadioButton.h
 Rect.h
 RoutedEvent.h
 RoutedEventArgs.h
 Screen.h
 ScrollEnums.h
 SimpleWindow.h
 Size.h
 Slider.h
 StackLayout.h
 StackLayoutH.h
 StackLayoutV.h
 StackPanel.h
 StaticControl.h
 TabControl.h
 TextBox.h
 TextBoxBase.h
 Thickness.h
 UIElement.h
 UniformGrid.h
 UniformGridLayout.h
 Utils.h
 Window.h
 WndBase.h
 WndMsg.h
 WrapLayout.h
 WrapLayoutH.h
 WrapLayoutV.h
 WrapPanel.h
+
+
+
+ + + + diff --git a/docs/files_dup.js b/docs/files_dup.js new file mode 100644 index 00000000..6c620c5a --- /dev/null +++ b/docs/files_dup.js @@ -0,0 +1,4 @@ +var files_dup = +[ + [ "sw", "dir_01fcd3835fb4e7d9331b722d86291b65.html", "dir_01fcd3835fb4e7d9331b722d86291b65" ] +]; \ No newline at end of file diff --git a/docs/folderclosed.svg b/docs/folderclosed.svg new file mode 100644 index 00000000..b04bed2e --- /dev/null +++ b/docs/folderclosed.svg @@ -0,0 +1,11 @@ + + + + + + + + + + diff --git a/docs/folderclosedd.svg b/docs/folderclosedd.svg new file mode 100644 index 00000000..52f0166a --- /dev/null +++ b/docs/folderclosedd.svg @@ -0,0 +1,11 @@ + + + + + + + + + + diff --git a/docs/folderopen.svg b/docs/folderopen.svg new file mode 100644 index 00000000..f6896dd2 --- /dev/null +++ b/docs/folderopen.svg @@ -0,0 +1,17 @@ + + + + + + + + + + diff --git a/docs/folderopend.svg b/docs/folderopend.svg new file mode 100644 index 00000000..2d1f06e7 --- /dev/null +++ b/docs/folderopend.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + diff --git a/docs/functions.html b/docs/functions.html new file mode 100644 index 00000000..ccb0b659 --- /dev/null +++ b/docs/functions.html @@ -0,0 +1,124 @@ + + + + + + + +SimpleWindow: Class Members + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- a -

+
+
+ + + + diff --git a/docs/functions_b.html b/docs/functions_b.html new file mode 100644 index 00000000..9fc92e99 --- /dev/null +++ b/docs/functions_b.html @@ -0,0 +1,115 @@ + + + + + + + +SimpleWindow: Class Members + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- b -

+
+
+ + + + diff --git a/docs/functions_c.html b/docs/functions_c.html new file mode 100644 index 00000000..c975fad7 --- /dev/null +++ b/docs/functions_c.html @@ -0,0 +1,148 @@ + + + + + + + +SimpleWindow: Class Members + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- c -

+
+
+ + + + diff --git a/docs/functions_d.html b/docs/functions_d.html new file mode 100644 index 00000000..04f89b31 --- /dev/null +++ b/docs/functions_d.html @@ -0,0 +1,115 @@ + + + + + + + +SimpleWindow: Class Members + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- d -

+
+
+ + + + diff --git a/docs/functions_dup.js b/docs/functions_dup.js new file mode 100644 index 00000000..3a09c6a0 --- /dev/null +++ b/docs/functions_dup.js @@ -0,0 +1,27 @@ +var functions_dup = +[ + [ "a", "functions.html", null ], + [ "b", "functions_b.html", null ], + [ "c", "functions_c.html", null ], + [ "d", "functions_d.html", null ], + [ "e", "functions_e.html", null ], + [ "f", "functions_f.html", null ], + [ "g", "functions_g.html", null ], + [ "h", "functions_h.html", null ], + [ "i", "functions_i.html", null ], + [ "l", "functions_l.html", null ], + [ "m", "functions_m.html", null ], + [ "n", "functions_n.html", null ], + [ "o", "functions_o.html", null ], + [ "p", "functions_p.html", null ], + [ "q", "functions_q.html", null ], + [ "r", "functions_r.html", null ], + [ "s", "functions_s.html", null ], + [ "t", "functions_t.html", null ], + [ "u", "functions_u.html", null ], + [ "v", "functions_v.html", null ], + [ "w", "functions_w.html", null ], + [ "x", "functions_x.html", null ], + [ "y", "functions_y.html", null ], + [ "~", "functions_~.html", null ] +]; \ No newline at end of file diff --git a/docs/functions_e.html b/docs/functions_e.html new file mode 100644 index 00000000..16c20191 --- /dev/null +++ b/docs/functions_e.html @@ -0,0 +1,115 @@ + + + + + + + +SimpleWindow: Class Members + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- e -

+
+
+ + + + diff --git a/docs/functions_enum.html b/docs/functions_enum.html new file mode 100644 index 00000000..42949783 --- /dev/null +++ b/docs/functions_enum.html @@ -0,0 +1,106 @@ + + + + + + + +SimpleWindow: Class Members - Enumerations + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented enums with links to the class documentation for each member:
+
+
+ + + + diff --git a/docs/functions_f.html b/docs/functions_f.html new file mode 100644 index 00000000..6d3b451a --- /dev/null +++ b/docs/functions_f.html @@ -0,0 +1,121 @@ + + + + + + + +SimpleWindow: Class Members + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- f -

+
+
+ + + + diff --git a/docs/functions_func.html b/docs/functions_func.html new file mode 100644 index 00000000..72dd6364 --- /dev/null +++ b/docs/functions_func.html @@ -0,0 +1,118 @@ + + + + + + + +SimpleWindow: Class Members - Functions + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented functions with links to the class documentation for each member:
+ +

- a -

+
+
+ + + + diff --git a/docs/functions_func.js b/docs/functions_func.js new file mode 100644 index 00000000..2ccff10e --- /dev/null +++ b/docs/functions_func.js @@ -0,0 +1,25 @@ +var functions_func = +[ + [ "a", "functions_func.html", null ], + [ "b", "functions_func_b.html", null ], + [ "c", "functions_func_c.html", null ], + [ "d", "functions_func_d.html", null ], + [ "e", "functions_func_e.html", null ], + [ "f", "functions_func_f.html", null ], + [ "g", "functions_func_g.html", null ], + [ "h", "functions_func_h.html", null ], + [ "i", "functions_func_i.html", null ], + [ "l", "functions_func_l.html", null ], + [ "m", "functions_func_m.html", null ], + [ "n", "functions_func_n.html", null ], + [ "o", "functions_func_o.html", null ], + [ "p", "functions_func_p.html", null ], + [ "q", "functions_func_q.html", null ], + [ "r", "functions_func_r.html", null ], + [ "s", "functions_func_s.html", null ], + [ "t", "functions_func_t.html", null ], + [ "u", "functions_func_u.html", null ], + [ "v", "functions_func_v.html", null ], + [ "w", "functions_func_w.html", null ], + [ "~", "functions_func_~.html", null ] +]; \ No newline at end of file diff --git a/docs/functions_func_b.html b/docs/functions_func_b.html new file mode 100644 index 00000000..b2baced2 --- /dev/null +++ b/docs/functions_func_b.html @@ -0,0 +1,111 @@ + + + + + + + +SimpleWindow: Class Members - Functions + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented functions with links to the class documentation for each member:
+ +

- b -

+
+
+ + + + diff --git a/docs/functions_func_c.html b/docs/functions_func_c.html new file mode 100644 index 00000000..2217fd07 --- /dev/null +++ b/docs/functions_func_c.html @@ -0,0 +1,128 @@ + + + + + + + +SimpleWindow: Class Members - Functions + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented functions with links to the class documentation for each member:
+ +

- c -

+
+
+ + + + diff --git a/docs/functions_func_d.html b/docs/functions_func_d.html new file mode 100644 index 00000000..73a44446 --- /dev/null +++ b/docs/functions_func_d.html @@ -0,0 +1,114 @@ + + + + + + + +SimpleWindow: Class Members - Functions + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented functions with links to the class documentation for each member:
+ +

- d -

+
+
+ + + + diff --git a/docs/functions_func_e.html b/docs/functions_func_e.html new file mode 100644 index 00000000..bf6d719c --- /dev/null +++ b/docs/functions_func_e.html @@ -0,0 +1,109 @@ + + + + + + + +SimpleWindow: Class Members - Functions + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented functions with links to the class documentation for each member:
+ +

- e -

+
+
+ + + + diff --git a/docs/functions_func_f.html b/docs/functions_func_f.html new file mode 100644 index 00000000..e76a3a27 --- /dev/null +++ b/docs/functions_func_f.html @@ -0,0 +1,112 @@ + + + + + + + +SimpleWindow: Class Members - Functions + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented functions with links to the class documentation for each member:
+ +

- f -

+
+
+ + + + diff --git a/docs/functions_func_g.html b/docs/functions_func_g.html new file mode 100644 index 00000000..298d869b --- /dev/null +++ b/docs/functions_func_g.html @@ -0,0 +1,166 @@ + + + + + + + +SimpleWindow: Class Members - Functions + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented functions with links to the class documentation for each member:
+ +

- g -

+
+
+ + + + diff --git a/docs/functions_func_h.html b/docs/functions_func_h.html new file mode 100644 index 00000000..2798bb53 --- /dev/null +++ b/docs/functions_func_h.html @@ -0,0 +1,109 @@ + + + + + + + +SimpleWindow: Class Members - Functions + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented functions with links to the class documentation for each member:
+ +

- h -

+
+
+ + + + diff --git a/docs/functions_func_i.html b/docs/functions_func_i.html new file mode 100644 index 00000000..7cd5a276 --- /dev/null +++ b/docs/functions_func_i.html @@ -0,0 +1,127 @@ + + + + + + + +SimpleWindow: Class Members - Functions + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented functions with links to the class documentation for each member:
+ +

- i -

+
+
+ + + + diff --git a/docs/functions_func_l.html b/docs/functions_func_l.html new file mode 100644 index 00000000..2e7ae3e6 --- /dev/null +++ b/docs/functions_func_l.html @@ -0,0 +1,112 @@ + + + + + + + +SimpleWindow: Class Members - Functions + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented functions with links to the class documentation for each member:
+ +

- l -

+
+
+ + + + diff --git a/docs/functions_func_m.html b/docs/functions_func_m.html new file mode 100644 index 00000000..64f0d1e0 --- /dev/null +++ b/docs/functions_func_m.html @@ -0,0 +1,117 @@ + + + + + + + +SimpleWindow: Class Members - Functions + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented functions with links to the class documentation for each member:
+ +

- m -

+
+
+ + + + diff --git a/docs/functions_func_n.html b/docs/functions_func_n.html new file mode 100644 index 00000000..78eb5082 --- /dev/null +++ b/docs/functions_func_n.html @@ -0,0 +1,109 @@ + + + + + + + +SimpleWindow: Class Members - Functions + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented functions with links to the class documentation for each member:
+ +

- n -

+
+
+ + + + diff --git a/docs/functions_func_o.html b/docs/functions_func_o.html new file mode 100644 index 00000000..69f5df23 --- /dev/null +++ b/docs/functions_func_o.html @@ -0,0 +1,178 @@ + + + + + + + +SimpleWindow: Class Members - Functions + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented functions with links to the class documentation for each member:
+ +

- o -

+
+
+ + + + diff --git a/docs/functions_func_p.html b/docs/functions_func_p.html new file mode 100644 index 00000000..8c0474c9 --- /dev/null +++ b/docs/functions_func_p.html @@ -0,0 +1,117 @@ + + + + + + + +SimpleWindow: Class Members - Functions + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented functions with links to the class documentation for each member:
+ +

- p -

+
+
+ + + + diff --git a/docs/functions_func_q.html b/docs/functions_func_q.html new file mode 100644 index 00000000..ca5e3fab --- /dev/null +++ b/docs/functions_func_q.html @@ -0,0 +1,108 @@ + + + + + + + +SimpleWindow: Class Members - Functions + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented functions with links to the class documentation for each member:
+ +

- q -

+
+
+ + + + diff --git a/docs/functions_func_r.html b/docs/functions_func_r.html new file mode 100644 index 00000000..bbf6239a --- /dev/null +++ b/docs/functions_func_r.html @@ -0,0 +1,124 @@ + + + + + + + +SimpleWindow: Class Members - Functions + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented functions with links to the class documentation for each member:
+ +

- r -

+
+
+ + + + diff --git a/docs/functions_func_s.html b/docs/functions_func_s.html new file mode 100644 index 00000000..83fc6c99 --- /dev/null +++ b/docs/functions_func_s.html @@ -0,0 +1,158 @@ + + + + + + + +SimpleWindow: Class Members - Functions + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented functions with links to the class documentation for each member:
+ +

- s -

+
+
+ + + + diff --git a/docs/functions_func_t.html b/docs/functions_func_t.html new file mode 100644 index 00000000..e8e125c6 --- /dev/null +++ b/docs/functions_func_t.html @@ -0,0 +1,115 @@ + + + + + + + +SimpleWindow: Class Members - Functions + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented functions with links to the class documentation for each member:
+ +

- t -

+
+
+ + + + diff --git a/docs/functions_func_u.html b/docs/functions_func_u.html new file mode 100644 index 00000000..48ede7a2 --- /dev/null +++ b/docs/functions_func_u.html @@ -0,0 +1,121 @@ + + + + + + + +SimpleWindow: Class Members - Functions + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented functions with links to the class documentation for each member:
+ +

- u -

+
+
+ + + + diff --git a/docs/functions_func_v.html b/docs/functions_func_v.html new file mode 100644 index 00000000..47e7ca6c --- /dev/null +++ b/docs/functions_func_v.html @@ -0,0 +1,108 @@ + + + + + + + +SimpleWindow: Class Members - Functions + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented functions with links to the class documentation for each member:
+ +

- v -

+
+
+ + + + diff --git a/docs/functions_func_w.html b/docs/functions_func_w.html new file mode 100644 index 00000000..ffc022bb --- /dev/null +++ b/docs/functions_func_w.html @@ -0,0 +1,112 @@ + + + + + + + +SimpleWindow: Class Members - Functions + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented functions with links to the class documentation for each member:
+ +

- w -

+
+
+ + + + diff --git a/docs/functions_func_~.html b/docs/functions_func_~.html new file mode 100644 index 00000000..aee072f6 --- /dev/null +++ b/docs/functions_func_~.html @@ -0,0 +1,116 @@ + + + + + + + +SimpleWindow: Class Members - Functions + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented functions with links to the class documentation for each member:
+ +

- ~ -

+
+
+ + + + diff --git a/docs/functions_g.html b/docs/functions_g.html new file mode 100644 index 00000000..a0fcf0b8 --- /dev/null +++ b/docs/functions_g.html @@ -0,0 +1,168 @@ + + + + + + + +SimpleWindow: Class Members + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- g -

+
+
+ + + + diff --git a/docs/functions_h.html b/docs/functions_h.html new file mode 100644 index 00000000..629a0447 --- /dev/null +++ b/docs/functions_h.html @@ -0,0 +1,123 @@ + + + + + + + +SimpleWindow: Class Members + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- h -

+
+
+ + + + diff --git a/docs/functions_i.html b/docs/functions_i.html new file mode 100644 index 00000000..179340cd --- /dev/null +++ b/docs/functions_i.html @@ -0,0 +1,135 @@ + + + + + + + +SimpleWindow: Class Members + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- i -

+
+
+ + + + diff --git a/docs/functions_l.html b/docs/functions_l.html new file mode 100644 index 00000000..f5659e73 --- /dev/null +++ b/docs/functions_l.html @@ -0,0 +1,119 @@ + + + + + + + +SimpleWindow: Class Members + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- l -

+
+
+ + + + diff --git a/docs/functions_m.html b/docs/functions_m.html new file mode 100644 index 00000000..aafc701a --- /dev/null +++ b/docs/functions_m.html @@ -0,0 +1,128 @@ + + + + + + + +SimpleWindow: Class Members + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- m -

+
+
+ + + + diff --git a/docs/functions_n.html b/docs/functions_n.html new file mode 100644 index 00000000..9a8a3f4e --- /dev/null +++ b/docs/functions_n.html @@ -0,0 +1,110 @@ + + + + + + + +SimpleWindow: Class Members + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- n -

+
+
+ + + + diff --git a/docs/functions_o.html b/docs/functions_o.html new file mode 100644 index 00000000..dabef57d --- /dev/null +++ b/docs/functions_o.html @@ -0,0 +1,186 @@ + + + + + + + +SimpleWindow: Class Members + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- o -

+
+
+ + + + diff --git a/docs/functions_p.html b/docs/functions_p.html new file mode 100644 index 00000000..caf18ac5 --- /dev/null +++ b/docs/functions_p.html @@ -0,0 +1,120 @@ + + + + + + + +SimpleWindow: Class Members + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- p -

+
+
+ + + + diff --git a/docs/functions_q.html b/docs/functions_q.html new file mode 100644 index 00000000..caf62b70 --- /dev/null +++ b/docs/functions_q.html @@ -0,0 +1,110 @@ + + + + + + + +SimpleWindow: Class Members + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- q -

+
+
+ + + + diff --git a/docs/functions_r.html b/docs/functions_r.html new file mode 100644 index 00000000..136d8a32 --- /dev/null +++ b/docs/functions_r.html @@ -0,0 +1,133 @@ + + + + + + + +SimpleWindow: Class Members + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- r -

+
+
+ + + + diff --git a/docs/functions_rela.html b/docs/functions_rela.html new file mode 100644 index 00000000..47dbde29 --- /dev/null +++ b/docs/functions_rela.html @@ -0,0 +1,108 @@ + + + + + + + +SimpleWindow: Class Members - Related Symbols + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented related symbols with links to the class documentation for each member:
+
+
+ + + + diff --git a/docs/functions_s.html b/docs/functions_s.html new file mode 100644 index 00000000..cea5201f --- /dev/null +++ b/docs/functions_s.html @@ -0,0 +1,169 @@ + + + + + + + +SimpleWindow: Class Members + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- s -

+
+
+ + + + diff --git a/docs/functions_t.html b/docs/functions_t.html new file mode 100644 index 00000000..cb4cefcc --- /dev/null +++ b/docs/functions_t.html @@ -0,0 +1,130 @@ + + + + + + + +SimpleWindow: Class Members + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- t -

+
+
+ + + + diff --git a/docs/functions_u.html b/docs/functions_u.html new file mode 100644 index 00000000..0173874a --- /dev/null +++ b/docs/functions_u.html @@ -0,0 +1,123 @@ + + + + + + + +SimpleWindow: Class Members + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- u -

+
+
+ + + + diff --git a/docs/functions_v.html b/docs/functions_v.html new file mode 100644 index 00000000..8bdaa067 --- /dev/null +++ b/docs/functions_v.html @@ -0,0 +1,117 @@ + + + + + + + +SimpleWindow: Class Members + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- v -

+
+
+ + + + diff --git a/docs/functions_vars.html b/docs/functions_vars.html new file mode 100644 index 00000000..07268fe6 --- /dev/null +++ b/docs/functions_vars.html @@ -0,0 +1,346 @@ + + + + + + + +SimpleWindow: Class Members - Variables + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented variables with links to the class documentation for each member:
+ +

- a -

+ + +

- b -

+ + +

- c -

+ + +

- e -

+ + +

- f -

+ + +

- g -

+ + +

- h -

+ + +

- i -

+ + +

- l -

+ + +

- m -

+ + +

- n -

+ + +

- o -

+ + +

- p -

+ + +

- q -

+ + +

- r -

+ + +

- s -

+ + +

- t -

+ + +

- u -

+ + +

- v -

+ + +

- w -

+ + +

- x -

+ + +

- y -

+
+
+ + + + diff --git a/docs/functions_w.html b/docs/functions_w.html new file mode 100644 index 00000000..63458f49 --- /dev/null +++ b/docs/functions_w.html @@ -0,0 +1,119 @@ + + + + + + + +SimpleWindow: Class Members + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- w -

+
+
+ + + + diff --git a/docs/functions_x.html b/docs/functions_x.html new file mode 100644 index 00000000..91f33629 --- /dev/null +++ b/docs/functions_x.html @@ -0,0 +1,108 @@ + + + + + + + +SimpleWindow: Class Members + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- x -

+
+
+ + + + diff --git a/docs/functions_y.html b/docs/functions_y.html new file mode 100644 index 00000000..2c3d1709 --- /dev/null +++ b/docs/functions_y.html @@ -0,0 +1,108 @@ + + + + + + + +SimpleWindow: Class Members + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- y -

+
+
+ + + + diff --git a/docs/functions_~.html b/docs/functions_~.html new file mode 100644 index 00000000..9e3b602a --- /dev/null +++ b/docs/functions_~.html @@ -0,0 +1,116 @@ + + + + + + + +SimpleWindow: Class Members + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Here is a list of all documented class members with links to the class documentation for each member:
+ +

- ~ -

+
+
+ + + + diff --git a/docs/hierarchy.html b/docs/hierarchy.html new file mode 100644 index 00000000..07954a8e --- /dev/null +++ b/docs/hierarchy.html @@ -0,0 +1,355 @@ + + + + + + + +SimpleWindow: Class Hierarchy + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
Class Hierarchy
+
+
+
This inheritance list is sorted roughly, but not completely, alphabetically:
+
[detail level 123456]
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 Csw::AppApp类
 Csw::CanvasLayoutTag绝对位置布局方式的布局标记
 Csw::Color颜色
 Csw::CursorHelper用于获取鼠标句柄的工具类
 Csw::Dictionary< TKey, TVal >字典类,内部维护了一个指向std::map的智能指针
 Csw::Dip用于处理设备独立像素(dip)与屏幕像素之间的转换
 Cstd::false_type
 Csw::Font字体类
 Csw::GridColumn网格中的列信息
 Csw::GridLayoutTag网格布局方式的布局标记
 Csw::GridRow网格中的行信息
 Csw::IconHelper用于获取图标句柄的工具类
 Csw::ILayout布局接口
 Csw::ITagTag接口
 Csw::KeyFlagsHttps://learn.microsoft.com/en-us/windows/win32/inputdev/about-keyboard-input#keystroke-message-flags
 Csw::List< T >列表类,内部维护了一个指向std::vector的智能指针
 Csw::List< sw::GridColumn >
 Csw::List< sw::GridRow >
 Csw::ListViewColumn列表视图的列信息
 Csw::MenuBase菜单类型的基类
 Csw::MsgBox消息框类
 Csw::Path用于处理文件路径的工具类
 Csw::Point表示相对于左上角的点坐标
 Csw::ProcMsg对Windows窗口消息的封装
 Csw::ReadOnlyProperty< T >只读属性
 Csw::ReadOnlyProperty< AppQuitMode >
 Csw::ReadOnlyProperty< bool >
 Csw::ReadOnlyProperty< double >
 Csw::ReadOnlyProperty< HINSTANCE >
 Csw::ReadOnlyProperty< HorizontalAlignment >
 Csw::ReadOnlyProperty< HWND >
 Csw::ReadOnlyProperty< int >
 Csw::ReadOnlyProperty< ProgressBarState >
 Csw::ReadOnlyProperty< std::wstring >
 Csw::ReadOnlyProperty< StrList >
 Csw::ReadOnlyProperty< sw::BorderStyle >
 Csw::ReadOnlyProperty< sw::CheckState >
 Csw::ReadOnlyProperty< sw::Color >
 Csw::ReadOnlyProperty< sw::ContextMenu * >
 Csw::ReadOnlyProperty< sw::Font >
 Csw::ReadOnlyProperty< sw::FontWeight >
 Csw::ReadOnlyProperty< sw::HorizontalAlignment >
 Csw::ReadOnlyProperty< sw::LayoutHost * >
 Csw::ReadOnlyProperty< sw::Menu * >
 Csw::ReadOnlyProperty< sw::Orientation >
 Csw::ReadOnlyProperty< sw::Point >
 Csw::ReadOnlyProperty< sw::Rect >
 Csw::ReadOnlyProperty< sw::TextTrimming >
 Csw::ReadOnlyProperty< sw::Thickness >
 Csw::ReadOnlyProperty< sw::UIElement * >
 Csw::ReadOnlyProperty< sw::VerticalAlignment >
 Csw::ReadOnlyProperty< sw::Window * >
 Csw::ReadOnlyProperty< sw::WndBase * >
 Csw::ReadOnlyProperty< TabAlignment >
 Csw::ReadOnlyProperty< TItem >
 Csw::ReadOnlyProperty< uint16_t >
 Csw::ReadOnlyProperty< uint64_t >
 Csw::ReadOnlyProperty< VerticalAlignment >
 Csw::ReadOnlyProperty< wchar_t >
 Csw::ReadOnlyProperty< WindowStartupLocation >
 Csw::ReadOnlyProperty< WindowState >
 Csw::Rect表示一个矩形区域
 Csw::RoutedEventArgs路由事件的参数
 Csw::Screen屏幕相关
 Csw::Size尺寸
 Csw::Thickness表示矩形区域周围边框的厚度
 Cstd::true_type
 Csw::Utils工具类
 Csw::WndBase表示一个Windows窗口,是所有窗口和控件的基类
 Csw::WriteOnlyProperty< T >只写属性
 Csw::WriteOnlyProperty< AppQuitMode >
 Csw::WriteOnlyProperty< bool >
 Csw::WriteOnlyProperty< double >
 Csw::WriteOnlyProperty< HorizontalAlignment >
 Csw::WriteOnlyProperty< int >
 Csw::WriteOnlyProperty< ProgressBarState >
 Csw::WriteOnlyProperty< std::wstring >
 Csw::WriteOnlyProperty< sw::BorderStyle >
 Csw::WriteOnlyProperty< sw::CheckState >
 Csw::WriteOnlyProperty< sw::Color >
 Csw::WriteOnlyProperty< sw::ContextMenu * >
 Csw::WriteOnlyProperty< sw::Font >
 Csw::WriteOnlyProperty< sw::FontWeight >
 Csw::WriteOnlyProperty< sw::HorizontalAlignment >
 Csw::WriteOnlyProperty< sw::LayoutHost * >
 Csw::WriteOnlyProperty< sw::Menu * >
 Csw::WriteOnlyProperty< sw::Orientation >
 Csw::WriteOnlyProperty< sw::Rect >
 Csw::WriteOnlyProperty< sw::TextTrimming >
 Csw::WriteOnlyProperty< sw::Thickness >
 Csw::WriteOnlyProperty< sw::VerticalAlignment >
 Csw::WriteOnlyProperty< TabAlignment >
 Csw::WriteOnlyProperty< uint16_t >
 Csw::WriteOnlyProperty< uint64_t >
 Csw::WriteOnlyProperty< VerticalAlignment >
 Csw::WriteOnlyProperty< wchar_t >
 Csw::WriteOnlyProperty< WindowStartupLocation >
 Csw::WriteOnlyProperty< WindowState >
+
+
+
+ + + + diff --git a/docs/hierarchy.js b/docs/hierarchy.js new file mode 100644 index 00000000..d7ab2952 --- /dev/null +++ b/docs/hierarchy.js @@ -0,0 +1,289 @@ +var hierarchy = +[ + [ "sw::App", "classsw_1_1_app.html", null ], + [ "sw::CanvasLayoutTag", "structsw_1_1_canvas_layout_tag.html", null ], + [ "sw::Color", "structsw_1_1_color.html", null ], + [ "sw::CursorHelper", "classsw_1_1_cursor_helper.html", null ], + [ "sw::Dictionary< TKey, TVal >", "classsw_1_1_dictionary.html", null ], + [ "sw::Dip", "classsw_1_1_dip.html", null ], + [ "std::false_type", null, [ + [ "sw::_HasEventType< T, typename >", "structsw_1_1___has_event_type.html", [ + [ "sw::_IsTypedRoutedEventArgs< T >", "structsw_1_1___is_typed_routed_event_args.html", null ] + ] ] + ] ], + [ "sw::Font", "classsw_1_1_font.html", null ], + [ "sw::GridColumn", "structsw_1_1_grid_column.html", [ + [ "sw::AutoSizeGridColumn", "structsw_1_1_auto_size_grid_column.html", null ], + [ "sw::FillRemainGridColumn", "structsw_1_1_fill_remain_grid_column.html", null ], + [ "sw::FixSizeGridColumn", "structsw_1_1_fix_size_grid_column.html", null ] + ] ], + [ "sw::GridLayoutTag", "structsw_1_1_grid_layout_tag.html", null ], + [ "sw::GridRow", "structsw_1_1_grid_row.html", [ + [ "sw::AutoSizeGridRow", "structsw_1_1_auto_size_grid_row.html", null ], + [ "sw::FillRemainGridRow", "structsw_1_1_fill_remain_grid_row.html", null ], + [ "sw::FixSizeGridRow", "structsw_1_1_fix_size_grid_row.html", null ] + ] ], + [ "sw::IconHelper", "classsw_1_1_icon_helper.html", null ], + [ "sw::ILayout", "classsw_1_1_i_layout.html", [ + [ "sw::LayoutHost", "classsw_1_1_layout_host.html", [ + [ "sw::CanvasLayout", "classsw_1_1_canvas_layout.html", null ], + [ "sw::DockLayout", "classsw_1_1_dock_layout.html", null ], + [ "sw::FillLayout", "classsw_1_1_fill_layout.html", null ], + [ "sw::GridLayout", "classsw_1_1_grid_layout.html", null ], + [ "sw::StackLayoutH", "classsw_1_1_stack_layout_h.html", [ + [ "sw::StackLayout", "classsw_1_1_stack_layout.html", null ] + ] ], + [ "sw::StackLayoutV", "classsw_1_1_stack_layout_v.html", [ + [ "sw::StackLayout", "classsw_1_1_stack_layout.html", null ] + ] ], + [ "sw::UniformGridLayout", "classsw_1_1_uniform_grid_layout.html", null ], + [ "sw::WrapLayoutH", "classsw_1_1_wrap_layout_h.html", [ + [ "sw::WrapLayout", "classsw_1_1_wrap_layout.html", null ] + ] ], + [ "sw::WrapLayoutV", "classsw_1_1_wrap_layout_v.html", [ + [ "sw::WrapLayout", "classsw_1_1_wrap_layout.html", null ] + ] ] + ] ], + [ "sw::UIElement", "classsw_1_1_u_i_element.html", [ + [ "sw::Control", "classsw_1_1_control.html", [ + [ "sw::ItemsControl< StrList >", "classsw_1_1_items_control.html", [ + [ "sw::ListView", "classsw_1_1_list_view.html", null ] + ] ], + [ "sw::ButtonBase", "classsw_1_1_button_base.html", [ + [ "sw::Button", "classsw_1_1_button.html", null ], + [ "sw::CheckableButton", "classsw_1_1_checkable_button.html", [ + [ "sw::CheckBox", "classsw_1_1_check_box.html", null ], + [ "sw::RadioButton", "classsw_1_1_radio_button.html", null ] + ] ] + ] ], + [ "sw::ItemsControl< TItem >", "classsw_1_1_items_control.html", [ + [ "sw::ComboBox", "classsw_1_1_combo_box.html", null ], + [ "sw::ListBox", "classsw_1_1_list_box.html", null ] + ] ], + [ "sw::PanelBase", "classsw_1_1_panel_base.html", [ + [ "sw::GroupBox", "classsw_1_1_group_box.html", null ], + [ "sw::Panel", "classsw_1_1_panel.html", [ + [ "sw::Canvas", "classsw_1_1_canvas.html", null ], + [ "sw::DockPanel", "classsw_1_1_dock_panel.html", null ], + [ "sw::Grid", "classsw_1_1_grid.html", null ], + [ "sw::StackPanel", "classsw_1_1_stack_panel.html", null ], + [ "sw::UniformGrid", "classsw_1_1_uniform_grid.html", null ], + [ "sw::WrapPanel", "classsw_1_1_wrap_panel.html", null ] + ] ] + ] ], + [ "sw::ProgressBar", "classsw_1_1_progress_bar.html", null ], + [ "sw::Slider", "classsw_1_1_slider.html", null ], + [ "sw::StaticControl", "classsw_1_1_static_control.html", [ + [ "sw::Label", "classsw_1_1_label.html", null ] + ] ], + [ "sw::TabControl", "classsw_1_1_tab_control.html", null ], + [ "sw::TextBoxBase", "classsw_1_1_text_box_base.html", [ + [ "sw::PasswordBox", "classsw_1_1_password_box.html", null ], + [ "sw::TextBox", "classsw_1_1_text_box.html", null ] + ] ] + ] ], + [ "sw::Layer", "classsw_1_1_layer.html", [ + [ "sw::PanelBase", "classsw_1_1_panel_base.html", null ], + [ "sw::Window", "classsw_1_1_window.html", null ] + ] ] + ] ] + ] ], + [ "sw::ITag", "classsw_1_1_i_tag.html", [ + [ "sw::MenuItem", "classsw_1_1_menu_item.html", null ], + [ "sw::UIElement", "classsw_1_1_u_i_element.html", null ] + ] ], + [ "sw::KeyFlags", "structsw_1_1_key_flags.html", null ], + [ "sw::List< T >", "classsw_1_1_list.html", null ], + [ "sw::List< sw::GridColumn >", "classsw_1_1_list.html", null ], + [ "sw::List< sw::GridRow >", "classsw_1_1_list.html", null ], + [ "sw::ListViewColumn", "structsw_1_1_list_view_column.html", null ], + [ "sw::MenuBase", "classsw_1_1_menu_base.html", [ + [ "sw::ContextMenu", "classsw_1_1_context_menu.html", null ], + [ "sw::Menu", "classsw_1_1_menu.html", null ] + ] ], + [ "sw::MsgBox", "classsw_1_1_msg_box.html", null ], + [ "sw::Path", "classsw_1_1_path.html", null ], + [ "sw::Point", "structsw_1_1_point.html", null ], + [ "sw::ProcMsg", "structsw_1_1_proc_msg.html", null ], + [ "sw::ReadOnlyProperty< T >", "classsw_1_1_read_only_property.html", [ + [ "sw::Property< int >", "classsw_1_1_property.html", null ], + [ "sw::Property< std::wstring >", "classsw_1_1_property.html", null ], + [ "sw::Property< AppQuitMode >", "classsw_1_1_property.html", null ], + [ "sw::Property< bool >", "classsw_1_1_property.html", null ], + [ "sw::Property< sw::CheckState >", "classsw_1_1_property.html", null ], + [ "sw::Property< sw::HorizontalAlignment >", "classsw_1_1_property.html", null ], + [ "sw::Property< sw::VerticalAlignment >", "classsw_1_1_property.html", null ], + [ "sw::Property< sw::TextTrimming >", "classsw_1_1_property.html", null ], + [ "sw::Property< sw::LayoutHost * >", "classsw_1_1_property.html", null ], + [ "sw::Property< double >", "classsw_1_1_property.html", null ], + [ "sw::Property< sw::BorderStyle >", "classsw_1_1_property.html", null ], + [ "sw::Property< wchar_t >", "classsw_1_1_property.html", null ], + [ "sw::Property< uint16_t >", "classsw_1_1_property.html", null ], + [ "sw::Property< ProgressBarState >", "classsw_1_1_property.html", null ], + [ "sw::Property< sw::Orientation >", "classsw_1_1_property.html", null ], + [ "sw::Property< TabAlignment >", "classsw_1_1_property.html", null ], + [ "sw::Property< sw::Thickness >", "classsw_1_1_property.html", null ], + [ "sw::Property< HorizontalAlignment >", "classsw_1_1_property.html", null ], + [ "sw::Property< VerticalAlignment >", "classsw_1_1_property.html", null ], + [ "sw::Property< uint64_t >", "classsw_1_1_property.html", null ], + [ "sw::Property< sw::ContextMenu * >", "classsw_1_1_property.html", null ], + [ "sw::Property< sw::Color >", "classsw_1_1_property.html", null ], + [ "sw::Property< WindowStartupLocation >", "classsw_1_1_property.html", null ], + [ "sw::Property< WindowState >", "classsw_1_1_property.html", null ], + [ "sw::Property< sw::Menu * >", "classsw_1_1_property.html", null ], + [ "sw::Property< sw::Font >", "classsw_1_1_property.html", null ], + [ "sw::Property< sw::FontWeight >", "classsw_1_1_property.html", null ], + [ "sw::Property< sw::Rect >", "classsw_1_1_property.html", null ], + [ "sw::Property< T >", "classsw_1_1_property.html", null ] + ] ], + [ "sw::ReadOnlyProperty< AppQuitMode >", "classsw_1_1_read_only_property.html", null ], + [ "sw::ReadOnlyProperty< bool >", "classsw_1_1_read_only_property.html", null ], + [ "sw::ReadOnlyProperty< double >", "classsw_1_1_read_only_property.html", null ], + [ "sw::ReadOnlyProperty< HINSTANCE >", "classsw_1_1_read_only_property.html", null ], + [ "sw::ReadOnlyProperty< HorizontalAlignment >", "classsw_1_1_read_only_property.html", null ], + [ "sw::ReadOnlyProperty< HWND >", "classsw_1_1_read_only_property.html", null ], + [ "sw::ReadOnlyProperty< int >", "classsw_1_1_read_only_property.html", null ], + [ "sw::ReadOnlyProperty< ProgressBarState >", "classsw_1_1_read_only_property.html", null ], + [ "sw::ReadOnlyProperty< std::wstring >", "classsw_1_1_read_only_property.html", null ], + [ "sw::ReadOnlyProperty< StrList >", "classsw_1_1_read_only_property.html", null ], + [ "sw::ReadOnlyProperty< sw::BorderStyle >", "classsw_1_1_read_only_property.html", null ], + [ "sw::ReadOnlyProperty< sw::CheckState >", "classsw_1_1_read_only_property.html", null ], + [ "sw::ReadOnlyProperty< sw::Color >", "classsw_1_1_read_only_property.html", null ], + [ "sw::ReadOnlyProperty< sw::ContextMenu * >", "classsw_1_1_read_only_property.html", null ], + [ "sw::ReadOnlyProperty< sw::Font >", "classsw_1_1_read_only_property.html", null ], + [ "sw::ReadOnlyProperty< sw::FontWeight >", "classsw_1_1_read_only_property.html", null ], + [ "sw::ReadOnlyProperty< sw::HorizontalAlignment >", "classsw_1_1_read_only_property.html", null ], + [ "sw::ReadOnlyProperty< sw::LayoutHost * >", "classsw_1_1_read_only_property.html", null ], + [ "sw::ReadOnlyProperty< sw::Menu * >", "classsw_1_1_read_only_property.html", null ], + [ "sw::ReadOnlyProperty< sw::Orientation >", "classsw_1_1_read_only_property.html", null ], + [ "sw::ReadOnlyProperty< sw::Point >", "classsw_1_1_read_only_property.html", null ], + [ "sw::ReadOnlyProperty< sw::Rect >", "classsw_1_1_read_only_property.html", null ], + [ "sw::ReadOnlyProperty< sw::TextTrimming >", "classsw_1_1_read_only_property.html", null ], + [ "sw::ReadOnlyProperty< sw::Thickness >", "classsw_1_1_read_only_property.html", null ], + [ "sw::ReadOnlyProperty< sw::UIElement * >", "classsw_1_1_read_only_property.html", null ], + [ "sw::ReadOnlyProperty< sw::VerticalAlignment >", "classsw_1_1_read_only_property.html", null ], + [ "sw::ReadOnlyProperty< sw::Window * >", "classsw_1_1_read_only_property.html", null ], + [ "sw::ReadOnlyProperty< sw::WndBase * >", "classsw_1_1_read_only_property.html", null ], + [ "sw::ReadOnlyProperty< TabAlignment >", "classsw_1_1_read_only_property.html", null ], + [ "sw::ReadOnlyProperty< TItem >", "classsw_1_1_read_only_property.html", null ], + [ "sw::ReadOnlyProperty< uint16_t >", "classsw_1_1_read_only_property.html", null ], + [ "sw::ReadOnlyProperty< uint64_t >", "classsw_1_1_read_only_property.html", null ], + [ "sw::ReadOnlyProperty< VerticalAlignment >", "classsw_1_1_read_only_property.html", null ], + [ "sw::ReadOnlyProperty< wchar_t >", "classsw_1_1_read_only_property.html", null ], + [ "sw::ReadOnlyProperty< WindowStartupLocation >", "classsw_1_1_read_only_property.html", null ], + [ "sw::ReadOnlyProperty< WindowState >", "classsw_1_1_read_only_property.html", null ], + [ "sw::Rect", "structsw_1_1_rect.html", null ], + [ "sw::RoutedEventArgs", "structsw_1_1_routed_event_args.html", [ + [ "sw::RoutedEventArgsOfType< UIElement_GotChar >", "structsw_1_1_routed_event_args_of_type.html", [ + [ "sw::GotCharEventArgs", "structsw_1_1_got_char_event_args.html", null ] + ] ], + [ "sw::RoutedEventArgsOfType< UIElement_KeyDown >", "structsw_1_1_routed_event_args_of_type.html", [ + [ "sw::KeyDownEventArgs", "structsw_1_1_key_down_event_args.html", null ] + ] ], + [ "sw::RoutedEventArgsOfType< UIElement_KeyUp >", "structsw_1_1_routed_event_args_of_type.html", [ + [ "sw::KeyUpEventArgs", "structsw_1_1_key_up_event_args.html", null ] + ] ], + [ "sw::RoutedEventArgsOfType< ListView_CheckStateChanged >", "structsw_1_1_routed_event_args_of_type.html", [ + [ "sw::ListViewCheckStateChangedEventArgs", "structsw_1_1_list_view_check_state_changed_event_args.html", null ] + ] ], + [ "sw::RoutedEventArgsOfType< UIElement_MouseButtonDown >", "structsw_1_1_routed_event_args_of_type.html", [ + [ "sw::MouseButtonDownEventArgs", "structsw_1_1_mouse_button_down_event_args.html", null ] + ] ], + [ "sw::RoutedEventArgsOfType< UIElement_MouseButtonUp >", "structsw_1_1_routed_event_args_of_type.html", [ + [ "sw::MouseButtonUpEventArgs", "structsw_1_1_mouse_button_up_event_args.html", null ] + ] ], + [ "sw::RoutedEventArgsOfType< UIElement_MouseMove >", "structsw_1_1_routed_event_args_of_type.html", [ + [ "sw::MouseMoveEventArgs", "structsw_1_1_mouse_move_event_args.html", null ] + ] ], + [ "sw::RoutedEventArgsOfType< UIElement_MouseWheel >", "structsw_1_1_routed_event_args_of_type.html", [ + [ "sw::MouseWheelEventArgs", "structsw_1_1_mouse_wheel_event_args.html", null ] + ] ], + [ "sw::RoutedEventArgsOfType< UIElement_PositionChanged >", "structsw_1_1_routed_event_args_of_type.html", [ + [ "sw::PositionChangedEventArgs", "structsw_1_1_position_changed_event_args.html", null ] + ] ], + [ "sw::RoutedEventArgsOfType< Layer_Scrolling >", "structsw_1_1_routed_event_args_of_type.html", [ + [ "sw::ScrollingEventArgs", "structsw_1_1_scrolling_event_args.html", null ] + ] ], + [ "sw::RoutedEventArgsOfType< UIElement_ShowContextMenu >", "structsw_1_1_routed_event_args_of_type.html", [ + [ "sw::ShowContextMenuEventArgs", "structsw_1_1_show_context_menu_event_args.html", null ] + ] ], + [ "sw::RoutedEventArgsOfType< UIElement_SizeChanged >", "structsw_1_1_routed_event_args_of_type.html", [ + [ "sw::SizeChangedEventArgs", "structsw_1_1_size_changed_event_args.html", null ] + ] ], + [ "sw::RoutedEventArgsOfType< Window_Closing >", "structsw_1_1_routed_event_args_of_type.html", [ + [ "sw::WindowClosingEventArgs", "structsw_1_1_window_closing_event_args.html", null ] + ] ], + [ "sw::ListViewHeaderClickedEventArgs", "structsw_1_1_list_view_header_clicked_event_args.html", null ], + [ "sw::ListViewItemClickedEventArgs", "structsw_1_1_list_view_item_clicked_event_args.html", null ], + [ "sw::RoutedEventArgsOfType< TYPE >", "structsw_1_1_routed_event_args_of_type.html", null ] + ] ], + [ "sw::Screen", "classsw_1_1_screen.html", null ], + [ "sw::Size", "structsw_1_1_size.html", null ], + [ "sw::Thickness", "structsw_1_1_thickness.html", null ], + [ "std::true_type", null, [ + [ "sw::_HasEventType< T, decltype(void(std::declval< T >().EventType))>", "structsw_1_1___has_event_type_3_01_t_00_01decltype_07void_07std_1_1declval_3_01_t_01_4_07_08_8_event_type_08_08_4.html", null ] + ] ], + [ "sw::Utils", "classsw_1_1_utils.html", null ], + [ "sw::WndBase", "classsw_1_1_wnd_base.html", [ + [ "sw::UIElement", "classsw_1_1_u_i_element.html", null ] + ] ], + [ "sw::WriteOnlyProperty< T >", "classsw_1_1_write_only_property.html", [ + [ "sw::Property< int >", "classsw_1_1_property.html", null ], + [ "sw::Property< std::wstring >", "classsw_1_1_property.html", null ], + [ "sw::Property< AppQuitMode >", "classsw_1_1_property.html", null ], + [ "sw::Property< bool >", "classsw_1_1_property.html", null ], + [ "sw::Property< sw::CheckState >", "classsw_1_1_property.html", null ], + [ "sw::Property< sw::HorizontalAlignment >", "classsw_1_1_property.html", null ], + [ "sw::Property< sw::VerticalAlignment >", "classsw_1_1_property.html", null ], + [ "sw::Property< sw::TextTrimming >", "classsw_1_1_property.html", null ], + [ "sw::Property< sw::LayoutHost * >", "classsw_1_1_property.html", null ], + [ "sw::Property< double >", "classsw_1_1_property.html", null ], + [ "sw::Property< sw::BorderStyle >", "classsw_1_1_property.html", null ], + [ "sw::Property< wchar_t >", "classsw_1_1_property.html", null ], + [ "sw::Property< uint16_t >", "classsw_1_1_property.html", null ], + [ "sw::Property< ProgressBarState >", "classsw_1_1_property.html", null ], + [ "sw::Property< sw::Orientation >", "classsw_1_1_property.html", null ], + [ "sw::Property< TabAlignment >", "classsw_1_1_property.html", null ], + [ "sw::Property< sw::Thickness >", "classsw_1_1_property.html", null ], + [ "sw::Property< HorizontalAlignment >", "classsw_1_1_property.html", null ], + [ "sw::Property< VerticalAlignment >", "classsw_1_1_property.html", null ], + [ "sw::Property< uint64_t >", "classsw_1_1_property.html", null ], + [ "sw::Property< sw::ContextMenu * >", "classsw_1_1_property.html", null ], + [ "sw::Property< sw::Color >", "classsw_1_1_property.html", null ], + [ "sw::Property< WindowStartupLocation >", "classsw_1_1_property.html", null ], + [ "sw::Property< WindowState >", "classsw_1_1_property.html", null ], + [ "sw::Property< sw::Menu * >", "classsw_1_1_property.html", null ], + [ "sw::Property< sw::Font >", "classsw_1_1_property.html", null ], + [ "sw::Property< sw::FontWeight >", "classsw_1_1_property.html", null ], + [ "sw::Property< sw::Rect >", "classsw_1_1_property.html", null ], + [ "sw::Property< T >", "classsw_1_1_property.html", null ] + ] ], + [ "sw::WriteOnlyProperty< AppQuitMode >", "classsw_1_1_write_only_property.html", null ], + [ "sw::WriteOnlyProperty< bool >", "classsw_1_1_write_only_property.html", null ], + [ "sw::WriteOnlyProperty< double >", "classsw_1_1_write_only_property.html", null ], + [ "sw::WriteOnlyProperty< HorizontalAlignment >", "classsw_1_1_write_only_property.html", null ], + [ "sw::WriteOnlyProperty< int >", "classsw_1_1_write_only_property.html", null ], + [ "sw::WriteOnlyProperty< ProgressBarState >", "classsw_1_1_write_only_property.html", null ], + [ "sw::WriteOnlyProperty< std::wstring >", "classsw_1_1_write_only_property.html", null ], + [ "sw::WriteOnlyProperty< sw::BorderStyle >", "classsw_1_1_write_only_property.html", null ], + [ "sw::WriteOnlyProperty< sw::CheckState >", "classsw_1_1_write_only_property.html", null ], + [ "sw::WriteOnlyProperty< sw::Color >", "classsw_1_1_write_only_property.html", null ], + [ "sw::WriteOnlyProperty< sw::ContextMenu * >", "classsw_1_1_write_only_property.html", null ], + [ "sw::WriteOnlyProperty< sw::Font >", "classsw_1_1_write_only_property.html", null ], + [ "sw::WriteOnlyProperty< sw::FontWeight >", "classsw_1_1_write_only_property.html", null ], + [ "sw::WriteOnlyProperty< sw::HorizontalAlignment >", "classsw_1_1_write_only_property.html", null ], + [ "sw::WriteOnlyProperty< sw::LayoutHost * >", "classsw_1_1_write_only_property.html", null ], + [ "sw::WriteOnlyProperty< sw::Menu * >", "classsw_1_1_write_only_property.html", null ], + [ "sw::WriteOnlyProperty< sw::Orientation >", "classsw_1_1_write_only_property.html", null ], + [ "sw::WriteOnlyProperty< sw::Rect >", "classsw_1_1_write_only_property.html", null ], + [ "sw::WriteOnlyProperty< sw::TextTrimming >", "classsw_1_1_write_only_property.html", null ], + [ "sw::WriteOnlyProperty< sw::Thickness >", "classsw_1_1_write_only_property.html", null ], + [ "sw::WriteOnlyProperty< sw::VerticalAlignment >", "classsw_1_1_write_only_property.html", null ], + [ "sw::WriteOnlyProperty< TabAlignment >", "classsw_1_1_write_only_property.html", null ], + [ "sw::WriteOnlyProperty< uint16_t >", "classsw_1_1_write_only_property.html", null ], + [ "sw::WriteOnlyProperty< uint64_t >", "classsw_1_1_write_only_property.html", null ], + [ "sw::WriteOnlyProperty< VerticalAlignment >", "classsw_1_1_write_only_property.html", null ], + [ "sw::WriteOnlyProperty< wchar_t >", "classsw_1_1_write_only_property.html", null ], + [ "sw::WriteOnlyProperty< WindowStartupLocation >", "classsw_1_1_write_only_property.html", null ], + [ "sw::WriteOnlyProperty< WindowState >", "classsw_1_1_write_only_property.html", null ] +]; \ No newline at end of file diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 00000000..1abb7df3 --- /dev/null +++ b/docs/index.html @@ -0,0 +1,107 @@ + + + + + + + +SimpleWindow: Main Page + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SimpleWindow +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ +
+
SimpleWindow Documentation
+
+
+ +
+
+ + + + diff --git a/docs/jquery.js b/docs/jquery.js new file mode 100644 index 00000000..1dffb65b --- /dev/null +++ b/docs/jquery.js @@ -0,0 +1,34 @@ +/*! jQuery v3.6.0 | (c) OpenJS Foundation and other contributors | jquery.org/license */ +!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.6.0",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ye(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=S)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return g(t.replace($,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[S]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+S+"-]").length||v.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},j=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&y(p,e)?-1:t==C||t.ownerDocument==p&&y(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&E&&!N[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?S.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?S.grep(e,function(e){return e===n!==r}):"string"!=typeof n?S.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),N.test(r[1])&&S.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,D=S(E);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=E.createDocumentFragment().appendChild(E.createElement("div")),(fe=E.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),y.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="",y.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="",y.option=!!ce.lastChild;var ge={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?S.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n",""]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d\s*$/g;function je(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var _t,zt=[],Ut=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=zt.pop()||S.expando+"_"+wt.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Ut.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ut.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Ut,"$1"+r):!1!==e.jsonp&&(e.url+=(Tt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?S(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,zt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((_t=E.implementation.createHTMLDocument("").body).innerHTML="
",2===_t.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,"position"),c=S(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),u=S.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===S.css(e,"position"))e=e.offsetParent;return e||re})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;S.fn[t]=function(e){return $(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=Fe(y.pixelPosition,function(e,t){if(t)return t=We(e,n),Pe.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return $(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){S.fn[n]=function(e,t){return 0",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=y(e||this.defaultElement||this)[0],this.element=y(e),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=y(),this.hoverable=y(),this.focusable=y(),this.classesElementLookup={},e!==this&&(y.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=y(e.style?e.ownerDocument:e.document||e),this.window=y(this.document[0].defaultView||this.document[0].parentWindow)),this.options=y.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:y.noop,_create:y.noop,_init:y.noop,destroy:function(){var i=this;this._destroy(),y.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:y.noop,widget:function(){return this.element},option:function(t,e){var i,s,n,o=t;if(0===arguments.length)return y.widget.extend({},this.options);if("string"==typeof t)if(o={},t=(i=t.split(".")).shift(),i.length){for(s=o[t]=y.widget.extend({},this.options[t]),n=0;n
"),i=e.children()[0];return y("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),s=t-i},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.widthx(D(s),D(n))?o.important="horizontal":o.important="vertical",p.using.call(this,t,o)}),h.offset(y.extend(l,{using:t}))})},y.ui.position={fit:{left:function(t,e){var i=e.within,s=i.isWindow?i.scrollLeft:i.offset.left,n=i.width,o=t.left-e.collisionPosition.marginLeft,h=s-o,a=o+e.collisionWidth-n-s;e.collisionWidth>n?0n?0=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),y.ui.plugin={add:function(t,e,i){var s,n=y.ui[t].prototype;for(s in i)n.plugins[s]=n.plugins[s]||[],n.plugins[s].push([e,i[s]])},call:function(t,e,i,s){var n,o=t.plugins[e];if(o&&(s||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(n=0;n").css({overflow:"hidden",position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,t={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(t),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(t),this._proportionallyResize()),this._setupHandles(),e.autoHide&&y(this.element).on("mouseenter",function(){e.disabled||(i._removeClass("ui-resizable-autohide"),i._handles.show())}).on("mouseleave",function(){e.disabled||i.resizing||(i._addClass("ui-resizable-autohide"),i._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy(),this._addedHandles.remove();function t(t){y(t).removeData("resizable").removeData("ui-resizable").off(".resizable")}var e;return this.elementIsWrapper&&(t(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),t(this.originalElement),this},_setOption:function(t,e){switch(this._super(t,e),t){case"handles":this._removeHandles(),this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!e}},_setupHandles:function(){var t,e,i,s,n,o=this.options,h=this;if(this.handles=o.handles||(y(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=y(),this._addedHandles=y(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),i=this.handles.split(","),this.handles={},e=0;e"),this._addClass(n,"ui-resizable-handle "+s),n.css({zIndex:o.zIndex}),this.handles[t]=".ui-resizable-"+t,this.element.children(this.handles[t]).length||(this.element.append(n),this._addedHandles=this._addedHandles.add(n));this._renderAxis=function(t){var e,i,s;for(e in t=t||this.element,this.handles)this.handles[e].constructor===String?this.handles[e]=this.element.children(this.handles[e]).first().show():(this.handles[e].jquery||this.handles[e].nodeType)&&(this.handles[e]=y(this.handles[e]),this._on(this.handles[e],{mousedown:h._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(i=y(this.handles[e],this.element),s=/sw|ne|nw|se|n|s/.test(e)?i.outerHeight():i.outerWidth(),i=["padding",/ne|nw|n/.test(e)?"Top":/se|sw|s/.test(e)?"Bottom":/^e$/.test(e)?"Right":"Left"].join(""),t.css(i,s),this._proportionallyResize()),this._handles=this._handles.add(this.handles[e])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){h.resizing||(this.className&&(n=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),h.axis=n&&n[1]?n[1]:"se")}),o.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(t){var e,i,s=!1;for(e in this.handles)(i=y(this.handles[e])[0])!==t.target&&!y.contains(i,t.target)||(s=!0);return!this.options.disabled&&s},_mouseStart:function(t){var e,i,s=this.options,n=this.element;return this.resizing=!0,this._renderProxy(),e=this._num(this.helper.css("left")),i=this._num(this.helper.css("top")),s.containment&&(e+=y(s.containment).scrollLeft()||0,i+=y(s.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:e,top:i},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:n.width(),height:n.height()},this.originalSize=this._helper?{width:n.outerWidth(),height:n.outerHeight()}:{width:n.width(),height:n.height()},this.sizeDiff={width:n.outerWidth()-n.width(),height:n.outerHeight()-n.height()},this.originalPosition={left:e,top:i},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof s.aspectRatio?s.aspectRatio:this.originalSize.width/this.originalSize.height||1,s=y(".ui-resizable-"+this.axis).css("cursor"),y("body").css("cursor","auto"===s?this.axis+"-resize":s),this._addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var e=this.originalMousePosition,i=this.axis,s=t.pageX-e.left||0,e=t.pageY-e.top||0,i=this._change[i];return this._updatePrevProperties(),i&&(e=i.apply(this,[t,s,e]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(e=this._updateRatio(e,t)),e=this._respectSize(e,t),this._updateCache(e),this._propagate("resize",t),e=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),y.isEmptyObject(e)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges())),!1},_mouseStop:function(t){this.resizing=!1;var e,i,s,n=this.options,o=this;return this._helper&&(s=(e=(i=this._proportionallyResizeElements).length&&/textarea/i.test(i[0].nodeName))&&this._hasScroll(i[0],"left")?0:o.sizeDiff.height,i=e?0:o.sizeDiff.width,e={width:o.helper.width()-i,height:o.helper.height()-s},i=parseFloat(o.element.css("left"))+(o.position.left-o.originalPosition.left)||null,s=parseFloat(o.element.css("top"))+(o.position.top-o.originalPosition.top)||null,n.animate||this.element.css(y.extend(e,{top:s,left:i})),o.helper.height(o.size.height),o.helper.width(o.size.width),this._helper&&!n.animate&&this._proportionallyResize()),y("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,i,s=this.options,n={minWidth:this._isNumber(s.minWidth)?s.minWidth:0,maxWidth:this._isNumber(s.maxWidth)?s.maxWidth:1/0,minHeight:this._isNumber(s.minHeight)?s.minHeight:0,maxHeight:this._isNumber(s.maxHeight)?s.maxHeight:1/0};(this._aspectRatio||t)&&(e=n.minHeight*this.aspectRatio,i=n.minWidth/this.aspectRatio,s=n.maxHeight*this.aspectRatio,t=n.maxWidth/this.aspectRatio,e>n.minWidth&&(n.minWidth=e),i>n.minHeight&&(n.minHeight=i),st.width,h=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,a=this.originalPosition.left+this.originalSize.width,r=this.originalPosition.top+this.originalSize.height,l=/sw|nw|w/.test(i),i=/nw|ne|n/.test(i);return o&&(t.width=e.minWidth),h&&(t.height=e.minHeight),s&&(t.width=e.maxWidth),n&&(t.height=e.maxHeight),o&&l&&(t.left=a-e.minWidth),s&&l&&(t.left=a-e.maxWidth),h&&i&&(t.top=r-e.minHeight),n&&i&&(t.top=r-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,i=[],s=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],n=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];e<4;e++)i[e]=parseFloat(s[e])||0,i[e]+=parseFloat(n[e])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;e").css({overflow:"hidden"}),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++e.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize;return{left:this.originalPosition.left+e,width:i.width-e}},n:function(t,e,i){var s=this.originalSize;return{top:this.originalPosition.top+i,height:s.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(t,e,i){return y.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,e,i]))},sw:function(t,e,i){return y.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,e,i]))},ne:function(t,e,i){return y.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,e,i]))},nw:function(t,e,i){return y.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,e,i]))}},_propagate:function(t,e){y.ui.plugin.call(this,t,[e,this.ui()]),"resize"!==t&&this._trigger(t,e,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),y.ui.plugin.add("resizable","animate",{stop:function(e){var i=y(this).resizable("instance"),t=i.options,s=i._proportionallyResizeElements,n=s.length&&/textarea/i.test(s[0].nodeName),o=n&&i._hasScroll(s[0],"left")?0:i.sizeDiff.height,h=n?0:i.sizeDiff.width,n={width:i.size.width-h,height:i.size.height-o},h=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,o=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(y.extend(n,o&&h?{top:o,left:h}:{}),{duration:t.animateDuration,easing:t.animateEasing,step:function(){var t={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};s&&s.length&&y(s[0]).css({width:t.width,height:t.height}),i._updateCache(t),i._propagate("resize",e)}})}}),y.ui.plugin.add("resizable","containment",{start:function(){var i,s,n=y(this).resizable("instance"),t=n.options,e=n.element,o=t.containment,h=o instanceof y?o.get(0):/parent/.test(o)?e.parent().get(0):o;h&&(n.containerElement=y(h),/document/.test(o)||o===document?(n.containerOffset={left:0,top:0},n.containerPosition={left:0,top:0},n.parentData={element:y(document),left:0,top:0,width:y(document).width(),height:y(document).height()||document.body.parentNode.scrollHeight}):(i=y(h),s=[],y(["Top","Right","Left","Bottom"]).each(function(t,e){s[t]=n._num(i.css("padding"+e))}),n.containerOffset=i.offset(),n.containerPosition=i.position(),n.containerSize={height:i.innerHeight()-s[3],width:i.innerWidth()-s[1]},t=n.containerOffset,e=n.containerSize.height,o=n.containerSize.width,o=n._hasScroll(h,"left")?h.scrollWidth:o,e=n._hasScroll(h)?h.scrollHeight:e,n.parentData={element:h,left:t.left,top:t.top,width:o,height:e}))},resize:function(t){var e=y(this).resizable("instance"),i=e.options,s=e.containerOffset,n=e.position,o=e._aspectRatio||t.shiftKey,h={top:0,left:0},a=e.containerElement,t=!0;a[0]!==document&&/static/.test(a.css("position"))&&(h=s),n.left<(e._helper?s.left:0)&&(e.size.width=e.size.width+(e._helper?e.position.left-s.left:e.position.left-h.left),o&&(e.size.height=e.size.width/e.aspectRatio,t=!1),e.position.left=i.helper?s.left:0),n.top<(e._helper?s.top:0)&&(e.size.height=e.size.height+(e._helper?e.position.top-s.top:e.position.top),o&&(e.size.width=e.size.height*e.aspectRatio,t=!1),e.position.top=e._helper?s.top:0),i=e.containerElement.get(0)===e.element.parent().get(0),n=/relative|absolute/.test(e.containerElement.css("position")),i&&n?(e.offset.left=e.parentData.left+e.position.left,e.offset.top=e.parentData.top+e.position.top):(e.offset.left=e.element.offset().left,e.offset.top=e.element.offset().top),n=Math.abs(e.sizeDiff.width+(e._helper?e.offset.left-h.left:e.offset.left-s.left)),s=Math.abs(e.sizeDiff.height+(e._helper?e.offset.top-h.top:e.offset.top-s.top)),n+e.size.width>=e.parentData.width&&(e.size.width=e.parentData.width-n,o&&(e.size.height=e.size.width/e.aspectRatio,t=!1)),s+e.size.height>=e.parentData.height&&(e.size.height=e.parentData.height-s,o&&(e.size.width=e.size.height*e.aspectRatio,t=!1)),t||(e.position.left=e.prevPosition.left,e.position.top=e.prevPosition.top,e.size.width=e.prevSize.width,e.size.height=e.prevSize.height)},stop:function(){var t=y(this).resizable("instance"),e=t.options,i=t.containerOffset,s=t.containerPosition,n=t.containerElement,o=y(t.helper),h=o.offset(),a=o.outerWidth()-t.sizeDiff.width,o=o.outerHeight()-t.sizeDiff.height;t._helper&&!e.animate&&/relative/.test(n.css("position"))&&y(this).css({left:h.left-s.left-i.left,width:a,height:o}),t._helper&&!e.animate&&/static/.test(n.css("position"))&&y(this).css({left:h.left-s.left-i.left,width:a,height:o})}}),y.ui.plugin.add("resizable","alsoResize",{start:function(){var t=y(this).resizable("instance").options;y(t.alsoResize).each(function(){var t=y(this);t.data("ui-resizable-alsoresize",{width:parseFloat(t.width()),height:parseFloat(t.height()),left:parseFloat(t.css("left")),top:parseFloat(t.css("top"))})})},resize:function(t,i){var e=y(this).resizable("instance"),s=e.options,n=e.originalSize,o=e.originalPosition,h={height:e.size.height-n.height||0,width:e.size.width-n.width||0,top:e.position.top-o.top||0,left:e.position.left-o.left||0};y(s.alsoResize).each(function(){var t=y(this),s=y(this).data("ui-resizable-alsoresize"),n={},e=t.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];y.each(e,function(t,e){var i=(s[e]||0)+(h[e]||0);i&&0<=i&&(n[e]=i||null)}),t.css(n)})},stop:function(){y(this).removeData("ui-resizable-alsoresize")}}),y.ui.plugin.add("resizable","ghost",{start:function(){var t=y(this).resizable("instance"),e=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:e.height,width:e.width,margin:0,left:0,top:0}),t._addClass(t.ghost,"ui-resizable-ghost"),!1!==y.uiBackCompat&&"string"==typeof t.options.ghost&&t.ghost.addClass(this.options.ghost),t.ghost.appendTo(t.helper)},resize:function(){var t=y(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=y(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),y.ui.plugin.add("resizable","grid",{resize:function(){var t,e=y(this).resizable("instance"),i=e.options,s=e.size,n=e.originalSize,o=e.originalPosition,h=e.axis,a="number"==typeof i.grid?[i.grid,i.grid]:i.grid,r=a[0]||1,l=a[1]||1,u=Math.round((s.width-n.width)/r)*r,p=Math.round((s.height-n.height)/l)*l,d=n.width+u,c=n.height+p,f=i.maxWidth&&i.maxWidthd,s=i.minHeight&&i.minHeight>c;i.grid=a,m&&(d+=r),s&&(c+=l),f&&(d-=r),g&&(c-=l),/^(se|s|e)$/.test(h)?(e.size.width=d,e.size.height=c):/^(ne)$/.test(h)?(e.size.width=d,e.size.height=c,e.position.top=o.top-p):/^(sw)$/.test(h)?(e.size.width=d,e.size.height=c,e.position.left=o.left-u):((c-l<=0||d-r<=0)&&(t=e._getPaddingPlusBorderDimensions(this)),0=f[g]?0:Math.min(f[g],n));!a&&1-1){targetElements.on(evt+EVENT_NAMESPACE,function elementToggle(event){$.powerTip.toggle(this,event)})}else{targetElements.on(evt+EVENT_NAMESPACE,function elementOpen(event){$.powerTip.show(this,event)})}});$.each(options.closeEvents,function(idx,evt){if($.inArray(evt,options.openEvents)<0){targetElements.on(evt+EVENT_NAMESPACE,function elementClose(event){$.powerTip.hide(this,!isMouseEvent(event))})}});targetElements.on("keydown"+EVENT_NAMESPACE,function elementKeyDown(event){if(event.keyCode===27){$.powerTip.hide(this,true)}})}return targetElements};$.fn.powerTip.defaults={fadeInTime:200,fadeOutTime:100,followMouse:false,popupId:"powerTip",popupClass:null,intentSensitivity:7,intentPollInterval:100,closeDelay:100,placement:"n",smartPlacement:false,offset:10,mouseOnToPopup:false,manual:false,openEvents:["mouseenter","focus"],closeEvents:["mouseleave","blur"]};$.fn.powerTip.smartPlacementLists={n:["n","ne","nw","s"],e:["e","ne","se","w","nw","sw","n","s","e"],s:["s","se","sw","n"],w:["w","nw","sw","e","ne","se","n","s","w"],nw:["nw","w","sw","n","s","se","nw"],ne:["ne","e","se","n","s","sw","ne"],sw:["sw","w","nw","s","n","ne","sw"],se:["se","e","ne","s","n","nw","se"],"nw-alt":["nw-alt","n","ne-alt","sw-alt","s","se-alt","w","e"],"ne-alt":["ne-alt","n","nw-alt","se-alt","s","sw-alt","e","w"],"sw-alt":["sw-alt","s","se-alt","nw-alt","n","ne-alt","w","e"],"se-alt":["se-alt","s","sw-alt","ne-alt","n","nw-alt","e","w"]};$.powerTip={show:function apiShowTip(element,event){if(isMouseEvent(event)){trackMouse(event);session.previousX=event.pageX;session.previousY=event.pageY;$(element).data(DATA_DISPLAYCONTROLLER).show()}else{$(element).first().data(DATA_DISPLAYCONTROLLER).show(true,true)}return element},reposition:function apiResetPosition(element){$(element).first().data(DATA_DISPLAYCONTROLLER).resetPosition();return element},hide:function apiCloseTip(element,immediate){var displayController;immediate=element?immediate:true;if(element){displayController=$(element).first().data(DATA_DISPLAYCONTROLLER)}else if(session.activeHover){displayController=session.activeHover.data(DATA_DISPLAYCONTROLLER)}if(displayController){displayController.hide(immediate)}return element},toggle:function apiToggle(element,event){if(session.activeHover&&session.activeHover.is(element)){$.powerTip.hide(element,!isMouseEvent(event))}else{$.powerTip.show(element,event)}return element}};$.powerTip.showTip=$.powerTip.show;$.powerTip.closeTip=$.powerTip.hide;function CSSCoordinates(){var me=this;me.top="auto";me.left="auto";me.right="auto";me.bottom="auto";me.set=function(property,value){if($.isNumeric(value)){me[property]=Math.round(value)}}}function DisplayController(element,options,tipController){var hoverTimer=null,myCloseDelay=null;function openTooltip(immediate,forceOpen){cancelTimer();if(!element.data(DATA_HASACTIVEHOVER)){if(!immediate){session.tipOpenImminent=true;hoverTimer=setTimeout(function intentDelay(){hoverTimer=null;checkForIntent()},options.intentPollInterval)}else{if(forceOpen){element.data(DATA_FORCEDOPEN,true)}closeAnyDelayed();tipController.showTip(element)}}else{cancelClose()}}function closeTooltip(disableDelay){if(myCloseDelay){myCloseDelay=session.closeDelayTimeout=clearTimeout(myCloseDelay);session.delayInProgress=false}cancelTimer();session.tipOpenImminent=false;if(element.data(DATA_HASACTIVEHOVER)){element.data(DATA_FORCEDOPEN,false);if(!disableDelay){session.delayInProgress=true;session.closeDelayTimeout=setTimeout(function closeDelay(){session.closeDelayTimeout=null;tipController.hideTip(element);session.delayInProgress=false;myCloseDelay=null},options.closeDelay);myCloseDelay=session.closeDelayTimeout}else{tipController.hideTip(element)}}}function checkForIntent(){var xDifference=Math.abs(session.previousX-session.currentX),yDifference=Math.abs(session.previousY-session.currentY),totalDifference=xDifference+yDifference;if(totalDifference",{id:options.popupId});if($body.length===0){$body=$("body")}$body.append(tipElement);session.tooltips=session.tooltips?session.tooltips.add(tipElement):tipElement}if(options.followMouse){if(!tipElement.data(DATA_HASMOUSEMOVE)){$document.on("mousemove"+EVENT_NAMESPACE,positionTipOnCursor);$window.on("scroll"+EVENT_NAMESPACE,positionTipOnCursor);tipElement.data(DATA_HASMOUSEMOVE,true)}}function beginShowTip(element){element.data(DATA_HASACTIVEHOVER,true);tipElement.queue(function queueTipInit(next){showTip(element);next()})}function showTip(element){var tipContent;if(!element.data(DATA_HASACTIVEHOVER)){return}if(session.isTipOpen){if(!session.isClosing){hideTip(session.activeHover)}tipElement.delay(100).queue(function queueTipAgain(next){showTip(element);next()});return}element.trigger("powerTipPreRender");tipContent=getTooltipContent(element);if(tipContent){tipElement.empty().append(tipContent)}else{return}element.trigger("powerTipRender");session.activeHover=element;session.isTipOpen=true;tipElement.data(DATA_MOUSEONTOTIP,options.mouseOnToPopup);tipElement.addClass(options.popupClass);if(!options.followMouse||element.data(DATA_FORCEDOPEN)){positionTipOnElement(element);session.isFixedTipOpen=true}else{positionTipOnCursor()}if(!element.data(DATA_FORCEDOPEN)&&!options.followMouse){$document.on("click"+EVENT_NAMESPACE,function documentClick(event){var target=event.target;if(target!==element[0]){if(options.mouseOnToPopup){if(target!==tipElement[0]&&!$.contains(tipElement[0],target)){$.powerTip.hide()}}else{$.powerTip.hide()}}})}if(options.mouseOnToPopup&&!options.manual){tipElement.on("mouseenter"+EVENT_NAMESPACE,function tipMouseEnter(){if(session.activeHover){session.activeHover.data(DATA_DISPLAYCONTROLLER).cancel()}});tipElement.on("mouseleave"+EVENT_NAMESPACE,function tipMouseLeave(){if(session.activeHover){session.activeHover.data(DATA_DISPLAYCONTROLLER).hide()}})}tipElement.fadeIn(options.fadeInTime,function fadeInCallback(){if(!session.desyncTimeout){session.desyncTimeout=setInterval(closeDesyncedTip,500)}element.trigger("powerTipOpen")})}function hideTip(element){session.isClosing=true;session.isTipOpen=false;session.desyncTimeout=clearInterval(session.desyncTimeout);element.data(DATA_HASACTIVEHOVER,false);element.data(DATA_FORCEDOPEN,false);$document.off("click"+EVENT_NAMESPACE);tipElement.off(EVENT_NAMESPACE);tipElement.fadeOut(options.fadeOutTime,function fadeOutCallback(){var coords=new CSSCoordinates;session.activeHover=null;session.isClosing=false;session.isFixedTipOpen=false;tipElement.removeClass();coords.set("top",session.currentY+options.offset);coords.set("left",session.currentX+options.offset);tipElement.css(coords);element.trigger("powerTipClose")})}function positionTipOnCursor(){var tipWidth,tipHeight,coords,collisions,collisionCount;if(!session.isFixedTipOpen&&(session.isTipOpen||session.tipOpenImminent&&tipElement.data(DATA_HASMOUSEMOVE))){tipWidth=tipElement.outerWidth();tipHeight=tipElement.outerHeight();coords=new CSSCoordinates;coords.set("top",session.currentY+options.offset);coords.set("left",session.currentX+options.offset);collisions=getViewportCollisions(coords,tipWidth,tipHeight);if(collisions!==Collision.none){collisionCount=countFlags(collisions);if(collisionCount===1){if(collisions===Collision.right){coords.set("left",session.scrollLeft+session.windowWidth-tipWidth)}else if(collisions===Collision.bottom){coords.set("top",session.scrollTop+session.windowHeight-tipHeight)}}else{coords.set("left",session.currentX-tipWidth-options.offset);coords.set("top",session.currentY-tipHeight-options.offset)}}tipElement.css(coords)}}function positionTipOnElement(element){var priorityList,finalPlacement;if(options.smartPlacement||options.followMouse&&element.data(DATA_FORCEDOPEN)){priorityList=$.fn.powerTip.smartPlacementLists[options.placement];$.each(priorityList,function(idx,pos){var collisions=getViewportCollisions(placeTooltip(element,pos),tipElement.outerWidth(),tipElement.outerHeight());finalPlacement=pos;return collisions!==Collision.none})}else{placeTooltip(element,options.placement);finalPlacement=options.placement}tipElement.removeClass("w nw sw e ne se n s w se-alt sw-alt ne-alt nw-alt");tipElement.addClass(finalPlacement)}function placeTooltip(element,placement){var iterationCount=0,tipWidth,tipHeight,coords=new CSSCoordinates;coords.set("top",0);coords.set("left",0);tipElement.css(coords);do{tipWidth=tipElement.outerWidth();tipHeight=tipElement.outerHeight();coords=placementCalculator.compute(element,placement,tipWidth,tipHeight,options.offset);tipElement.css(coords)}while(++iterationCount<=5&&(tipWidth!==tipElement.outerWidth()||tipHeight!==tipElement.outerHeight()));return coords}function closeDesyncedTip(){var isDesynced=false,hasDesyncableCloseEvent=$.grep(["mouseleave","mouseout","blur","focusout"],function(eventType){return $.inArray(eventType,options.closeEvents)!==-1}).length>0;if(session.isTipOpen&&!session.isClosing&&!session.delayInProgress&&hasDesyncableCloseEvent){if(session.activeHover.data(DATA_HASACTIVEHOVER)===false||session.activeHover.is(":disabled")){isDesynced=true}else if(!isMouseOver(session.activeHover)&&!session.activeHover.is(":focus")&&!session.activeHover.data(DATA_FORCEDOPEN)){if(tipElement.data(DATA_MOUSEONTOTIP)){if(!isMouseOver(tipElement)){isDesynced=true}}else{isDesynced=true}}if(isDesynced){hideTip(session.activeHover)}}}this.showTip=beginShowTip;this.hideTip=hideTip;this.resetPosition=positionTipOnElement}function isSvgElement(element){return Boolean(window.SVGElement&&element[0]instanceof SVGElement)}function isMouseEvent(event){return Boolean(event&&$.inArray(event.type,MOUSE_EVENTS)>-1&&typeof event.pageX==="number")}function initTracking(){if(!session.mouseTrackingActive){session.mouseTrackingActive=true;getViewportDimensions();$(getViewportDimensions);$document.on("mousemove"+EVENT_NAMESPACE,trackMouse);$window.on("resize"+EVENT_NAMESPACE,trackResize);$window.on("scroll"+EVENT_NAMESPACE,trackScroll)}}function getViewportDimensions(){session.scrollLeft=$window.scrollLeft();session.scrollTop=$window.scrollTop();session.windowWidth=$window.width();session.windowHeight=$window.height()}function trackResize(){session.windowWidth=$window.width();session.windowHeight=$window.height()}function trackScroll(){var x=$window.scrollLeft(),y=$window.scrollTop();if(x!==session.scrollLeft){session.currentX+=x-session.scrollLeft;session.scrollLeft=x}if(y!==session.scrollTop){session.currentY+=y-session.scrollTop;session.scrollTop=y}}function trackMouse(event){session.currentX=event.pageX;session.currentY=event.pageY}function isMouseOver(element){var elementPosition=element.offset(),elementBox=element[0].getBoundingClientRect(),elementWidth=elementBox.right-elementBox.left,elementHeight=elementBox.bottom-elementBox.top;return session.currentX>=elementPosition.left&&session.currentX<=elementPosition.left+elementWidth&&session.currentY>=elementPosition.top&&session.currentY<=elementPosition.top+elementHeight}function getTooltipContent(element){var tipText=element.data(DATA_POWERTIP),tipObject=element.data(DATA_POWERTIPJQ),tipTarget=element.data(DATA_POWERTIPTARGET),targetElement,content;if(tipText){if($.isFunction(tipText)){tipText=tipText.call(element[0])}content=tipText}else if(tipObject){if($.isFunction(tipObject)){tipObject=tipObject.call(element[0])}if(tipObject.length>0){content=tipObject.clone(true,true)}}else if(tipTarget){targetElement=$("#"+tipTarget);if(targetElement.length>0){content=targetElement.html()}}return content}function getViewportCollisions(coords,elementWidth,elementHeight){var viewportTop=session.scrollTop,viewportLeft=session.scrollLeft,viewportBottom=viewportTop+session.windowHeight,viewportRight=viewportLeft+session.windowWidth,collisions=Collision.none;if(coords.topviewportBottom||Math.abs(coords.bottom-session.windowHeight)>viewportBottom){collisions|=Collision.bottom}if(coords.leftviewportRight){collisions|=Collision.left}if(coords.left+elementWidth>viewportRight||coords.right1)){a.preventDefault();var c=a.originalEvent.changedTouches[0],d=document.createEvent("MouseEvents");d.initMouseEvent(b,!0,!0,window,1,c.screenX,c.screenY,c.clientX,c.clientY,!1,!1,!1,!1,0,null),a.target.dispatchEvent(d)}}if(a.support.touch="ontouchend"in document,a.support.touch){var e,b=a.ui.mouse.prototype,c=b._mouseInit,d=b._mouseDestroy;b._touchStart=function(a){var b=this;!e&&b._mouseCapture(a.originalEvent.changedTouches[0])&&(e=!0,b._touchMoved=!1,f(a,"mouseover"),f(a,"mousemove"),f(a,"mousedown"))},b._touchMove=function(a){e&&(this._touchMoved=!0,f(a,"mousemove"))},b._touchEnd=function(a){e&&(f(a,"mouseup"),f(a,"mouseout"),this._touchMoved||f(a,"click"),e=!1)},b._mouseInit=function(){var b=this;b.element.bind({touchstart:a.proxy(b,"_touchStart"),touchmove:a.proxy(b,"_touchMove"),touchend:a.proxy(b,"_touchEnd")}),c.call(b)},b._mouseDestroy=function(){var b=this;b.element.unbind({touchstart:a.proxy(b,"_touchStart"),touchmove:a.proxy(b,"_touchMove"),touchend:a.proxy(b,"_touchEnd")}),d.call(b)}}}(jQuery);/*! SmartMenus jQuery Plugin - v1.1.0 - September 17, 2017 + * http://www.smartmenus.org/ + * Copyright Vasil Dinkov, Vadikom Web Ltd. http://vadikom.com; Licensed MIT */(function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&"object"==typeof module.exports?module.exports=t(require("jquery")):t(jQuery)})(function($){function initMouseDetection(t){var e=".smartmenus_mouse";if(mouseDetectionEnabled||t)mouseDetectionEnabled&&t&&($(document).off(e),mouseDetectionEnabled=!1);else{var i=!0,s=null,o={mousemove:function(t){var e={x:t.pageX,y:t.pageY,timeStamp:(new Date).getTime()};if(s){var o=Math.abs(s.x-e.x),a=Math.abs(s.y-e.y);if((o>0||a>0)&&2>=o&&2>=a&&300>=e.timeStamp-s.timeStamp&&(mouse=!0,i)){var n=$(t.target).closest("a");n.is("a")&&$.each(menuTrees,function(){return $.contains(this.$root[0],n[0])?(this.itemEnter({currentTarget:n[0]}),!1):void 0}),i=!1}}s=e}};o[touchEvents?"touchstart":"pointerover pointermove pointerout MSPointerOver MSPointerMove MSPointerOut"]=function(t){isTouchEvent(t.originalEvent)&&(mouse=!1)},$(document).on(getEventsNS(o,e)),mouseDetectionEnabled=!0}}function isTouchEvent(t){return!/^(4|mouse)$/.test(t.pointerType)}function getEventsNS(t,e){e||(e="");var i={};for(var s in t)i[s.split(" ").join(e+" ")+e]=t[s];return i}var menuTrees=[],mouse=!1,touchEvents="ontouchstart"in window,mouseDetectionEnabled=!1,requestAnimationFrame=window.requestAnimationFrame||function(t){return setTimeout(t,1e3/60)},cancelAnimationFrame=window.cancelAnimationFrame||function(t){clearTimeout(t)},canAnimate=!!$.fn.animate;return $.SmartMenus=function(t,e){this.$root=$(t),this.opts=e,this.rootId="",this.accessIdPrefix="",this.$subArrow=null,this.activatedItems=[],this.visibleSubMenus=[],this.showTimeout=0,this.hideTimeout=0,this.scrollTimeout=0,this.clickActivated=!1,this.focusActivated=!1,this.zIndexInc=0,this.idInc=0,this.$firstLink=null,this.$firstSub=null,this.disabled=!1,this.$disableOverlay=null,this.$touchScrollingSub=null,this.cssTransforms3d="perspective"in t.style||"webkitPerspective"in t.style,this.wasCollapsible=!1,this.init()},$.extend($.SmartMenus,{hideAll:function(){$.each(menuTrees,function(){this.menuHideAll()})},destroy:function(){for(;menuTrees.length;)menuTrees[0].destroy();initMouseDetection(!0)},prototype:{init:function(t){var e=this;if(!t){menuTrees.push(this),this.rootId=((new Date).getTime()+Math.random()+"").replace(/\D/g,""),this.accessIdPrefix="sm-"+this.rootId+"-",this.$root.hasClass("sm-rtl")&&(this.opts.rightToLeftSubMenus=!0);var i=".smartmenus";this.$root.data("smartmenus",this).attr("data-smartmenus-id",this.rootId).dataSM("level",1).on(getEventsNS({"mouseover focusin":$.proxy(this.rootOver,this),"mouseout focusout":$.proxy(this.rootOut,this),keydown:$.proxy(this.rootKeyDown,this)},i)).on(getEventsNS({mouseenter:$.proxy(this.itemEnter,this),mouseleave:$.proxy(this.itemLeave,this),mousedown:$.proxy(this.itemDown,this),focus:$.proxy(this.itemFocus,this),blur:$.proxy(this.itemBlur,this),click:$.proxy(this.itemClick,this)},i),"a"),i+=this.rootId,this.opts.hideOnClick&&$(document).on(getEventsNS({touchstart:$.proxy(this.docTouchStart,this),touchmove:$.proxy(this.docTouchMove,this),touchend:$.proxy(this.docTouchEnd,this),click:$.proxy(this.docClick,this)},i)),$(window).on(getEventsNS({"resize orientationchange":$.proxy(this.winResize,this)},i)),this.opts.subIndicators&&(this.$subArrow=$("").addClass("sub-arrow"),this.opts.subIndicatorsText&&this.$subArrow.html(this.opts.subIndicatorsText)),initMouseDetection()}if(this.$firstSub=this.$root.find("ul").each(function(){e.menuInit($(this))}).eq(0),this.$firstLink=this.$root.find("a").eq(0),this.opts.markCurrentItem){var s=/(index|default)\.[^#\?\/]*/i,o=/#.*/,a=window.location.href.replace(s,""),n=a.replace(o,"");this.$root.find("a").each(function(){var t=this.href.replace(s,""),i=$(this);(t==a||t==n)&&(i.addClass("current"),e.opts.markCurrentTree&&i.parentsUntil("[data-smartmenus-id]","ul").each(function(){$(this).dataSM("parent-a").addClass("current")}))})}this.wasCollapsible=this.isCollapsible()},destroy:function(t){if(!t){var e=".smartmenus";this.$root.removeData("smartmenus").removeAttr("data-smartmenus-id").removeDataSM("level").off(e),e+=this.rootId,$(document).off(e),$(window).off(e),this.opts.subIndicators&&(this.$subArrow=null)}this.menuHideAll();var i=this;this.$root.find("ul").each(function(){var t=$(this);t.dataSM("scroll-arrows")&&t.dataSM("scroll-arrows").remove(),t.dataSM("shown-before")&&((i.opts.subMenusMinWidth||i.opts.subMenusMaxWidth)&&t.css({width:"",minWidth:"",maxWidth:""}).removeClass("sm-nowrap"),t.dataSM("scroll-arrows")&&t.dataSM("scroll-arrows").remove(),t.css({zIndex:"",top:"",left:"",marginLeft:"",marginTop:"",display:""})),0==(t.attr("id")||"").indexOf(i.accessIdPrefix)&&t.removeAttr("id")}).removeDataSM("in-mega").removeDataSM("shown-before").removeDataSM("scroll-arrows").removeDataSM("parent-a").removeDataSM("level").removeDataSM("beforefirstshowfired").removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeAttr("aria-expanded"),this.$root.find("a.has-submenu").each(function(){var t=$(this);0==t.attr("id").indexOf(i.accessIdPrefix)&&t.removeAttr("id")}).removeClass("has-submenu").removeDataSM("sub").removeAttr("aria-haspopup").removeAttr("aria-controls").removeAttr("aria-expanded").closest("li").removeDataSM("sub"),this.opts.subIndicators&&this.$root.find("span.sub-arrow").remove(),this.opts.markCurrentItem&&this.$root.find("a.current").removeClass("current"),t||(this.$root=null,this.$firstLink=null,this.$firstSub=null,this.$disableOverlay&&(this.$disableOverlay.remove(),this.$disableOverlay=null),menuTrees.splice($.inArray(this,menuTrees),1))},disable:function(t){if(!this.disabled){if(this.menuHideAll(),!t&&!this.opts.isPopup&&this.$root.is(":visible")){var e=this.$root.offset();this.$disableOverlay=$('
').css({position:"absolute",top:e.top,left:e.left,width:this.$root.outerWidth(),height:this.$root.outerHeight(),zIndex:this.getStartZIndex(!0),opacity:0}).appendTo(document.body)}this.disabled=!0}},docClick:function(t){return this.$touchScrollingSub?(this.$touchScrollingSub=null,void 0):((this.visibleSubMenus.length&&!$.contains(this.$root[0],t.target)||$(t.target).closest("a").length)&&this.menuHideAll(),void 0)},docTouchEnd:function(){if(this.lastTouch){if(!(!this.visibleSubMenus.length||void 0!==this.lastTouch.x2&&this.lastTouch.x1!=this.lastTouch.x2||void 0!==this.lastTouch.y2&&this.lastTouch.y1!=this.lastTouch.y2||this.lastTouch.target&&$.contains(this.$root[0],this.lastTouch.target))){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0);var t=this;this.hideTimeout=setTimeout(function(){t.menuHideAll()},350)}this.lastTouch=null}},docTouchMove:function(t){if(this.lastTouch){var e=t.originalEvent.touches[0];this.lastTouch.x2=e.pageX,this.lastTouch.y2=e.pageY}},docTouchStart:function(t){var e=t.originalEvent.touches[0];this.lastTouch={x1:e.pageX,y1:e.pageY,target:e.target}},enable:function(){this.disabled&&(this.$disableOverlay&&(this.$disableOverlay.remove(),this.$disableOverlay=null),this.disabled=!1)},getClosestMenu:function(t){for(var e=$(t).closest("ul");e.dataSM("in-mega");)e=e.parent().closest("ul");return e[0]||null},getHeight:function(t){return this.getOffset(t,!0)},getOffset:function(t,e){var i;"none"==t.css("display")&&(i={position:t[0].style.position,visibility:t[0].style.visibility},t.css({position:"absolute",visibility:"hidden"}).show());var s=t[0].getBoundingClientRect&&t[0].getBoundingClientRect(),o=s&&(e?s.height||s.bottom-s.top:s.width||s.right-s.left);return o||0===o||(o=e?t[0].offsetHeight:t[0].offsetWidth),i&&t.hide().css(i),o},getStartZIndex:function(t){var e=parseInt(this[t?"$root":"$firstSub"].css("z-index"));return!t&&isNaN(e)&&(e=parseInt(this.$root.css("z-index"))),isNaN(e)?1:e},getTouchPoint:function(t){return t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0]||t},getViewport:function(t){var e=t?"Height":"Width",i=document.documentElement["client"+e],s=window["inner"+e];return s&&(i=Math.min(i,s)),i},getViewportHeight:function(){return this.getViewport(!0)},getViewportWidth:function(){return this.getViewport()},getWidth:function(t){return this.getOffset(t)},handleEvents:function(){return!this.disabled&&this.isCSSOn()},handleItemEvents:function(t){return this.handleEvents()&&!this.isLinkInMegaMenu(t)},isCollapsible:function(){return"static"==this.$firstSub.css("position")},isCSSOn:function(){return"inline"!=this.$firstLink.css("display")},isFixed:function(){var t="fixed"==this.$root.css("position");return t||this.$root.parentsUntil("body").each(function(){return"fixed"==$(this).css("position")?(t=!0,!1):void 0}),t},isLinkInMegaMenu:function(t){return $(this.getClosestMenu(t[0])).hasClass("mega-menu")},isTouchMode:function(){return!mouse||this.opts.noMouseOver||this.isCollapsible()},itemActivate:function(t,e){var i=t.closest("ul"),s=i.dataSM("level");if(s>1&&(!this.activatedItems[s-2]||this.activatedItems[s-2][0]!=i.dataSM("parent-a")[0])){var o=this;$(i.parentsUntil("[data-smartmenus-id]","ul").get().reverse()).add(i).each(function(){o.itemActivate($(this).dataSM("parent-a"))})}if((!this.isCollapsible()||e)&&this.menuHideSubMenus(this.activatedItems[s-1]&&this.activatedItems[s-1][0]==t[0]?s:s-1),this.activatedItems[s-1]=t,this.$root.triggerHandler("activate.smapi",t[0])!==!1){var a=t.dataSM("sub");a&&(this.isTouchMode()||!this.opts.showOnClick||this.clickActivated)&&this.menuShow(a)}},itemBlur:function(t){var e=$(t.currentTarget);this.handleItemEvents(e)&&this.$root.triggerHandler("blur.smapi",e[0])},itemClick:function(t){var e=$(t.currentTarget);if(this.handleItemEvents(e)){if(this.$touchScrollingSub&&this.$touchScrollingSub[0]==e.closest("ul")[0])return this.$touchScrollingSub=null,t.stopPropagation(),!1;if(this.$root.triggerHandler("click.smapi",e[0])===!1)return!1;var i=$(t.target).is(".sub-arrow"),s=e.dataSM("sub"),o=s?2==s.dataSM("level"):!1,a=this.isCollapsible(),n=/toggle$/.test(this.opts.collapsibleBehavior),r=/link$/.test(this.opts.collapsibleBehavior),h=/^accordion/.test(this.opts.collapsibleBehavior);if(s&&!s.is(":visible")){if((!r||!a||i)&&(this.opts.showOnClick&&o&&(this.clickActivated=!0),this.itemActivate(e,h),s.is(":visible")))return this.focusActivated=!0,!1}else if(a&&(n||i))return this.itemActivate(e,h),this.menuHide(s),n&&(this.focusActivated=!1),!1;return this.opts.showOnClick&&o||e.hasClass("disabled")||this.$root.triggerHandler("select.smapi",e[0])===!1?!1:void 0}},itemDown:function(t){var e=$(t.currentTarget);this.handleItemEvents(e)&&e.dataSM("mousedown",!0)},itemEnter:function(t){var e=$(t.currentTarget);if(this.handleItemEvents(e)){if(!this.isTouchMode()){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=0);var i=this;this.showTimeout=setTimeout(function(){i.itemActivate(e)},this.opts.showOnClick&&1==e.closest("ul").dataSM("level")?1:this.opts.showTimeout)}this.$root.triggerHandler("mouseenter.smapi",e[0])}},itemFocus:function(t){var e=$(t.currentTarget);this.handleItemEvents(e)&&(!this.focusActivated||this.isTouchMode()&&e.dataSM("mousedown")||this.activatedItems.length&&this.activatedItems[this.activatedItems.length-1][0]==e[0]||this.itemActivate(e,!0),this.$root.triggerHandler("focus.smapi",e[0]))},itemLeave:function(t){var e=$(t.currentTarget);this.handleItemEvents(e)&&(this.isTouchMode()||(e[0].blur(),this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=0)),e.removeDataSM("mousedown"),this.$root.triggerHandler("mouseleave.smapi",e[0]))},menuHide:function(t){if(this.$root.triggerHandler("beforehide.smapi",t[0])!==!1&&(canAnimate&&t.stop(!0,!0),"none"!=t.css("display"))){var e=function(){t.css("z-index","")};this.isCollapsible()?canAnimate&&this.opts.collapsibleHideFunction?this.opts.collapsibleHideFunction.call(this,t,e):t.hide(this.opts.collapsibleHideDuration,e):canAnimate&&this.opts.hideFunction?this.opts.hideFunction.call(this,t,e):t.hide(this.opts.hideDuration,e),t.dataSM("scroll")&&(this.menuScrollStop(t),t.css({"touch-action":"","-ms-touch-action":"","-webkit-transform":"",transform:""}).off(".smartmenus_scroll").removeDataSM("scroll").dataSM("scroll-arrows").hide()),t.dataSM("parent-a").removeClass("highlighted").attr("aria-expanded","false"),t.attr({"aria-expanded":"false","aria-hidden":"true"});var i=t.dataSM("level");this.activatedItems.splice(i-1,1),this.visibleSubMenus.splice($.inArray(t,this.visibleSubMenus),1),this.$root.triggerHandler("hide.smapi",t[0])}},menuHideAll:function(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=0);for(var t=this.opts.isPopup?1:0,e=this.visibleSubMenus.length-1;e>=t;e--)this.menuHide(this.visibleSubMenus[e]);this.opts.isPopup&&(canAnimate&&this.$root.stop(!0,!0),this.$root.is(":visible")&&(canAnimate&&this.opts.hideFunction?this.opts.hideFunction.call(this,this.$root):this.$root.hide(this.opts.hideDuration))),this.activatedItems=[],this.visibleSubMenus=[],this.clickActivated=!1,this.focusActivated=!1,this.zIndexInc=0,this.$root.triggerHandler("hideAll.smapi")},menuHideSubMenus:function(t){for(var e=this.activatedItems.length-1;e>=t;e--){var i=this.activatedItems[e].dataSM("sub");i&&this.menuHide(i)}},menuInit:function(t){if(!t.dataSM("in-mega")){t.hasClass("mega-menu")&&t.find("ul").dataSM("in-mega",!0);for(var e=2,i=t[0];(i=i.parentNode.parentNode)!=this.$root[0];)e++;var s=t.prevAll("a").eq(-1);s.length||(s=t.prevAll().find("a").eq(-1)),s.addClass("has-submenu").dataSM("sub",t),t.dataSM("parent-a",s).dataSM("level",e).parent().dataSM("sub",t);var o=s.attr("id")||this.accessIdPrefix+ ++this.idInc,a=t.attr("id")||this.accessIdPrefix+ ++this.idInc;s.attr({id:o,"aria-haspopup":"true","aria-controls":a,"aria-expanded":"false"}),t.attr({id:a,role:"group","aria-hidden":"true","aria-labelledby":o,"aria-expanded":"false"}),this.opts.subIndicators&&s[this.opts.subIndicatorsPos](this.$subArrow.clone())}},menuPosition:function(t){var e,i,s=t.dataSM("parent-a"),o=s.closest("li"),a=o.parent(),n=t.dataSM("level"),r=this.getWidth(t),h=this.getHeight(t),u=s.offset(),l=u.left,c=u.top,d=this.getWidth(s),m=this.getHeight(s),p=$(window),f=p.scrollLeft(),v=p.scrollTop(),b=this.getViewportWidth(),S=this.getViewportHeight(),g=a.parent().is("[data-sm-horizontal-sub]")||2==n&&!a.hasClass("sm-vertical"),M=this.opts.rightToLeftSubMenus&&!o.is("[data-sm-reverse]")||!this.opts.rightToLeftSubMenus&&o.is("[data-sm-reverse]"),w=2==n?this.opts.mainMenuSubOffsetX:this.opts.subMenusSubOffsetX,T=2==n?this.opts.mainMenuSubOffsetY:this.opts.subMenusSubOffsetY;if(g?(e=M?d-r-w:w,i=this.opts.bottomToTopSubMenus?-h-T:m+T):(e=M?w-r:d-w,i=this.opts.bottomToTopSubMenus?m-T-h:T),this.opts.keepInViewport){var y=l+e,I=c+i;if(M&&f>y?e=g?f-y+e:d-w:!M&&y+r>f+b&&(e=g?f+b-r-y+e:w-r),g||(S>h&&I+h>v+S?i+=v+S-h-I:(h>=S||v>I)&&(i+=v-I)),g&&(I+h>v+S+.49||v>I)||!g&&h>S+.49){var x=this;t.dataSM("scroll-arrows")||t.dataSM("scroll-arrows",$([$('')[0],$('')[0]]).on({mouseenter:function(){t.dataSM("scroll").up=$(this).hasClass("scroll-up"),x.menuScroll(t)},mouseleave:function(e){x.menuScrollStop(t),x.menuScrollOut(t,e)},"mousewheel DOMMouseScroll":function(t){t.preventDefault()}}).insertAfter(t));var A=".smartmenus_scroll";if(t.dataSM("scroll",{y:this.cssTransforms3d?0:i-m,step:1,itemH:m,subH:h,arrowDownH:this.getHeight(t.dataSM("scroll-arrows").eq(1))}).on(getEventsNS({mouseover:function(e){x.menuScrollOver(t,e)},mouseout:function(e){x.menuScrollOut(t,e)},"mousewheel DOMMouseScroll":function(e){x.menuScrollMousewheel(t,e)}},A)).dataSM("scroll-arrows").css({top:"auto",left:"0",marginLeft:e+(parseInt(t.css("border-left-width"))||0),width:r-(parseInt(t.css("border-left-width"))||0)-(parseInt(t.css("border-right-width"))||0),zIndex:t.css("z-index")}).eq(g&&this.opts.bottomToTopSubMenus?0:1).show(),this.isFixed()){var C={};C[touchEvents?"touchstart touchmove touchend":"pointerdown pointermove pointerup MSPointerDown MSPointerMove MSPointerUp"]=function(e){x.menuScrollTouch(t,e)},t.css({"touch-action":"none","-ms-touch-action":"none"}).on(getEventsNS(C,A))}}}t.css({top:"auto",left:"0",marginLeft:e,marginTop:i-m})},menuScroll:function(t,e,i){var s,o=t.dataSM("scroll"),a=t.dataSM("scroll-arrows"),n=o.up?o.upEnd:o.downEnd;if(!e&&o.momentum){if(o.momentum*=.92,s=o.momentum,.5>s)return this.menuScrollStop(t),void 0}else s=i||(e||!this.opts.scrollAccelerate?this.opts.scrollStep:Math.floor(o.step));var r=t.dataSM("level");if(this.activatedItems[r-1]&&this.activatedItems[r-1].dataSM("sub")&&this.activatedItems[r-1].dataSM("sub").is(":visible")&&this.menuHideSubMenus(r-1),o.y=o.up&&o.y>=n||!o.up&&n>=o.y?o.y:Math.abs(n-o.y)>s?o.y+(o.up?s:-s):n,t.css(this.cssTransforms3d?{"-webkit-transform":"translate3d(0, "+o.y+"px, 0)",transform:"translate3d(0, "+o.y+"px, 0)"}:{marginTop:o.y}),mouse&&(o.up&&o.y>o.downEnd||!o.up&&o.y0;t.dataSM("scroll-arrows").eq(i?0:1).is(":visible")&&(t.dataSM("scroll").up=i,this.menuScroll(t,!0))}e.preventDefault()},menuScrollOut:function(t,e){mouse&&(/^scroll-(up|down)/.test((e.relatedTarget||"").className)||(t[0]==e.relatedTarget||$.contains(t[0],e.relatedTarget))&&this.getClosestMenu(e.relatedTarget)==t[0]||t.dataSM("scroll-arrows").css("visibility","hidden"))},menuScrollOver:function(t,e){if(mouse&&!/^scroll-(up|down)/.test(e.target.className)&&this.getClosestMenu(e.target)==t[0]){this.menuScrollRefreshData(t);var i=t.dataSM("scroll"),s=$(window).scrollTop()-t.dataSM("parent-a").offset().top-i.itemH;t.dataSM("scroll-arrows").eq(0).css("margin-top",s).end().eq(1).css("margin-top",s+this.getViewportHeight()-i.arrowDownH).end().css("visibility","visible")}},menuScrollRefreshData:function(t){var e=t.dataSM("scroll"),i=$(window).scrollTop()-t.dataSM("parent-a").offset().top-e.itemH;this.cssTransforms3d&&(i=-(parseFloat(t.css("margin-top"))-i)),$.extend(e,{upEnd:i,downEnd:i+this.getViewportHeight()-e.subH})},menuScrollStop:function(t){return this.scrollTimeout?(cancelAnimationFrame(this.scrollTimeout),this.scrollTimeout=0,t.dataSM("scroll").step=1,!0):void 0},menuScrollTouch:function(t,e){if(e=e.originalEvent,isTouchEvent(e)){var i=this.getTouchPoint(e);if(this.getClosestMenu(i.target)==t[0]){var s=t.dataSM("scroll");if(/(start|down)$/i.test(e.type))this.menuScrollStop(t)?(e.preventDefault(),this.$touchScrollingSub=t):this.$touchScrollingSub=null,this.menuScrollRefreshData(t),$.extend(s,{touchStartY:i.pageY,touchStartTime:e.timeStamp});else if(/move$/i.test(e.type)){var o=void 0!==s.touchY?s.touchY:s.touchStartY;if(void 0!==o&&o!=i.pageY){this.$touchScrollingSub=t;var a=i.pageY>o;void 0!==s.up&&s.up!=a&&$.extend(s,{touchStartY:i.pageY,touchStartTime:e.timeStamp}),$.extend(s,{up:a,touchY:i.pageY}),this.menuScroll(t,!0,Math.abs(i.pageY-o))}e.preventDefault()}else void 0!==s.touchY&&((s.momentum=15*Math.pow(Math.abs(i.pageY-s.touchStartY)/(e.timeStamp-s.touchStartTime),2))&&(this.menuScrollStop(t),this.menuScroll(t),e.preventDefault()),delete s.touchY)}}},menuShow:function(t){if((t.dataSM("beforefirstshowfired")||(t.dataSM("beforefirstshowfired",!0),this.$root.triggerHandler("beforefirstshow.smapi",t[0])!==!1))&&this.$root.triggerHandler("beforeshow.smapi",t[0])!==!1&&(t.dataSM("shown-before",!0),canAnimate&&t.stop(!0,!0),!t.is(":visible"))){var e=t.dataSM("parent-a"),i=this.isCollapsible();if((this.opts.keepHighlighted||i)&&e.addClass("highlighted"),i)t.removeClass("sm-nowrap").css({zIndex:"",width:"auto",minWidth:"",maxWidth:"",top:"",left:"",marginLeft:"",marginTop:""});else{if(t.css("z-index",this.zIndexInc=(this.zIndexInc||this.getStartZIndex())+1),(this.opts.subMenusMinWidth||this.opts.subMenusMaxWidth)&&(t.css({width:"auto",minWidth:"",maxWidth:""}).addClass("sm-nowrap"),this.opts.subMenusMinWidth&&t.css("min-width",this.opts.subMenusMinWidth),this.opts.subMenusMaxWidth)){var s=this.getWidth(t);t.css("max-width",this.opts.subMenusMaxWidth),s>this.getWidth(t)&&t.removeClass("sm-nowrap").css("width",this.opts.subMenusMaxWidth)}this.menuPosition(t)}var o=function(){t.css("overflow","")};i?canAnimate&&this.opts.collapsibleShowFunction?this.opts.collapsibleShowFunction.call(this,t,o):t.show(this.opts.collapsibleShowDuration,o):canAnimate&&this.opts.showFunction?this.opts.showFunction.call(this,t,o):t.show(this.opts.showDuration,o),e.attr("aria-expanded","true"),t.attr({"aria-expanded":"true","aria-hidden":"false"}),this.visibleSubMenus.push(t),this.$root.triggerHandler("show.smapi",t[0])}},popupHide:function(t){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0);var e=this;this.hideTimeout=setTimeout(function(){e.menuHideAll()},t?1:this.opts.hideTimeout)},popupShow:function(t,e){if(!this.opts.isPopup)return alert('SmartMenus jQuery Error:\n\nIf you want to show this menu via the "popupShow" method, set the isPopup:true option.'),void 0;if(this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0),this.$root.dataSM("shown-before",!0),canAnimate&&this.$root.stop(!0,!0),!this.$root.is(":visible")){this.$root.css({left:t,top:e});var i=this,s=function(){i.$root.css("overflow","")};canAnimate&&this.opts.showFunction?this.opts.showFunction.call(this,this.$root,s):this.$root.show(this.opts.showDuration,s),this.visibleSubMenus[0]=this.$root}},refresh:function(){this.destroy(!0),this.init(!0)},rootKeyDown:function(t){if(this.handleEvents())switch(t.keyCode){case 27:var e=this.activatedItems[0];if(e){this.menuHideAll(),e[0].focus();var i=e.dataSM("sub");i&&this.menuHide(i)}break;case 32:var s=$(t.target);if(s.is("a")&&this.handleItemEvents(s)){var i=s.dataSM("sub");i&&!i.is(":visible")&&(this.itemClick({currentTarget:t.target}),t.preventDefault())}}},rootOut:function(t){if(this.handleEvents()&&!this.isTouchMode()&&t.target!=this.$root[0]&&(this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0),!this.opts.showOnClick||!this.opts.hideOnClick)){var e=this;this.hideTimeout=setTimeout(function(){e.menuHideAll()},this.opts.hideTimeout)}},rootOver:function(t){this.handleEvents()&&!this.isTouchMode()&&t.target!=this.$root[0]&&this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0)},winResize:function(t){if(this.handleEvents()){if(!("onorientationchange"in window)||"orientationchange"==t.type){var e=this.isCollapsible();this.wasCollapsible&&e||(this.activatedItems.length&&this.activatedItems[this.activatedItems.length-1][0].blur(),this.menuHideAll()),this.wasCollapsible=e}}else if(this.$disableOverlay){var i=this.$root.offset();this.$disableOverlay.css({top:i.top,left:i.left,width:this.$root.outerWidth(),height:this.$root.outerHeight()})}}}}),$.fn.dataSM=function(t,e){return e?this.data(t+"_smartmenus",e):this.data(t+"_smartmenus")},$.fn.removeDataSM=function(t){return this.removeData(t+"_smartmenus")},$.fn.smartmenus=function(options){if("string"==typeof options){var args=arguments,method=options;return Array.prototype.shift.call(args),this.each(function(){var t=$(this).data("smartmenus");t&&t[method]&&t[method].apply(t,args)})}return this.each(function(){var dataOpts=$(this).data("sm-options")||null;if(dataOpts)try{dataOpts=eval("("+dataOpts+")")}catch(e){dataOpts=null,alert('ERROR\n\nSmartMenus jQuery init:\nInvalid "data-sm-options" attribute value syntax.')}new $.SmartMenus(this,$.extend({},$.fn.smartmenus.defaults,options,dataOpts))})},$.fn.smartmenus.defaults={isPopup:!1,mainMenuSubOffsetX:0,mainMenuSubOffsetY:0,subMenusSubOffsetX:0,subMenusSubOffsetY:0,subMenusMinWidth:"10em",subMenusMaxWidth:"20em",subIndicators:!0,subIndicatorsPos:"append",subIndicatorsText:"",scrollStep:30,scrollAccelerate:!0,showTimeout:250,hideTimeout:500,showDuration:0,showFunction:null,hideDuration:0,hideFunction:function(t,e){t.fadeOut(200,e)},collapsibleShowDuration:0,collapsibleShowFunction:function(t,e){t.slideDown(200,e)},collapsibleHideDuration:0,collapsibleHideFunction:function(t,e){t.slideUp(200,e)},showOnClick:!1,hideOnClick:!0,noMouseOver:!1,keepInViewport:!0,keepHighlighted:!0,markCurrentItem:!1,markCurrentTree:!0,rightToLeftSubMenus:!1,bottomToTopSubMenus:!1,collapsibleBehavior:"default"},$}); \ No newline at end of file diff --git a/docs/menu.js b/docs/menu.js new file mode 100644 index 00000000..717761d0 --- /dev/null +++ b/docs/menu.js @@ -0,0 +1,134 @@ +/* + @licstart The following is the entire license notice for the JavaScript code in this file. + + The MIT License (MIT) + + Copyright (C) 1997-2020 by Dimitri van Heesch + + Permission is hereby granted, free of charge, to any person obtaining a copy of this software + and associated documentation files (the "Software"), to deal in the Software without restriction, + including without limitation the rights to use, copy, modify, merge, publish, distribute, + sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all copies or + substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING + BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + @licend The above is the entire license notice for the JavaScript code in this file + */ +function initMenu(relPath,searchEnabled,serverSide,searchPage,search) { + function makeTree(data,relPath) { + let result=''; + if ('children' in data) { + result+='
    '; + for (let i in data.children) { + let url; + const link = data.children[i].url; + if (link.substring(0,1)=='^') { + url = link.substring(1); + } else { + url = relPath+link; + } + result+='
  • '+ + data.children[i].text+''+ + makeTree(data.children[i],relPath)+'
  • '; + } + result+='
'; + } + return result; + } + let searchBoxHtml; + if (searchEnabled) { + if (serverSide) { + searchBoxHtml='
'+ + '
'+ + '
 '+ + ''+ + '
'+ + '
'+ + '
'+ + '
'; + } else { + searchBoxHtml='
'+ + ''+ + ' '+ + ''+ + ''+ + ''+ + ''+ + ''+ + '
'; + } + } + + $('#main-nav').before('
'+ + ''+ + ''+ + '
'); + $('#main-nav').append(makeTree(menudata,relPath)); + $('#main-nav').children(':first').addClass('sm sm-dox').attr('id','main-menu'); + if (searchBoxHtml) { + $('#main-menu').append('
  • '); + } + const $mainMenuState = $('#main-menu-state'); + let prevWidth = 0; + if ($mainMenuState.length) { + const initResizableIfExists = function() { + if (typeof initResizable==='function') initResizable(); + } + // animate mobile menu + $mainMenuState.change(function() { + const $menu = $('#main-menu'); + let options = { duration: 250, step: initResizableIfExists }; + if (this.checked) { + options['complete'] = () => $menu.css('display', 'block'); + $menu.hide().slideDown(options); + } else { + options['complete'] = () => $menu.css('display', 'none'); + $menu.show().slideUp(options); + } + }); + // set default menu visibility + const resetState = function() { + const $menu = $('#main-menu'); + const newWidth = $(window).outerWidth(); + if (newWidth!=prevWidth) { + if ($(window).outerWidth()<768) { + $mainMenuState.prop('checked',false); $menu.hide(); + $('#searchBoxPos1').html(searchBoxHtml); + $('#searchBoxPos2').hide(); + } else { + $menu.show(); + $('#searchBoxPos1').empty(); + $('#searchBoxPos2').html(searchBoxHtml); + $('#searchBoxPos2').show(); + } + if (typeof searchBox!=='undefined') { + searchBox.CloseResultsWindow(); + } + prevWidth = newWidth; + } + } + $(window).ready(function() { resetState(); initResizableIfExists(); }); + $(window).resize(resetState); + } + $('#main-menu').smartmenus(); +} +/* @license-end */ diff --git a/docs/menudata.js b/docs/menudata.js new file mode 100644 index 00000000..352b4458 --- /dev/null +++ b/docs/menudata.js @@ -0,0 +1,106 @@ +/* + @licstart The following is the entire license notice for the JavaScript code in this file. + + The MIT License (MIT) + + Copyright (C) 1997-2020 by Dimitri van Heesch + + Permission is hereby granted, free of charge, to any person obtaining a copy of this software + and associated documentation files (the "Software"), to deal in the Software without restriction, + including without limitation the rights to use, copy, modify, merge, publish, distribute, + sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all copies or + substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING + BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + @licend The above is the entire license notice for the JavaScript code in this file +*/ +var menudata={children:[ +{text:"Main Page",url:"index.html"}, +{text:"Classes",url:"annotated.html",children:[ +{text:"Class List",url:"annotated.html"}, +{text:"Class Index",url:"classes.html"}, +{text:"Class Hierarchy",url:"hierarchy.html"}, +{text:"Class Members",url:"functions.html",children:[ +{text:"All",url:"functions.html",children:[ +{text:"a",url:"functions.html#index_a"}, +{text:"b",url:"functions_b.html#index_b"}, +{text:"c",url:"functions_c.html#index_c"}, +{text:"d",url:"functions_d.html#index_d"}, +{text:"e",url:"functions_e.html#index_e"}, +{text:"f",url:"functions_f.html#index_f"}, +{text:"g",url:"functions_g.html#index_g"}, +{text:"h",url:"functions_h.html#index_h"}, +{text:"i",url:"functions_i.html#index_i"}, +{text:"l",url:"functions_l.html#index_l"}, +{text:"m",url:"functions_m.html#index_m"}, +{text:"n",url:"functions_n.html#index_n"}, +{text:"o",url:"functions_o.html#index_o"}, +{text:"p",url:"functions_p.html#index_p"}, +{text:"q",url:"functions_q.html#index_q"}, +{text:"r",url:"functions_r.html#index_r"}, +{text:"s",url:"functions_s.html#index_s"}, +{text:"t",url:"functions_t.html#index_t"}, +{text:"u",url:"functions_u.html#index_u"}, +{text:"v",url:"functions_v.html#index_v"}, +{text:"w",url:"functions_w.html#index_w"}, +{text:"x",url:"functions_x.html#index_x"}, +{text:"y",url:"functions_y.html#index_y"}, +{text:"~",url:"functions_~.html#index__7E"}]}, +{text:"Functions",url:"functions_func.html",children:[ +{text:"a",url:"functions_func.html#index_a"}, +{text:"b",url:"functions_func_b.html#index_b"}, +{text:"c",url:"functions_func_c.html#index_c"}, +{text:"d",url:"functions_func_d.html#index_d"}, +{text:"e",url:"functions_func_e.html#index_e"}, +{text:"f",url:"functions_func_f.html#index_f"}, +{text:"g",url:"functions_func_g.html#index_g"}, +{text:"h",url:"functions_func_h.html#index_h"}, +{text:"i",url:"functions_func_i.html#index_i"}, +{text:"l",url:"functions_func_l.html#index_l"}, +{text:"m",url:"functions_func_m.html#index_m"}, +{text:"n",url:"functions_func_n.html#index_n"}, +{text:"o",url:"functions_func_o.html#index_o"}, +{text:"p",url:"functions_func_p.html#index_p"}, +{text:"q",url:"functions_func_q.html#index_q"}, +{text:"r",url:"functions_func_r.html#index_r"}, +{text:"s",url:"functions_func_s.html#index_s"}, +{text:"t",url:"functions_func_t.html#index_t"}, +{text:"u",url:"functions_func_u.html#index_u"}, +{text:"v",url:"functions_func_v.html#index_v"}, +{text:"w",url:"functions_func_w.html#index_w"}, +{text:"~",url:"functions_func_~.html#index__7E"}]}, +{text:"Variables",url:"functions_vars.html",children:[ +{text:"a",url:"functions_vars.html#index_a"}, +{text:"b",url:"functions_vars.html#index_b"}, +{text:"c",url:"functions_vars.html#index_c"}, +{text:"e",url:"functions_vars.html#index_e"}, +{text:"f",url:"functions_vars.html#index_f"}, +{text:"g",url:"functions_vars.html#index_g"}, +{text:"h",url:"functions_vars.html#index_h"}, +{text:"i",url:"functions_vars.html#index_i"}, +{text:"l",url:"functions_vars.html#index_l"}, +{text:"m",url:"functions_vars.html#index_m"}, +{text:"n",url:"functions_vars.html#index_n"}, +{text:"o",url:"functions_vars.html#index_o"}, +{text:"p",url:"functions_vars.html#index_p"}, +{text:"q",url:"functions_vars.html#index_q"}, +{text:"r",url:"functions_vars.html#index_r"}, +{text:"s",url:"functions_vars.html#index_s"}, +{text:"t",url:"functions_vars.html#index_t"}, +{text:"u",url:"functions_vars.html#index_u"}, +{text:"v",url:"functions_vars.html#index_v"}, +{text:"w",url:"functions_vars.html#index_w"}, +{text:"x",url:"functions_vars.html#index_x"}, +{text:"y",url:"functions_vars.html#index_y"}]}, +{text:"Enumerations",url:"functions_enum.html"}, +{text:"Related Symbols",url:"functions_rela.html"}]}]}, +{text:"Files",url:"files.html",children:[ +{text:"File List",url:"files.html"}]}]} diff --git a/docs/minus.svg b/docs/minus.svg new file mode 100644 index 00000000..f70d0c1a --- /dev/null +++ b/docs/minus.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/docs/minusd.svg b/docs/minusd.svg new file mode 100644 index 00000000..5f8e8796 --- /dev/null +++ b/docs/minusd.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/docs/nav_f.png b/docs/nav_f.png new file mode 100644 index 0000000000000000000000000000000000000000..72a58a529ed3a9ed6aa0c51a79cf207e026deee2 GIT binary patch literal 153 zcmeAS@N?(olHy`uVBq!ia0vp^j6iI`!2~2XGqLUlQVE_ejv*C{Z|{2ZH7M}7UYxc) zn!W8uqtnIQ>_z8U literal 0 HcmV?d00001 diff --git a/docs/nav_fd.png b/docs/nav_fd.png new file mode 100644 index 0000000000000000000000000000000000000000..032fbdd4c54f54fa9a2e6423b94ef4b2ebdfaceb GIT binary patch literal 169 zcmeAS@N?(olHy`uVBq!ia0vp^j6iI`!2~2XGqLUlQU#tajv*C{Z|C~*H7f|XvG1G8 zt7aS*L7xwMeS}!z6R#{C5tIw-s~AJ==F^i}x3XyJseHR@yF& zerFf(Zf;Dd{+(0lDIROL@Sj-Ju2JQ8&-n%4%q?>|^bShc&lR?}7HeMo@BDl5N(aHY Uj$gdr1MOz;boFyt=akR{0D!zeaR2}S literal 0 HcmV?d00001 diff --git a/docs/nav_g.png b/docs/nav_g.png new file mode 100644 index 0000000000000000000000000000000000000000..2093a237a94f6c83e19ec6e5fd42f7ddabdafa81 GIT binary patch literal 95 zcmeAS@N?(olHy`uVBq!ia0vp^j6lrB!3HFm1ilyoDK$?Q$B+ufw|5PB85lU25BhtE tr?otc=hd~V+ws&_A@j8Fiv!KF$B+ufw|5=67#uj90@pIL wZ=Q8~_Ju`#59=RjDrmm`tMD@M=!-l18IR?&vFVdQ&MBb@0HFXL6W-eg#Jd_@e6*DPn)w;=|1H}Zvm9l6xXXB%>yL=NQU;mg M>FVdQ&MBb@0Bdt1Qvd(} literal 0 HcmV?d00001 diff --git a/docs/navtree.css b/docs/navtree.css new file mode 100644 index 00000000..69211d4a --- /dev/null +++ b/docs/navtree.css @@ -0,0 +1,149 @@ +#nav-tree .children_ul { + margin:0; + padding:4px; +} + +#nav-tree ul { + list-style:none outside none; + margin:0px; + padding:0px; +} + +#nav-tree li { + white-space:nowrap; + margin:0px; + padding:0px; +} + +#nav-tree .plus { + margin:0px; +} + +#nav-tree .selected { + background-image: url('tab_a.png'); + background-repeat:repeat-x; + color: var(--nav-text-active-color); + text-shadow: var(--nav-text-active-shadow); +} + +#nav-tree .selected .arrow { + color: var(--nav-arrow-selected-color); + text-shadow: none; +} + +#nav-tree img { + margin:0px; + padding:0px; + border:0px; + vertical-align: middle; +} + +#nav-tree a { + text-decoration:none; + padding:0px; + margin:0px; +} + +#nav-tree .label { + margin:0px; + padding:0px; + font: 12px var(--font-family-nav); +} + +#nav-tree .label a { + padding:2px; +} + +#nav-tree .selected a { + text-decoration:none; + color:var(--nav-text-active-color); +} + +#nav-tree .children_ul { + margin:0px; + padding:0px; +} + +#nav-tree .item { + margin:0px; + padding:0px; +} + +#nav-tree { + padding: 0px 0px; + font-size:14px; + overflow:auto; +} + +#doc-content { + overflow:auto; + display:block; + padding:0px; + margin:0px; + -webkit-overflow-scrolling : touch; /* iOS 5+ */ +} + +#side-nav { + padding:0 6px 0 0; + margin: 0px; + display:block; + position: absolute; + left: 0px; + width: $width; + overflow : hidden; +} + +.ui-resizable .ui-resizable-handle { + display:block; +} + +.ui-resizable-e { + background-image:var(--nav-splitbar-image); + background-size:100%; + background-repeat:repeat-y; + background-attachment: scroll; + cursor:ew-resize; + height:100%; + right:0; + top:0; + width:6px; +} + +.ui-resizable-handle { + display:none; + font-size:0.1px; + position:absolute; + z-index:1; +} + +#nav-tree-contents { + margin: 6px 0px 0px 0px; +} + +#nav-tree { + background-repeat:repeat-x; + background-color: var(--nav-background-color); + -webkit-overflow-scrolling : touch; /* iOS 5+ */ +} + +#nav-sync { + position:absolute; + top:5px; + right:24px; + z-index:0; +} + +#nav-sync img { + opacity:0.3; +} + +#nav-sync img:hover { + opacity:0.9; +} + +@media print +{ + #nav-tree { display: none; } + div.ui-resizable-handle { display: none; position: relative; } +} + diff --git a/docs/navtree.js b/docs/navtree.js new file mode 100644 index 00000000..884b79b6 --- /dev/null +++ b/docs/navtree.js @@ -0,0 +1,482 @@ +/* + @licstart The following is the entire license notice for the JavaScript code in this file. + + The MIT License (MIT) + + Copyright (C) 1997-2020 by Dimitri van Heesch + + Permission is hereby granted, free of charge, to any person obtaining a copy of this software + and associated documentation files (the "Software"), to deal in the Software without restriction, + including without limitation the rights to use, copy, modify, merge, publish, distribute, + sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all copies or + substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING + BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + @licend The above is the entire license notice for the JavaScript code in this file + */ + +function initNavTree(toroot,relpath) { + let navTreeSubIndices = []; + const ARROW_DOWN = '▼'; + const ARROW_RIGHT = '►'; + const NAVPATH_COOKIE_NAME = ''+'navpath'; + + const getData = function(varName) { + const i = varName.lastIndexOf('/'); + const n = i>=0 ? varName.substring(i+1) : varName; + return eval(n.replace(/-/g,'_')); + } + + const stripPath = function(uri) { + return uri.substring(uri.lastIndexOf('/')+1); + } + + const stripPath2 = function(uri) { + const i = uri.lastIndexOf('/'); + const s = uri.substring(i+1); + const m = uri.substring(0,i+1).match(/\/d\w\/d\w\w\/$/); + return m ? uri.substring(i-6) : s; + } + + const hashValue = function() { + return $(location).attr('hash').substring(1).replace(/[^\w-]/g,''); + } + + const hashUrl = function() { + return '#'+hashValue(); + } + + const pathName = function() { + return $(location).attr('pathname').replace(/[^-A-Za-z0-9+&@#/%?=~_|!:,.;()]/g, ''); + } + + const storeLink = function(link) { + if (!$("#nav-sync").hasClass('sync')) { + Cookie.writeSetting(NAVPATH_COOKIE_NAME,link,0); + } + } + + const deleteLink = function() { + Cookie.eraseSetting(NAVPATH_COOKIE_NAME); + } + + const cachedLink = function() { + return Cookie.readSetting(NAVPATH_COOKIE_NAME,''); + } + + const getScript = function(scriptName,func) { + const head = document.getElementsByTagName("head")[0]; + const script = document.createElement('script'); + script.id = scriptName; + script.type = 'text/javascript'; + script.onload = func; + script.src = scriptName+'.js'; + head.appendChild(script); + } + + const createIndent = function(o,domNode,node) { + let level=-1; + let n = node; + while (n.parentNode) { level++; n=n.parentNode; } + if (node.childrenData) { + const imgNode = document.createElement("span"); + imgNode.className = 'arrow'; + imgNode.style.paddingLeft=(16*level).toString()+'px'; + imgNode.innerHTML=ARROW_RIGHT; + node.plus_img = imgNode; + node.expandToggle = document.createElement("a"); + node.expandToggle.href = "javascript:void(0)"; + node.expandToggle.onclick = function() { + if (node.expanded) { + $(node.getChildrenUL()).slideUp("fast"); + node.plus_img.innerHTML=ARROW_RIGHT; + node.expanded = false; + } else { + expandNode(o, node, false, true); + } + } + node.expandToggle.appendChild(imgNode); + domNode.appendChild(node.expandToggle); + } else { + let span = document.createElement("span"); + span.className = 'arrow'; + span.style.width = 16*(level+1)+'px'; + span.innerHTML = ' '; + domNode.appendChild(span); + } + } + + let animationInProgress = false; + + const gotoAnchor = function(anchor,aname) { + let pos, docContent = $('#doc-content'); + let ancParent = $(anchor.parent()); + if (ancParent.hasClass('memItemLeft') || ancParent.hasClass('memtitle') || + ancParent.hasClass('fieldname') || ancParent.hasClass('fieldtype') || + ancParent.is(':header')) { + pos = ancParent.position().top; + } else if (anchor.position()) { + pos = anchor.position().top; + } + if (pos) { + const dcOffset = docContent.offset().top; + const dcHeight = docContent.height(); + const dcScrHeight = docContent[0].scrollHeight + const dcScrTop = docContent.scrollTop(); + let dist = Math.abs(Math.min(pos-dcOffset,dcScrHeight-dcHeight-dcScrTop)); + animationInProgress = true; + docContent.animate({ + scrollTop: pos + dcScrTop - dcOffset + },Math.max(50,Math.min(500,dist)),function() { + window.location.href=aname; + animationInProgress=false; + }); + } + } + + const newNode = function(o, po, text, link, childrenData, lastNode) { + const node = { + children : [], + childrenData : childrenData, + depth : po.depth + 1, + relpath : po.relpath, + isLast : lastNode, + li : document.createElement("li"), + parentNode : po, + itemDiv : document.createElement("div"), + labelSpan : document.createElement("span"), + label : document.createTextNode(text), + expanded : false, + childrenUL : null, + getChildrenUL : function() { + if (!this.childrenUL) { + this.childrenUL = document.createElement("ul"); + this.childrenUL.className = "children_ul"; + this.childrenUL.style.display = "none"; + this.li.appendChild(node.childrenUL); + } + return node.childrenUL; + }, + }; + + node.itemDiv.className = "item"; + node.labelSpan.className = "label"; + createIndent(o,node.itemDiv,node); + node.itemDiv.appendChild(node.labelSpan); + node.li.appendChild(node.itemDiv); + + const a = document.createElement("a"); + node.labelSpan.appendChild(a); + po.getChildrenUL().appendChild(node.li); + a.appendChild(node.label); + if (link) { + let url; + if (link.substring(0,1)=='^') { + url = link.substring(1); + link = url; + } else { + url = node.relpath+link; + } + a.className = stripPath(link.replace('#',':')); + if (link.indexOf('#')!=-1) { + const aname = '#'+link.split('#')[1]; + const srcPage = stripPath(pathName()); + const targetPage = stripPath(link.split('#')[0]); + a.href = srcPage!=targetPage ? url : aname; + a.onclick = function() { + storeLink(link); + aPPar = $(a).parent().parent(); + if (!aPPar.hasClass('selected')) { + $('.item').removeClass('selected'); + $('.item').removeAttr('id'); + aPPar.addClass('selected'); + aPPar.attr('id','selected'); + } + const anchor = $(aname); + gotoAnchor(anchor,aname); + }; + } else { + a.href = url; + a.onclick = () => storeLink(link); + } + } else if (childrenData != null) { + a.className = "nolink"; + a.href = "javascript:void(0)"; + a.onclick = node.expandToggle.onclick; + } + return node; + } + + const showRoot = function() { + const headerHeight = $("#top").height(); + const footerHeight = $("#nav-path").height(); + const windowHeight = $(window).height() - headerHeight - footerHeight; + (function() { // retry until we can scroll to the selected item + try { + const navtree=$('#nav-tree'); + navtree.scrollTo('#selected',100,{offset:-windowHeight/2}); + } catch (err) { + setTimeout(arguments.callee, 0); + } + })(); + } + + const expandNode = function(o, node, imm, setFocus) { + if (node.childrenData && !node.expanded) { + if (typeof(node.childrenData)==='string') { + const varName = node.childrenData; + getScript(node.relpath+varName,function() { + node.childrenData = getData(varName); + expandNode(o, node, imm, setFocus); + }); + } else { + if (!node.childrenVisited) { + getNode(o, node); + } + $(node.getChildrenUL()).slideDown("fast"); + node.plus_img.innerHTML = ARROW_DOWN; + node.expanded = true; + if (setFocus) { + $(node.expandToggle).focus(); + } + } + } + } + + const glowEffect = function(n,duration) { + n.addClass('glow').delay(duration).queue(function(next) { + $(this).removeClass('glow');next(); + }); + } + + const highlightAnchor = function() { + const aname = hashUrl(); + const anchor = $(aname); + if (anchor.parent().attr('class')=='memItemLeft') { + let rows = $('.memberdecls tr[class$="'+hashValue()+'"]'); + glowEffect(rows.children(),300); // member without details + } else if (anchor.parent().attr('class')=='fieldname') { + glowEffect(anchor.parent().parent(),1000); // enum value + } else if (anchor.parent().attr('class')=='fieldtype') { + glowEffect(anchor.parent().parent(),1000); // struct field + } else if (anchor.parent().is(":header")) { + glowEffect(anchor.parent(),1000); // section header + } else { + glowEffect(anchor.next(),1000); // normal member + } + gotoAnchor(anchor,aname); + } + + const selectAndHighlight = function(hash,n) { + let a; + if (hash) { + const link=stripPath(pathName())+':'+hash.substring(1); + a=$('.item a[class$="'+link+'"]'); + } + if (a && a.length) { + a.parent().parent().addClass('selected'); + a.parent().parent().attr('id','selected'); + highlightAnchor(); + } else if (n) { + $(n.itemDiv).addClass('selected'); + $(n.itemDiv).attr('id','selected'); + } + let topOffset=5; + if ($('#nav-tree-contents .item:first').hasClass('selected')) { + topOffset+=25; + } + $('#nav-sync').css('top',topOffset+'px'); + showRoot(); + } + + const showNode = function(o, node, index, hash) { + if (node && node.childrenData) { + if (typeof(node.childrenData)==='string') { + const varName = node.childrenData; + getScript(node.relpath+varName,function() { + node.childrenData = getData(varName); + showNode(o,node,index,hash); + }); + } else { + if (!node.childrenVisited) { + getNode(o, node); + } + $(node.getChildrenUL()).css({'display':'block'}); + node.plus_img.innerHTML = ARROW_DOWN; + node.expanded = true; + const n = node.children[o.breadcrumbs[index]]; + if (index+11 ? '#'+parts[1].replace(/[^\w-]/g,'') : ''; + } + if (hash.match(/^#l\d+$/)) { + const anchor=$('a[name='+hash.substring(1)+']'); + glowEffect(anchor.parent(),1000); // line number + hash=''; // strip line number anchors + } + const url=root+hash; + let i=-1; + while (NAVTREEINDEX[i+1]<=url) i++; + if (i==-1) { i=0; root=NAVTREE[0][1]; } // fallback: show index + if (navTreeSubIndices[i]) { + gotoNode(o,i,root,hash,relpath) + } else { + getScript(relpath+'navtreeindex'+i,function() { + navTreeSubIndices[i] = eval('NAVTREEINDEX'+i); + if (navTreeSubIndices[i]) { + gotoNode(o,i,root,hash,relpath); + } + }); + } + } + + const showSyncOff = function(n,relpath) { + n.html(''); + } + + const showSyncOn = function(n,relpath) { + n.html(''); + } + + const o = { + toroot : toroot, + node : { + childrenData : NAVTREE, + children : [], + childrenUL : document.createElement("ul"), + getChildrenUL : function() { return this.childrenUL }, + li : document.getElementById("nav-tree-contents"), + depth : 0, + relpath : relpath, + expanded : false, + isLast : true, + plus_img : document.createElement("span"), + }, + }; + o.node.li.appendChild(o.node.childrenUL); + o.node.plus_img.className = 'arrow'; + o.node.plus_img.innerHTML = ARROW_RIGHT; + + const navSync = $('#nav-sync'); + if (cachedLink()) { + showSyncOff(navSync,relpath); + navSync.removeClass('sync'); + } else { + showSyncOn(navSync,relpath); + } + + navSync.click(() => { + const navSync = $('#nav-sync'); + if (navSync.hasClass('sync')) { + navSync.removeClass('sync'); + showSyncOff(navSync,relpath); + storeLink(stripPath2(pathName())+hashUrl()); + } else { + navSync.addClass('sync'); + showSyncOn(navSync,relpath); + deleteLink(); + } + }); + + navTo(o,toroot,hashUrl(),relpath); + showRoot(); + + $(window).bind('hashchange', () => { + if (window.location.hash && window.location.hash.length>1) { + let a; + if ($(location).attr('hash')) { + const clslink=stripPath(pathName())+':'+hashValue(); + a=$('.item a[class$="'+clslink.replace(/1|%O$WD@{VPM$7~Ar*{o?;hlAFyLXmaDC0y znK1_#cQqJWPES%4Uujug^TE?jMft$}Eq^WaR~)%f)vSNs&gek&x%A9X9sM + + + + + + + + diff --git a/docs/plusd.svg b/docs/plusd.svg new file mode 100644 index 00000000..0c65bfe9 --- /dev/null +++ b/docs/plusd.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/docs/resize.js b/docs/resize.js new file mode 100644 index 00000000..6ad2ae80 --- /dev/null +++ b/docs/resize.js @@ -0,0 +1,109 @@ +/* + @licstart The following is the entire license notice for the JavaScript code in this file. + + The MIT License (MIT) + + Copyright (C) 1997-2020 by Dimitri van Heesch + + Permission is hereby granted, free of charge, to any person obtaining a copy of this software + and associated documentation files (the "Software"), to deal in the Software without restriction, + including without limitation the rights to use, copy, modify, merge, publish, distribute, + sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all copies or + substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING + BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + @licend The above is the entire license notice for the JavaScript code in this file + */ + +function initResizable() { + let sidenav,navtree,content,header,footer,barWidth=6; + const RESIZE_COOKIE_NAME = ''+'width'; + + function resizeWidth() { + const sidenavWidth = $(sidenav).outerWidth(); + content.css({marginLeft:parseInt(sidenavWidth)+"px"}); + if (typeof page_layout!=='undefined' && page_layout==1) { + footer.css({marginLeft:parseInt(sidenavWidth)+"px"}); + } + Cookie.writeSetting(RESIZE_COOKIE_NAME,sidenavWidth-barWidth); + } + + function restoreWidth(navWidth) { + content.css({marginLeft:parseInt(navWidth)+barWidth+"px"}); + if (typeof page_layout!=='undefined' && page_layout==1) { + footer.css({marginLeft:parseInt(navWidth)+barWidth+"px"}); + } + sidenav.css({width:navWidth + "px"}); + } + + function resizeHeight() { + const headerHeight = header.outerHeight(); + const footerHeight = footer.outerHeight(); + const windowHeight = $(window).height(); + let contentHeight,navtreeHeight,sideNavHeight; + if (typeof page_layout==='undefined' || page_layout==0) { /* DISABLE_INDEX=NO */ + contentHeight = windowHeight - headerHeight - footerHeight; + navtreeHeight = contentHeight; + sideNavHeight = contentHeight; + } else if (page_layout==1) { /* DISABLE_INDEX=YES */ + contentHeight = windowHeight - footerHeight; + navtreeHeight = windowHeight - headerHeight; + sideNavHeight = windowHeight; + } + content.css({height:contentHeight + "px"}); + navtree.css({height:navtreeHeight + "px"}); + sidenav.css({height:sideNavHeight + "px"}); + if (location.hash.slice(1)) { + (document.getElementById(location.hash.slice(1))||document.body).scrollIntoView(); + } + } + + function collapseExpand() { + let newWidth; + if (sidenav.width()>0) { + newWidth=0; + } else { + const width = Cookie.readSetting(RESIZE_COOKIE_NAME,250); + newWidth = (width>250 && width<$(window).width()) ? width : 250; + } + restoreWidth(newWidth); + const sidenavWidth = $(sidenav).outerWidth(); + Cookie.writeSetting(RESIZE_COOKIE_NAME,sidenavWidth-barWidth); + } + + header = $("#top"); + sidenav = $("#side-nav"); + content = $("#doc-content"); + navtree = $("#nav-tree"); + footer = $("#nav-path"); + $(".side-nav-resizable").resizable({resize: () => resizeWidth() }); + $(sidenav).resizable({ minWidth: 0 }); + $(window).resize(() => resizeHeight()); + const device = navigator.userAgent.toLowerCase(); + const touch_device = device.match(/(iphone|ipod|ipad|android)/); + if (touch_device) { /* wider split bar for touch only devices */ + $(sidenav).css({ paddingRight:'20px' }); + $('.ui-resizable-e').css({ width:'20px' }); + $('#nav-sync').css({ right:'34px' }); + barWidth=20; + } + const width = Cookie.readSetting(RESIZE_COOKIE_NAME,250); + if (width) { restoreWidth(width); } else { resizeWidth(); } + resizeHeight(); + const url = location.href; + const i=url.indexOf("#"); + if (i>=0) window.location.hash=url.substr(i); + const _preventDefault = (evt) => evt.preventDefault(); + $("#splitbar").bind("dragstart", _preventDefault).bind("selectstart", _preventDefault); + $(".ui-resizable-handle").dblclick(collapseExpand); + $(window).on('load',resizeHeight); +} +/* @license-end */ diff --git a/docs/search/all_0.js b/docs/search/all_0.js new file mode 100644 index 00000000..9f032c52 --- /dev/null +++ b/docs/search/all_0.js @@ -0,0 +1,6 @@ +var searchData= +[ + ['_5fhaseventtype_0',['_HasEventType',['../structsw_1_1___has_event_type.html',1,'sw']]], + ['_5fhaseventtype_3c_20t_2c_20decltype_28void_28std_3a_3adeclval_3c_20t_20_3e_28_29_2eeventtype_29_29_3e_1',['_HasEventType< T, decltype(void(std::declval< T >().EventType))>',['../structsw_1_1___has_event_type_3_01_t_00_01decltype_07void_07std_1_1declval_3_01_t_01_4_07_08_8_event_type_08_08_4.html',1,'sw']]], + ['_5fistypedroutedeventargs_2',['_IsTypedRoutedEventArgs',['../structsw_1_1___is_typed_routed_event_args.html',1,'sw']]] +]; diff --git a/docs/search/all_1.js b/docs/search/all_1.js new file mode 100644 index 00000000..c30e772d --- /dev/null +++ b/docs/search/all_1.js @@ -0,0 +1,21 @@ +var searchData= +[ + ['accepttab_0',['AcceptTab',['../classsw_1_1_text_box_base.html#a91bad54640a2bdd486232d3836611608',1,'sw::TextBoxBase']]], + ['activewindow_1',['ActiveWindow',['../classsw_1_1_window.html#a53a830719caa870a49934419c6b231a3',1,'sw::Window']]], + ['addchild_2',['AddChild',['../classsw_1_1_u_i_element.html#a32893339be348aa964441954f3a31101',1,'sw::UIElement::AddChild(UIElement *element)'],['../classsw_1_1_u_i_element.html#a1576ecfeec8347256a1c43a33169e1dc',1,'sw::UIElement::AddChild(UIElement &element)'],['../classsw_1_1_u_i_element.html#ac020bc2d263e0dcffa59e0f474ea6e95',1,'sw::UIElement::AddChild(UIElement *element, uint64_t layoutTag)'],['../classsw_1_1_u_i_element.html#a3e08b05c1a3ac1d95fd54a3ffaab81a0',1,'sw::UIElement::AddChild(UIElement &element, uint64_t layoutTag)']]], + ['addcolumn_3',['AddColumn',['../classsw_1_1_grid.html#ab4dd516b400e34b39674ab220a538da3',1,'sw::Grid::AddColumn()'],['../classsw_1_1_list_view.html#abdc6fdb5bbe352fa0cfed2587260f6fc',1,'sw::ListView::AddColumn(const ListViewColumn &column)'],['../classsw_1_1_list_view.html#a46f3f478e2f3bd4c1b3518eefd2a75fe',1,'sw::ListView::AddColumn(const std::wstring &header)']]], + ['additem_4',['AddItem',['../classsw_1_1_combo_box.html#a2a8aa04ae1b6d8544f0d772c8dd2aa2c',1,'sw::ComboBox::AddItem()'],['../classsw_1_1_items_control.html#a5fab112663e10fe37cf901fc6288bcff',1,'sw::ItemsControl::AddItem()'],['../classsw_1_1_list_box.html#ac46c5faa96a5e3e28e9652f40a7e7486',1,'sw::ListBox::AddItem()'],['../classsw_1_1_list_view.html#a5b7f4ebd627de9cfcbfc9fa87dce183c',1,'sw::ListView::AddItem()'],['../classsw_1_1_menu_base.html#a300bc76b5be03814cb8fa534a3a74cfe',1,'sw::MenuBase::AddItem()']]], + ['addrow_5',['AddRow',['../classsw_1_1_grid.html#a4878fb93660714d7f0a70a6a131852a1',1,'sw::Grid']]], + ['addsubitem_6',['AddSubItem',['../classsw_1_1_menu_base.html#aa48a89a167974e8a7397ffe6058c475f',1,'sw::MenuBase']]], + ['alignment_7',['alignment',['../structsw_1_1_list_view_column.html#a073e675567add518aa85b5356d472cf9',1,'sw::ListViewColumn']]], + ['alignment_8',['Alignment',['../classsw_1_1_tab_control.html#a09a693f18956f7629fab2377ab1a1dda',1,'sw::TabControl']]], + ['app_9',['App',['../classsw_1_1_app.html',1,'sw']]], + ['append_10',['Append',['../classsw_1_1_list.html#aa14a40283db35522ff884cd737762720',1,'sw::List']]], + ['arrange_11',['Arrange',['../classsw_1_1_i_layout.html#a5616892d25adc2666e83211036db7d80',1,'sw::ILayout::Arrange()'],['../classsw_1_1_layer.html#a418f1f936414fd657ad11a0c0f437cdb',1,'sw::Layer::Arrange()'],['../classsw_1_1_layout_host.html#a52f5e12df00e032fd424db409fd73951',1,'sw::LayoutHost::Arrange()'],['../classsw_1_1_panel_base.html#ab7630a76728d4d464b0bee1bfdbdca9b',1,'sw::PanelBase::Arrange()'],['../classsw_1_1_tab_control.html#a2826913f7180e01ec24542dd87ea8676',1,'sw::TabControl::Arrange()'],['../classsw_1_1_u_i_element.html#ac8088cf88b28c6b4a5f93cd7a66a769e',1,'sw::UIElement::Arrange()']]], + ['arrangeoverride_12',['ArrangeOverride',['../classsw_1_1_canvas_layout.html#ae537365bb8c5ab18ec497844d87f288d',1,'sw::CanvasLayout::ArrangeOverride()'],['../classsw_1_1_dock_layout.html#a095344f448138136a4988d4323dae0f9',1,'sw::DockLayout::ArrangeOverride()'],['../classsw_1_1_fill_layout.html#aa748a6d627a02ae1373ca987ea16fbd4',1,'sw::FillLayout::ArrangeOverride()'],['../classsw_1_1_grid_layout.html#a77f696d86389ff0360bd65629a5edab4',1,'sw::GridLayout::ArrangeOverride()'],['../classsw_1_1_layout_host.html#ac28cdcd081c105a2acedfddce436897d',1,'sw::LayoutHost::ArrangeOverride()'],['../classsw_1_1_stack_layout.html#a45b50cf0df7e1ce86e817a47940e7226',1,'sw::StackLayout::ArrangeOverride()'],['../classsw_1_1_stack_layout_h.html#a1b527c76303aed32cad3f4a13bd991a2',1,'sw::StackLayoutH::ArrangeOverride()'],['../classsw_1_1_stack_layout_v.html#a383ec238bac4bdb91d20e39b8ac8a0e1',1,'sw::StackLayoutV::ArrangeOverride()'],['../classsw_1_1_uniform_grid_layout.html#a62cfcb1c77d3d25b7adf07730aa3a144',1,'sw::UniformGridLayout::ArrangeOverride()'],['../classsw_1_1_wrap_layout.html#ab9be93cbdff99c85100c72559ed36b1b',1,'sw::WrapLayout::ArrangeOverride()'],['../classsw_1_1_wrap_layout_h.html#a1c8f53445bcda82c733b1e6d1e45b788',1,'sw::WrapLayoutH::ArrangeOverride()'],['../classsw_1_1_wrap_layout_v.html#a010cae9030f68a485430c9cbe4b230a6',1,'sw::WrapLayoutV::ArrangeOverride()']]], + ['associate_13',['Associate',['../classsw_1_1_layout_host.html#ace58d1aefa8427892f71bfa8b91e9281',1,'sw::LayoutHost']]], + ['autosize_14',['AutoSize',['../classsw_1_1_label.html#a18a52422a3d9c21f2025a4830533b088',1,'sw::Label::AutoSize'],['../classsw_1_1_layer.html#ad4a741e4ddddbd9886cefb88efd9e3e0',1,'sw::Layer::AutoSize']]], + ['autosizegridcolumn_15',['AutoSizeGridColumn',['../structsw_1_1_auto_size_grid_column.html',1,'sw::AutoSizeGridColumn'],['../structsw_1_1_auto_size_grid_column.html#a6dd90239ba99030b22c7354dd9ef1fc9',1,'sw::AutoSizeGridColumn::AutoSizeGridColumn()']]], + ['autosizegridrow_16',['AutoSizeGridRow',['../structsw_1_1_auto_size_grid_row.html',1,'sw::AutoSizeGridRow'],['../structsw_1_1_auto_size_grid_row.html#a2bdf1d29e1b15c59580fd5592afade9a',1,'sw::AutoSizeGridRow::AutoSizeGridRow()']]], + ['autowrap_17',['AutoWrap',['../classsw_1_1_label.html#af94d8f66f1119690c6c2dbca2f794de6',1,'sw::Label::AutoWrap'],['../classsw_1_1_text_box.html#aada3afc3bd30f97361d20b598903dabb',1,'sw::TextBox::AutoWrap']]] +]; diff --git a/docs/search/all_10.js b/docs/search/all_10.js new file mode 100644 index 00000000..2624aed8 --- /dev/null +++ b/docs/search/all_10.js @@ -0,0 +1,6 @@ +var searchData= +[ + ['quality_0',['quality',['../classsw_1_1_font.html#a7098cf91f8c7867df123ef6625fa5831',1,'sw::Font']]], + ['quitmode_1',['QuitMode',['../classsw_1_1_app.html#a0d6cfc05e0a24835e3143c777301059f',1,'sw::App']]], + ['quitmsgloop_2',['QuitMsgLoop',['../classsw_1_1_app.html#a6c23858a471e3ad5e9e57ea711a912cb',1,'sw::App']]] +]; diff --git a/docs/search/all_11.js b/docs/search/all_11.js new file mode 100644 index 00000000..c3893940 --- /dev/null +++ b/docs/search/all_11.js @@ -0,0 +1,78 @@ +var searchData= +[ + ['r_0',['r',['../structsw_1_1_color.html#ab334150d36ae29d3db72843e072994c9',1,'sw::Color']]], + ['radiobutton_1',['RadioButton',['../classsw_1_1_radio_button.html',1,'sw::RadioButton'],['../classsw_1_1_radio_button.html#ab3a285dc904b85423de229d3187ec408',1,'sw::RadioButton::RadioButton()']]], + ['raiseroutedevent_2',['RaiseRoutedEvent',['../classsw_1_1_u_i_element.html#a0635558e1928f1144566a30b884303aa',1,'sw::UIElement::RaiseRoutedEvent(RoutedEventType eventType)'],['../classsw_1_1_u_i_element.html#a135d4fc74c3bf7a434271620944b9f9b',1,'sw::UIElement::RaiseRoutedEvent(RoutedEventArgs &eventArgs)']]], + ['rbegin_3',['rbegin',['../classsw_1_1_dictionary.html#aad835fe48c0fccba0e7e99001c7f3de6',1,'sw::Dictionary::rbegin()'],['../classsw_1_1_list.html#a5d1e8dcbb8c1b4ba128cb011ee401f3a',1,'sw::List::rbegin()']]], + ['readonly_4',['ReadOnly',['../classsw_1_1_text_box_base.html#a77e44c645068eb384a5e77765fdccbae',1,'sw::TextBoxBase']]], + ['readonlyproperty_5',['ReadOnlyProperty',['../classsw_1_1_read_only_property.html',1,'sw::ReadOnlyProperty< T >'],['../classsw_1_1_read_only_property.html#a800a531ff60f5be40012d548537be339',1,'sw::ReadOnlyProperty::ReadOnlyProperty()']]], + ['readonlyproperty_3c_20appquitmode_20_3e_6',['ReadOnlyProperty< AppQuitMode >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20bool_20_3e_7',['ReadOnlyProperty< bool >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20double_20_3e_8',['ReadOnlyProperty< double >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20hinstance_20_3e_9',['ReadOnlyProperty< HINSTANCE >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20horizontalalignment_20_3e_10',['ReadOnlyProperty< HorizontalAlignment >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20hwnd_20_3e_11',['ReadOnlyProperty< HWND >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20int_20_3e_12',['ReadOnlyProperty< int >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20progressbarstate_20_3e_13',['ReadOnlyProperty< ProgressBarState >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20std_3a_3awstring_20_3e_14',['ReadOnlyProperty< std::wstring >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20strlist_20_3e_15',['ReadOnlyProperty< StrList >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20sw_3a_3aborderstyle_20_3e_16',['ReadOnlyProperty< sw::BorderStyle >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20sw_3a_3acheckstate_20_3e_17',['ReadOnlyProperty< sw::CheckState >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20sw_3a_3acolor_20_3e_18',['ReadOnlyProperty< sw::Color >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20sw_3a_3acontextmenu_20_2a_20_3e_19',['ReadOnlyProperty< sw::ContextMenu * >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20sw_3a_3afont_20_3e_20',['ReadOnlyProperty< sw::Font >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20sw_3a_3afontweight_20_3e_21',['ReadOnlyProperty< sw::FontWeight >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20sw_3a_3ahorizontalalignment_20_3e_22',['ReadOnlyProperty< sw::HorizontalAlignment >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20sw_3a_3alayouthost_20_2a_20_3e_23',['ReadOnlyProperty< sw::LayoutHost * >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20sw_3a_3amenu_20_2a_20_3e_24',['ReadOnlyProperty< sw::Menu * >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20sw_3a_3aorientation_20_3e_25',['ReadOnlyProperty< sw::Orientation >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20sw_3a_3apoint_20_3e_26',['ReadOnlyProperty< sw::Point >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20sw_3a_3arect_20_3e_27',['ReadOnlyProperty< sw::Rect >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20sw_3a_3atexttrimming_20_3e_28',['ReadOnlyProperty< sw::TextTrimming >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20sw_3a_3athickness_20_3e_29',['ReadOnlyProperty< sw::Thickness >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20sw_3a_3auielement_20_2a_20_3e_30',['ReadOnlyProperty< sw::UIElement * >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20sw_3a_3averticalalignment_20_3e_31',['ReadOnlyProperty< sw::VerticalAlignment >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20sw_3a_3awindow_20_2a_20_3e_32',['ReadOnlyProperty< sw::Window * >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20sw_3a_3awndbase_20_2a_20_3e_33',['ReadOnlyProperty< sw::WndBase * >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20tabalignment_20_3e_34',['ReadOnlyProperty< TabAlignment >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20titem_20_3e_35',['ReadOnlyProperty< TItem >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20uint16_5ft_20_3e_36',['ReadOnlyProperty< uint16_t >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20uint64_5ft_20_3e_37',['ReadOnlyProperty< uint64_t >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20verticalalignment_20_3e_38',['ReadOnlyProperty< VerticalAlignment >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20wchar_5ft_20_3e_39',['ReadOnlyProperty< wchar_t >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20windowstartuplocation_20_3e_40',['ReadOnlyProperty< WindowStartupLocation >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20windowstate_20_3e_41',['ReadOnlyProperty< WindowState >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['rect_42',['Rect',['../structsw_1_1_rect.html',1,'sw::Rect'],['../classsw_1_1_wnd_base.html#a7598603457217f09aae0deaad59ef063',1,'sw::WndBase::Rect']]], + ['redraw_43',['Redraw',['../classsw_1_1_wnd_base.html#a1c0d183115a35f097b0598af43c9ca9a',1,'sw::WndBase']]], + ['registerroutedevent_44',['RegisterRoutedEvent',['../classsw_1_1_u_i_element.html#a62c0e59790735abb3f0a9f002e651c16',1,'sw::UIElement::RegisterRoutedEvent(RoutedEventType eventType, const RoutedEvent &handler)'],['../classsw_1_1_u_i_element.html#a09946400c66a4bfd34cfb8918652a34a',1,'sw::UIElement::RegisterRoutedEvent(RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))'],['../classsw_1_1_u_i_element.html#a0fe3a905c1fd58baa911bc13aac9f181',1,'sw::UIElement::RegisterRoutedEvent(std::function< void(UIElement &, TEventArgs &)> handler)'],['../classsw_1_1_u_i_element.html#abb7de98159e23ece7285c87a2592d7ea',1,'sw::UIElement::RegisterRoutedEvent(THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))']]], + ['remove_45',['Remove',['../classsw_1_1_dictionary.html#afc07e417b7ccc36dc5a7dab5018b6186',1,'sw::Dictionary::Remove()'],['../classsw_1_1_list.html#ae0f77fc0d146ee739725da4cc337bbe4',1,'sw::List::Remove(const T &value) const']]], + ['removeat_46',['RemoveAt',['../classsw_1_1_list.html#a61b8b974966080702d94323ef0e46f85',1,'sw::List']]], + ['removechild_47',['RemoveChild',['../classsw_1_1_u_i_element.html#a925353891b62cb6989410d788a8a4e90',1,'sw::UIElement::RemoveChild(UIElement *element)'],['../classsw_1_1_u_i_element.html#a9e825715639370ad2dd1f1276e6cb97f',1,'sw::UIElement::RemoveChild(UIElement &element)']]], + ['removechildat_48',['RemoveChildAt',['../classsw_1_1_u_i_element.html#a622a68f74b9122c0de9c57e547b0a62b',1,'sw::UIElement']]], + ['removecolumnat_49',['RemoveColumnAt',['../classsw_1_1_list_view.html#a739a22388145f5bdc9d694e0a7cdf060',1,'sw::ListView']]], + ['removeitem_50',['RemoveItem',['../classsw_1_1_menu_base.html#a75c96dd59694d38a9ea59e3973cd5bea',1,'sw::MenuBase']]], + ['removeitemat_51',['RemoveItemAt',['../classsw_1_1_combo_box.html#acd95ee1c4a1d8909d78df8c8e1820088',1,'sw::ComboBox::RemoveItemAt()'],['../classsw_1_1_items_control.html#a8ee8ced8a1134133fa7066ee4e29b7eb',1,'sw::ItemsControl::RemoveItemAt()'],['../classsw_1_1_list_box.html#a7bc0ff18482d6a90f643e9b4d796c9ed',1,'sw::ListBox::RemoveItemAt()'],['../classsw_1_1_list_view.html#aa8794834f72d435f8b6dee8b34d1d59c',1,'sw::ListView::RemoveItemAt()']]], + ['rend_52',['rend',['../classsw_1_1_dictionary.html#ab46b8829980f88dd6fe703d4d2961773',1,'sw::Dictionary::rend()'],['../classsw_1_1_list.html#a926521f6a537069d6e398306b9f870fb',1,'sw::List::rend()']]], + ['resetcursor_53',['ResetCursor',['../classsw_1_1_u_i_element.html#a421400e98ae700b0593cda2ceec5c1f7',1,'sw::UIElement']]], + ['resethandle_54',['ResetHandle',['../classsw_1_1_control.html#ac6593e51639858796dfa85f3910ccba9',1,'sw::Control']]], + ['right_55',['right',['../structsw_1_1_thickness.html#a0efb5b20b89f2d86885a447b36926bd5',1,'sw::Thickness']]], + ['routedeventargs_56',['RoutedEventArgs',['../structsw_1_1_routed_event_args.html',1,'sw::RoutedEventArgs'],['../structsw_1_1_routed_event_args.html#ad6e6da62f114abfabb682afd38b6f7a3',1,'sw::RoutedEventArgs::RoutedEventArgs()']]], + ['routedeventargsoftype_57',['RoutedEventArgsOfType',['../structsw_1_1_routed_event_args_of_type.html',1,'sw']]], + ['routedeventargsoftype_3c_20layer_5fscrolling_20_3e_58',['RoutedEventArgsOfType< Layer_Scrolling >',['../structsw_1_1_routed_event_args_of_type.html',1,'sw']]], + ['routedeventargsoftype_3c_20listview_5fcheckstatechanged_20_3e_59',['RoutedEventArgsOfType< ListView_CheckStateChanged >',['../structsw_1_1_routed_event_args_of_type.html',1,'sw']]], + ['routedeventargsoftype_3c_20uielement_5fgotchar_20_3e_60',['RoutedEventArgsOfType< UIElement_GotChar >',['../structsw_1_1_routed_event_args_of_type.html',1,'sw']]], + ['routedeventargsoftype_3c_20uielement_5fkeydown_20_3e_61',['RoutedEventArgsOfType< UIElement_KeyDown >',['../structsw_1_1_routed_event_args_of_type.html',1,'sw']]], + ['routedeventargsoftype_3c_20uielement_5fkeyup_20_3e_62',['RoutedEventArgsOfType< UIElement_KeyUp >',['../structsw_1_1_routed_event_args_of_type.html',1,'sw']]], + ['routedeventargsoftype_3c_20uielement_5fmousebuttondown_20_3e_63',['RoutedEventArgsOfType< UIElement_MouseButtonDown >',['../structsw_1_1_routed_event_args_of_type.html',1,'sw']]], + ['routedeventargsoftype_3c_20uielement_5fmousebuttonup_20_3e_64',['RoutedEventArgsOfType< UIElement_MouseButtonUp >',['../structsw_1_1_routed_event_args_of_type.html',1,'sw']]], + ['routedeventargsoftype_3c_20uielement_5fmousemove_20_3e_65',['RoutedEventArgsOfType< UIElement_MouseMove >',['../structsw_1_1_routed_event_args_of_type.html',1,'sw']]], + ['routedeventargsoftype_3c_20uielement_5fmousewheel_20_3e_66',['RoutedEventArgsOfType< UIElement_MouseWheel >',['../structsw_1_1_routed_event_args_of_type.html',1,'sw']]], + ['routedeventargsoftype_3c_20uielement_5fpositionchanged_20_3e_67',['RoutedEventArgsOfType< UIElement_PositionChanged >',['../structsw_1_1_routed_event_args_of_type.html',1,'sw']]], + ['routedeventargsoftype_3c_20uielement_5fshowcontextmenu_20_3e_68',['RoutedEventArgsOfType< UIElement_ShowContextMenu >',['../structsw_1_1_routed_event_args_of_type.html',1,'sw']]], + ['routedeventargsoftype_3c_20uielement_5fsizechanged_20_3e_69',['RoutedEventArgsOfType< UIElement_SizeChanged >',['../structsw_1_1_routed_event_args_of_type.html',1,'sw']]], + ['routedeventargsoftype_3c_20window_5fclosing_20_3e_70',['RoutedEventArgsOfType< Window_Closing >',['../structsw_1_1_routed_event_args_of_type.html',1,'sw']]], + ['row_71',['row',['../structsw_1_1_grid_layout_tag.html#a8411afa319d4ad7cf2d95edd5aa3434c',1,'sw::GridLayoutTag']]], + ['rows_72',['Rows',['../classsw_1_1_uniform_grid.html#a65a180db32f61dee181c0ae7e36364a6',1,'sw::UniformGrid']]], + ['rows_73',['rows',['../classsw_1_1_grid_layout.html#a5ac3f18d6079d89b414a9f0a342670ea',1,'sw::GridLayout::rows'],['../classsw_1_1_uniform_grid_layout.html#a2cde92e2a61f62efb85761f11c221390',1,'sw::UniformGridLayout::rows']]], + ['rowspan_74',['rowSpan',['../structsw_1_1_grid_layout_tag.html#a5caf39bc6aa93afd290f09ee15f2c722',1,'sw::GridLayoutTag']]] +]; diff --git a/docs/search/all_12.js b/docs/search/all_12.js new file mode 100644 index 00000000..90f8c606 --- /dev/null +++ b/docs/search/all_12.js @@ -0,0 +1,73 @@ +var searchData= +[ + ['scalex_0',['ScaleX',['../classsw_1_1_dip.html#a6222ad22b358fd8418cb0dbe9a7f6437',1,'sw::Dip']]], + ['scaley_1',['ScaleY',['../classsw_1_1_dip.html#a82e30c32d6521756a933aa63040f136d',1,'sw::Dip']]], + ['screen_2',['Screen',['../classsw_1_1_screen.html',1,'sw']]], + ['scrollhorizontal_3',['ScrollHorizontal',['../classsw_1_1_layer.html#a8c9c171806dc6021ea15c6a444a74efa',1,'sw::Layer']]], + ['scrollingeventargs_4',['ScrollingEventArgs',['../structsw_1_1_scrolling_event_args.html',1,'sw']]], + ['scrolltobottom_5',['ScrollToBottom',['../classsw_1_1_layer.html#a6a371d0a4688e0ec05ad508572df3866',1,'sw::Layer']]], + ['scrolltocaret_6',['ScrollToCaret',['../classsw_1_1_text_box_base.html#a221765241d6ca76156d3564440306d51',1,'sw::TextBoxBase']]], + ['scrolltoleft_7',['ScrollToLeft',['../classsw_1_1_layer.html#aa86cca7662b17b6a03467d0e7d1975da',1,'sw::Layer']]], + ['scrolltoright_8',['ScrollToRight',['../classsw_1_1_layer.html#aed843519d2ebd313ff0fb598548414aa',1,'sw::Layer']]], + ['scrolltotop_9',['ScrollToTop',['../classsw_1_1_layer.html#ac2826d1b12341d63b5b6be854dffd419',1,'sw::Layer']]], + ['scrollvertical_10',['ScrollVertical',['../classsw_1_1_layer.html#a64d09c3003a00ede215ebf5b52efd328',1,'sw::Layer']]], + ['select_11',['Select',['../classsw_1_1_text_box_base.html#aa22188dc026379eb3e76a2415b8bf0c9',1,'sw::TextBoxBase']]], + ['selectall_12',['SelectAll',['../classsw_1_1_text_box_base.html#aa1e5c56604dd112fb3f116d12c1603d4',1,'sw::TextBoxBase']]], + ['selectedcount_13',['SelectedCount',['../classsw_1_1_list_box.html#a6f921779be05ff24d598701feffd1705',1,'sw::ListBox::SelectedCount'],['../classsw_1_1_list_view.html#ae1e499b6f04912769eb8f4fe732ad35c',1,'sw::ListView::SelectedCount']]], + ['selectedindex_14',['SelectedIndex',['../classsw_1_1_items_control.html#ae78a074093f7746f18c1ece3654fdcf6',1,'sw::ItemsControl::SelectedIndex'],['../classsw_1_1_tab_control.html#a5e70f66a21997157773d149dec3339ce',1,'sw::TabControl::SelectedIndex']]], + ['selecteditem_15',['SelectedItem',['../classsw_1_1_items_control.html#a81efc45fe838c47908e37e241614c672',1,'sw::ItemsControl']]], + ['sendmessagew_16',['SendMessageW',['../classsw_1_1_wnd_base.html#ad50166a8ade9a7eaf0088f13fd708e2f',1,'sw::WndBase']]], + ['set_17',['Set',['../classsw_1_1_write_only_property.html#a870a065cc24bec479bc35eeaa0afee87',1,'sw::WriteOnlyProperty']]], + ['setalignment_18',['SetAlignment',['../classsw_1_1_u_i_element.html#a7b2f0c77c7ec5d6d68bc3c772a72201a',1,'sw::UIElement']]], + ['setbackcolor_19',['SetBackColor',['../classsw_1_1_list_view.html#a56b546d6ddeadd258522b2441ec9bcc4',1,'sw::ListView::SetBackColor()'],['../classsw_1_1_u_i_element.html#af60b45de9f894f4fb152491413f1fa73',1,'sw::UIElement::SetBackColor()']]], + ['setcanvaslayouttag_20',['SetCanvasLayoutTag',['../classsw_1_1_canvas.html#a751e75d078bd18b665d7e36a5db6af5e',1,'sw::Canvas']]], + ['setchecked_21',['SetChecked',['../classsw_1_1_menu_base.html#a114b4fe9eb2cd543c605479198d67517',1,'sw::MenuBase']]], + ['setcolumnheader_22',['SetColumnHeader',['../classsw_1_1_list_view.html#a8ee454faaa1351526c069174589f5403',1,'sw::ListView']]], + ['setcolumns_23',['SetColumns',['../classsw_1_1_grid.html#ae79bb614d8319f8abfd6018f40c11e73',1,'sw::Grid']]], + ['setcolumnwidth_24',['SetColumnWidth',['../classsw_1_1_list_view.html#a71c4c33a03aa2811a3fee6d7a9d0c2c3',1,'sw::ListView']]], + ['setcursor_25',['SetCursor',['../classsw_1_1_u_i_element.html#a0ce7edc8a920e950a9a75cf1a84ea627',1,'sw::UIElement::SetCursor(HCURSOR hCursor)'],['../classsw_1_1_u_i_element.html#a848d8b2ee3267758e9a784be75b65e46',1,'sw::UIElement::SetCursor(StandardCursor cursor)']]], + ['setdesiresize_26',['SetDesireSize',['../classsw_1_1_i_layout.html#ab5c5df73b4a3e76840c5d16ab1dfb7fc',1,'sw::ILayout::SetDesireSize()'],['../classsw_1_1_layout_host.html#a035aefcab7040b1ac1503e4f25501e48',1,'sw::LayoutHost::SetDesireSize()'],['../classsw_1_1_u_i_element.html#a3370e535f462680d66063e45b92807f6',1,'sw::UIElement::SetDesireSize()']]], + ['setdock_27',['SetDock',['../classsw_1_1_dock_panel.html#a99c73e208b981b58ad4875bfe9d2f0f0',1,'sw::DockPanel']]], + ['setenabled_28',['SetEnabled',['../classsw_1_1_menu_base.html#a537663148790e0516c1a2aca7b02afd1',1,'sw::MenuBase']]], + ['setextendedstyle_29',['SetExtendedStyle',['../classsw_1_1_wnd_base.html#a58f8e7dd73212a5aed4785a5af1f8a76',1,'sw::WndBase::SetExtendedStyle(LONG_PTR style)'],['../classsw_1_1_wnd_base.html#ab34424818cb41b88aaefa796ef4b1995',1,'sw::WndBase::SetExtendedStyle(LONG_PTR style, bool value)']]], + ['setgridlayouttag_30',['SetGridLayoutTag',['../classsw_1_1_grid.html#aa586593cd6a20329efaab07c87ac2ede',1,'sw::Grid']]], + ['sethorizontalscrollpagesize_31',['SetHorizontalScrollPageSize',['../classsw_1_1_layer.html#aead2fa34ba3641781a849d3abd7f5839',1,'sw::Layer']]], + ['sethorizontalscrollrange_32',['SetHorizontalScrollRange',['../classsw_1_1_layer.html#aac08647d3f15d95e874a2c84c6237dde',1,'sw::Layer']]], + ['seticon_33',['SetIcon',['../classsw_1_1_window.html#a9046c167eb2a1572f420ecd5bd8aef1c',1,'sw::Window']]], + ['setitemcheckstate_34',['SetItemCheckState',['../classsw_1_1_list_view.html#affa13393f8c08a2e1f1b9b4018ceef3f',1,'sw::ListView']]], + ['setitems_35',['SetItems',['../classsw_1_1_menu_base.html#a1aec7eb5fee274eed8a9a49179383a94',1,'sw::MenuBase']]], + ['setitemselectionstate_36',['SetItemSelectionState',['../classsw_1_1_list_box.html#a1b4104d35b0bbe19239fdaa4f43dd956',1,'sw::ListBox']]], + ['setlayout_37',['SetLayout',['../classsw_1_1_window.html#abdf47e48c8a4e9d9c368cb549ba3d938',1,'sw::Window::SetLayout()'],['../classsw_1_1_window.html#a236c7f298b6bbb432ce7c3c82a5eaacd',1,'sw::Window::SetLayout()']]], + ['setnexttabstopfocus_38',['SetNextTabStopFocus',['../classsw_1_1_u_i_element.html#a0d9db652043bc5c5cd3483d82b35dcbe',1,'sw::UIElement']]], + ['setparent_39',['SetParent',['../classsw_1_1_u_i_element.html#ad685138138402ddd8a5fde67bbb85a45',1,'sw::UIElement::SetParent()'],['../classsw_1_1_wnd_base.html#a5fd142cef45421381b2e8b89cac67d86',1,'sw::WndBase::SetParent()']]], + ['setrows_40',['SetRows',['../classsw_1_1_grid.html#a58863e85b90d1e4253937f46cc30b8aa',1,'sw::Grid']]], + ['setselectedindex_41',['SetSelectedIndex',['../classsw_1_1_combo_box.html#a021e4d94ae1b811514523942fe94f7fe',1,'sw::ComboBox::SetSelectedIndex()'],['../classsw_1_1_items_control.html#aa23a550b08ca55e7d1c412f462124527',1,'sw::ItemsControl::SetSelectedIndex()'],['../classsw_1_1_list_box.html#aaea8164e80a16084fb2fa47c894a16db',1,'sw::ListBox::SetSelectedIndex()'],['../classsw_1_1_list_view.html#a281ac94e46cb287611a25f78a3b91a06',1,'sw::ListView::SetSelectedIndex()']]], + ['setstyle_42',['SetStyle',['../classsw_1_1_wnd_base.html#a163464ef6f42dc8e6c10557715607ad2',1,'sw::WndBase::SetStyle(LONG_PTR style)'],['../classsw_1_1_wnd_base.html#acbd2d5eb7aa20574b9ad80e166b6f0f6',1,'sw::WndBase::SetStyle(LONG_PTR style, bool value)']]], + ['setsubitems_43',['SetSubItems',['../classsw_1_1_menu_base.html#a2f4d2832b6bcc759e291a99278b3eb12',1,'sw::MenuBase']]], + ['settag_44',['SetTag',['../classsw_1_1_i_tag.html#a814b2084a60df545ba5d47e96f7928d3',1,'sw::ITag::SetTag()'],['../classsw_1_1_menu_item.html#ab0b1236f09532f993324f76c07c7b8c7',1,'sw::MenuItem::SetTag()'],['../classsw_1_1_u_i_element.html#a09acdba6221e69b6ecb17b49975a1414',1,'sw::UIElement::SetTag()']]], + ['settext_45',['SetText',['../classsw_1_1_combo_box.html#a3b4e253960fe5f62aed8544066899654',1,'sw::ComboBox::SetText()'],['../classsw_1_1_menu_base.html#a9f9fb3eda715d2c71e3e4a1b0562bac8',1,'sw::MenuBase::SetText()'],['../classsw_1_1_wnd_base.html#aba0ab3734c3d4c07f3b9bbb029b98edb',1,'sw::WndBase::SetText()']]], + ['settextcolor_46',['SetTextColor',['../classsw_1_1_list_view.html#acb06dc6710aafdb341e75fd92fc08af1',1,'sw::ListView::SetTextColor()'],['../classsw_1_1_u_i_element.html#ab8557638ba9975346d62f5339de55664',1,'sw::UIElement::SetTextColor()']]], + ['setverticalscrollpagesize_47',['SetVerticalScrollPageSize',['../classsw_1_1_layer.html#a764863242261f4373f2ec3da99ef0310',1,'sw::Layer']]], + ['setverticalscrollrange_48',['SetVerticalScrollRange',['../classsw_1_1_layer.html#a53bc897b0a8c50761ccc6c2daf4e2e02',1,'sw::Layer']]], + ['show_49',['Show',['../classsw_1_1_window.html#a3281c944ffc505243ff2b958b42e6fa7',1,'sw::Window::Show()'],['../classsw_1_1_wnd_base.html#ae2f1b78dd8165c8bca0313180a9f4b81',1,'sw::WndBase::Show()']]], + ['showcontextmenu_50',['ShowContextMenu',['../classsw_1_1_u_i_element.html#ae513a79247f76498e8f586d4ced1ff6e',1,'sw::UIElement']]], + ['showcontextmenueventargs_51',['ShowContextMenuEventArgs',['../structsw_1_1_show_context_menu_event_args.html',1,'sw']]], + ['showdialog_52',['ShowDialog',['../classsw_1_1_window.html#a37bc59a8775b6f39e244cdd6f82d5e51',1,'sw::Window']]], + ['showdropdown_53',['ShowDropDown',['../classsw_1_1_combo_box.html#a5127d5cdcd1873ae9e092a59b6bff70c',1,'sw::ComboBox']]], + ['size_54',['Size',['../structsw_1_1_size.html',1,'sw']]], + ['size_55',['size',['../classsw_1_1_font.html#aad5569847e5d52c155fe3c1a049324f3',1,'sw::Font']]], + ['sizebox_56',['SizeBox',['../classsw_1_1_window.html#a518c14e6ddbf171489a86baff4cbb6a3',1,'sw::Window']]], + ['sizechangedeventargs_57',['SizeChangedEventArgs',['../structsw_1_1_size_changed_event_args.html',1,'sw']]], + ['sizetocontent_58',['SizeToContent',['../classsw_1_1_window.html#abff0275ae90d22951d40b769f952d415',1,'sw::Window']]], + ['slider_59',['Slider',['../classsw_1_1_slider.html',1,'sw::Slider'],['../classsw_1_1_slider.html#a44907de8805117d38ba3631545f39453',1,'sw::Slider::Slider()']]], + ['split_60',['Split',['../classsw_1_1_utils.html#a8f0292de23814b539a4f5db889422a06',1,'sw::Utils']]], + ['stacklayout_61',['StackLayout',['../classsw_1_1_stack_layout.html',1,'sw']]], + ['stacklayouth_62',['StackLayoutH',['../classsw_1_1_stack_layout_h.html',1,'sw']]], + ['stacklayoutv_63',['StackLayoutV',['../classsw_1_1_stack_layout_v.html',1,'sw']]], + ['stackpanel_64',['StackPanel',['../classsw_1_1_stack_panel.html',1,'sw::StackPanel'],['../classsw_1_1_stack_panel.html#adaf90a1ad8018e5365e22f45a0a0341a',1,'sw::StackPanel::StackPanel()']]], + ['startuplocation_65',['StartupLocation',['../classsw_1_1_window.html#a4a09a7ec772a2febfcda54b9aa6a8557',1,'sw::Window']]], + ['state_66',['State',['../classsw_1_1_progress_bar.html#a596e05cda7fcc656dde20354a519cee4',1,'sw::ProgressBar::State'],['../classsw_1_1_window.html#a257ba940703f41b12990678bb3ff0e0e',1,'sw::Window::State']]], + ['staticcontrol_67',['StaticControl',['../classsw_1_1_static_control.html',1,'sw::StaticControl'],['../classsw_1_1_static_control.html#a88dea3db611c5cc94df004cdae9c74ef',1,'sw::StaticControl::StaticControl()']]], + ['strikeout_68',['strikeOut',['../classsw_1_1_font.html#a14ae471a9508e23aad832f3060bbcb85',1,'sw::Font']]], + ['subitems_69',['subItems',['../classsw_1_1_menu_item.html#ac8e01802bb6cc6f1336025819050f3c4',1,'sw::MenuItem']]] +]; diff --git a/docs/search/all_13.js b/docs/search/all_13.js new file mode 100644 index 00000000..45e568a5 --- /dev/null +++ b/docs/search/all_13.js @@ -0,0 +1,27 @@ +var searchData= +[ + ['tabcontrol_0',['TabControl',['../classsw_1_1_tab_control.html',1,'sw::TabControl'],['../classsw_1_1_tab_control.html#a402ae0be40a8a236d09b5c8a31c5aca1',1,'sw::TabControl::TabControl()']]], + ['tabstop_1',['TabStop',['../classsw_1_1_u_i_element.html#a2b54e00e1e41af2a634ad694da3ffa98',1,'sw::UIElement']]], + ['tag_2',['Tag',['../classsw_1_1_u_i_element.html#a895d79a2fa53382a43b3d02dee195360',1,'sw::UIElement']]], + ['tag_3',['tag',['../classsw_1_1_menu_item.html#a71e23c18ace7346f28415ed747d80905',1,'sw::MenuItem']]], + ['text_4',['Text',['../classsw_1_1_wnd_base.html#a9afff86d32e9b54cccc204ef29a85891',1,'sw::WndBase']]], + ['text_5',['text',['../classsw_1_1_menu_item.html#a0f67fc28cb879876a328495035031979',1,'sw::MenuItem']]], + ['textbox_6',['TextBox',['../classsw_1_1_text_box.html',1,'sw::TextBox'],['../classsw_1_1_text_box.html#ae2cffffb2a78119a7094d78109060326',1,'sw::TextBox::TextBox()']]], + ['textboxbase_7',['TextBoxBase',['../classsw_1_1_text_box_base.html',1,'sw::TextBoxBase'],['../classsw_1_1_text_box_base.html#a67d628d8d0d746292ef4350ad1a5a84a',1,'sw::TextBoxBase::TextBoxBase()']]], + ['textcolor_8',['TextColor',['../classsw_1_1_u_i_element.html#aeaf2381fdffd82bd41e90c1a2cf69022',1,'sw::UIElement']]], + ['texttrimming_9',['TextTrimming',['../classsw_1_1_label.html#a967e6a7cfc9341958f362ae94c56f583',1,'sw::Label']]], + ['thickness_10',['Thickness',['../structsw_1_1_thickness.html',1,'sw']]], + ['threestate_11',['ThreeState',['../classsw_1_1_check_box.html#ac8a52241895124f970ee2878f5d00d11',1,'sw::CheckBox']]], + ['tomultibytestr_12',['ToMultiByteStr',['../classsw_1_1_utils.html#a6cc154f2d595b5624b3aaca8b64fd3dd',1,'sw::Utils']]], + ['toolwindow_13',['ToolWindow',['../classsw_1_1_window.html#ac61382d82d410403dc2a9bc0afe49f38',1,'sw::Window']]], + ['top_14',['Top',['../classsw_1_1_wnd_base.html#a6dbe3776aeb038659f0a290fbe1dc6d7',1,'sw::WndBase']]], + ['top_15',['top',['../structsw_1_1_canvas_layout_tag.html#aebee142b9a9c5838c3fc2cb7a62374af',1,'sw::CanvasLayoutTag::top'],['../structsw_1_1_rect.html#adeb78de2f6a13f22d475605eb0e0e074',1,'sw::Rect::top'],['../structsw_1_1_thickness.html#a817cf35540e487ad81984daf97b92208',1,'sw::Thickness::top']]], + ['topindex_16',['TopIndex',['../classsw_1_1_list_box.html#a3fa1be9a1a9752e54d61cb6cadd1bc4a',1,'sw::ListBox::TopIndex'],['../classsw_1_1_list_view.html#a4158ee431cd207fc45ef4212baf7b37a',1,'sw::ListView::TopIndex']]], + ['topmost_17',['Topmost',['../classsw_1_1_window.html#a1a15faeb81c21aa3327dcd8fefdc5ffd',1,'sw::Window']]], + ['towidestr_18',['ToWideStr',['../classsw_1_1_utils.html#ae08072c3e4e8796d5ffad7027e41f773',1,'sw::Utils']]], + ['transparent_19',['Transparent',['../classsw_1_1_u_i_element.html#aa9d544a538ca2cfa3d022da61e7637e5',1,'sw::UIElement']]], + ['trim_20',['Trim',['../classsw_1_1_utils.html#ac1a4b590a8f330ca9af3ec557f3c0eac',1,'sw::Utils']]], + ['trimend_21',['TrimEnd',['../classsw_1_1_utils.html#ab2e47287405f057170c24ba15d9ebe48',1,'sw::Utils']]], + ['trimstart_22',['TrimStart',['../classsw_1_1_utils.html#ad19ab16d87c5c8f6ee319b593bf21fc7',1,'sw::Utils']]], + ['type_23',['type',['../structsw_1_1_grid_row.html#a6d8ada10faf765f507353052361bfacf',1,'sw::GridRow::type'],['../structsw_1_1_grid_column.html#a6291c41939a7abda14003bf799325d1b',1,'sw::GridColumn::type']]] +]; diff --git a/docs/search/all_14.js b/docs/search/all_14.js new file mode 100644 index 00000000..3c45c5e2 --- /dev/null +++ b/docs/search/all_14.js @@ -0,0 +1,21 @@ +var searchData= +[ + ['uielement_0',['UIElement',['../classsw_1_1_u_i_element.html',1,'sw::UIElement'],['../classsw_1_1_u_i_element.html#aeebf42b059a9962fd9c2ba64dcc309ca',1,'sw::UIElement::UIElement()']]], + ['umsg_1',['uMsg',['../structsw_1_1_proc_msg.html#a63d6c8d6ebe3bc0621ac4596a487c418',1,'sw::ProcMsg']]], + ['underline_2',['underline',['../classsw_1_1_font.html#a516d900b06bcd74900eccd55b59bdcba',1,'sw::Font']]], + ['undo_3',['Undo',['../classsw_1_1_text_box_base.html#a7c7ccda9b5161642d002a88cab7da1c3',1,'sw::TextBoxBase']]], + ['uniformgrid_4',['UniformGrid',['../classsw_1_1_uniform_grid.html',1,'sw::UniformGrid'],['../classsw_1_1_uniform_grid.html#a9e262983bba94ed0841bff604b4fbd29',1,'sw::UniformGrid::UniformGrid()']]], + ['uniformgridlayout_5',['UniformGridLayout',['../classsw_1_1_uniform_grid_layout.html',1,'sw']]], + ['unregisterroutedevent_6',['UnregisterRoutedEvent',['../classsw_1_1_u_i_element.html#a0cbfb44f8280a3e5e01b71906e588d69',1,'sw::UIElement']]], + ['update_7',['Update',['../classsw_1_1_dip.html#a3c299de3610198634e20773878486a4f',1,'sw::Dip::Update()'],['../classsw_1_1_menu_base.html#aa5e31e8a7e3f1744fec35acfdce47b2e',1,'sw::MenuBase::Update()'],['../classsw_1_1_wnd_base.html#ab7ac81f0ed48a5093fd3170c7c756963',1,'sw::WndBase::Update()']]], + ['updatechildrenzorder_8',['UpdateChildrenZOrder',['../classsw_1_1_u_i_element.html#acf5b0f1e5c2e24390b7f267db28c595a',1,'sw::UIElement']]], + ['updatefont_9',['UpdateFont',['../classsw_1_1_wnd_base.html#af8df0384e2be0569e0da1f51985204c8',1,'sw::WndBase']]], + ['updateitem_10',['UpdateItem',['../classsw_1_1_combo_box.html#a8681ea3c984f21f86269518407981d26',1,'sw::ComboBox::UpdateItem()'],['../classsw_1_1_items_control.html#af169d6e1cce32846f8d0043a69ab69b1',1,'sw::ItemsControl::UpdateItem()'],['../classsw_1_1_list_box.html#a6a75757143482d8024559027fe6ee524',1,'sw::ListBox::UpdateItem()'],['../classsw_1_1_list_view.html#ab3fba4c9cb19eb933b132ba4a7694cac',1,'sw::ListView::UpdateItem(int index, const StrList &newValue) override'],['../classsw_1_1_list_view.html#ad51ae3ae4b5cf3b60d56867738a8b960',1,'sw::ListView::UpdateItem(int row, int col, const std::wstring &newValue)']]], + ['updatelayout_11',['UpdateLayout',['../classsw_1_1_layer.html#a76769d6a5eb98783dfe42b1473560996',1,'sw::Layer']]], + ['updatescrollrange_12',['UpdateScrollRange',['../classsw_1_1_layer.html#ab71b81212d598db06271a1338b42ff1e',1,'sw::Layer']]], + ['updatesiblingszorder_13',['UpdateSiblingsZOrder',['../classsw_1_1_u_i_element.html#ae7e788c5e662363d6244414c5250a39d',1,'sw::UIElement']]], + ['updatetab_14',['UpdateTab',['../classsw_1_1_tab_control.html#acbde185af6197161f7b22485ebff02b2',1,'sw::TabControl']]], + ['updatetabtext_15',['UpdateTabText',['../classsw_1_1_tab_control.html#ab14ce7faf0e6feb71ba66e7a1029673c',1,'sw::TabControl']]], + ['updatetext_16',['UpdateText',['../classsw_1_1_wnd_base.html#a292bd97b5820a1b4e7a38d65e2b609e8',1,'sw::WndBase']]], + ['utils_17',['Utils',['../classsw_1_1_utils.html',1,'sw']]] +]; diff --git a/docs/search/all_15.js b/docs/search/all_15.js new file mode 100644 index 00000000..85b55c54 --- /dev/null +++ b/docs/search/all_15.js @@ -0,0 +1,13 @@ +var searchData= +[ + ['value_0',['Value',['../classsw_1_1_progress_bar.html#a6dd5e209fbc7f35a89309f4056ae3d1f',1,'sw::ProgressBar::Value'],['../classsw_1_1_slider.html#ac4595d8d74e4759310cb0fc07fb7308a',1,'sw::Slider::Value']]], + ['valuetooltips_1',['ValueTooltips',['../classsw_1_1_slider.html#a85276ebc466a4dbe6923f033bfe2b1cf',1,'sw::Slider']]], + ['vertical_2',['Vertical',['../classsw_1_1_progress_bar.html#a3a211f4e0318c79bcc4a64720b6f8651',1,'sw::ProgressBar::Vertical'],['../classsw_1_1_slider.html#a3f0efcf4b566cec56fed536786556a00',1,'sw::Slider::Vertical']]], + ['verticalalignment_3',['VerticalAlignment',['../classsw_1_1_u_i_element.html#ad9f49244beb6b854b436e8bbd18f4e21',1,'sw::UIElement']]], + ['verticalcontentalignment_4',['VerticalContentAlignment',['../classsw_1_1_label.html#ab127ad68d85e658bb2e8cb271df5cedc',1,'sw::Label']]], + ['verticalscrollbar_5',['VerticalScrollBar',['../classsw_1_1_layer.html#aecfdee30e69119db86f0824d35a50ea4',1,'sw::Layer::VerticalScrollBar'],['../classsw_1_1_text_box.html#a8fa3d053d6386f3aac435133dbe3a05a',1,'sw::TextBox::VerticalScrollBar']]], + ['verticalscrolllimit_6',['VerticalScrollLimit',['../classsw_1_1_layer.html#ae79ad98e8d7f2fe5f66132ce797e9f70',1,'sw::Layer']]], + ['verticalscrollpos_7',['VerticalScrollPos',['../classsw_1_1_layer.html#adac6ce15772ba5e2dcf2bfeed126e9d7',1,'sw::Layer']]], + ['visible_8',['Visible',['../classsw_1_1_wnd_base.html#a808f5d6fd407e3b65cff88f1873bd754',1,'sw::WndBase']]], + ['visiblechanged_9',['VisibleChanged',['../classsw_1_1_u_i_element.html#a98812949329f77e400f7e0e381c56c3d',1,'sw::UIElement::VisibleChanged()'],['../classsw_1_1_wnd_base.html#aef02bbac8ef450e5f3f478b41031a3ab',1,'sw::WndBase::VisibleChanged()']]] +]; diff --git a/docs/search/all_16.js b/docs/search/all_16.js new file mode 100644 index 00000000..1cafb156 --- /dev/null +++ b/docs/search/all_16.js @@ -0,0 +1,45 @@ +var searchData= +[ + ['weight_0',['weight',['../classsw_1_1_font.html#aa5126e73aad9ba2fd6aab826bac16a5c',1,'sw::Font']]], + ['width_1',['Width',['../classsw_1_1_screen.html#a2276c1ff4a907b74517a0e12b3999c92',1,'sw::Screen::Width'],['../classsw_1_1_wnd_base.html#a445edbe5db50a5a4486ddff98e8ffbae',1,'sw::WndBase::Width']]], + ['width_2',['width',['../structsw_1_1_grid_column.html#aa07dbbfe79ce8c33ebd7bffa430bf6eb',1,'sw::GridColumn::width'],['../structsw_1_1_list_view_column.html#abd8ec9f51310be92ec1ff113314e5257',1,'sw::ListViewColumn::width'],['../structsw_1_1_rect.html#ada69154ab3d734587ef9695b10144b01',1,'sw::Rect::width'],['../structsw_1_1_size.html#a22c3b210b0c48e2812604381f729d5bd',1,'sw::Size::width']]], + ['window_3',['Window',['../classsw_1_1_window.html',1,'sw::Window'],['../classsw_1_1_window.html#a24eed02d394d13b368f5cf99b2a68c44',1,'sw::Window::Window()']]], + ['windowclosingeventargs_4',['WindowClosingEventArgs',['../structsw_1_1_window_closing_event_args.html',1,'sw']]], + ['windowcount_5',['WindowCount',['../classsw_1_1_window.html#a317c7f1dea4dd3f29d5d7c865563c310',1,'sw::Window']]], + ['wndbase_6',['WndBase',['../classsw_1_1_wnd_base.html',1,'sw::WndBase'],['../classsw_1_1_wnd_base.html#aab509b68c9c0b612862cf41d8ef685a3',1,'sw::WndBase::WndBase()']]], + ['wndproc_7',['WndProc',['../classsw_1_1_window.html#a5c4a30ad5dd71cba0de201846867de25',1,'sw::Window::WndProc()'],['../classsw_1_1_wnd_base.html#a863b26226e16cf37f7169c6edc96a3b4',1,'sw::WndBase::WndProc()']]], + ['wparam_8',['wParam',['../structsw_1_1_proc_msg.html#a114f533462da6db1852ad4aa5485d86b',1,'sw::ProcMsg']]], + ['wraplayout_9',['WrapLayout',['../classsw_1_1_wrap_layout.html',1,'sw']]], + ['wraplayouth_10',['WrapLayoutH',['../classsw_1_1_wrap_layout_h.html',1,'sw']]], + ['wraplayoutv_11',['WrapLayoutV',['../classsw_1_1_wrap_layout_v.html',1,'sw']]], + ['wrappanel_12',['WrapPanel',['../classsw_1_1_wrap_panel.html',1,'sw::WrapPanel'],['../classsw_1_1_wrap_panel.html#a7dfc71028a9f60941ff4387ae175b078',1,'sw::WrapPanel::WrapPanel()']]], + ['writeonlyproperty_13',['WriteOnlyProperty',['../classsw_1_1_write_only_property.html',1,'sw::WriteOnlyProperty< T >'],['../classsw_1_1_write_only_property.html#a38c348942cc3981b10e3929da579a147',1,'sw::WriteOnlyProperty::WriteOnlyProperty()']]], + ['writeonlyproperty_3c_20appquitmode_20_3e_14',['WriteOnlyProperty< AppQuitMode >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20bool_20_3e_15',['WriteOnlyProperty< bool >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20double_20_3e_16',['WriteOnlyProperty< double >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20horizontalalignment_20_3e_17',['WriteOnlyProperty< HorizontalAlignment >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20int_20_3e_18',['WriteOnlyProperty< int >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20progressbarstate_20_3e_19',['WriteOnlyProperty< ProgressBarState >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20std_3a_3awstring_20_3e_20',['WriteOnlyProperty< std::wstring >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20sw_3a_3aborderstyle_20_3e_21',['WriteOnlyProperty< sw::BorderStyle >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20sw_3a_3acheckstate_20_3e_22',['WriteOnlyProperty< sw::CheckState >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20sw_3a_3acolor_20_3e_23',['WriteOnlyProperty< sw::Color >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20sw_3a_3acontextmenu_20_2a_20_3e_24',['WriteOnlyProperty< sw::ContextMenu * >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20sw_3a_3afont_20_3e_25',['WriteOnlyProperty< sw::Font >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20sw_3a_3afontweight_20_3e_26',['WriteOnlyProperty< sw::FontWeight >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20sw_3a_3ahorizontalalignment_20_3e_27',['WriteOnlyProperty< sw::HorizontalAlignment >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20sw_3a_3alayouthost_20_2a_20_3e_28',['WriteOnlyProperty< sw::LayoutHost * >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20sw_3a_3amenu_20_2a_20_3e_29',['WriteOnlyProperty< sw::Menu * >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20sw_3a_3aorientation_20_3e_30',['WriteOnlyProperty< sw::Orientation >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20sw_3a_3arect_20_3e_31',['WriteOnlyProperty< sw::Rect >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20sw_3a_3atexttrimming_20_3e_32',['WriteOnlyProperty< sw::TextTrimming >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20sw_3a_3athickness_20_3e_33',['WriteOnlyProperty< sw::Thickness >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20sw_3a_3averticalalignment_20_3e_34',['WriteOnlyProperty< sw::VerticalAlignment >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20tabalignment_20_3e_35',['WriteOnlyProperty< TabAlignment >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20uint16_5ft_20_3e_36',['WriteOnlyProperty< uint16_t >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20uint64_5ft_20_3e_37',['WriteOnlyProperty< uint64_t >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20verticalalignment_20_3e_38',['WriteOnlyProperty< VerticalAlignment >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20wchar_5ft_20_3e_39',['WriteOnlyProperty< wchar_t >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20windowstartuplocation_20_3e_40',['WriteOnlyProperty< WindowStartupLocation >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20windowstate_20_3e_41',['WriteOnlyProperty< WindowState >',['../classsw_1_1_write_only_property.html',1,'sw']]] +]; diff --git a/docs/search/all_17.js b/docs/search/all_17.js new file mode 100644 index 00000000..e49ad425 --- /dev/null +++ b/docs/search/all_17.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['x_0',['x',['../structsw_1_1_point.html#afceae691252771cc050e8e4152971ba9',1,'sw::Point']]] +]; diff --git a/docs/search/all_18.js b/docs/search/all_18.js new file mode 100644 index 00000000..5cffc0f2 --- /dev/null +++ b/docs/search/all_18.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['y_0',['y',['../structsw_1_1_point.html#a4d0905242fc362a62b21ea6adf2e54e6',1,'sw::Point']]] +]; diff --git a/docs/search/all_19.js b/docs/search/all_19.js new file mode 100644 index 00000000..c3e7993e --- /dev/null +++ b/docs/search/all_19.js @@ -0,0 +1,12 @@ +var searchData= +[ + ['_7ebuttonbase_0',['~ButtonBase',['../classsw_1_1_button_base.html#a2b521a4eb6233774cf15ece47c0b5d68',1,'sw::ButtonBase']]], + ['_7echeckablebutton_1',['~CheckableButton',['../classsw_1_1_checkable_button.html#a5219cae8ff29ce51fc384b1916debb7a',1,'sw::CheckableButton']]], + ['_7econtrol_2',['~Control',['../classsw_1_1_control.html#ab2c00cbb6c776111096e9711c19735e7',1,'sw::Control']]], + ['_7elayer_3',['~Layer',['../classsw_1_1_layer.html#a9704f14ac77a0e0902b79058a2d29c8d',1,'sw::Layer']]], + ['_7emenubase_4',['~MenuBase',['../classsw_1_1_menu_base.html#abde93ccb3c829385d8e15f6ee1a36d0f',1,'sw::MenuBase']]], + ['_7epanelbase_5',['~PanelBase',['../classsw_1_1_panel_base.html#a7acc50ef3ccea1f4efa8d1d3fdf18fa9',1,'sw::PanelBase']]], + ['_7etextboxbase_6',['~TextBoxBase',['../classsw_1_1_text_box_base.html#a2fb455bb1ed2c1b3f3c12a82a5a4b720',1,'sw::TextBoxBase']]], + ['_7euielement_7',['~UIElement',['../classsw_1_1_u_i_element.html#acbe28513919da89bf3f9a5102d6353c3',1,'sw::UIElement']]], + ['_7ewndbase_8',['~WndBase',['../classsw_1_1_wnd_base.html#a6c99714fa3f313e7535936585f63b9cb',1,'sw::WndBase']]] +]; diff --git a/docs/search/all_2.js b/docs/search/all_2.js new file mode 100644 index 00000000..b2183860 --- /dev/null +++ b/docs/search/all_2.js @@ -0,0 +1,11 @@ +var searchData= +[ + ['b_0',['b',['../structsw_1_1_color.html#aeeb136eece447ed3f36a6767a807bb4d',1,'sw::Color']]], + ['backcolor_1',['BackColor',['../classsw_1_1_u_i_element.html#aaf6897b58dc2899c37a3b395bfe124b9',1,'sw::UIElement']]], + ['begin_2',['begin',['../classsw_1_1_dictionary.html#a9e7e3d687118005beb08bbf9e3a3a2bc',1,'sw::Dictionary::begin()'],['../classsw_1_1_list.html#a39b94e22ea344de135667df991fbbe11',1,'sw::List::begin()']]], + ['borderstyle_3',['BorderStyle',['../classsw_1_1_panel.html#aa7b04b11114891c5df7b84932fd3370f',1,'sw::Panel']]], + ['bottom_4',['bottom',['../structsw_1_1_thickness.html#acea3dd0c6fdcc155ac47ec7c3eab97fa',1,'sw::Thickness']]], + ['buildstr_5',['BuildStr',['../classsw_1_1_utils.html#abb9a32e7b7d1fb83832c9a39a84c3452',1,'sw::Utils']]], + ['button_6',['Button',['../classsw_1_1_button.html',1,'sw::Button'],['../classsw_1_1_button.html#aafd2e523e98d68c45e451d93f22ead13',1,'sw::Button::Button()']]], + ['buttonbase_7',['ButtonBase',['../classsw_1_1_button_base.html',1,'sw::ButtonBase'],['../classsw_1_1_button_base.html#ae5dad2a65523da878df700fa4aefe3ee',1,'sw::ButtonBase::ButtonBase()']]] +]; diff --git a/docs/search/all_3.js b/docs/search/all_3.js new file mode 100644 index 00000000..bf48606a --- /dev/null +++ b/docs/search/all_3.js @@ -0,0 +1,46 @@ +var searchData= +[ + ['callcommand_0',['CallCommand',['../classsw_1_1_menu_item.html#a1b1b34eaed41f83ca8e6072c0db486a0',1,'sw::MenuItem']]], + ['canundo_1',['CanUndo',['../classsw_1_1_text_box_base.html#a63ae3c3e273a7a69d0f7ca07b102f64b',1,'sw::TextBoxBase']]], + ['canvas_2',['Canvas',['../classsw_1_1_canvas.html',1,'sw::Canvas'],['../classsw_1_1_canvas.html#a92de73414d185ba3e67668643de54e35',1,'sw::Canvas::Canvas()']]], + ['canvaslayout_3',['CanvasLayout',['../classsw_1_1_canvas_layout.html',1,'sw']]], + ['canvaslayouttag_4',['CanvasLayoutTag',['../structsw_1_1_canvas_layout_tag.html',1,'sw::CanvasLayoutTag'],['../structsw_1_1_canvas_layout_tag.html#ad3e70c4391d2f7835676e5aae48a4377',1,'sw::CanvasLayoutTag::CanvasLayoutTag()'],['../structsw_1_1_canvas_layout_tag.html#ae9def609feb263d19aa829b29010184c',1,'sw::CanvasLayoutTag::CanvasLayoutTag(float left, float top)'],['../structsw_1_1_canvas_layout_tag.html#a5fcb2062d7a1239c4bd0f9fbf971718c',1,'sw::CanvasLayoutTag::CanvasLayoutTag(uint64_t layoutTag)']]], + ['capacity_5',['Capacity',['../classsw_1_1_list.html#a6998243269a9ad3bc5f4c9bdb6d90f99',1,'sw::List']]], + ['charset_6',['charSet',['../classsw_1_1_font.html#ac2b4f997e58b3dcadcaf95e0452599c6',1,'sw::Font']]], + ['checkablebutton_7',['CheckableButton',['../classsw_1_1_checkable_button.html',1,'sw::CheckableButton'],['../classsw_1_1_checkable_button.html#a2524d4f78fb668da7d5a27a8d9aed837',1,'sw::CheckableButton::CheckableButton()']]], + ['checkbox_8',['CheckBox',['../classsw_1_1_check_box.html',1,'sw::CheckBox'],['../classsw_1_1_check_box.html#a9db08b927d4b2ff852d0166ab94ab196',1,'sw::CheckBox::CheckBox()']]], + ['checkboxes_9',['CheckBoxes',['../classsw_1_1_list_view.html#a6708aba4c056b8729c66fe39b4035b7b',1,'sw::ListView']]], + ['checkstate_10',['CheckState',['../classsw_1_1_checkable_button.html#ad8a49d1834f5dd09237583795f439547',1,'sw::CheckableButton']]], + ['childcount_11',['ChildCount',['../classsw_1_1_u_i_element.html#a5c452519bad920ad9b91f9610ea202e0',1,'sw::UIElement']]], + ['clear_12',['Clear',['../classsw_1_1_combo_box.html#ae3956a539565249f84c343ff7a8cc945',1,'sw::ComboBox::Clear()'],['../classsw_1_1_dictionary.html#a061c70ddd433b90b5d8b61a9c81fc8da',1,'sw::Dictionary::Clear()'],['../classsw_1_1_items_control.html#a36312564b15eb327474696bf407b7864',1,'sw::ItemsControl::Clear()'],['../classsw_1_1_list.html#a9a9a3e947b9591f2a0e7fde6fb2ac9a8',1,'sw::List::Clear()'],['../classsw_1_1_list_box.html#af8f7832d3773fc8e9ddafbcfa617457f',1,'sw::ListBox::Clear()'],['../classsw_1_1_list_view.html#abb85e686c9e461b12b9184763a5bc76a',1,'sw::ListView::Clear()'],['../classsw_1_1_text_box_base.html#a9100aef79b476bac6f50933c7d73d5ee',1,'sw::TextBoxBase::Clear()']]], + ['clearchildren_13',['ClearChildren',['../classsw_1_1_u_i_element.html#a9585aee58045291cdca577e64f4a56e3',1,'sw::UIElement']]], + ['clearcolumns_14',['ClearColumns',['../classsw_1_1_grid.html#a9889b8f4e5cc9c290c444a25594e9e5a',1,'sw::Grid']]], + ['clearrows_15',['ClearRows',['../classsw_1_1_grid.html#affdc4e3a683b4577a3f82e2986dd7b2d',1,'sw::Grid']]], + ['clientheight_16',['ClientHeight',['../classsw_1_1_wnd_base.html#a4030b80afd9e81e3046ccd5ec94ec83f',1,'sw::WndBase']]], + ['clientrect_17',['ClientRect',['../classsw_1_1_wnd_base.html#a0126115c0626d137ba3e7b0a5c8d793b',1,'sw::WndBase']]], + ['clientwidth_18',['ClientWidth',['../classsw_1_1_wnd_base.html#a97898f967c916e67c152c69f4c7c6cd6',1,'sw::WndBase']]], + ['clipprecision_19',['clipPrecision',['../classsw_1_1_font.html#a17830a6ab96c792ea5c31f1dc4eb6b9b',1,'sw::Font']]], + ['close_20',['Close',['../classsw_1_1_wnd_base.html#a436818f8ad91446f86b42081dd1a7358',1,'sw::WndBase']]], + ['closedropdown_21',['CloseDropDown',['../classsw_1_1_combo_box.html#a347c5bf1646ae709ec6a4585dea20dae',1,'sw::ComboBox']]], + ['collapsewhenhide_22',['CollapseWhenHide',['../classsw_1_1_u_i_element.html#a952e87aef0f2dfdec6bd98e944b6d891',1,'sw::UIElement']]], + ['color_23',['Color',['../structsw_1_1_color.html',1,'sw']]], + ['column_24',['column',['../structsw_1_1_grid_layout_tag.html#aa7a46315a36db1adc57e6cd12aa36713',1,'sw::GridLayoutTag']]], + ['columns_25',['columns',['../classsw_1_1_grid_layout.html#a31dc19020481d77169ecad187bad886e',1,'sw::GridLayout::columns'],['../classsw_1_1_uniform_grid_layout.html#a73d71cc8e99540d40ab1f4fd528b9492',1,'sw::UniformGridLayout::columns']]], + ['columns_26',['Columns',['../classsw_1_1_uniform_grid.html#ac6abb7aaf70869b91207c53cfaf59bca',1,'sw::UniformGrid']]], + ['columnscount_27',['ColumnsCount',['../classsw_1_1_list_view.html#a0b84ba1066f16317e48629059b94ded8',1,'sw::ListView']]], + ['columnspan_28',['columnSpan',['../structsw_1_1_grid_layout_tag.html#ad6949937cb3becc28cee7f7c79604fd8',1,'sw::GridLayoutTag']]], + ['combine_29',['Combine',['../classsw_1_1_path.html#aaa1b4b0e392fed266c3ca9eeabd5200d',1,'sw::Path']]], + ['combobox_30',['ComboBox',['../classsw_1_1_combo_box.html',1,'sw::ComboBox'],['../classsw_1_1_combo_box.html#ab7952615f64988796a72df3027170e8b',1,'sw::ComboBox::ComboBox()']]], + ['command_31',['command',['../classsw_1_1_menu_item.html#a7723b9fa2888c82ed5c61875ef077aad',1,'sw::MenuItem']]], + ['contains_32',['Contains',['../classsw_1_1_list.html#a459de7b71327cf474c1ac24909b49773',1,'sw::List']]], + ['containskey_33',['ContainsKey',['../classsw_1_1_dictionary.html#a726bccc37022c21d7864673c69138acc',1,'sw::Dictionary']]], + ['contentrect_34',['ContentRect',['../classsw_1_1_tab_control.html#a14f5debfc882417906f0d610617f5b05',1,'sw::TabControl']]], + ['contextmenu_35',['ContextMenu',['../classsw_1_1_context_menu.html',1,'sw::ContextMenu'],['../classsw_1_1_u_i_element.html#ae5706cc9d6ef3fab9176ccded231b99e',1,'sw::UIElement::ContextMenu'],['../classsw_1_1_context_menu.html#ac51b991e84733be50e525147c3cc9d43',1,'sw::ContextMenu::ContextMenu()'],['../classsw_1_1_context_menu.html#a63c072213d8bfb7cbe4d6974eb44266b',1,'sw::ContextMenu::ContextMenu(std::initializer_list< MenuItem > items)']]], + ['control_36',['Control',['../classsw_1_1_control.html',1,'sw::Control'],['../classsw_1_1_control.html#aec7b384d013e9d25c507cf9ded87bff1',1,'sw::Control::Control()']]], + ['copy_37',['Copy',['../classsw_1_1_dictionary.html#afa7a405134901716b4affecc9f01df0f',1,'sw::Dictionary::Copy()'],['../classsw_1_1_list.html#a765086d760ea625121500730a2579d28',1,'sw::List::Copy()']]], + ['count_38',['Count',['../classsw_1_1_dictionary.html#a7c16eced6a889e97f4a1807697090fd3',1,'sw::Dictionary::Count()'],['../classsw_1_1_list.html#ac06d9081e817d6c808453928dd33525a',1,'sw::List::Count()']]], + ['createhandle_39',['CreateHandle',['../classsw_1_1_font.html#ac38911636974d3f67e7ece35cfc8172e',1,'sw::Font']]], + ['currentdirectory_40',['CurrentDirectory',['../classsw_1_1_app.html#a6d37ddbf6c419a02182c325a1dce5575',1,'sw::App']]], + ['cursorhelper_41',['CursorHelper',['../classsw_1_1_cursor_helper.html',1,'sw']]], + ['cursorposition_42',['CursorPosition',['../classsw_1_1_screen.html#a0bf87a2c7e6680747d8a77e4daf466a8',1,'sw::Screen']]] +]; diff --git a/docs/search/all_4.js b/docs/search/all_4.js new file mode 100644 index 00000000..1e08ec03 --- /dev/null +++ b/docs/search/all_4.js @@ -0,0 +1,13 @@ +var searchData= +[ + ['defaultwndproc_0',['DefaultWndProc',['../classsw_1_1_wnd_base.html#a585967d861673ea0477f25c1a5c0fb30',1,'sw::WndBase']]], + ['dictionary_1',['Dictionary',['../classsw_1_1_dictionary.html',1,'sw::Dictionary< TKey, TVal >'],['../classsw_1_1_dictionary.html#a77cbfe628092b74f1a698e7b5fe56c69',1,'sw::Dictionary::Dictionary()'],['../classsw_1_1_dictionary.html#a178b607824a4eff707914f2eb3aaaa22',1,'sw::Dictionary::Dictionary(std::initializer_list< std::pair< const TKey, TVal > > list)']]], + ['dip_2',['Dip',['../classsw_1_1_dip.html',1,'sw']]], + ['diptopxx_3',['DipToPxX',['../classsw_1_1_dip.html#a66e3c3a119b77b632ec5f1f37051ee6d',1,'sw::Dip']]], + ['diptopxy_4',['DipToPxY',['../classsw_1_1_dip.html#ae8986a97dc498280957b4c9e5fa53124',1,'sw::Dip']]], + ['disablelayout_5',['DisableLayout',['../classsw_1_1_layer.html#a4c9e94621cab7abd5ca2e10f5691c3c1',1,'sw::Layer']]], + ['docklayout_6',['DockLayout',['../classsw_1_1_dock_layout.html',1,'sw']]], + ['docklayouttag_7',['DockLayoutTag',['../classsw_1_1_dock_layout.html#a35500d2b1512e62f31792ed90aafde5d',1,'sw::DockLayout']]], + ['dockpanel_8',['DockPanel',['../classsw_1_1_dock_panel.html',1,'sw::DockPanel'],['../classsw_1_1_dock_panel.html#a8c9ce34641a342dc14c8bae2d49e3c08',1,'sw::DockPanel::DockPanel()']]], + ['drawmenubar_9',['DrawMenuBar',['../classsw_1_1_window.html#a3daeab5c99e045449a8a5f086c19877e',1,'sw::Window']]] +]; diff --git a/docs/search/all_5.js b/docs/search/all_5.js new file mode 100644 index 00000000..b8f67bcf --- /dev/null +++ b/docs/search/all_5.js @@ -0,0 +1,11 @@ +var searchData= +[ + ['enabled_0',['Enabled',['../classsw_1_1_wnd_base.html#ad5e7d8d1a548315b3e709151f71766b3',1,'sw::WndBase']]], + ['enablelayout_1',['EnableLayout',['../classsw_1_1_layer.html#a5965bfa865e07371ad9e2e773f720653',1,'sw::Layer']]], + ['end_2',['end',['../classsw_1_1_dictionary.html#a98945b3a8a7c6b3e1110a406718a49c8',1,'sw::Dictionary::end()'],['../classsw_1_1_list.html#a9630ceee45943beca3b53931b7864095',1,'sw::List::end()']]], + ['escapement_3',['escapement',['../classsw_1_1_font.html#a6c870ded0829330446de69e8c0994a1e',1,'sw::Font']]], + ['eventtype_4',['EventType',['../structsw_1_1_routed_event_args_of_type.html#a3fc47b03d3857d9ec7e9bb3c40a61b79',1,'sw::RoutedEventArgsOfType']]], + ['eventtype_5',['eventType',['../structsw_1_1_routed_event_args.html#a46df8118b89dcc6c494cdbded901b082',1,'sw::RoutedEventArgs']]], + ['exedirectory_6',['ExeDirectory',['../classsw_1_1_app.html#ab1b7352d6527e1ecad51de96e0b8d759',1,'sw::App']]], + ['exepath_7',['ExePath',['../classsw_1_1_app.html#a61a6ac6c879624eb1dff7244e58c7200',1,'sw::App']]] +]; diff --git a/docs/search/all_6.js b/docs/search/all_6.js new file mode 100644 index 00000000..82ab11a6 --- /dev/null +++ b/docs/search/all_6.js @@ -0,0 +1,18 @@ +var searchData= +[ + ['family_0',['family',['../classsw_1_1_font.html#a032ab2f362cc53c16c5384f38c1d4888',1,'sw::Font']]], + ['filllayout_1',['FillLayout',['../classsw_1_1_fill_layout.html',1,'sw']]], + ['fillremaingridcolumn_2',['FillRemainGridColumn',['../structsw_1_1_fill_remain_grid_column.html',1,'sw::FillRemainGridColumn'],['../structsw_1_1_fill_remain_grid_column.html#a0835e5144c6f0246c6d7cf2c8dfd18a1',1,'sw::FillRemainGridColumn::FillRemainGridColumn()']]], + ['fillremaingridrow_3',['FillRemainGridRow',['../structsw_1_1_fill_remain_grid_row.html',1,'sw::FillRemainGridRow'],['../structsw_1_1_fill_remain_grid_row.html#ae4f6bd7474c82f753a03296a972bd308',1,'sw::FillRemainGridRow::FillRemainGridRow()']]], + ['firstcolumn_4',['FirstColumn',['../classsw_1_1_uniform_grid.html#a8fc9ee46df1fab2fd0538880d3d2e536',1,'sw::UniformGrid']]], + ['firstcolumn_5',['firstColumn',['../classsw_1_1_uniform_grid_layout.html#aa5e7c87ab71f2ffd2c9e227ab46dab0e',1,'sw::UniformGridLayout']]], + ['fixsizegridcolumn_6',['FixSizeGridColumn',['../structsw_1_1_fix_size_grid_column.html',1,'sw::FixSizeGridColumn'],['../structsw_1_1_fix_size_grid_column.html#a2564cacaada11c191704e59dab7d735b',1,'sw::FixSizeGridColumn::FixSizeGridColumn()']]], + ['fixsizegridrow_7',['FixSizeGridRow',['../structsw_1_1_fix_size_grid_row.html',1,'sw::FixSizeGridRow'],['../structsw_1_1_fix_size_grid_row.html#a196b15d809057c6fc17943da76edcc06',1,'sw::FixSizeGridRow::FixSizeGridRow()']]], + ['float_8',['Float',['../classsw_1_1_u_i_element.html#ac0d66604bc2dd555c37688135878a7f0',1,'sw::UIElement']]], + ['focused_9',['Focused',['../classsw_1_1_wnd_base.html#a71498b3ad8ae548fd7f4a531a6b70982',1,'sw::WndBase']]], + ['font_10',['Font',['../classsw_1_1_font.html',1,'sw::Font'],['../classsw_1_1_wnd_base.html#a529436cd730fc39ad2875728cdfe4a51',1,'sw::WndBase::Font']]], + ['fontchanged_11',['FontChanged',['../classsw_1_1_label.html#af5e6d5d4530ee12b52ce2ab16f180aac',1,'sw::Label::FontChanged()'],['../classsw_1_1_wnd_base.html#ac34494921eed0f67a053a9393d78bcf9',1,'sw::WndBase::FontChanged(HFONT hfont)']]], + ['fontname_12',['FontName',['../classsw_1_1_wnd_base.html#a72a604f374bba1e6c34b5d5e56cd26f0',1,'sw::WndBase']]], + ['fontsize_13',['FontSize',['../classsw_1_1_wnd_base.html#ac49c6452ceb4950dd581189615753b0c',1,'sw::WndBase']]], + ['fontweight_14',['FontWeight',['../classsw_1_1_wnd_base.html#a50e006e69f07abb4e6ba381121abcd22',1,'sw::WndBase']]] +]; diff --git a/docs/search/all_7.js b/docs/search/all_7.js new file mode 100644 index 00000000..115b4db7 --- /dev/null +++ b/docs/search/all_7.js @@ -0,0 +1,66 @@ +var searchData= +[ + ['g_0',['g',['../structsw_1_1_color.html#a5bf136539d077e375ba6f481ad8a8b25',1,'sw::Color']]], + ['get_1',['Get',['../classsw_1_1_read_only_property.html#ac4317dbef2c25af64659b805cbbb26f6',1,'sw::ReadOnlyProperty']]], + ['getabsolutepath_2',['GetAbsolutePath',['../classsw_1_1_path.html#a398068d8b8a1c6a74016dedf0aedafb3',1,'sw::Path']]], + ['getarrangeoffsetx_3',['GetArrangeOffsetX',['../classsw_1_1_u_i_element.html#ae43f4f3c5a5c723d29f20e5590641388',1,'sw::UIElement']]], + ['getarrangeoffsety_4',['GetArrangeOffsetY',['../classsw_1_1_u_i_element.html#ab48faeb3dde62fbbe944a28dce2f3133',1,'sw::UIElement']]], + ['getcanvaslayouttag_5',['GetCanvasLayoutTag',['../classsw_1_1_canvas.html#ab1db5d7f52085916ad4785bdde42d3f8',1,'sw::Canvas']]], + ['getchecked_6',['GetChecked',['../classsw_1_1_menu_base.html#a2a631549b5be6a41f8a24342a880826d',1,'sw::MenuBase']]], + ['getcheckedindices_7',['GetCheckedIndices',['../classsw_1_1_list_view.html#ac4de7a880d513d5fe78d9600304979d2',1,'sw::ListView']]], + ['getchildbottommost_8',['GetChildBottommost',['../classsw_1_1_u_i_element.html#a7bda5652549fe9909e3b6b1383754b30',1,'sw::UIElement']]], + ['getchildlayoutat_9',['GetChildLayoutAt',['../classsw_1_1_i_layout.html#ab6a7ef612525020012594123732d24d4',1,'sw::ILayout::GetChildLayoutAt()'],['../classsw_1_1_layout_host.html#abd04747a5d0395d5f95f06185e28b964',1,'sw::LayoutHost::GetChildLayoutAt()'],['../classsw_1_1_u_i_element.html#a3683672f3c2fc8f80e4f808aac78d262',1,'sw::UIElement::GetChildLayoutAt()']]], + ['getchildlayoutcount_10',['GetChildLayoutCount',['../classsw_1_1_i_layout.html#aa07f4408aab5c6b088b69ede010fccd9',1,'sw::ILayout::GetChildLayoutCount()'],['../classsw_1_1_layout_host.html#a0c6c9750b12c5816608d78d72225b872',1,'sw::LayoutHost::GetChildLayoutCount()'],['../classsw_1_1_u_i_element.html#a994aad366bc1f62ef7d53defa9456e64',1,'sw::UIElement::GetChildLayoutCount() override']]], + ['getchildrightmost_11',['GetChildRightmost',['../classsw_1_1_u_i_element.html#a1f0bde7d9646b68dfe7251eba908cc08',1,'sw::UIElement']]], + ['getcolumnwidth_12',['GetColumnWidth',['../classsw_1_1_list_view.html#a35e0f172950516ae97ab0bbbfddbab14',1,'sw::ListView']]], + ['getcursorhandle_13',['GetCursorHandle',['../classsw_1_1_cursor_helper.html#a1b41b564e3d9a417028b212e01c700fc',1,'sw::CursorHelper::GetCursorHandle(StandardCursor cursor)'],['../classsw_1_1_cursor_helper.html#a00f191c252dec31acb75dc15a8a427b3',1,'sw::CursorHelper::GetCursorHandle(HINSTANCE hInstance, int resourceId)'],['../classsw_1_1_cursor_helper.html#a125c89031f9e41193be7eaf5ec64490e',1,'sw::CursorHelper::GetCursorHandle(HINSTANCE hInstance, const std::wstring &cursorName)'],['../classsw_1_1_cursor_helper.html#a1542d9698d89360ed60437826386116f',1,'sw::CursorHelper::GetCursorHandle(const std::wstring &fileName)']]], + ['getdefaultfont_14',['GetDefaultFont',['../classsw_1_1_font.html#ac3868ad33ae605352723ab3ef0b4a728',1,'sw::Font']]], + ['getdefaultlayout_15',['GetDefaultLayout',['../classsw_1_1_canvas.html#a203ac5f90e7aa9df73df4b4d43fc0266',1,'sw::Canvas::GetDefaultLayout()'],['../classsw_1_1_dock_panel.html#ae788d750c9da6ebb61d28d0bf948eaa7',1,'sw::DockPanel::GetDefaultLayout()'],['../classsw_1_1_grid.html#aa7e060ae29483d32a5fdfa8b8cc6420d',1,'sw::Grid::GetDefaultLayout()'],['../classsw_1_1_layer.html#a57498353e1b1b74f708ec8da81b48605',1,'sw::Layer::GetDefaultLayout()'],['../classsw_1_1_stack_panel.html#a1d7bd2e8b8293003e47f5d297c58044b',1,'sw::StackPanel::GetDefaultLayout()'],['../classsw_1_1_uniform_grid.html#aeedb9dcb3c92bd39fa33589dc8922fcb',1,'sw::UniformGrid::GetDefaultLayout()'],['../classsw_1_1_window.html#abafe422b0435aa15ec04ced4300b6b76',1,'sw::Window::GetDefaultLayout()'],['../classsw_1_1_wrap_panel.html#ab2961a927e8b28a38d9b5e2d4487d163',1,'sw::WrapPanel::GetDefaultLayout()']]], + ['getdesiresize_16',['GetDesireSize',['../classsw_1_1_i_layout.html#a081e12b24d148735bfeeb5cc97b230f1',1,'sw::ILayout::GetDesireSize()'],['../classsw_1_1_layout_host.html#a7099b15d8916a42f58de10d0266e89f6',1,'sw::LayoutHost::GetDesireSize()'],['../classsw_1_1_u_i_element.html#a633ace3fad478f1cc6480fa5512288fb',1,'sw::UIElement::GetDesireSize()']]], + ['getdirectory_17',['GetDirectory',['../classsw_1_1_path.html#abc7ec8c028a17394f82760b1638269ea',1,'sw::Path']]], + ['getdock_18',['GetDock',['../classsw_1_1_dock_panel.html#a439e945468b54f6fa12cc4f2f8087d9f',1,'sw::DockPanel']]], + ['getenabled_19',['GetEnabled',['../classsw_1_1_menu_base.html#ab610a8a98e4bf6f199fe7706dbb57f4d',1,'sw::MenuBase']]], + ['getextendedstyle_20',['GetExtendedStyle',['../classsw_1_1_wnd_base.html#a12044a0ffde9b79b03adef97bd266a1a',1,'sw::WndBase::GetExtendedStyle()'],['../classsw_1_1_wnd_base.html#a40c635116230de013fbbda5c76e00612',1,'sw::WndBase::GetExtendedStyle(LONG_PTR style)']]], + ['getextension_21',['GetExtension',['../classsw_1_1_path.html#a0b64f758ee4721dad5e72bd380f0f247',1,'sw::Path']]], + ['getfilename_22',['GetFileName',['../classsw_1_1_path.html#afd0d273347ab958aa270bd30f7512d77',1,'sw::Path']]], + ['getfilenamewithoutext_23',['GetFileNameWithoutExt',['../classsw_1_1_path.html#a66144fb671c988edc835fb1e7134de81',1,'sw::Path']]], + ['getfont_24',['GetFont',['../classsw_1_1_font.html#a186de58a843c2c87777e04b84623be81',1,'sw::Font']]], + ['getfonthandle_25',['GetFontHandle',['../classsw_1_1_wnd_base.html#a2eec178adddff9e44d83238f19d57b1b',1,'sw::WndBase']]], + ['getgridlayouttag_26',['GetGridLayoutTag',['../classsw_1_1_grid.html#af4b5153c0e5b4548be65c4eba0f0e7c4',1,'sw::Grid']]], + ['gethandle_27',['GetHandle',['../classsw_1_1_menu_base.html#a7f18755d0245d1e8c536438b5ec99093',1,'sw::MenuBase']]], + ['gethorizontalscrollpagesize_28',['GetHorizontalScrollPageSize',['../classsw_1_1_layer.html#a465cbfd99c23c60b746529372a071274',1,'sw::Layer']]], + ['gethorizontalscrollrange_29',['GetHorizontalScrollRange',['../classsw_1_1_layer.html#a61a3007c7519de5b677dcc61b723034a',1,'sw::Layer']]], + ['geticonhandle_30',['GetIconHandle',['../classsw_1_1_icon_helper.html#a1e1d63e74eb37284350c4721d29d1527',1,'sw::IconHelper::GetIconHandle(StandardIcon icon)'],['../classsw_1_1_icon_helper.html#ad66bbd3e3f3df25fe58eccf500343450',1,'sw::IconHelper::GetIconHandle(HINSTANCE hInstance, int resourceId)'],['../classsw_1_1_icon_helper.html#acc37834cca123d041c1476951d65fc5e',1,'sw::IconHelper::GetIconHandle(HINSTANCE hInstance, const std::wstring &iconName)'],['../classsw_1_1_icon_helper.html#a8d59ebd96d73c3ca998133aaa7e9194f',1,'sw::IconHelper::GetIconHandle(const std::wstring &fileName)']]], + ['getitemat_31',['GetItemAt',['../classsw_1_1_combo_box.html#a9847d3dead963ac17d4e181aa138e4d4',1,'sw::ComboBox::GetItemAt()'],['../classsw_1_1_items_control.html#a34a19d40a81adc967b14e84689e8a7e4',1,'sw::ItemsControl::GetItemAt()'],['../classsw_1_1_list_box.html#a3a55067d310d058f12c6bae420ca50e9',1,'sw::ListBox::GetItemAt()'],['../classsw_1_1_list_view.html#a3c9979454e598336e819586d0cd8ea33',1,'sw::ListView::GetItemAt(int index) override'],['../classsw_1_1_list_view.html#ab9a96bf777e2b3662007f17b274a4a2e',1,'sw::ListView::GetItemAt(int row, int col)']]], + ['getitemcheckstate_32',['GetItemCheckState',['../classsw_1_1_list_view.html#ac34d4382c8e43346da5a67ebcf78f97f',1,'sw::ListView']]], + ['getitemindexfrompoint_33',['GetItemIndexFromPoint',['../classsw_1_1_list_box.html#aa6dd58ecf150a782c5c3ec8f4f3c0355',1,'sw::ListBox::GetItemIndexFromPoint()'],['../classsw_1_1_list_view.html#aaa8be22cc91981886a241ca44c932c65',1,'sw::ListView::GetItemIndexFromPoint()']]], + ['getitemscount_34',['GetItemsCount',['../classsw_1_1_combo_box.html#af18b947a96cf7de045525294fcac2825',1,'sw::ComboBox::GetItemsCount()'],['../classsw_1_1_items_control.html#a22321dbf927a5b508a3614e2565c76c2',1,'sw::ItemsControl::GetItemsCount()'],['../classsw_1_1_list_box.html#a0f6d69e679814a36523d091d81e839d7',1,'sw::ListBox::GetItemsCount()'],['../classsw_1_1_list_view.html#a5c953126fc14e93dc7479efc03ceb4f9',1,'sw::ListView::GetItemsCount()']]], + ['getitemselectionstate_35',['GetItemSelectionState',['../classsw_1_1_list_box.html#aa8db114872f69e0be2f32bebba134b20',1,'sw::ListBox']]], + ['getlayouttag_36',['GetLayoutTag',['../classsw_1_1_i_layout.html#a5b95a9aba620f4f42447869f5e7f75c3',1,'sw::ILayout::GetLayoutTag()'],['../classsw_1_1_layout_host.html#ab89962ec32dec364e4e18ea0afe44d52',1,'sw::LayoutHost::GetLayoutTag()'],['../classsw_1_1_u_i_element.html#aa89a8c272d1a9016d2586c6eeab64dce',1,'sw::UIElement::GetLayoutTag()']]], + ['getmenuitem_37',['GetMenuItem',['../classsw_1_1_menu_base.html#a47fe9d419c9c50459389c46b410849d8',1,'sw::MenuBase::GetMenuItem(int id)'],['../classsw_1_1_menu_base.html#a207341719edb495ca22be7090b3a8b37',1,'sw::MenuBase::GetMenuItem(std::initializer_list< int > path)'],['../classsw_1_1_menu_base.html#a09259eb19e71878bd77f4d3dece7fed8',1,'sw::MenuBase::GetMenuItem(std::initializer_list< std::wstring > path)']]], + ['getnextelement_38',['GetNextElement',['../classsw_1_1_u_i_element.html#a06a50134522985f88bb0db352b2be689',1,'sw::UIElement']]], + ['getnexttabstopelement_39',['GetNextTabStopElement',['../classsw_1_1_u_i_element.html#a6968c7b711722677fb0b9dd7f5f80442',1,'sw::UIElement']]], + ['getparent_40',['GetParent',['../classsw_1_1_menu_base.html#a1cb75444ab44b6b4dc3599634b30b07e',1,'sw::MenuBase']]], + ['getrealbackcolor_41',['GetRealBackColor',['../classsw_1_1_u_i_element.html#a82ef0065e6b21ce989852862bc1a0e21',1,'sw::UIElement']]], + ['getrealtextcolor_42',['GetRealTextColor',['../classsw_1_1_u_i_element.html#a18dde4a75ac25ae0458ae616eb9bca85',1,'sw::UIElement']]], + ['getrootelement_43',['GetRootElement',['../classsw_1_1_u_i_element.html#a560ae73ce93ab62df8d04170b11a1f39',1,'sw::UIElement']]], + ['getselectedindex_44',['GetSelectedIndex',['../classsw_1_1_combo_box.html#a1b7b120c4f55c724f3b9f29038659d81',1,'sw::ComboBox::GetSelectedIndex()'],['../classsw_1_1_items_control.html#ac8b269a4d6bd5b46f6f7026d5470b2c5',1,'sw::ItemsControl::GetSelectedIndex()'],['../classsw_1_1_list_box.html#a016fb10dca302d2636bee60c8eabf6d9',1,'sw::ListBox::GetSelectedIndex()'],['../classsw_1_1_list_view.html#a65e4a2137e9cf7509adff246248732cc',1,'sw::ListView::GetSelectedIndex()']]], + ['getselectedindices_45',['GetSelectedIndices',['../classsw_1_1_list_box.html#a32f2ac7b969a63bf52d0d6f320e7f17c',1,'sw::ListBox::GetSelectedIndices()'],['../classsw_1_1_list_view.html#a4ac92414b9424dc44aad14ed796ed943',1,'sw::ListView::GetSelectedIndices()']]], + ['getselecteditem_46',['GetSelectedItem',['../classsw_1_1_combo_box.html#abf46ed1454b54b77128e833a0c2e924a',1,'sw::ComboBox::GetSelectedItem()'],['../classsw_1_1_items_control.html#a8cbd0b52306bcf3cec2d96be0c6dd0ba',1,'sw::ItemsControl::GetSelectedItem()'],['../classsw_1_1_list_box.html#a8082569a03ff936208ac5e07dfcf3ae8',1,'sw::ListBox::GetSelectedItem()'],['../classsw_1_1_list_view.html#a95013292cf5b588ff83ceeb4865a2993',1,'sw::ListView::GetSelectedItem()']]], + ['getselecteditems_47',['GetSelectedItems',['../classsw_1_1_list_box.html#a7de3b077cac741f297c0d5639e8a9edb',1,'sw::ListBox']]], + ['getstyle_48',['GetStyle',['../classsw_1_1_wnd_base.html#a792eeeffd1b43bd75024352f99822144',1,'sw::WndBase::GetStyle()'],['../classsw_1_1_wnd_base.html#a39b4f05dd2900f08e7344e645c514ec3',1,'sw::WndBase::GetStyle(LONG_PTR style)']]], + ['gettabcount_49',['GetTabCount',['../classsw_1_1_tab_control.html#ac52a5ebc430c68920f8ee7e7755f7f34',1,'sw::TabControl']]], + ['gettag_50',['GetTag',['../classsw_1_1_i_tag.html#ad50507cafd55b2d9c18cc5c74a0ed946',1,'sw::ITag::GetTag()'],['../classsw_1_1_menu_item.html#a1187cb70902ab261b8302e7c0c561da9',1,'sw::MenuItem::GetTag()'],['../classsw_1_1_u_i_element.html#a78f1c406d3faac2afcb956e9375f65ec',1,'sw::UIElement::GetTag()']]], + ['gettext_51',['GetText',['../classsw_1_1_combo_box.html#aac58ae29f08c67b0fe043d6b8822e74d',1,'sw::ComboBox::GetText()'],['../classsw_1_1_text_box_base.html#a364003a9b7b601f385861108a4e3273e',1,'sw::TextBoxBase::GetText()'],['../classsw_1_1_wnd_base.html#a888df1f6b89e8da1ba8c7cc8f4671370',1,'sw::WndBase::GetText()']]], + ['getverticalscrollpagesize_52',['GetVerticalScrollPageSize',['../classsw_1_1_layer.html#af373e47fda965795550b31e622839a7f',1,'sw::Layer']]], + ['getverticalscrollrange_53',['GetVerticalScrollRange',['../classsw_1_1_layer.html#a3f5248e4483b277a2f99c9b3cde086b7',1,'sw::Layer']]], + ['getwndbase_54',['GetWndBase',['../classsw_1_1_wnd_base.html#a9a3b21d4e5d8c49130deb57695294add',1,'sw::WndBase']]], + ['gotchareventargs_55',['GotCharEventArgs',['../structsw_1_1_got_char_event_args.html',1,'sw']]], + ['grid_56',['Grid',['../classsw_1_1_grid.html',1,'sw::Grid'],['../classsw_1_1_grid.html#afbb7806a3fabedee2c10c0775076f8bb',1,'sw::Grid::Grid()']]], + ['gridcolumn_57',['GridColumn',['../structsw_1_1_grid_column.html',1,'sw::GridColumn'],['../structsw_1_1_grid_column.html#a743b954088295855d4f09a81928b6614',1,'sw::GridColumn::GridColumn()'],['../structsw_1_1_grid_column.html#a6bf1570d3cbc01f9e342a2a55ec14117',1,'sw::GridColumn::GridColumn(GridRCType type, double width)'],['../structsw_1_1_grid_column.html#a43365335281efdd5ae44e40d40e6fbe6',1,'sw::GridColumn::GridColumn(double width)']]], + ['gridlayout_58',['GridLayout',['../classsw_1_1_grid_layout.html',1,'sw']]], + ['gridlayouttag_59',['GridLayoutTag',['../structsw_1_1_grid_layout_tag.html',1,'sw::GridLayoutTag'],['../structsw_1_1_grid_layout_tag.html#a15aec68e838c7567c6a371ce735cb534',1,'sw::GridLayoutTag::GridLayoutTag()'],['../structsw_1_1_grid_layout_tag.html#afeab1e02be36734f2efb210e0338df63',1,'sw::GridLayoutTag::GridLayoutTag(uint16_t row, uint16_t column, uint16_t rowSpan, uint16_t columnSpan)'],['../structsw_1_1_grid_layout_tag.html#a9a19b89469f829af9559670d6a6f7c00',1,'sw::GridLayoutTag::GridLayoutTag(uint16_t row, uint16_t column)'],['../structsw_1_1_grid_layout_tag.html#af8d1c932b43a046cc10b4a2a6d97dc29',1,'sw::GridLayoutTag::GridLayoutTag(uint64_t layoutTag)']]], + ['gridlines_60',['GridLines',['../classsw_1_1_list_view.html#ab3b05ee1d7f10c5abcc7b31facc5964b',1,'sw::ListView']]], + ['gridrow_61',['GridRow',['../structsw_1_1_grid_row.html',1,'sw::GridRow'],['../structsw_1_1_grid_row.html#a33599a7582800e97299f2ea8314ed4aa',1,'sw::GridRow::GridRow()'],['../structsw_1_1_grid_row.html#a2691d3372a7aab997487e9fa3c115914',1,'sw::GridRow::GridRow(GridRCType type, double height)'],['../structsw_1_1_grid_row.html#a44aaee7c8ea61e9886bab025fcd8271a',1,'sw::GridRow::GridRow(double height)']]], + ['groupbox_62',['GroupBox',['../classsw_1_1_group_box.html',1,'sw::GroupBox'],['../classsw_1_1_group_box.html#a6241500d4cd923499613dc0162a38275',1,'sw::GroupBox::GroupBox()']]] +]; diff --git a/docs/search/all_8.js b/docs/search/all_8.js new file mode 100644 index 00000000..3192642d --- /dev/null +++ b/docs/search/all_8.js @@ -0,0 +1,17 @@ +var searchData= +[ + ['handle_0',['Handle',['../classsw_1_1_wnd_base.html#abc0b653ccc071c2cfcba42fa8eef738f',1,'sw::WndBase']]], + ['handlechenged_1',['HandleChenged',['../classsw_1_1_control.html#ad16158c308954eedf12dad4603ef17db',1,'sw::Control']]], + ['handled_2',['handled',['../structsw_1_1_routed_event_args.html#a9fb971eec1e6ba4aee1366c3f9c20bfd',1,'sw::RoutedEventArgs']]], + ['handledmsg_3',['handledMsg',['../structsw_1_1_routed_event_args.html#ac299c564c53fa039f47a06d08272d969',1,'sw::RoutedEventArgs']]], + ['handleinitialized_4',['HandleInitialized',['../classsw_1_1_wnd_base.html#a4b368860fef40406c091880fc72f9cbb',1,'sw::WndBase']]], + ['header_5',['header',['../structsw_1_1_list_view_column.html#a2fd382151fa269ec5f5042232cfb84f8',1,'sw::ListViewColumn']]], + ['height_6',['height',['../structsw_1_1_grid_row.html#abe71efc459295a5dbfad7bf7aaff4d4e',1,'sw::GridRow::height'],['../structsw_1_1_rect.html#afb7a0a9a12dad7756f46b2e1abdafa7c',1,'sw::Rect::height'],['../structsw_1_1_size.html#a084604eba918ac19b2f8402e330d767b',1,'sw::Size::height']]], + ['height_7',['Height',['../classsw_1_1_screen.html#a904c5ac3f5dc61d271357f22f734b921',1,'sw::Screen::Height'],['../classsw_1_1_wnd_base.html#a51fdc4b943e62bd67ffbff4a6e65de2a',1,'sw::WndBase::Height']]], + ['horizontalalignment_8',['HorizontalAlignment',['../classsw_1_1_u_i_element.html#a05b569383791dce14d9d6789e3a43d85',1,'sw::UIElement']]], + ['horizontalcontentalignment_9',['HorizontalContentAlignment',['../classsw_1_1_label.html#a83b3ae20c61b09a613cc07dddc1c9179',1,'sw::Label::HorizontalContentAlignment'],['../classsw_1_1_text_box_base.html#abaa4c52632b7a8d2bdb41341fc1ab0e8',1,'sw::TextBoxBase::HorizontalContentAlignment']]], + ['horizontalscrollbar_10',['HorizontalScrollBar',['../classsw_1_1_layer.html#a4bb56843061a3db9497703f16e58f4ba',1,'sw::Layer::HorizontalScrollBar'],['../classsw_1_1_text_box.html#a4fed0b73690d263fb740f09eda870fdb',1,'sw::TextBox::HorizontalScrollBar']]], + ['horizontalscrolllimit_11',['HorizontalScrollLimit',['../classsw_1_1_layer.html#a5af8ff318d2438eab8f8b325cf8e66da',1,'sw::Layer']]], + ['horizontalscrollpos_12',['HorizontalScrollPos',['../classsw_1_1_layer.html#ae738d7ede2ba0d5547553df25f8d8ed8',1,'sw::Layer']]], + ['hwnd_13',['hwnd',['../structsw_1_1_proc_msg.html#a944e366c9c75b08eebbb32fc3959f334',1,'sw::ProcMsg']]] +]; diff --git a/docs/search/all_9.js b/docs/search/all_9.js new file mode 100644 index 00000000..3a2632fb --- /dev/null +++ b/docs/search/all_9.js @@ -0,0 +1,35 @@ +var searchData= +[ + ['iconhelper_0',['IconHelper',['../classsw_1_1_icon_helper.html',1,'sw']]], + ['idtoindex_1',['IDToIndex',['../classsw_1_1_context_menu.html#a93eb69c1dbf74969dd90d5c7a7532ce8',1,'sw::ContextMenu::IDToIndex()'],['../classsw_1_1_menu.html#a546af91c1b0778610d79ed7e56423dd1',1,'sw::Menu::IDToIndex()'],['../classsw_1_1_menu_base.html#a84c15b6a20df581e6aed4b9df9e84f9a',1,'sw::MenuBase::IDToIndex()']]], + ['ilayout_2',['ILayout',['../classsw_1_1_i_layout.html',1,'sw']]], + ['indexof_3',['IndexOf',['../classsw_1_1_list.html#a53adb5e4e7172f03bf87113443e9d2b5',1,'sw::List::IndexOf()'],['../classsw_1_1_u_i_element.html#a45cf2817669c10b59535acf8406a1a09',1,'sw::UIElement::IndexOf(UIElement *element)'],['../classsw_1_1_u_i_element.html#a8ff6722c909efcb10fbbc63476ab64d6',1,'sw::UIElement::IndexOf(UIElement &element)']]], + ['indextoid_4',['IndexToID',['../classsw_1_1_context_menu.html#ae27616f20c9f03d7e5b81eaa6e7f3446',1,'sw::ContextMenu::IndexToID()'],['../classsw_1_1_menu.html#a522312cc29234ea9048d94fae7258027',1,'sw::Menu::IndexToID()'],['../classsw_1_1_menu_base.html#a9f94aca19decada231feeed33ab19743',1,'sw::MenuBase::IndexToID()']]], + ['inherittextcolor_5',['InheritTextColor',['../classsw_1_1_u_i_element.html#a7da2f416b1ed5038d8a3a59d6e44fcf5',1,'sw::UIElement']]], + ['initbuttonbase_6',['InitButtonBase',['../classsw_1_1_button_base.html#a35200f7e5429767c50c089eb312ff248',1,'sw::ButtonBase']]], + ['initcontrol_7',['InitControl',['../classsw_1_1_wnd_base.html#a60707bc74fd7d0599da1ea014cc37b5d',1,'sw::WndBase']]], + ['initmenubase_8',['InitMenuBase',['../classsw_1_1_menu_base.html#aa105bc5eb9ecf6a59f1ccff4b075643c',1,'sw::MenuBase']]], + ['inittextboxbase_9',['InitTextBoxBase',['../classsw_1_1_text_box_base.html#a3a6843f34013ed31f3828263f0984233',1,'sw::TextBoxBase']]], + ['initwindow_10',['InitWindow',['../classsw_1_1_wnd_base.html#a4889c45dfad820c103dd7f74f2cd0661',1,'sw::WndBase']]], + ['insert_11',['Insert',['../classsw_1_1_list.html#a68c7aaae99a0e18274de59cad82c5743',1,'sw::List']]], + ['insertcolumn_12',['InsertColumn',['../classsw_1_1_list_view.html#a985c48bef310cdcb10b722c9aec8ebbf',1,'sw::ListView::InsertColumn(int index, const ListViewColumn &column)'],['../classsw_1_1_list_view.html#a0abf70d4eee217e060b84686f30b8a09',1,'sw::ListView::InsertColumn(int index, const std::wstring &header)']]], + ['insertitem_13',['InsertItem',['../classsw_1_1_combo_box.html#ab1cf2dc76d67d10a2088acfeb29d1398',1,'sw::ComboBox::InsertItem()'],['../classsw_1_1_items_control.html#ab4f053e3c099caf009fab48f7370ad96',1,'sw::ItemsControl::InsertItem()'],['../classsw_1_1_list_box.html#abaa05ef08a38822976373307156029b2',1,'sw::ListBox::InsertItem()'],['../classsw_1_1_list_view.html#a34425690bf39e914861b2211004c2ce1',1,'sw::ListView::InsertItem()']]], + ['instance_14',['Instance',['../classsw_1_1_app.html#a5a6949cf6702559276151c987a2f5c5c',1,'sw::App']]], + ['ischecked_15',['IsChecked',['../classsw_1_1_checkable_button.html#a52e1547dc73eb7b8f6cd4ecb523e7f56',1,'sw::CheckableButton']]], + ['iscontextmenuid_16',['IsContextMenuID',['../classsw_1_1_context_menu.html#a968f4539826715feb35237acb1ec02b3',1,'sw::ContextMenu']]], + ['iscontrol_17',['IsControl',['../classsw_1_1_wnd_base.html#ace8f6b05caa5d335f7d574c38035bfa7',1,'sw::WndBase']]], + ['isdestroyed_18',['IsDestroyed',['../classsw_1_1_wnd_base.html#a54aa973b24b4bc4b681ac2c21a50d204',1,'sw::WndBase']]], + ['iseditable_19',['IsEditable',['../classsw_1_1_combo_box.html#aa495a8136f05548a3e26bdf3e0612a8f',1,'sw::ComboBox']]], + ['isempty_20',['IsEmpty',['../classsw_1_1_dictionary.html#a16703bd325716445121e257ae489dcc4',1,'sw::Dictionary::IsEmpty()'],['../classsw_1_1_list.html#aed38231dffce414f40d272aba6e7099c',1,'sw::List::IsEmpty()']]], + ['ismodal_21',['IsModal',['../classsw_1_1_window.html#a1cdd78ebe0571b1c9bb49403ed8d8381',1,'sw::Window']]], + ['isrootelement_22',['IsRootElement',['../classsw_1_1_u_i_element.html#a67bd7d81e6091118e4c97cc24c68543d',1,'sw::UIElement']]], + ['isroutedeventregistered_23',['IsRoutedEventRegistered',['../classsw_1_1_u_i_element.html#adf8152f31c5e109ba016316182bcec47',1,'sw::UIElement']]], + ['isseparator_24',['IsSeparator',['../classsw_1_1_menu_item.html#a136e71998ffff40e3d165749ba7f7306',1,'sw::MenuItem']]], + ['isvisible_25',['IsVisible',['../classsw_1_1_wnd_base.html#a6ee668e7a5261f96df0bd69a1fb868d3',1,'sw::WndBase']]], + ['itag_26',['ITag',['../classsw_1_1_i_tag.html',1,'sw']]], + ['italic_27',['italic',['../classsw_1_1_font.html#aa7ea90de17d56a063c395cf015baf11f',1,'sw::Font']]], + ['items_28',['items',['../classsw_1_1_menu_base.html#a661efe79f75f4e6ae0d5b166b7db4147',1,'sw::MenuBase']]], + ['itemscontrol_29',['ItemsControl',['../classsw_1_1_items_control.html',1,'sw::ItemsControl< TItem >'],['../classsw_1_1_items_control.html#a35e8ff864ec4faded2e2ff54f02e85b5',1,'sw::ItemsControl::ItemsControl()']]], + ['itemscontrol_3c_20strlist_20_3e_30',['ItemsControl< StrList >',['../classsw_1_1_items_control.html',1,'sw']]], + ['itemscount_31',['ItemsCount',['../classsw_1_1_items_control.html#a765b2e51cb5f439c464abbe031b0db09',1,'sw::ItemsControl']]] +]; diff --git a/docs/search/all_a.js b/docs/search/all_a.js new file mode 100644 index 00000000..faccddfe --- /dev/null +++ b/docs/search/all_a.js @@ -0,0 +1,6 @@ +var searchData= +[ + ['keydowneventargs_0',['KeyDownEventArgs',['../structsw_1_1_key_down_event_args.html',1,'sw']]], + ['keyflags_1',['KeyFlags',['../structsw_1_1_key_flags.html',1,'sw']]], + ['keyupeventargs_2',['KeyUpEventArgs',['../structsw_1_1_key_up_event_args.html',1,'sw']]] +]; diff --git a/docs/search/all_b.js b/docs/search/all_b.js new file mode 100644 index 00000000..619c8b32 --- /dev/null +++ b/docs/search/all_b.js @@ -0,0 +1,22 @@ +var searchData= +[ + ['label_0',['Label',['../classsw_1_1_label.html',1,'sw::Label'],['../classsw_1_1_label.html#ae1ee6644b4de352317836eb2a4c00c3c',1,'sw::Label::Label()']]], + ['lastchildfill_1',['LastChildFill',['../classsw_1_1_dock_panel.html#aa3f8617a879fb8c536799beae2ad2a31',1,'sw::DockPanel']]], + ['lastchildfill_2',['lastChildFill',['../classsw_1_1_dock_layout.html#ae3279e6cc696c453a2f6171ca152fc47',1,'sw::DockLayout']]], + ['layer_3',['Layer',['../classsw_1_1_layer.html',1,'sw::Layer'],['../classsw_1_1_layer.html#a61030d006cafc26525bc07bced899b92',1,'sw::Layer::Layer()']]], + ['layout_4',['Layout',['../classsw_1_1_layer.html#accb80d7a016d5a56b1c744db4ef96059',1,'sw::Layer']]], + ['layouthost_5',['LayoutHost',['../classsw_1_1_layout_host.html',1,'sw']]], + ['layouttag_6',['LayoutTag',['../classsw_1_1_u_i_element.html#a70e870fcabb76b1d74c06d50637f4f92',1,'sw::UIElement']]], + ['left_7',['left',['../structsw_1_1_canvas_layout_tag.html#a66e509ca8ce039a228ccb15cba5aa509',1,'sw::CanvasLayoutTag::left'],['../structsw_1_1_rect.html#af6c8b62aa73047637c58d8cdf6c05aff',1,'sw::Rect::left'],['../structsw_1_1_thickness.html#ad060a41dfe2453ef882849546eb7980e',1,'sw::Thickness::left']]], + ['left_8',['Left',['../classsw_1_1_wnd_base.html#a4f0b57de9babc053c655872ed91468dd',1,'sw::WndBase']]], + ['list_9',['List',['../classsw_1_1_list.html',1,'sw::List< T >'],['../classsw_1_1_list.html#ad84dc17e0d073e18e2f44871c27025de',1,'sw::List::List()'],['../classsw_1_1_list.html#abfff18bc7387d154bc89481259f847a0',1,'sw::List::List(std::initializer_list< T > list)'],['../classsw_1_1_list.html#a4e4501c96b9e786d67b420312cafb8cc',1,'sw::List::List(int capacity)']]], + ['list_3c_20sw_3a_3agridcolumn_20_3e_10',['List< sw::GridColumn >',['../classsw_1_1_list.html',1,'sw']]], + ['list_3c_20sw_3a_3agridrow_20_3e_11',['List< sw::GridRow >',['../classsw_1_1_list.html',1,'sw']]], + ['listbox_12',['ListBox',['../classsw_1_1_list_box.html',1,'sw::ListBox'],['../classsw_1_1_list_box.html#a479eeef30684198f09eaaa472def8550',1,'sw::ListBox::ListBox()']]], + ['listview_13',['ListView',['../classsw_1_1_list_view.html',1,'sw::ListView'],['../classsw_1_1_list_view.html#a6f491872e0416f1ab65cdb3866009293',1,'sw::ListView::ListView()']]], + ['listviewcheckstatechangedeventargs_14',['ListViewCheckStateChangedEventArgs',['../structsw_1_1_list_view_check_state_changed_event_args.html',1,'sw']]], + ['listviewcolumn_15',['ListViewColumn',['../structsw_1_1_list_view_column.html',1,'sw']]], + ['listviewheaderclickedeventargs_16',['ListViewHeaderClickedEventArgs',['../structsw_1_1_list_view_header_clicked_event_args.html',1,'sw']]], + ['listviewitemclickedeventargs_17',['ListViewItemClickedEventArgs',['../structsw_1_1_list_view_item_clicked_event_args.html',1,'sw']]], + ['lparam_18',['lParam',['../structsw_1_1_proc_msg.html#acb7f68d396561c6c4c877255b18b1b5d',1,'sw::ProcMsg']]] +]; diff --git a/docs/search/all_c.js b/docs/search/all_c.js new file mode 100644 index 00000000..f3825d32 --- /dev/null +++ b/docs/search/all_c.js @@ -0,0 +1,29 @@ +var searchData= +[ + ['margin_0',['Margin',['../classsw_1_1_u_i_element.html#a8fe2c0aebc77409d3fbdefbd79d45a1e',1,'sw::UIElement']]], + ['max_1',['Max',['../classsw_1_1_utils.html#add73fdd8d714ed80d3741fffcef5fbec',1,'sw::Utils']]], + ['maxheight_2',['MaxHeight',['../classsw_1_1_window.html#a64ad0c8611945758af32b7681a74a0f7',1,'sw::Window']]], + ['maximizebox_3',['MaximizeBox',['../classsw_1_1_window.html#a6852326120a03242ffef09aa3bae9e09',1,'sw::Window']]], + ['maximum_4',['Maximum',['../classsw_1_1_progress_bar.html#a23e176b3cc807b9e0e403e214421179c',1,'sw::ProgressBar::Maximum'],['../classsw_1_1_slider.html#ab44222d9c4bacb9294a6578778b56256',1,'sw::Slider::Maximum']]], + ['maxwidth_5',['MaxWidth',['../classsw_1_1_window.html#a881e11126ef89b4b0badb890c8f7ac21',1,'sw::Window']]], + ['measure_6',['Measure',['../classsw_1_1_i_layout.html#afcdbdecd5f99cdb25b891c7dc3093fdb',1,'sw::ILayout::Measure()'],['../classsw_1_1_label.html#aa7fe8e679f9d35eaf5691403ed5c9a96',1,'sw::Label::Measure()'],['../classsw_1_1_layer.html#a3ac4fcba5970f01d5c944c0376a354c7',1,'sw::Layer::Measure()'],['../classsw_1_1_layout_host.html#aa520181822f89994362a010237687b3f',1,'sw::LayoutHost::Measure()'],['../classsw_1_1_panel_base.html#a8ac6001fdc5c32131b3d33678bd376b3',1,'sw::PanelBase::Measure()'],['../classsw_1_1_u_i_element.html#aef217f2655c4a746606bf302edc16cf4',1,'sw::UIElement::Measure()']]], + ['measureoverride_7',['MeasureOverride',['../classsw_1_1_canvas_layout.html#a8e0f36dd4b70eda9db6c2665b019a4e5',1,'sw::CanvasLayout::MeasureOverride()'],['../classsw_1_1_dock_layout.html#a62fcb5b4236d5706caadb23ac557139a',1,'sw::DockLayout::MeasureOverride()'],['../classsw_1_1_fill_layout.html#a5ef072479f4f0019c1b58427f1c36098',1,'sw::FillLayout::MeasureOverride()'],['../classsw_1_1_grid_layout.html#aac702cbbed9459c559d85c337313d3a9',1,'sw::GridLayout::MeasureOverride()'],['../classsw_1_1_layout_host.html#a4206d0a20d92581d33a4510fb2ba1871',1,'sw::LayoutHost::MeasureOverride()'],['../classsw_1_1_stack_layout.html#aeae06d336288887cf29c912aee4c03b6',1,'sw::StackLayout::MeasureOverride()'],['../classsw_1_1_stack_layout_h.html#ab5ae73207dfc9020a799c3fd1a4d9231',1,'sw::StackLayoutH::MeasureOverride()'],['../classsw_1_1_stack_layout_v.html#a11f007de647c9b1c88120aeed9ea65b7',1,'sw::StackLayoutV::MeasureOverride()'],['../classsw_1_1_uniform_grid_layout.html#aaf9adca410dd56a6736c5ec0b96a167f',1,'sw::UniformGridLayout::MeasureOverride()'],['../classsw_1_1_wrap_layout.html#a5d7818fc025713f3a29df602ca934178',1,'sw::WrapLayout::MeasureOverride()'],['../classsw_1_1_wrap_layout_h.html#a66eacfc28ef8001230272227cb4fcbe3',1,'sw::WrapLayoutH::MeasureOverride()'],['../classsw_1_1_wrap_layout_v.html#a3e87afe055e4d53c9ac4c6ad0794ddf4',1,'sw::WrapLayoutV::MeasureOverride()']]], + ['menu_8',['Menu',['../classsw_1_1_menu.html',1,'sw::Menu'],['../classsw_1_1_window.html#a27de84e46eda2bccca6f5b2f30fb3117',1,'sw::Window::Menu'],['../classsw_1_1_menu.html#a6fb318031278424d8e571ee05b6654bc',1,'sw::Menu::Menu()'],['../classsw_1_1_menu.html#ac24676f02acaac6350331a49ca2e6f44',1,'sw::Menu::Menu(std::initializer_list< MenuItem > items)']]], + ['menubase_9',['MenuBase',['../classsw_1_1_menu_base.html',1,'sw::MenuBase'],['../classsw_1_1_menu_base.html#aae4c6660b8c5341160a67d88bca9bc18',1,'sw::MenuBase::MenuBase()'],['../classsw_1_1_menu_base.html#a48c5d3f04743099a94a1832fa7d9d31b',1,'sw::MenuBase::MenuBase(const MenuBase &menu)']]], + ['menuitem_10',['MenuItem',['../classsw_1_1_menu_item.html',1,'sw::MenuItem'],['../classsw_1_1_menu_item.html#a45cb03eb9423fbe1c187f237ec89377a',1,'sw::MenuItem::MenuItem(const std::wstring &text)'],['../classsw_1_1_menu_item.html#af68934d85fe10b3b01bf4038d66275e4',1,'sw::MenuItem::MenuItem(const std::wstring &text, std::initializer_list< MenuItem > subItems)'],['../classsw_1_1_menu_item.html#a7f24130f1770af6fce9792fb41cba522',1,'sw::MenuItem::MenuItem(const std::wstring &text, const decltype(command) &command)']]], + ['min_11',['Min',['../classsw_1_1_utils.html#a76b3fe0842e62bf943a314afed4d474a',1,'sw::Utils']]], + ['minheight_12',['MinHeight',['../classsw_1_1_window.html#aa9782debda43bce7438531290aa509ae',1,'sw::Window']]], + ['minimizebox_13',['MinimizeBox',['../classsw_1_1_window.html#aa9476a0b4bff312e523bba76aa82b96b',1,'sw::Window']]], + ['minimum_14',['Minimum',['../classsw_1_1_progress_bar.html#ad6ae6e88db8560fb7574e22c87a72ce5',1,'sw::ProgressBar::Minimum'],['../classsw_1_1_slider.html#ae3a7b7c831318c34341bfdf363daf4c2',1,'sw::Slider::Minimum']]], + ['minwidth_15',['MinWidth',['../classsw_1_1_window.html#aa39df901ba7c3d77ac013ccdf6caf161',1,'sw::Window']]], + ['mousebuttondowneventargs_16',['MouseButtonDownEventArgs',['../structsw_1_1_mouse_button_down_event_args.html',1,'sw']]], + ['mousebuttonupeventargs_17',['MouseButtonUpEventArgs',['../structsw_1_1_mouse_button_up_event_args.html',1,'sw']]], + ['mousemoveeventargs_18',['MouseMoveEventArgs',['../structsw_1_1_mouse_move_event_args.html',1,'sw']]], + ['mousewheeleventargs_19',['MouseWheelEventArgs',['../structsw_1_1_mouse_wheel_event_args.html',1,'sw']]], + ['movetobottom_20',['MoveToBottom',['../classsw_1_1_u_i_element.html#a793adc7d50d0373d099b26b0a511b95d',1,'sw::UIElement']]], + ['movetotop_21',['MoveToTop',['../classsw_1_1_u_i_element.html#abce4a26101de27550375c300b121d95d',1,'sw::UIElement']]], + ['msgbox_22',['MsgBox',['../classsw_1_1_msg_box.html',1,'sw']]], + ['msgloop_23',['MsgLoop',['../classsw_1_1_app.html#a05192f9abf49cc0a698024855dde22de',1,'sw::App']]], + ['multiline_24',['MultiLine',['../classsw_1_1_tab_control.html#ae0fc4dead5149c903eb429d0927ec182',1,'sw::TabControl::MultiLine'],['../classsw_1_1_text_box.html#a74bf917de24ebc4ce676306922a080ec',1,'sw::TextBox::MultiLine']]], + ['multiselect_25',['MultiSelect',['../classsw_1_1_list_box.html#ae9db46dd55f8f156d31cf5fa9ea3409c',1,'sw::ListBox::MultiSelect'],['../classsw_1_1_list_view.html#a07b5ecb6c37936ae7b6cef9d68d7a541',1,'sw::ListView::MultiSelect']]] +]; diff --git a/docs/search/all_d.js b/docs/search/all_d.js new file mode 100644 index 00000000..a88226ba --- /dev/null +++ b/docs/search/all_d.js @@ -0,0 +1,6 @@ +var searchData= +[ + ['name_0',['name',['../classsw_1_1_font.html#a169e7893a4b799bcb3424c5df0d5f54d',1,'sw::Font']]], + ['nchittest_1',['NcHitTest',['../classsw_1_1_wnd_base.html#a87c9d860ba24487f2b61b72987a4bd63',1,'sw::WndBase']]], + ['notifylayoutupdated_2',['NotifyLayoutUpdated',['../classsw_1_1_u_i_element.html#ab5832ef956cdc4face3e9dbd0c72e66e',1,'sw::UIElement']]] +]; diff --git a/docs/search/all_e.js b/docs/search/all_e.js new file mode 100644 index 00000000..596d85bf --- /dev/null +++ b/docs/search/all_e.js @@ -0,0 +1,80 @@ +var searchData= +[ + ['onacceleratorcommand_0',['OnAcceleratorCommand',['../classsw_1_1_wnd_base.html#a935f2bb51b99929ac5166ad52396971a',1,'sw::WndBase']]], + ['onactived_1',['OnActived',['../classsw_1_1_window.html#a2403f422df1271f56f2ef574d91f232d',1,'sw::Window']]], + ['onaddedchild_2',['OnAddedChild',['../classsw_1_1_tab_control.html#a6a4c0d7c81d279669765feaef0f55ecd',1,'sw::TabControl::OnAddedChild()'],['../classsw_1_1_u_i_element.html#ae3e134d807af7614e1cc812abb860762',1,'sw::UIElement::OnAddedChild()']]], + ['onchar_3',['OnChar',['../classsw_1_1_text_box_base.html#aa88527cddd82fc158e0ac3ca662604c1',1,'sw::TextBoxBase::OnChar()'],['../classsw_1_1_u_i_element.html#a3a92f96787dd7981f0c1934ff618b36e',1,'sw::UIElement::OnChar()'],['../classsw_1_1_wnd_base.html#ad0f719a2feffe354737cef9b13b63db0',1,'sw::WndBase::OnChar()']]], + ['oncheckstatechanged_4',['OnCheckStateChanged',['../classsw_1_1_list_view.html#a5b4b18df705396deeb3a2dc2fb0048cc',1,'sw::ListView']]], + ['onclicked_5',['OnClicked',['../classsw_1_1_button_base.html#a2cd07956db48b796257bd1ac238642f6',1,'sw::ButtonBase']]], + ['onclose_6',['OnClose',['../classsw_1_1_u_i_element.html#a1c1f0b6a491e639c76e46a29bff00d65',1,'sw::UIElement::OnClose()'],['../classsw_1_1_window.html#a50969fbd9f30ad27e72f11cb28ee4697',1,'sw::Window::OnClose()'],['../classsw_1_1_wnd_base.html#a0e30c4d0b87c473115e7521c5c95703a',1,'sw::WndBase::OnClose()']]], + ['oncolor_7',['OnColor',['../classsw_1_1_u_i_element.html#a5e16c574d3fc57a9da8ac8d9c2bf1a24',1,'sw::UIElement::OnColor()'],['../classsw_1_1_wnd_base.html#aa605b4a21b4cd8c43c226349665a5f28',1,'sw::WndBase::OnColor()']]], + ['oncommand_8',['OnCommand',['../classsw_1_1_button_base.html#ad95b3a535345f674c55b7c6287e49a2d',1,'sw::ButtonBase::OnCommand()'],['../classsw_1_1_combo_box.html#a691d1f3e1dd2cadae40fdcca2f05f6e2',1,'sw::ComboBox::OnCommand()'],['../classsw_1_1_list_box.html#a018949ce98442934f04da456de5c6db1',1,'sw::ListBox::OnCommand()'],['../classsw_1_1_text_box_base.html#a1e7210993dcbf6cfdaff3dcc3246dfd5',1,'sw::TextBoxBase::OnCommand()'],['../classsw_1_1_wnd_base.html#a60e633e3cfea36b186c4a210925e865a',1,'sw::WndBase::OnCommand()']]], + ['oncontextmenu_9',['OnContextMenu',['../classsw_1_1_list_box.html#a1708816955c247ec4b7e0a1291486088',1,'sw::ListBox::OnContextMenu()'],['../classsw_1_1_u_i_element.html#a656bb4995529a018d8c823fc45abf233',1,'sw::UIElement::OnContextMenu()'],['../classsw_1_1_wnd_base.html#a2c436f7819721b3f1a700c39ea538003',1,'sw::WndBase::OnContextMenu(bool isKeyboardMsg, Point mousePosition)']]], + ['oncontrolcommand_10',['OnControlCommand',['../classsw_1_1_wnd_base.html#a69256166096bb51cde45f101c4e9ae95',1,'sw::WndBase']]], + ['oncreate_11',['OnCreate',['../classsw_1_1_wnd_base.html#a7dd30ab5e8700832140c329739b4b671',1,'sw::WndBase']]], + ['onctlcolor_12',['OnCtlColor',['../classsw_1_1_wnd_base.html#aa04cd83e79c42d21127799e573d9f299',1,'sw::WndBase']]], + ['ondeadchar_13',['OnDeadChar',['../classsw_1_1_wnd_base.html#a4c72db003eeb8a29565576ad26cc89b8',1,'sw::WndBase']]], + ['ondestroy_14',['OnDestroy',['../classsw_1_1_window.html#a09165434040ada6ea3f00a7d79b1f7a2',1,'sw::Window::OnDestroy()'],['../classsw_1_1_wnd_base.html#a98d960679d1889998ba548af6a3c8fc4',1,'sw::WndBase::OnDestroy()']]], + ['ondoubleclicked_15',['OnDoubleClicked',['../classsw_1_1_button_base.html#aa0fb82e77ba464863fc609c987d5ff5d',1,'sw::ButtonBase']]], + ['ondrawfocusrect_16',['OnDrawFocusRect',['../classsw_1_1_button.html#a496b008fab7266676831e3473353537d',1,'sw::Button::OnDrawFocusRect()'],['../classsw_1_1_text_box_base.html#a89b507ceef32d379c93a60b5989b74fe',1,'sw::TextBoxBase::OnDrawFocusRect()'],['../classsw_1_1_u_i_element.html#a78d190af4c3b1768776db0ebd6d0d71a',1,'sw::UIElement::OnDrawFocusRect()']]], + ['ondrawitem_17',['OnDrawItem',['../classsw_1_1_wnd_base.html#a6e9cac4e02b3a420c42968cbf061fd02',1,'sw::WndBase']]], + ['onenabledchanged_18',['OnEnabledChanged',['../classsw_1_1_wnd_base.html#a755bd826227232fd30ba5fda47bfb060',1,'sw::WndBase']]], + ['onendpaint_19',['OnEndPaint',['../classsw_1_1_u_i_element.html#a57a1cb1cc82765f93b21fa8261ec2e50',1,'sw::UIElement::OnEndPaint()'],['../classsw_1_1_wnd_base.html#ad90b0eebbaa959949cae5b736e2104aa',1,'sw::WndBase::OnEndPaint()']]], + ['onendtrack_20',['OnEndTrack',['../classsw_1_1_slider.html#a7791814523c6758f573499fa9f1ca074',1,'sw::Slider']]], + ['onerasebackground_21',['OnEraseBackground',['../classsw_1_1_window.html#adfcacbd8da1c33b53a16990c76d86079',1,'sw::Window::OnEraseBackground()'],['../classsw_1_1_wnd_base.html#a748fda35e75d416077598f243afe9da1',1,'sw::WndBase::OnEraseBackground()']]], + ['onfirstshow_22',['OnFirstShow',['../classsw_1_1_window.html#a35a8bd930f1cf8a85204569f00b33f34',1,'sw::Window']]], + ['onheaderitemclicked_23',['OnHeaderItemClicked',['../classsw_1_1_list_view.html#aebad3b5c7fafae2aa71f811beecfaeb8',1,'sw::ListView']]], + ['onheaderitemdoubleclicked_24',['OnHeaderItemDoubleClicked',['../classsw_1_1_list_view.html#a294d8b15fd8755f4b6aa303092d5290a',1,'sw::ListView']]], + ['onhorizontalscroll_25',['OnHorizontalScroll',['../classsw_1_1_layer.html#ab199e8fc6b90975b7dcb5fdb4e5f2853',1,'sw::Layer::OnHorizontalScroll()'],['../classsw_1_1_panel_base.html#a9d40f5306f341eb9fff7c389b11f76f6',1,'sw::PanelBase::OnHorizontalScroll()'],['../classsw_1_1_slider.html#a0614fc49d6825b3f864171246fa15892',1,'sw::Slider::OnHorizontalScroll()'],['../classsw_1_1_wnd_base.html#af6773148b0a9a1fdd3c8a0d8cd54a2fd',1,'sw::WndBase::OnHorizontalScroll()']]], + ['oninactived_26',['OnInactived',['../classsw_1_1_window.html#a9f8bea034629f087944e9b33af60d9ec',1,'sw::Window']]], + ['onitemchanged_27',['OnItemChanged',['../classsw_1_1_list_view.html#a9f6978e162ff25d4328cad8496205ee9',1,'sw::ListView']]], + ['onitemclicked_28',['OnItemClicked',['../classsw_1_1_list_view.html#a60fce24f88dc39ab4b25a24edd44d940',1,'sw::ListView']]], + ['onitemdoubleclicked_29',['OnItemDoubleClicked',['../classsw_1_1_list_view.html#aad1b3b081bf328350b93f1cfba68cd0e',1,'sw::ListView']]], + ['onkeydown_30',['OnKeyDown',['../classsw_1_1_button.html#a7c8ac08e29b2b2294047949bfc025891',1,'sw::Button::OnKeyDown()'],['../classsw_1_1_text_box_base.html#a83561e8ffe232f84c13dc14c941600f6',1,'sw::TextBoxBase::OnKeyDown()'],['../classsw_1_1_u_i_element.html#ab7adb46425947c0b14b3bc5b60f6fdac',1,'sw::UIElement::OnKeyDown()'],['../classsw_1_1_wnd_base.html#aea1d61cd6e108834e498009926ff3ebd',1,'sw::WndBase::OnKeyDown()']]], + ['onkeyup_31',['OnKeyUp',['../classsw_1_1_u_i_element.html#ad2be8df1de363a180ef2c32606e2fc74',1,'sw::UIElement::OnKeyUp()'],['../classsw_1_1_wnd_base.html#af4e6b89a39f12d2fbdf987d79c05b190',1,'sw::WndBase::OnKeyUp()']]], + ['onkillfocus_32',['OnKillFocus',['../classsw_1_1_button.html#a367d1dfa43e065dbe2a0272d4cfef458',1,'sw::Button::OnKillFocus()'],['../classsw_1_1_u_i_element.html#a6b8833ac8fe8798edd0480f737aea426',1,'sw::UIElement::OnKillFocus()'],['../classsw_1_1_wnd_base.html#a6de15bd6a264721f6bfadd40d9fce3b0',1,'sw::WndBase::OnKillFocus()']]], + ['onmenucommand_33',['OnMenuCommand',['../classsw_1_1_u_i_element.html#aca1d15ee60f06d11aeccadfc92ed23d2',1,'sw::UIElement::OnMenuCommand()'],['../classsw_1_1_window.html#a8ff6176f2fb886593f448b430c21fc90',1,'sw::Window::OnMenuCommand()'],['../classsw_1_1_wnd_base.html#afffc1d57f289f965bc50d8150c4586e1',1,'sw::WndBase::OnMenuCommand()']]], + ['onmouseleave_34',['OnMouseLeave',['../classsw_1_1_u_i_element.html#ac65b1a6485b454004801a296c788db6a',1,'sw::UIElement::OnMouseLeave()'],['../classsw_1_1_wnd_base.html#aaf334072263bea6dddf93a7601979023',1,'sw::WndBase::OnMouseLeave()']]], + ['onmouseleftbuttondoubleclick_35',['OnMouseLeftButtonDoubleClick',['../classsw_1_1_wnd_base.html#a5a8952400bee12db2117fbf76312d373',1,'sw::WndBase']]], + ['onmouseleftbuttondown_36',['OnMouseLeftButtonDown',['../classsw_1_1_u_i_element.html#a307e0afb1a83b8a31a54844089483f76',1,'sw::UIElement::OnMouseLeftButtonDown()'],['../classsw_1_1_wnd_base.html#a118948e07b472d90fce7e9811ea174aa',1,'sw::WndBase::OnMouseLeftButtonDown()']]], + ['onmouseleftbuttonup_37',['OnMouseLeftButtonUp',['../classsw_1_1_u_i_element.html#ad3360842adfd2298d4d505305250a6eb',1,'sw::UIElement::OnMouseLeftButtonUp()'],['../classsw_1_1_wnd_base.html#ad82a0ab5f0622abaf30456e7e309409e',1,'sw::WndBase::OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState)']]], + ['onmousemiddlebuttondoubleclick_38',['OnMouseMiddleButtonDoubleClick',['../classsw_1_1_wnd_base.html#a4aa14c2130ef0fbb656d28c287e401f5',1,'sw::WndBase']]], + ['onmousemiddlebuttondown_39',['OnMouseMiddleButtonDown',['../classsw_1_1_u_i_element.html#aabbfe747a3396f5cb08e952cd583c825',1,'sw::UIElement::OnMouseMiddleButtonDown()'],['../classsw_1_1_wnd_base.html#a348d10334d2f74a44f741bf85eddaa2c',1,'sw::WndBase::OnMouseMiddleButtonDown()']]], + ['onmousemiddlebuttonup_40',['OnMouseMiddleButtonUp',['../classsw_1_1_u_i_element.html#a62da7e785db521278afb58d28e30f4fa',1,'sw::UIElement::OnMouseMiddleButtonUp()'],['../classsw_1_1_wnd_base.html#a143aff6cca9e55608630d1fc320d4666',1,'sw::WndBase::OnMouseMiddleButtonUp()']]], + ['onmousemove_41',['OnMouseMove',['../classsw_1_1_u_i_element.html#a2589db7fdbba4423307e64f6289a4650',1,'sw::UIElement::OnMouseMove()'],['../classsw_1_1_wnd_base.html#ad188b201bbbc650c4ad9c388dbac18b4',1,'sw::WndBase::OnMouseMove(Point mousePosition, MouseKey keyState)']]], + ['onmouserightbuttondoubleclick_42',['OnMouseRightButtonDoubleClick',['../classsw_1_1_wnd_base.html#a5b90855aaaa4556e5ef5fe68e8149669',1,'sw::WndBase']]], + ['onmouserightbuttondown_43',['OnMouseRightButtonDown',['../classsw_1_1_u_i_element.html#a8d1a3049967256fa8306f1364ba209c9',1,'sw::UIElement::OnMouseRightButtonDown()'],['../classsw_1_1_wnd_base.html#a4c802a79d332af6e6a6ddcf13005a587',1,'sw::WndBase::OnMouseRightButtonDown()']]], + ['onmouserightbuttonup_44',['OnMouseRightButtonUp',['../classsw_1_1_u_i_element.html#a42ce311746de9bace84a221efeed7e1f',1,'sw::UIElement::OnMouseRightButtonUp()'],['../classsw_1_1_wnd_base.html#aeb7286fd72b6d49b6d0b22d8cde07941',1,'sw::WndBase::OnMouseRightButtonUp()']]], + ['onmousewheel_45',['OnMouseWheel',['../classsw_1_1_u_i_element.html#a4d8e08dc4281b7bf67bb60c9f92fbde0',1,'sw::UIElement::OnMouseWheel()'],['../classsw_1_1_wnd_base.html#adcf94f9017f5589b3027955e48c34b62',1,'sw::WndBase::OnMouseWheel()']]], + ['onmove_46',['OnMove',['../classsw_1_1_u_i_element.html#a6482d770b94d6b40da944d64730e8237',1,'sw::UIElement::OnMove()'],['../classsw_1_1_wnd_base.html#a17769747f602f2f7c18a0a49ce97a125',1,'sw::WndBase::OnMove(Point newClientPosition)']]], + ['onnchittest_47',['OnNcHitTest',['../classsw_1_1_wnd_base.html#a1445af2018a8e840a25a7487da22c51b',1,'sw::WndBase']]], + ['onnotified_48',['OnNotified',['../classsw_1_1_list_view.html#aaad9cba6a7d80f3862720d2771cb28dc',1,'sw::ListView::OnNotified()'],['../classsw_1_1_tab_control.html#ac0342af02418896ed6e98f6d11125348',1,'sw::TabControl::OnNotified()'],['../classsw_1_1_wnd_base.html#a4aad533e3d37a7de43645d703dda1a84',1,'sw::WndBase::OnNotified()']]], + ['onnotify_49',['OnNotify',['../classsw_1_1_list_view.html#a3d46f549079a2f75656de1e5903671cf',1,'sw::ListView::OnNotify()'],['../classsw_1_1_wnd_base.html#a191f7c32914b029dca7c93e03b4841e0',1,'sw::WndBase::OnNotify()']]], + ['onpaint_50',['OnPaint',['../classsw_1_1_panel.html#ab57a6afea25cdefeea622ff364727a8e',1,'sw::Panel::OnPaint()'],['../classsw_1_1_window.html#afa57e21216664a6fa3f9fdf04dad7a7d',1,'sw::Window::OnPaint()'],['../classsw_1_1_wnd_base.html#a029ba4be0e492f8383f2b5fe22125acb',1,'sw::WndBase::OnPaint()']]], + ['onremovedchild_51',['OnRemovedChild',['../classsw_1_1_tab_control.html#a1642e450b1cf606338eb85bd9f93c82c',1,'sw::TabControl::OnRemovedChild()'],['../classsw_1_1_u_i_element.html#aadedba1a9bca85555b70bc247b8ef835',1,'sw::UIElement::OnRemovedChild()']]], + ['onscroll_52',['OnScroll',['../classsw_1_1_layer.html#af21620044342125a8e59671a6fb222e8',1,'sw::Layer']]], + ['onselectedindexchanged_53',['OnSelectedIndexChanged',['../classsw_1_1_tab_control.html#a654688668bdf8331e27cbe4564d6cf63',1,'sw::TabControl']]], + ['onselectionchanged_54',['OnSelectionChanged',['../classsw_1_1_combo_box.html#aae57315267ac472d28f9a55ac28cc902',1,'sw::ComboBox::OnSelectionChanged()'],['../classsw_1_1_items_control.html#aaf5eb0f69c26b57da81fe8a22f962ec6',1,'sw::ItemsControl::OnSelectionChanged()']]], + ['onsetcursor_55',['OnSetCursor',['../classsw_1_1_u_i_element.html#a6175e146290ecff80407d4c8afa1cf05',1,'sw::UIElement::OnSetCursor()'],['../classsw_1_1_wnd_base.html#ab37c3f3ea7654eb6a0b15405196c4549',1,'sw::WndBase::OnSetCursor()']]], + ['onsetfocus_56',['OnSetFocus',['../classsw_1_1_button.html#a7ef48914988a2c38835ff09dee5c5040',1,'sw::Button::OnSetFocus()'],['../classsw_1_1_u_i_element.html#a95c6eb88c9f93bb135da9ee303ada3be',1,'sw::UIElement::OnSetFocus()'],['../classsw_1_1_wnd_base.html#a4b15e8f2bcac32da4d5e540445ae201a',1,'sw::WndBase::OnSetFocus()']]], + ['onsize_57',['OnSize',['../classsw_1_1_panel.html#a655497d6bdbf760e34df1d799d89b009',1,'sw::Panel::OnSize()'],['../classsw_1_1_u_i_element.html#af4f4d3a0d23a886c0257c439821f5809',1,'sw::UIElement::OnSize()'],['../classsw_1_1_wnd_base.html#aaba3c3ea0a8d12be237ef28e44018677',1,'sw::WndBase::OnSize(Size newClientSize)']]], + ['onsyschar_58',['OnSysChar',['../classsw_1_1_wnd_base.html#a515de5eb7bc6dbc8314c447a99154c6c',1,'sw::WndBase']]], + ['onsysdeadchar_59',['OnSysDeadChar',['../classsw_1_1_wnd_base.html#acf4e6c0bbc8fddc9e790864e403c5c91',1,'sw::WndBase']]], + ['onsyskeydown_60',['OnSysKeyDown',['../classsw_1_1_wnd_base.html#ad63e584926b894913ee1ef4c039a2f98',1,'sw::WndBase']]], + ['onsyskeyup_61',['OnSysKeyUp',['../classsw_1_1_wnd_base.html#a46dafa7371fbef198ee7a38c4aabc632',1,'sw::WndBase']]], + ['ontabstop_62',['OnTabStop',['../classsw_1_1_u_i_element.html#a0f0826e68eb96f7b7dd7882c4c0171b9',1,'sw::UIElement']]], + ['ontextchanged_63',['OnTextChanged',['../classsw_1_1_label.html#af90d6f76f8d674ae945193f3f4f630e9',1,'sw::Label::OnTextChanged()'],['../classsw_1_1_u_i_element.html#a7e1fbc142c7cfe4a4a60959daf0753bc',1,'sw::UIElement::OnTextChanged()'],['../classsw_1_1_wnd_base.html#adb808283f6ccd5a32834ad25fa2f407b',1,'sw::WndBase::OnTextChanged()']]], + ['onvaluechanged_64',['OnValueChanged',['../classsw_1_1_slider.html#acf6c700d10cedb1ac2c69072a9ea0549',1,'sw::Slider']]], + ['onverticalscroll_65',['OnVerticalScroll',['../classsw_1_1_layer.html#ac06c5746cd104b7f8f9ab4d9ea9c5833',1,'sw::Layer::OnVerticalScroll()'],['../classsw_1_1_panel_base.html#af23d21a7b280c75e49278ce141ff428b',1,'sw::PanelBase::OnVerticalScroll()'],['../classsw_1_1_slider.html#a1bc544724aafc7ac79ca14fdc0e126a5',1,'sw::Slider::OnVerticalScroll()'],['../classsw_1_1_wnd_base.html#a72a4024b2096ecef4248b1c254b674e2',1,'sw::WndBase::OnVerticalScroll()']]], + ['operator_20const_20t_20_26_66',['operator const T &',['../classsw_1_1_read_only_property.html#a7610c93a1d2bcbdb34a97ac90e36fcea',1,'sw::ReadOnlyProperty']]], + ['operator_20uint64_5ft_67',['operator uint64_t',['../structsw_1_1_canvas_layout_tag.html#a54ca60a93c85b0c06ad1d848fed9af42',1,'sw::CanvasLayoutTag::operator uint64_t()'],['../structsw_1_1_grid_layout_tag.html#ac512b325c8e5a5e5848e01e5c93b0be0',1,'sw::GridLayoutTag::operator uint64_t()']]], + ['operator_21_3d_68',['operator!=',['../classsw_1_1_dictionary.html#a9d62c349f91ea2d17e49c9f424e522da',1,'sw::Dictionary::operator!='],['../classsw_1_1_list.html#ab3818bbafce8936cc4a4f7a43dc163aa',1,'sw::List::operator!='],['../classsw_1_1_wnd_base.html#a3e4f8edb05ac0381561f4a105db73a34',1,'sw::WndBase::operator!=']]], + ['operator_2d_3e_69',['operator->',['../classsw_1_1_read_only_property.html#ace02f4ac6e2e2ba863038ed5b1befb8c',1,'sw::ReadOnlyProperty::operator->()'],['../classsw_1_1_property.html#adbca5ee89c3f7d07035fcece6af5c9be',1,'sw::Property::operator->()']]], + ['operator_3c_3c_70',['operator<<',['../classsw_1_1_dictionary.html#a09fce0167bbe5ff0e080de8b1a52e286',1,'sw::Dictionary::operator<<'],['../classsw_1_1_list.html#ab50f6f7c37c3c4649e332d596d5bda2f',1,'sw::List::operator<<'],['../classsw_1_1_read_only_property.html#a081d365b2904532c706e9dc7e4c0bd90',1,'sw::ReadOnlyProperty::operator<<']]], + ['operator_3d_71',['operator=',['../classsw_1_1_menu_base.html#a6fcf63228e79f855d4fa11c083028fb5',1,'sw::MenuBase::operator=()'],['../classsw_1_1_write_only_property.html#a63a9ab87270f1ce81833bb36349e258a',1,'sw::WriteOnlyProperty::operator=()'],['../classsw_1_1_property.html#a15318a6d29413d76006662d698f447c5',1,'sw::Property::operator=()']]], + ['operator_3d_3d_72',['operator==',['../classsw_1_1_dictionary.html#aa139d8b586f45b45157b268832ac9522',1,'sw::Dictionary::operator=='],['../classsw_1_1_list.html#a6c5f217b25ad01a2af3b311520bcfc8e',1,'sw::List::operator=='],['../classsw_1_1_wnd_base.html#a91165e81b129c626cabcc7b3d8a5dc43',1,'sw::WndBase::operator==']]], + ['operator_5b_5d_73',['operator[]',['../classsw_1_1_dictionary.html#a3f2f6938ef081002887f747d74950a30',1,'sw::Dictionary::operator[]()'],['../classsw_1_1_list.html#a56e16552c6690d1c808646c4232dd992',1,'sw::List::operator[]()'],['../classsw_1_1_u_i_element.html#a3dee0000f9edfdce128c7ca3c95ec4ab',1,'sw::UIElement::operator[]()']]], + ['orientation_74',['Orientation',['../classsw_1_1_stack_panel.html#affb5896d0e3e3b615bcbb285c8e03bf4',1,'sw::StackPanel::Orientation'],['../classsw_1_1_wrap_panel.html#a2b718024b1dd81f08906afd3fa18a3f7',1,'sw::WrapPanel::Orientation']]], + ['orientation_75',['orientation',['../classsw_1_1_font.html#af31ac58928f6e0d9d9c90a95f54fd7de',1,'sw::Font::orientation'],['../classsw_1_1_stack_layout.html#aa425ef22052ca56ed1e0358374db00a5',1,'sw::StackLayout::orientation'],['../classsw_1_1_wrap_layout.html#a1ce0e6707fe1463b857889755df7ee09',1,'sw::WrapLayout::orientation']]], + ['outprecision_76',['outPrecision',['../classsw_1_1_font.html#aa223c3578a59a96149bd4ef989825e08',1,'sw::Font']]] +]; diff --git a/docs/search/all_f.js b/docs/search/all_f.js new file mode 100644 index 00000000..926c5a5b --- /dev/null +++ b/docs/search/all_f.js @@ -0,0 +1,48 @@ +var searchData= +[ + ['panel_0',['Panel',['../classsw_1_1_panel.html',1,'sw::Panel'],['../classsw_1_1_panel.html#a937db7d8878602d93eead371e0aab655',1,'sw::Panel::Panel()']]], + ['panelbase_1',['PanelBase',['../classsw_1_1_panel_base.html',1,'sw::PanelBase'],['../classsw_1_1_panel_base.html#abab2cca25b5d32f8bce01252e9db500e',1,'sw::PanelBase::PanelBase()']]], + ['parent_2',['Parent',['../classsw_1_1_u_i_element.html#ad825a0e12b75238b13f422f47ddf292b',1,'sw::UIElement::Parent'],['../classsw_1_1_wnd_base.html#a7bda583e7535a89b8b5bd327c1f32ccd',1,'sw::WndBase::Parent']]], + ['parentchanged_3',['ParentChanged',['../classsw_1_1_u_i_element.html#a87b86762809c8e4a0ace610a977caa78',1,'sw::UIElement::ParentChanged()'],['../classsw_1_1_wnd_base.html#a4d09cfbc382789150798ff6ad3d9f988',1,'sw::WndBase::ParentChanged()']]], + ['passwordbox_4',['PasswordBox',['../classsw_1_1_password_box.html',1,'sw::PasswordBox'],['../classsw_1_1_password_box.html#a5e6b907e4c80b16dc1691eb6271778f5',1,'sw::PasswordBox::PasswordBox()']]], + ['passwordchar_5',['PasswordChar',['../classsw_1_1_password_box.html#acb858c64ba690363567d5c73cc49ad7e',1,'sw::PasswordBox']]], + ['path_6',['Path',['../classsw_1_1_path.html',1,'sw']]], + ['pitch_7',['pitch',['../classsw_1_1_font.html#ae48df531042cb4d94440eadbe61d532b',1,'sw::Font']]], + ['point_8',['Point',['../structsw_1_1_point.html',1,'sw']]], + ['pointfromscreen_9',['PointFromScreen',['../classsw_1_1_wnd_base.html#a6f1b33e5930fc14467f65ad89c2c35c3',1,'sw::WndBase']]], + ['pointtoscreen_10',['PointToScreen',['../classsw_1_1_wnd_base.html#a292d93c230f5534cdf68ac5d685dd487',1,'sw::WndBase']]], + ['positionchangedeventargs_11',['PositionChangedEventArgs',['../structsw_1_1_position_changed_event_args.html',1,'sw']]], + ['procmsg_12',['ProcMsg',['../structsw_1_1_proc_msg.html',1,'sw']]], + ['progressbar_13',['ProgressBar',['../classsw_1_1_progress_bar.html',1,'sw::ProgressBar'],['../classsw_1_1_progress_bar.html#a461cb23f2cc6c276eda9312cb269a403',1,'sw::ProgressBar::ProgressBar()']]], + ['property_14',['Property',['../classsw_1_1_property.html',1,'sw::Property< T >'],['../classsw_1_1_property.html#a657ad195af10d76fb55801b3cec62aca',1,'sw::Property::Property()']]], + ['property_3c_20appquitmode_20_3e_15',['Property< AppQuitMode >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20bool_20_3e_16',['Property< bool >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20double_20_3e_17',['Property< double >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20horizontalalignment_20_3e_18',['Property< HorizontalAlignment >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20int_20_3e_19',['Property< int >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20progressbarstate_20_3e_20',['Property< ProgressBarState >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20std_3a_3awstring_20_3e_21',['Property< std::wstring >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20sw_3a_3aborderstyle_20_3e_22',['Property< sw::BorderStyle >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20sw_3a_3acheckstate_20_3e_23',['Property< sw::CheckState >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20sw_3a_3acolor_20_3e_24',['Property< sw::Color >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20sw_3a_3acontextmenu_20_2a_20_3e_25',['Property< sw::ContextMenu * >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20sw_3a_3afont_20_3e_26',['Property< sw::Font >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20sw_3a_3afontweight_20_3e_27',['Property< sw::FontWeight >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20sw_3a_3ahorizontalalignment_20_3e_28',['Property< sw::HorizontalAlignment >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20sw_3a_3alayouthost_20_2a_20_3e_29',['Property< sw::LayoutHost * >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20sw_3a_3amenu_20_2a_20_3e_30',['Property< sw::Menu * >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20sw_3a_3aorientation_20_3e_31',['Property< sw::Orientation >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20sw_3a_3arect_20_3e_32',['Property< sw::Rect >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20sw_3a_3atexttrimming_20_3e_33',['Property< sw::TextTrimming >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20sw_3a_3athickness_20_3e_34',['Property< sw::Thickness >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20sw_3a_3averticalalignment_20_3e_35',['Property< sw::VerticalAlignment >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20tabalignment_20_3e_36',['Property< TabAlignment >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20uint16_5ft_20_3e_37',['Property< uint16_t >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20uint64_5ft_20_3e_38',['Property< uint64_t >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20verticalalignment_20_3e_39',['Property< VerticalAlignment >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20wchar_5ft_20_3e_40',['Property< wchar_t >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20windowstartuplocation_20_3e_41',['Property< WindowStartupLocation >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20windowstate_20_3e_42',['Property< WindowState >',['../classsw_1_1_property.html',1,'sw']]], + ['pxtodipx_43',['PxToDipX',['../classsw_1_1_dip.html#aa0244988630536a31439cdfde27ec209',1,'sw::Dip']]], + ['pxtodipy_44',['PxToDipY',['../classsw_1_1_dip.html#a54fd07b8418adcff0ecb8483098ab860',1,'sw::Dip']]] +]; diff --git a/docs/search/classes_0.js b/docs/search/classes_0.js new file mode 100644 index 00000000..9f032c52 --- /dev/null +++ b/docs/search/classes_0.js @@ -0,0 +1,6 @@ +var searchData= +[ + ['_5fhaseventtype_0',['_HasEventType',['../structsw_1_1___has_event_type.html',1,'sw']]], + ['_5fhaseventtype_3c_20t_2c_20decltype_28void_28std_3a_3adeclval_3c_20t_20_3e_28_29_2eeventtype_29_29_3e_1',['_HasEventType< T, decltype(void(std::declval< T >().EventType))>',['../structsw_1_1___has_event_type_3_01_t_00_01decltype_07void_07std_1_1declval_3_01_t_01_4_07_08_8_event_type_08_08_4.html',1,'sw']]], + ['_5fistypedroutedeventargs_2',['_IsTypedRoutedEventArgs',['../structsw_1_1___is_typed_routed_event_args.html',1,'sw']]] +]; diff --git a/docs/search/classes_1.js b/docs/search/classes_1.js new file mode 100644 index 00000000..d1e018c6 --- /dev/null +++ b/docs/search/classes_1.js @@ -0,0 +1,6 @@ +var searchData= +[ + ['app_0',['App',['../classsw_1_1_app.html',1,'sw']]], + ['autosizegridcolumn_1',['AutoSizeGridColumn',['../structsw_1_1_auto_size_grid_column.html',1,'sw']]], + ['autosizegridrow_2',['AutoSizeGridRow',['../structsw_1_1_auto_size_grid_row.html',1,'sw']]] +]; diff --git a/docs/search/classes_10.js b/docs/search/classes_10.js new file mode 100644 index 00000000..5296dd9e --- /dev/null +++ b/docs/search/classes_10.js @@ -0,0 +1,39 @@ +var searchData= +[ + ['window_0',['Window',['../classsw_1_1_window.html',1,'sw']]], + ['windowclosingeventargs_1',['WindowClosingEventArgs',['../structsw_1_1_window_closing_event_args.html',1,'sw']]], + ['wndbase_2',['WndBase',['../classsw_1_1_wnd_base.html',1,'sw']]], + ['wraplayout_3',['WrapLayout',['../classsw_1_1_wrap_layout.html',1,'sw']]], + ['wraplayouth_4',['WrapLayoutH',['../classsw_1_1_wrap_layout_h.html',1,'sw']]], + ['wraplayoutv_5',['WrapLayoutV',['../classsw_1_1_wrap_layout_v.html',1,'sw']]], + ['wrappanel_6',['WrapPanel',['../classsw_1_1_wrap_panel.html',1,'sw']]], + ['writeonlyproperty_7',['WriteOnlyProperty',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20appquitmode_20_3e_8',['WriteOnlyProperty< AppQuitMode >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20bool_20_3e_9',['WriteOnlyProperty< bool >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20double_20_3e_10',['WriteOnlyProperty< double >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20horizontalalignment_20_3e_11',['WriteOnlyProperty< HorizontalAlignment >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20int_20_3e_12',['WriteOnlyProperty< int >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20progressbarstate_20_3e_13',['WriteOnlyProperty< ProgressBarState >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20std_3a_3awstring_20_3e_14',['WriteOnlyProperty< std::wstring >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20sw_3a_3aborderstyle_20_3e_15',['WriteOnlyProperty< sw::BorderStyle >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20sw_3a_3acheckstate_20_3e_16',['WriteOnlyProperty< sw::CheckState >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20sw_3a_3acolor_20_3e_17',['WriteOnlyProperty< sw::Color >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20sw_3a_3acontextmenu_20_2a_20_3e_18',['WriteOnlyProperty< sw::ContextMenu * >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20sw_3a_3afont_20_3e_19',['WriteOnlyProperty< sw::Font >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20sw_3a_3afontweight_20_3e_20',['WriteOnlyProperty< sw::FontWeight >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20sw_3a_3ahorizontalalignment_20_3e_21',['WriteOnlyProperty< sw::HorizontalAlignment >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20sw_3a_3alayouthost_20_2a_20_3e_22',['WriteOnlyProperty< sw::LayoutHost * >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20sw_3a_3amenu_20_2a_20_3e_23',['WriteOnlyProperty< sw::Menu * >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20sw_3a_3aorientation_20_3e_24',['WriteOnlyProperty< sw::Orientation >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20sw_3a_3arect_20_3e_25',['WriteOnlyProperty< sw::Rect >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20sw_3a_3atexttrimming_20_3e_26',['WriteOnlyProperty< sw::TextTrimming >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20sw_3a_3athickness_20_3e_27',['WriteOnlyProperty< sw::Thickness >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20sw_3a_3averticalalignment_20_3e_28',['WriteOnlyProperty< sw::VerticalAlignment >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20tabalignment_20_3e_29',['WriteOnlyProperty< TabAlignment >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20uint16_5ft_20_3e_30',['WriteOnlyProperty< uint16_t >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20uint64_5ft_20_3e_31',['WriteOnlyProperty< uint64_t >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20verticalalignment_20_3e_32',['WriteOnlyProperty< VerticalAlignment >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20wchar_5ft_20_3e_33',['WriteOnlyProperty< wchar_t >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20windowstartuplocation_20_3e_34',['WriteOnlyProperty< WindowStartupLocation >',['../classsw_1_1_write_only_property.html',1,'sw']]], + ['writeonlyproperty_3c_20windowstate_20_3e_35',['WriteOnlyProperty< WindowState >',['../classsw_1_1_write_only_property.html',1,'sw']]] +]; diff --git a/docs/search/classes_2.js b/docs/search/classes_2.js new file mode 100644 index 00000000..fca410b1 --- /dev/null +++ b/docs/search/classes_2.js @@ -0,0 +1,5 @@ +var searchData= +[ + ['button_0',['Button',['../classsw_1_1_button.html',1,'sw']]], + ['buttonbase_1',['ButtonBase',['../classsw_1_1_button_base.html',1,'sw']]] +]; diff --git a/docs/search/classes_3.js b/docs/search/classes_3.js new file mode 100644 index 00000000..c2450a0f --- /dev/null +++ b/docs/search/classes_3.js @@ -0,0 +1,13 @@ +var searchData= +[ + ['canvas_0',['Canvas',['../classsw_1_1_canvas.html',1,'sw']]], + ['canvaslayout_1',['CanvasLayout',['../classsw_1_1_canvas_layout.html',1,'sw']]], + ['canvaslayouttag_2',['CanvasLayoutTag',['../structsw_1_1_canvas_layout_tag.html',1,'sw']]], + ['checkablebutton_3',['CheckableButton',['../classsw_1_1_checkable_button.html',1,'sw']]], + ['checkbox_4',['CheckBox',['../classsw_1_1_check_box.html',1,'sw']]], + ['color_5',['Color',['../structsw_1_1_color.html',1,'sw']]], + ['combobox_6',['ComboBox',['../classsw_1_1_combo_box.html',1,'sw']]], + ['contextmenu_7',['ContextMenu',['../classsw_1_1_context_menu.html',1,'sw']]], + ['control_8',['Control',['../classsw_1_1_control.html',1,'sw']]], + ['cursorhelper_9',['CursorHelper',['../classsw_1_1_cursor_helper.html',1,'sw']]] +]; diff --git a/docs/search/classes_4.js b/docs/search/classes_4.js new file mode 100644 index 00000000..53fa108d --- /dev/null +++ b/docs/search/classes_4.js @@ -0,0 +1,7 @@ +var searchData= +[ + ['dictionary_0',['Dictionary',['../classsw_1_1_dictionary.html',1,'sw']]], + ['dip_1',['Dip',['../classsw_1_1_dip.html',1,'sw']]], + ['docklayout_2',['DockLayout',['../classsw_1_1_dock_layout.html',1,'sw']]], + ['dockpanel_3',['DockPanel',['../classsw_1_1_dock_panel.html',1,'sw']]] +]; diff --git a/docs/search/classes_5.js b/docs/search/classes_5.js new file mode 100644 index 00000000..4e376b2f --- /dev/null +++ b/docs/search/classes_5.js @@ -0,0 +1,9 @@ +var searchData= +[ + ['filllayout_0',['FillLayout',['../classsw_1_1_fill_layout.html',1,'sw']]], + ['fillremaingridcolumn_1',['FillRemainGridColumn',['../structsw_1_1_fill_remain_grid_column.html',1,'sw']]], + ['fillremaingridrow_2',['FillRemainGridRow',['../structsw_1_1_fill_remain_grid_row.html',1,'sw']]], + ['fixsizegridcolumn_3',['FixSizeGridColumn',['../structsw_1_1_fix_size_grid_column.html',1,'sw']]], + ['fixsizegridrow_4',['FixSizeGridRow',['../structsw_1_1_fix_size_grid_row.html',1,'sw']]], + ['font_5',['Font',['../classsw_1_1_font.html',1,'sw']]] +]; diff --git a/docs/search/classes_6.js b/docs/search/classes_6.js new file mode 100644 index 00000000..5854eba0 --- /dev/null +++ b/docs/search/classes_6.js @@ -0,0 +1,10 @@ +var searchData= +[ + ['gotchareventargs_0',['GotCharEventArgs',['../structsw_1_1_got_char_event_args.html',1,'sw']]], + ['grid_1',['Grid',['../classsw_1_1_grid.html',1,'sw']]], + ['gridcolumn_2',['GridColumn',['../structsw_1_1_grid_column.html',1,'sw']]], + ['gridlayout_3',['GridLayout',['../classsw_1_1_grid_layout.html',1,'sw']]], + ['gridlayouttag_4',['GridLayoutTag',['../structsw_1_1_grid_layout_tag.html',1,'sw']]], + ['gridrow_5',['GridRow',['../structsw_1_1_grid_row.html',1,'sw']]], + ['groupbox_6',['GroupBox',['../classsw_1_1_group_box.html',1,'sw']]] +]; diff --git a/docs/search/classes_7.js b/docs/search/classes_7.js new file mode 100644 index 00000000..5448b517 --- /dev/null +++ b/docs/search/classes_7.js @@ -0,0 +1,8 @@ +var searchData= +[ + ['iconhelper_0',['IconHelper',['../classsw_1_1_icon_helper.html',1,'sw']]], + ['ilayout_1',['ILayout',['../classsw_1_1_i_layout.html',1,'sw']]], + ['itag_2',['ITag',['../classsw_1_1_i_tag.html',1,'sw']]], + ['itemscontrol_3',['ItemsControl',['../classsw_1_1_items_control.html',1,'sw']]], + ['itemscontrol_3c_20strlist_20_3e_4',['ItemsControl< StrList >',['../classsw_1_1_items_control.html',1,'sw']]] +]; diff --git a/docs/search/classes_8.js b/docs/search/classes_8.js new file mode 100644 index 00000000..faccddfe --- /dev/null +++ b/docs/search/classes_8.js @@ -0,0 +1,6 @@ +var searchData= +[ + ['keydowneventargs_0',['KeyDownEventArgs',['../structsw_1_1_key_down_event_args.html',1,'sw']]], + ['keyflags_1',['KeyFlags',['../structsw_1_1_key_flags.html',1,'sw']]], + ['keyupeventargs_2',['KeyUpEventArgs',['../structsw_1_1_key_up_event_args.html',1,'sw']]] +]; diff --git a/docs/search/classes_9.js b/docs/search/classes_9.js new file mode 100644 index 00000000..8144dc54 --- /dev/null +++ b/docs/search/classes_9.js @@ -0,0 +1,15 @@ +var searchData= +[ + ['label_0',['Label',['../classsw_1_1_label.html',1,'sw']]], + ['layer_1',['Layer',['../classsw_1_1_layer.html',1,'sw']]], + ['layouthost_2',['LayoutHost',['../classsw_1_1_layout_host.html',1,'sw']]], + ['list_3',['List',['../classsw_1_1_list.html',1,'sw']]], + ['list_3c_20sw_3a_3agridcolumn_20_3e_4',['List< sw::GridColumn >',['../classsw_1_1_list.html',1,'sw']]], + ['list_3c_20sw_3a_3agridrow_20_3e_5',['List< sw::GridRow >',['../classsw_1_1_list.html',1,'sw']]], + ['listbox_6',['ListBox',['../classsw_1_1_list_box.html',1,'sw']]], + ['listview_7',['ListView',['../classsw_1_1_list_view.html',1,'sw']]], + ['listviewcheckstatechangedeventargs_8',['ListViewCheckStateChangedEventArgs',['../structsw_1_1_list_view_check_state_changed_event_args.html',1,'sw']]], + ['listviewcolumn_9',['ListViewColumn',['../structsw_1_1_list_view_column.html',1,'sw']]], + ['listviewheaderclickedeventargs_10',['ListViewHeaderClickedEventArgs',['../structsw_1_1_list_view_header_clicked_event_args.html',1,'sw']]], + ['listviewitemclickedeventargs_11',['ListViewItemClickedEventArgs',['../structsw_1_1_list_view_item_clicked_event_args.html',1,'sw']]] +]; diff --git a/docs/search/classes_a.js b/docs/search/classes_a.js new file mode 100644 index 00000000..e77e166d --- /dev/null +++ b/docs/search/classes_a.js @@ -0,0 +1,11 @@ +var searchData= +[ + ['menu_0',['Menu',['../classsw_1_1_menu.html',1,'sw']]], + ['menubase_1',['MenuBase',['../classsw_1_1_menu_base.html',1,'sw']]], + ['menuitem_2',['MenuItem',['../classsw_1_1_menu_item.html',1,'sw']]], + ['mousebuttondowneventargs_3',['MouseButtonDownEventArgs',['../structsw_1_1_mouse_button_down_event_args.html',1,'sw']]], + ['mousebuttonupeventargs_4',['MouseButtonUpEventArgs',['../structsw_1_1_mouse_button_up_event_args.html',1,'sw']]], + ['mousemoveeventargs_5',['MouseMoveEventArgs',['../structsw_1_1_mouse_move_event_args.html',1,'sw']]], + ['mousewheeleventargs_6',['MouseWheelEventArgs',['../structsw_1_1_mouse_wheel_event_args.html',1,'sw']]], + ['msgbox_7',['MsgBox',['../classsw_1_1_msg_box.html',1,'sw']]] +]; diff --git a/docs/search/classes_b.js b/docs/search/classes_b.js new file mode 100644 index 00000000..ee0a5fe3 --- /dev/null +++ b/docs/search/classes_b.js @@ -0,0 +1,40 @@ +var searchData= +[ + ['panel_0',['Panel',['../classsw_1_1_panel.html',1,'sw']]], + ['panelbase_1',['PanelBase',['../classsw_1_1_panel_base.html',1,'sw']]], + ['passwordbox_2',['PasswordBox',['../classsw_1_1_password_box.html',1,'sw']]], + ['path_3',['Path',['../classsw_1_1_path.html',1,'sw']]], + ['point_4',['Point',['../structsw_1_1_point.html',1,'sw']]], + ['positionchangedeventargs_5',['PositionChangedEventArgs',['../structsw_1_1_position_changed_event_args.html',1,'sw']]], + ['procmsg_6',['ProcMsg',['../structsw_1_1_proc_msg.html',1,'sw']]], + ['progressbar_7',['ProgressBar',['../classsw_1_1_progress_bar.html',1,'sw']]], + ['property_8',['Property',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20appquitmode_20_3e_9',['Property< AppQuitMode >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20bool_20_3e_10',['Property< bool >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20double_20_3e_11',['Property< double >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20horizontalalignment_20_3e_12',['Property< HorizontalAlignment >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20int_20_3e_13',['Property< int >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20progressbarstate_20_3e_14',['Property< ProgressBarState >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20std_3a_3awstring_20_3e_15',['Property< std::wstring >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20sw_3a_3aborderstyle_20_3e_16',['Property< sw::BorderStyle >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20sw_3a_3acheckstate_20_3e_17',['Property< sw::CheckState >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20sw_3a_3acolor_20_3e_18',['Property< sw::Color >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20sw_3a_3acontextmenu_20_2a_20_3e_19',['Property< sw::ContextMenu * >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20sw_3a_3afont_20_3e_20',['Property< sw::Font >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20sw_3a_3afontweight_20_3e_21',['Property< sw::FontWeight >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20sw_3a_3ahorizontalalignment_20_3e_22',['Property< sw::HorizontalAlignment >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20sw_3a_3alayouthost_20_2a_20_3e_23',['Property< sw::LayoutHost * >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20sw_3a_3amenu_20_2a_20_3e_24',['Property< sw::Menu * >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20sw_3a_3aorientation_20_3e_25',['Property< sw::Orientation >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20sw_3a_3arect_20_3e_26',['Property< sw::Rect >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20sw_3a_3atexttrimming_20_3e_27',['Property< sw::TextTrimming >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20sw_3a_3athickness_20_3e_28',['Property< sw::Thickness >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20sw_3a_3averticalalignment_20_3e_29',['Property< sw::VerticalAlignment >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20tabalignment_20_3e_30',['Property< TabAlignment >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20uint16_5ft_20_3e_31',['Property< uint16_t >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20uint64_5ft_20_3e_32',['Property< uint64_t >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20verticalalignment_20_3e_33',['Property< VerticalAlignment >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20wchar_5ft_20_3e_34',['Property< wchar_t >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20windowstartuplocation_20_3e_35',['Property< WindowStartupLocation >',['../classsw_1_1_property.html',1,'sw']]], + ['property_3c_20windowstate_20_3e_36',['Property< WindowState >',['../classsw_1_1_property.html',1,'sw']]] +]; diff --git a/docs/search/classes_c.js b/docs/search/classes_c.js new file mode 100644 index 00000000..6a359429 --- /dev/null +++ b/docs/search/classes_c.js @@ -0,0 +1,57 @@ +var searchData= +[ + ['radiobutton_0',['RadioButton',['../classsw_1_1_radio_button.html',1,'sw']]], + ['readonlyproperty_1',['ReadOnlyProperty',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20appquitmode_20_3e_2',['ReadOnlyProperty< AppQuitMode >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20bool_20_3e_3',['ReadOnlyProperty< bool >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20double_20_3e_4',['ReadOnlyProperty< double >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20hinstance_20_3e_5',['ReadOnlyProperty< HINSTANCE >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20horizontalalignment_20_3e_6',['ReadOnlyProperty< HorizontalAlignment >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20hwnd_20_3e_7',['ReadOnlyProperty< HWND >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20int_20_3e_8',['ReadOnlyProperty< int >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20progressbarstate_20_3e_9',['ReadOnlyProperty< ProgressBarState >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20std_3a_3awstring_20_3e_10',['ReadOnlyProperty< std::wstring >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20strlist_20_3e_11',['ReadOnlyProperty< StrList >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20sw_3a_3aborderstyle_20_3e_12',['ReadOnlyProperty< sw::BorderStyle >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20sw_3a_3acheckstate_20_3e_13',['ReadOnlyProperty< sw::CheckState >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20sw_3a_3acolor_20_3e_14',['ReadOnlyProperty< sw::Color >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20sw_3a_3acontextmenu_20_2a_20_3e_15',['ReadOnlyProperty< sw::ContextMenu * >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20sw_3a_3afont_20_3e_16',['ReadOnlyProperty< sw::Font >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20sw_3a_3afontweight_20_3e_17',['ReadOnlyProperty< sw::FontWeight >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20sw_3a_3ahorizontalalignment_20_3e_18',['ReadOnlyProperty< sw::HorizontalAlignment >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20sw_3a_3alayouthost_20_2a_20_3e_19',['ReadOnlyProperty< sw::LayoutHost * >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20sw_3a_3amenu_20_2a_20_3e_20',['ReadOnlyProperty< sw::Menu * >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20sw_3a_3aorientation_20_3e_21',['ReadOnlyProperty< sw::Orientation >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20sw_3a_3apoint_20_3e_22',['ReadOnlyProperty< sw::Point >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20sw_3a_3arect_20_3e_23',['ReadOnlyProperty< sw::Rect >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20sw_3a_3atexttrimming_20_3e_24',['ReadOnlyProperty< sw::TextTrimming >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20sw_3a_3athickness_20_3e_25',['ReadOnlyProperty< sw::Thickness >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20sw_3a_3auielement_20_2a_20_3e_26',['ReadOnlyProperty< sw::UIElement * >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20sw_3a_3averticalalignment_20_3e_27',['ReadOnlyProperty< sw::VerticalAlignment >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20sw_3a_3awindow_20_2a_20_3e_28',['ReadOnlyProperty< sw::Window * >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20sw_3a_3awndbase_20_2a_20_3e_29',['ReadOnlyProperty< sw::WndBase * >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20tabalignment_20_3e_30',['ReadOnlyProperty< TabAlignment >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20titem_20_3e_31',['ReadOnlyProperty< TItem >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20uint16_5ft_20_3e_32',['ReadOnlyProperty< uint16_t >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20uint64_5ft_20_3e_33',['ReadOnlyProperty< uint64_t >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20verticalalignment_20_3e_34',['ReadOnlyProperty< VerticalAlignment >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20wchar_5ft_20_3e_35',['ReadOnlyProperty< wchar_t >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20windowstartuplocation_20_3e_36',['ReadOnlyProperty< WindowStartupLocation >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['readonlyproperty_3c_20windowstate_20_3e_37',['ReadOnlyProperty< WindowState >',['../classsw_1_1_read_only_property.html',1,'sw']]], + ['rect_38',['Rect',['../structsw_1_1_rect.html',1,'sw']]], + ['routedeventargs_39',['RoutedEventArgs',['../structsw_1_1_routed_event_args.html',1,'sw']]], + ['routedeventargsoftype_40',['RoutedEventArgsOfType',['../structsw_1_1_routed_event_args_of_type.html',1,'sw']]], + ['routedeventargsoftype_3c_20layer_5fscrolling_20_3e_41',['RoutedEventArgsOfType< Layer_Scrolling >',['../structsw_1_1_routed_event_args_of_type.html',1,'sw']]], + ['routedeventargsoftype_3c_20listview_5fcheckstatechanged_20_3e_42',['RoutedEventArgsOfType< ListView_CheckStateChanged >',['../structsw_1_1_routed_event_args_of_type.html',1,'sw']]], + ['routedeventargsoftype_3c_20uielement_5fgotchar_20_3e_43',['RoutedEventArgsOfType< UIElement_GotChar >',['../structsw_1_1_routed_event_args_of_type.html',1,'sw']]], + ['routedeventargsoftype_3c_20uielement_5fkeydown_20_3e_44',['RoutedEventArgsOfType< UIElement_KeyDown >',['../structsw_1_1_routed_event_args_of_type.html',1,'sw']]], + ['routedeventargsoftype_3c_20uielement_5fkeyup_20_3e_45',['RoutedEventArgsOfType< UIElement_KeyUp >',['../structsw_1_1_routed_event_args_of_type.html',1,'sw']]], + ['routedeventargsoftype_3c_20uielement_5fmousebuttondown_20_3e_46',['RoutedEventArgsOfType< UIElement_MouseButtonDown >',['../structsw_1_1_routed_event_args_of_type.html',1,'sw']]], + ['routedeventargsoftype_3c_20uielement_5fmousebuttonup_20_3e_47',['RoutedEventArgsOfType< UIElement_MouseButtonUp >',['../structsw_1_1_routed_event_args_of_type.html',1,'sw']]], + ['routedeventargsoftype_3c_20uielement_5fmousemove_20_3e_48',['RoutedEventArgsOfType< UIElement_MouseMove >',['../structsw_1_1_routed_event_args_of_type.html',1,'sw']]], + ['routedeventargsoftype_3c_20uielement_5fmousewheel_20_3e_49',['RoutedEventArgsOfType< UIElement_MouseWheel >',['../structsw_1_1_routed_event_args_of_type.html',1,'sw']]], + ['routedeventargsoftype_3c_20uielement_5fpositionchanged_20_3e_50',['RoutedEventArgsOfType< UIElement_PositionChanged >',['../structsw_1_1_routed_event_args_of_type.html',1,'sw']]], + ['routedeventargsoftype_3c_20uielement_5fshowcontextmenu_20_3e_51',['RoutedEventArgsOfType< UIElement_ShowContextMenu >',['../structsw_1_1_routed_event_args_of_type.html',1,'sw']]], + ['routedeventargsoftype_3c_20uielement_5fsizechanged_20_3e_52',['RoutedEventArgsOfType< UIElement_SizeChanged >',['../structsw_1_1_routed_event_args_of_type.html',1,'sw']]], + ['routedeventargsoftype_3c_20window_5fclosing_20_3e_53',['RoutedEventArgsOfType< Window_Closing >',['../structsw_1_1_routed_event_args_of_type.html',1,'sw']]] +]; diff --git a/docs/search/classes_d.js b/docs/search/classes_d.js new file mode 100644 index 00000000..44d9a127 --- /dev/null +++ b/docs/search/classes_d.js @@ -0,0 +1,14 @@ +var searchData= +[ + ['screen_0',['Screen',['../classsw_1_1_screen.html',1,'sw']]], + ['scrollingeventargs_1',['ScrollingEventArgs',['../structsw_1_1_scrolling_event_args.html',1,'sw']]], + ['showcontextmenueventargs_2',['ShowContextMenuEventArgs',['../structsw_1_1_show_context_menu_event_args.html',1,'sw']]], + ['size_3',['Size',['../structsw_1_1_size.html',1,'sw']]], + ['sizechangedeventargs_4',['SizeChangedEventArgs',['../structsw_1_1_size_changed_event_args.html',1,'sw']]], + ['slider_5',['Slider',['../classsw_1_1_slider.html',1,'sw']]], + ['stacklayout_6',['StackLayout',['../classsw_1_1_stack_layout.html',1,'sw']]], + ['stacklayouth_7',['StackLayoutH',['../classsw_1_1_stack_layout_h.html',1,'sw']]], + ['stacklayoutv_8',['StackLayoutV',['../classsw_1_1_stack_layout_v.html',1,'sw']]], + ['stackpanel_9',['StackPanel',['../classsw_1_1_stack_panel.html',1,'sw']]], + ['staticcontrol_10',['StaticControl',['../classsw_1_1_static_control.html',1,'sw']]] +]; diff --git a/docs/search/classes_e.js b/docs/search/classes_e.js new file mode 100644 index 00000000..59b58525 --- /dev/null +++ b/docs/search/classes_e.js @@ -0,0 +1,7 @@ +var searchData= +[ + ['tabcontrol_0',['TabControl',['../classsw_1_1_tab_control.html',1,'sw']]], + ['textbox_1',['TextBox',['../classsw_1_1_text_box.html',1,'sw']]], + ['textboxbase_2',['TextBoxBase',['../classsw_1_1_text_box_base.html',1,'sw']]], + ['thickness_3',['Thickness',['../structsw_1_1_thickness.html',1,'sw']]] +]; diff --git a/docs/search/classes_f.js b/docs/search/classes_f.js new file mode 100644 index 00000000..d429b047 --- /dev/null +++ b/docs/search/classes_f.js @@ -0,0 +1,7 @@ +var searchData= +[ + ['uielement_0',['UIElement',['../classsw_1_1_u_i_element.html',1,'sw']]], + ['uniformgrid_1',['UniformGrid',['../classsw_1_1_uniform_grid.html',1,'sw']]], + ['uniformgridlayout_2',['UniformGridLayout',['../classsw_1_1_uniform_grid_layout.html',1,'sw']]], + ['utils_3',['Utils',['../classsw_1_1_utils.html',1,'sw']]] +]; diff --git a/docs/search/close.svg b/docs/search/close.svg new file mode 100644 index 00000000..337d6cc1 --- /dev/null +++ b/docs/search/close.svg @@ -0,0 +1,18 @@ + + + + + + diff --git a/docs/search/enums_0.js b/docs/search/enums_0.js new file mode 100644 index 00000000..6fb44357 --- /dev/null +++ b/docs/search/enums_0.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['docklayouttag_0',['DockLayoutTag',['../classsw_1_1_dock_layout.html#a35500d2b1512e62f31792ed90aafde5d',1,'sw::DockLayout']]] +]; diff --git a/docs/search/functions_0.js b/docs/search/functions_0.js new file mode 100644 index 00000000..27b2d16d --- /dev/null +++ b/docs/search/functions_0.js @@ -0,0 +1,14 @@ +var searchData= +[ + ['addchild_0',['AddChild',['../classsw_1_1_u_i_element.html#a32893339be348aa964441954f3a31101',1,'sw::UIElement::AddChild(UIElement *element)'],['../classsw_1_1_u_i_element.html#a1576ecfeec8347256a1c43a33169e1dc',1,'sw::UIElement::AddChild(UIElement &element)'],['../classsw_1_1_u_i_element.html#ac020bc2d263e0dcffa59e0f474ea6e95',1,'sw::UIElement::AddChild(UIElement *element, uint64_t layoutTag)'],['../classsw_1_1_u_i_element.html#a3e08b05c1a3ac1d95fd54a3ffaab81a0',1,'sw::UIElement::AddChild(UIElement &element, uint64_t layoutTag)']]], + ['addcolumn_1',['AddColumn',['../classsw_1_1_grid.html#ab4dd516b400e34b39674ab220a538da3',1,'sw::Grid::AddColumn()'],['../classsw_1_1_list_view.html#abdc6fdb5bbe352fa0cfed2587260f6fc',1,'sw::ListView::AddColumn(const ListViewColumn &column)'],['../classsw_1_1_list_view.html#a46f3f478e2f3bd4c1b3518eefd2a75fe',1,'sw::ListView::AddColumn(const std::wstring &header)']]], + ['additem_2',['AddItem',['../classsw_1_1_combo_box.html#a2a8aa04ae1b6d8544f0d772c8dd2aa2c',1,'sw::ComboBox::AddItem()'],['../classsw_1_1_items_control.html#a5fab112663e10fe37cf901fc6288bcff',1,'sw::ItemsControl::AddItem()'],['../classsw_1_1_list_box.html#ac46c5faa96a5e3e28e9652f40a7e7486',1,'sw::ListBox::AddItem()'],['../classsw_1_1_list_view.html#a5b7f4ebd627de9cfcbfc9fa87dce183c',1,'sw::ListView::AddItem()'],['../classsw_1_1_menu_base.html#a300bc76b5be03814cb8fa534a3a74cfe',1,'sw::MenuBase::AddItem()']]], + ['addrow_3',['AddRow',['../classsw_1_1_grid.html#a4878fb93660714d7f0a70a6a131852a1',1,'sw::Grid']]], + ['addsubitem_4',['AddSubItem',['../classsw_1_1_menu_base.html#aa48a89a167974e8a7397ffe6058c475f',1,'sw::MenuBase']]], + ['append_5',['Append',['../classsw_1_1_list.html#aa14a40283db35522ff884cd737762720',1,'sw::List']]], + ['arrange_6',['Arrange',['../classsw_1_1_i_layout.html#a5616892d25adc2666e83211036db7d80',1,'sw::ILayout::Arrange()'],['../classsw_1_1_layer.html#a418f1f936414fd657ad11a0c0f437cdb',1,'sw::Layer::Arrange()'],['../classsw_1_1_layout_host.html#a52f5e12df00e032fd424db409fd73951',1,'sw::LayoutHost::Arrange()'],['../classsw_1_1_panel_base.html#ab7630a76728d4d464b0bee1bfdbdca9b',1,'sw::PanelBase::Arrange()'],['../classsw_1_1_tab_control.html#a2826913f7180e01ec24542dd87ea8676',1,'sw::TabControl::Arrange()'],['../classsw_1_1_u_i_element.html#ac8088cf88b28c6b4a5f93cd7a66a769e',1,'sw::UIElement::Arrange()']]], + ['arrangeoverride_7',['ArrangeOverride',['../classsw_1_1_canvas_layout.html#ae537365bb8c5ab18ec497844d87f288d',1,'sw::CanvasLayout::ArrangeOverride()'],['../classsw_1_1_dock_layout.html#a095344f448138136a4988d4323dae0f9',1,'sw::DockLayout::ArrangeOverride()'],['../classsw_1_1_fill_layout.html#aa748a6d627a02ae1373ca987ea16fbd4',1,'sw::FillLayout::ArrangeOverride()'],['../classsw_1_1_grid_layout.html#a77f696d86389ff0360bd65629a5edab4',1,'sw::GridLayout::ArrangeOverride()'],['../classsw_1_1_layout_host.html#ac28cdcd081c105a2acedfddce436897d',1,'sw::LayoutHost::ArrangeOverride()'],['../classsw_1_1_stack_layout.html#a45b50cf0df7e1ce86e817a47940e7226',1,'sw::StackLayout::ArrangeOverride()'],['../classsw_1_1_stack_layout_h.html#a1b527c76303aed32cad3f4a13bd991a2',1,'sw::StackLayoutH::ArrangeOverride()'],['../classsw_1_1_stack_layout_v.html#a383ec238bac4bdb91d20e39b8ac8a0e1',1,'sw::StackLayoutV::ArrangeOverride()'],['../classsw_1_1_uniform_grid_layout.html#a62cfcb1c77d3d25b7adf07730aa3a144',1,'sw::UniformGridLayout::ArrangeOverride()'],['../classsw_1_1_wrap_layout.html#ab9be93cbdff99c85100c72559ed36b1b',1,'sw::WrapLayout::ArrangeOverride()'],['../classsw_1_1_wrap_layout_h.html#a1c8f53445bcda82c733b1e6d1e45b788',1,'sw::WrapLayoutH::ArrangeOverride()'],['../classsw_1_1_wrap_layout_v.html#a010cae9030f68a485430c9cbe4b230a6',1,'sw::WrapLayoutV::ArrangeOverride()']]], + ['associate_8',['Associate',['../classsw_1_1_layout_host.html#ace58d1aefa8427892f71bfa8b91e9281',1,'sw::LayoutHost']]], + ['autosizegridcolumn_9',['AutoSizeGridColumn',['../structsw_1_1_auto_size_grid_column.html#a6dd90239ba99030b22c7354dd9ef1fc9',1,'sw::AutoSizeGridColumn']]], + ['autosizegridrow_10',['AutoSizeGridRow',['../structsw_1_1_auto_size_grid_row.html#a2bdf1d29e1b15c59580fd5592afade9a',1,'sw::AutoSizeGridRow']]] +]; diff --git a/docs/search/functions_1.js b/docs/search/functions_1.js new file mode 100644 index 00000000..c8a0a662 --- /dev/null +++ b/docs/search/functions_1.js @@ -0,0 +1,7 @@ +var searchData= +[ + ['begin_0',['begin',['../classsw_1_1_dictionary.html#a9e7e3d687118005beb08bbf9e3a3a2bc',1,'sw::Dictionary::begin()'],['../classsw_1_1_list.html#a39b94e22ea344de135667df991fbbe11',1,'sw::List::begin()']]], + ['buildstr_1',['BuildStr',['../classsw_1_1_utils.html#abb9a32e7b7d1fb83832c9a39a84c3452',1,'sw::Utils']]], + ['button_2',['Button',['../classsw_1_1_button.html#aafd2e523e98d68c45e451d93f22ead13',1,'sw::Button']]], + ['buttonbase_3',['ButtonBase',['../classsw_1_1_button_base.html#ae5dad2a65523da878df700fa4aefe3ee',1,'sw::ButtonBase']]] +]; diff --git a/docs/search/functions_10.js b/docs/search/functions_10.js new file mode 100644 index 00000000..8e757333 --- /dev/null +++ b/docs/search/functions_10.js @@ -0,0 +1,54 @@ +var searchData= +[ + ['scrollhorizontal_0',['ScrollHorizontal',['../classsw_1_1_layer.html#a8c9c171806dc6021ea15c6a444a74efa',1,'sw::Layer']]], + ['scrolltobottom_1',['ScrollToBottom',['../classsw_1_1_layer.html#a6a371d0a4688e0ec05ad508572df3866',1,'sw::Layer']]], + ['scrolltocaret_2',['ScrollToCaret',['../classsw_1_1_text_box_base.html#a221765241d6ca76156d3564440306d51',1,'sw::TextBoxBase']]], + ['scrolltoleft_3',['ScrollToLeft',['../classsw_1_1_layer.html#aa86cca7662b17b6a03467d0e7d1975da',1,'sw::Layer']]], + ['scrolltoright_4',['ScrollToRight',['../classsw_1_1_layer.html#aed843519d2ebd313ff0fb598548414aa',1,'sw::Layer']]], + ['scrolltotop_5',['ScrollToTop',['../classsw_1_1_layer.html#ac2826d1b12341d63b5b6be854dffd419',1,'sw::Layer']]], + ['scrollvertical_6',['ScrollVertical',['../classsw_1_1_layer.html#a64d09c3003a00ede215ebf5b52efd328',1,'sw::Layer']]], + ['select_7',['Select',['../classsw_1_1_text_box_base.html#aa22188dc026379eb3e76a2415b8bf0c9',1,'sw::TextBoxBase']]], + ['selectall_8',['SelectAll',['../classsw_1_1_text_box_base.html#aa1e5c56604dd112fb3f116d12c1603d4',1,'sw::TextBoxBase']]], + ['sendmessagew_9',['SendMessageW',['../classsw_1_1_wnd_base.html#ad50166a8ade9a7eaf0088f13fd708e2f',1,'sw::WndBase']]], + ['set_10',['Set',['../classsw_1_1_write_only_property.html#a870a065cc24bec479bc35eeaa0afee87',1,'sw::WriteOnlyProperty']]], + ['setalignment_11',['SetAlignment',['../classsw_1_1_u_i_element.html#a7b2f0c77c7ec5d6d68bc3c772a72201a',1,'sw::UIElement']]], + ['setbackcolor_12',['SetBackColor',['../classsw_1_1_list_view.html#a56b546d6ddeadd258522b2441ec9bcc4',1,'sw::ListView::SetBackColor()'],['../classsw_1_1_u_i_element.html#af60b45de9f894f4fb152491413f1fa73',1,'sw::UIElement::SetBackColor()']]], + ['setcanvaslayouttag_13',['SetCanvasLayoutTag',['../classsw_1_1_canvas.html#a751e75d078bd18b665d7e36a5db6af5e',1,'sw::Canvas']]], + ['setchecked_14',['SetChecked',['../classsw_1_1_menu_base.html#a114b4fe9eb2cd543c605479198d67517',1,'sw::MenuBase']]], + ['setcolumnheader_15',['SetColumnHeader',['../classsw_1_1_list_view.html#a8ee454faaa1351526c069174589f5403',1,'sw::ListView']]], + ['setcolumns_16',['SetColumns',['../classsw_1_1_grid.html#ae79bb614d8319f8abfd6018f40c11e73',1,'sw::Grid']]], + ['setcolumnwidth_17',['SetColumnWidth',['../classsw_1_1_list_view.html#a71c4c33a03aa2811a3fee6d7a9d0c2c3',1,'sw::ListView']]], + ['setcursor_18',['SetCursor',['../classsw_1_1_u_i_element.html#a0ce7edc8a920e950a9a75cf1a84ea627',1,'sw::UIElement::SetCursor(HCURSOR hCursor)'],['../classsw_1_1_u_i_element.html#a848d8b2ee3267758e9a784be75b65e46',1,'sw::UIElement::SetCursor(StandardCursor cursor)']]], + ['setdesiresize_19',['SetDesireSize',['../classsw_1_1_i_layout.html#ab5c5df73b4a3e76840c5d16ab1dfb7fc',1,'sw::ILayout::SetDesireSize()'],['../classsw_1_1_layout_host.html#a035aefcab7040b1ac1503e4f25501e48',1,'sw::LayoutHost::SetDesireSize()'],['../classsw_1_1_u_i_element.html#a3370e535f462680d66063e45b92807f6',1,'sw::UIElement::SetDesireSize()']]], + ['setdock_20',['SetDock',['../classsw_1_1_dock_panel.html#a99c73e208b981b58ad4875bfe9d2f0f0',1,'sw::DockPanel']]], + ['setenabled_21',['SetEnabled',['../classsw_1_1_menu_base.html#a537663148790e0516c1a2aca7b02afd1',1,'sw::MenuBase']]], + ['setextendedstyle_22',['SetExtendedStyle',['../classsw_1_1_wnd_base.html#a58f8e7dd73212a5aed4785a5af1f8a76',1,'sw::WndBase::SetExtendedStyle(LONG_PTR style)'],['../classsw_1_1_wnd_base.html#ab34424818cb41b88aaefa796ef4b1995',1,'sw::WndBase::SetExtendedStyle(LONG_PTR style, bool value)']]], + ['setgridlayouttag_23',['SetGridLayoutTag',['../classsw_1_1_grid.html#aa586593cd6a20329efaab07c87ac2ede',1,'sw::Grid']]], + ['sethorizontalscrollpagesize_24',['SetHorizontalScrollPageSize',['../classsw_1_1_layer.html#aead2fa34ba3641781a849d3abd7f5839',1,'sw::Layer']]], + ['sethorizontalscrollrange_25',['SetHorizontalScrollRange',['../classsw_1_1_layer.html#aac08647d3f15d95e874a2c84c6237dde',1,'sw::Layer']]], + ['seticon_26',['SetIcon',['../classsw_1_1_window.html#a9046c167eb2a1572f420ecd5bd8aef1c',1,'sw::Window']]], + ['setitemcheckstate_27',['SetItemCheckState',['../classsw_1_1_list_view.html#affa13393f8c08a2e1f1b9b4018ceef3f',1,'sw::ListView']]], + ['setitems_28',['SetItems',['../classsw_1_1_menu_base.html#a1aec7eb5fee274eed8a9a49179383a94',1,'sw::MenuBase']]], + ['setitemselectionstate_29',['SetItemSelectionState',['../classsw_1_1_list_box.html#a1b4104d35b0bbe19239fdaa4f43dd956',1,'sw::ListBox']]], + ['setlayout_30',['SetLayout',['../classsw_1_1_window.html#abdf47e48c8a4e9d9c368cb549ba3d938',1,'sw::Window::SetLayout()'],['../classsw_1_1_window.html#a236c7f298b6bbb432ce7c3c82a5eaacd',1,'sw::Window::SetLayout()']]], + ['setnexttabstopfocus_31',['SetNextTabStopFocus',['../classsw_1_1_u_i_element.html#a0d9db652043bc5c5cd3483d82b35dcbe',1,'sw::UIElement']]], + ['setparent_32',['SetParent',['../classsw_1_1_u_i_element.html#ad685138138402ddd8a5fde67bbb85a45',1,'sw::UIElement::SetParent()'],['../classsw_1_1_wnd_base.html#a5fd142cef45421381b2e8b89cac67d86',1,'sw::WndBase::SetParent()']]], + ['setrows_33',['SetRows',['../classsw_1_1_grid.html#a58863e85b90d1e4253937f46cc30b8aa',1,'sw::Grid']]], + ['setselectedindex_34',['SetSelectedIndex',['../classsw_1_1_combo_box.html#a021e4d94ae1b811514523942fe94f7fe',1,'sw::ComboBox::SetSelectedIndex()'],['../classsw_1_1_items_control.html#aa23a550b08ca55e7d1c412f462124527',1,'sw::ItemsControl::SetSelectedIndex()'],['../classsw_1_1_list_box.html#aaea8164e80a16084fb2fa47c894a16db',1,'sw::ListBox::SetSelectedIndex()'],['../classsw_1_1_list_view.html#a281ac94e46cb287611a25f78a3b91a06',1,'sw::ListView::SetSelectedIndex()']]], + ['setstyle_35',['SetStyle',['../classsw_1_1_wnd_base.html#a163464ef6f42dc8e6c10557715607ad2',1,'sw::WndBase::SetStyle(LONG_PTR style)'],['../classsw_1_1_wnd_base.html#acbd2d5eb7aa20574b9ad80e166b6f0f6',1,'sw::WndBase::SetStyle(LONG_PTR style, bool value)']]], + ['setsubitems_36',['SetSubItems',['../classsw_1_1_menu_base.html#a2f4d2832b6bcc759e291a99278b3eb12',1,'sw::MenuBase']]], + ['settag_37',['SetTag',['../classsw_1_1_i_tag.html#a814b2084a60df545ba5d47e96f7928d3',1,'sw::ITag::SetTag()'],['../classsw_1_1_menu_item.html#ab0b1236f09532f993324f76c07c7b8c7',1,'sw::MenuItem::SetTag()'],['../classsw_1_1_u_i_element.html#a09acdba6221e69b6ecb17b49975a1414',1,'sw::UIElement::SetTag()']]], + ['settext_38',['SetText',['../classsw_1_1_combo_box.html#a3b4e253960fe5f62aed8544066899654',1,'sw::ComboBox::SetText()'],['../classsw_1_1_menu_base.html#a9f9fb3eda715d2c71e3e4a1b0562bac8',1,'sw::MenuBase::SetText()'],['../classsw_1_1_wnd_base.html#aba0ab3734c3d4c07f3b9bbb029b98edb',1,'sw::WndBase::SetText()']]], + ['settextcolor_39',['SetTextColor',['../classsw_1_1_list_view.html#acb06dc6710aafdb341e75fd92fc08af1',1,'sw::ListView::SetTextColor()'],['../classsw_1_1_u_i_element.html#ab8557638ba9975346d62f5339de55664',1,'sw::UIElement::SetTextColor()']]], + ['setverticalscrollpagesize_40',['SetVerticalScrollPageSize',['../classsw_1_1_layer.html#a764863242261f4373f2ec3da99ef0310',1,'sw::Layer']]], + ['setverticalscrollrange_41',['SetVerticalScrollRange',['../classsw_1_1_layer.html#a53bc897b0a8c50761ccc6c2daf4e2e02',1,'sw::Layer']]], + ['show_42',['Show',['../classsw_1_1_window.html#a3281c944ffc505243ff2b958b42e6fa7',1,'sw::Window::Show()'],['../classsw_1_1_wnd_base.html#ae2f1b78dd8165c8bca0313180a9f4b81',1,'sw::WndBase::Show()']]], + ['showcontextmenu_43',['ShowContextMenu',['../classsw_1_1_u_i_element.html#ae513a79247f76498e8f586d4ced1ff6e',1,'sw::UIElement']]], + ['showdialog_44',['ShowDialog',['../classsw_1_1_window.html#a37bc59a8775b6f39e244cdd6f82d5e51',1,'sw::Window']]], + ['showdropdown_45',['ShowDropDown',['../classsw_1_1_combo_box.html#a5127d5cdcd1873ae9e092a59b6bff70c',1,'sw::ComboBox']]], + ['sizetocontent_46',['SizeToContent',['../classsw_1_1_window.html#abff0275ae90d22951d40b769f952d415',1,'sw::Window']]], + ['slider_47',['Slider',['../classsw_1_1_slider.html#a44907de8805117d38ba3631545f39453',1,'sw::Slider']]], + ['split_48',['Split',['../classsw_1_1_utils.html#a8f0292de23814b539a4f5db889422a06',1,'sw::Utils']]], + ['stackpanel_49',['StackPanel',['../classsw_1_1_stack_panel.html#adaf90a1ad8018e5365e22f45a0a0341a',1,'sw::StackPanel']]], + ['staticcontrol_50',['StaticControl',['../classsw_1_1_static_control.html#a88dea3db611c5cc94df004cdae9c74ef',1,'sw::StaticControl']]] +]; diff --git a/docs/search/functions_11.js b/docs/search/functions_11.js new file mode 100644 index 00000000..dfe7d4d3 --- /dev/null +++ b/docs/search/functions_11.js @@ -0,0 +1,11 @@ +var searchData= +[ + ['tabcontrol_0',['TabControl',['../classsw_1_1_tab_control.html#a402ae0be40a8a236d09b5c8a31c5aca1',1,'sw::TabControl']]], + ['textbox_1',['TextBox',['../classsw_1_1_text_box.html#ae2cffffb2a78119a7094d78109060326',1,'sw::TextBox']]], + ['textboxbase_2',['TextBoxBase',['../classsw_1_1_text_box_base.html#a67d628d8d0d746292ef4350ad1a5a84a',1,'sw::TextBoxBase']]], + ['tomultibytestr_3',['ToMultiByteStr',['../classsw_1_1_utils.html#a6cc154f2d595b5624b3aaca8b64fd3dd',1,'sw::Utils']]], + ['towidestr_4',['ToWideStr',['../classsw_1_1_utils.html#ae08072c3e4e8796d5ffad7027e41f773',1,'sw::Utils']]], + ['trim_5',['Trim',['../classsw_1_1_utils.html#ac1a4b590a8f330ca9af3ec557f3c0eac',1,'sw::Utils']]], + ['trimend_6',['TrimEnd',['../classsw_1_1_utils.html#ab2e47287405f057170c24ba15d9ebe48',1,'sw::Utils']]], + ['trimstart_7',['TrimStart',['../classsw_1_1_utils.html#ad19ab16d87c5c8f6ee319b593bf21fc7',1,'sw::Utils']]] +]; diff --git a/docs/search/functions_12.js b/docs/search/functions_12.js new file mode 100644 index 00000000..87899cdf --- /dev/null +++ b/docs/search/functions_12.js @@ -0,0 +1,17 @@ +var searchData= +[ + ['uielement_0',['UIElement',['../classsw_1_1_u_i_element.html#aeebf42b059a9962fd9c2ba64dcc309ca',1,'sw::UIElement']]], + ['undo_1',['Undo',['../classsw_1_1_text_box_base.html#a7c7ccda9b5161642d002a88cab7da1c3',1,'sw::TextBoxBase']]], + ['uniformgrid_2',['UniformGrid',['../classsw_1_1_uniform_grid.html#a9e262983bba94ed0841bff604b4fbd29',1,'sw::UniformGrid']]], + ['unregisterroutedevent_3',['UnregisterRoutedEvent',['../classsw_1_1_u_i_element.html#a0cbfb44f8280a3e5e01b71906e588d69',1,'sw::UIElement']]], + ['update_4',['Update',['../classsw_1_1_dip.html#a3c299de3610198634e20773878486a4f',1,'sw::Dip::Update()'],['../classsw_1_1_menu_base.html#aa5e31e8a7e3f1744fec35acfdce47b2e',1,'sw::MenuBase::Update()'],['../classsw_1_1_wnd_base.html#ab7ac81f0ed48a5093fd3170c7c756963',1,'sw::WndBase::Update()']]], + ['updatechildrenzorder_5',['UpdateChildrenZOrder',['../classsw_1_1_u_i_element.html#acf5b0f1e5c2e24390b7f267db28c595a',1,'sw::UIElement']]], + ['updatefont_6',['UpdateFont',['../classsw_1_1_wnd_base.html#af8df0384e2be0569e0da1f51985204c8',1,'sw::WndBase']]], + ['updateitem_7',['UpdateItem',['../classsw_1_1_combo_box.html#a8681ea3c984f21f86269518407981d26',1,'sw::ComboBox::UpdateItem()'],['../classsw_1_1_items_control.html#af169d6e1cce32846f8d0043a69ab69b1',1,'sw::ItemsControl::UpdateItem()'],['../classsw_1_1_list_box.html#a6a75757143482d8024559027fe6ee524',1,'sw::ListBox::UpdateItem()'],['../classsw_1_1_list_view.html#ab3fba4c9cb19eb933b132ba4a7694cac',1,'sw::ListView::UpdateItem(int index, const StrList &newValue) override'],['../classsw_1_1_list_view.html#ad51ae3ae4b5cf3b60d56867738a8b960',1,'sw::ListView::UpdateItem(int row, int col, const std::wstring &newValue)']]], + ['updatelayout_8',['UpdateLayout',['../classsw_1_1_layer.html#a76769d6a5eb98783dfe42b1473560996',1,'sw::Layer']]], + ['updatescrollrange_9',['UpdateScrollRange',['../classsw_1_1_layer.html#ab71b81212d598db06271a1338b42ff1e',1,'sw::Layer']]], + ['updatesiblingszorder_10',['UpdateSiblingsZOrder',['../classsw_1_1_u_i_element.html#ae7e788c5e662363d6244414c5250a39d',1,'sw::UIElement']]], + ['updatetab_11',['UpdateTab',['../classsw_1_1_tab_control.html#acbde185af6197161f7b22485ebff02b2',1,'sw::TabControl']]], + ['updatetabtext_12',['UpdateTabText',['../classsw_1_1_tab_control.html#ab14ce7faf0e6feb71ba66e7a1029673c',1,'sw::TabControl']]], + ['updatetext_13',['UpdateText',['../classsw_1_1_wnd_base.html#a292bd97b5820a1b4e7a38d65e2b609e8',1,'sw::WndBase']]] +]; diff --git a/docs/search/functions_13.js b/docs/search/functions_13.js new file mode 100644 index 00000000..9dfbf229 --- /dev/null +++ b/docs/search/functions_13.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['visiblechanged_0',['VisibleChanged',['../classsw_1_1_u_i_element.html#a98812949329f77e400f7e0e381c56c3d',1,'sw::UIElement::VisibleChanged()'],['../classsw_1_1_wnd_base.html#aef02bbac8ef450e5f3f478b41031a3ab',1,'sw::WndBase::VisibleChanged()']]] +]; diff --git a/docs/search/functions_14.js b/docs/search/functions_14.js new file mode 100644 index 00000000..52839d5e --- /dev/null +++ b/docs/search/functions_14.js @@ -0,0 +1,8 @@ +var searchData= +[ + ['window_0',['Window',['../classsw_1_1_window.html#a24eed02d394d13b368f5cf99b2a68c44',1,'sw::Window']]], + ['wndbase_1',['WndBase',['../classsw_1_1_wnd_base.html#aab509b68c9c0b612862cf41d8ef685a3',1,'sw::WndBase']]], + ['wndproc_2',['WndProc',['../classsw_1_1_window.html#a5c4a30ad5dd71cba0de201846867de25',1,'sw::Window::WndProc()'],['../classsw_1_1_wnd_base.html#a863b26226e16cf37f7169c6edc96a3b4',1,'sw::WndBase::WndProc()']]], + ['wrappanel_3',['WrapPanel',['../classsw_1_1_wrap_panel.html#a7dfc71028a9f60941ff4387ae175b078',1,'sw::WrapPanel']]], + ['writeonlyproperty_4',['WriteOnlyProperty',['../classsw_1_1_write_only_property.html#a38c348942cc3981b10e3929da579a147',1,'sw::WriteOnlyProperty']]] +]; diff --git a/docs/search/functions_15.js b/docs/search/functions_15.js new file mode 100644 index 00000000..c3e7993e --- /dev/null +++ b/docs/search/functions_15.js @@ -0,0 +1,12 @@ +var searchData= +[ + ['_7ebuttonbase_0',['~ButtonBase',['../classsw_1_1_button_base.html#a2b521a4eb6233774cf15ece47c0b5d68',1,'sw::ButtonBase']]], + ['_7echeckablebutton_1',['~CheckableButton',['../classsw_1_1_checkable_button.html#a5219cae8ff29ce51fc384b1916debb7a',1,'sw::CheckableButton']]], + ['_7econtrol_2',['~Control',['../classsw_1_1_control.html#ab2c00cbb6c776111096e9711c19735e7',1,'sw::Control']]], + ['_7elayer_3',['~Layer',['../classsw_1_1_layer.html#a9704f14ac77a0e0902b79058a2d29c8d',1,'sw::Layer']]], + ['_7emenubase_4',['~MenuBase',['../classsw_1_1_menu_base.html#abde93ccb3c829385d8e15f6ee1a36d0f',1,'sw::MenuBase']]], + ['_7epanelbase_5',['~PanelBase',['../classsw_1_1_panel_base.html#a7acc50ef3ccea1f4efa8d1d3fdf18fa9',1,'sw::PanelBase']]], + ['_7etextboxbase_6',['~TextBoxBase',['../classsw_1_1_text_box_base.html#a2fb455bb1ed2c1b3f3c12a82a5a4b720',1,'sw::TextBoxBase']]], + ['_7euielement_7',['~UIElement',['../classsw_1_1_u_i_element.html#acbe28513919da89bf3f9a5102d6353c3',1,'sw::UIElement']]], + ['_7ewndbase_8',['~WndBase',['../classsw_1_1_wnd_base.html#a6c99714fa3f313e7535936585f63b9cb',1,'sw::WndBase']]] +]; diff --git a/docs/search/functions_2.js b/docs/search/functions_2.js new file mode 100644 index 00000000..bf6d138f --- /dev/null +++ b/docs/search/functions_2.js @@ -0,0 +1,24 @@ +var searchData= +[ + ['callcommand_0',['CallCommand',['../classsw_1_1_menu_item.html#a1b1b34eaed41f83ca8e6072c0db486a0',1,'sw::MenuItem']]], + ['canvas_1',['Canvas',['../classsw_1_1_canvas.html#a92de73414d185ba3e67668643de54e35',1,'sw::Canvas']]], + ['canvaslayouttag_2',['CanvasLayoutTag',['../structsw_1_1_canvas_layout_tag.html#ad3e70c4391d2f7835676e5aae48a4377',1,'sw::CanvasLayoutTag::CanvasLayoutTag()'],['../structsw_1_1_canvas_layout_tag.html#ae9def609feb263d19aa829b29010184c',1,'sw::CanvasLayoutTag::CanvasLayoutTag(float left, float top)'],['../structsw_1_1_canvas_layout_tag.html#a5fcb2062d7a1239c4bd0f9fbf971718c',1,'sw::CanvasLayoutTag::CanvasLayoutTag(uint64_t layoutTag)']]], + ['capacity_3',['Capacity',['../classsw_1_1_list.html#a6998243269a9ad3bc5f4c9bdb6d90f99',1,'sw::List']]], + ['checkablebutton_4',['CheckableButton',['../classsw_1_1_checkable_button.html#a2524d4f78fb668da7d5a27a8d9aed837',1,'sw::CheckableButton']]], + ['checkbox_5',['CheckBox',['../classsw_1_1_check_box.html#a9db08b927d4b2ff852d0166ab94ab196',1,'sw::CheckBox']]], + ['clear_6',['Clear',['../classsw_1_1_combo_box.html#ae3956a539565249f84c343ff7a8cc945',1,'sw::ComboBox::Clear()'],['../classsw_1_1_dictionary.html#a061c70ddd433b90b5d8b61a9c81fc8da',1,'sw::Dictionary::Clear()'],['../classsw_1_1_items_control.html#a36312564b15eb327474696bf407b7864',1,'sw::ItemsControl::Clear()'],['../classsw_1_1_list.html#a9a9a3e947b9591f2a0e7fde6fb2ac9a8',1,'sw::List::Clear()'],['../classsw_1_1_list_box.html#af8f7832d3773fc8e9ddafbcfa617457f',1,'sw::ListBox::Clear()'],['../classsw_1_1_list_view.html#abb85e686c9e461b12b9184763a5bc76a',1,'sw::ListView::Clear()'],['../classsw_1_1_text_box_base.html#a9100aef79b476bac6f50933c7d73d5ee',1,'sw::TextBoxBase::Clear()']]], + ['clearchildren_7',['ClearChildren',['../classsw_1_1_u_i_element.html#a9585aee58045291cdca577e64f4a56e3',1,'sw::UIElement']]], + ['clearcolumns_8',['ClearColumns',['../classsw_1_1_grid.html#a9889b8f4e5cc9c290c444a25594e9e5a',1,'sw::Grid']]], + ['clearrows_9',['ClearRows',['../classsw_1_1_grid.html#affdc4e3a683b4577a3f82e2986dd7b2d',1,'sw::Grid']]], + ['close_10',['Close',['../classsw_1_1_wnd_base.html#a436818f8ad91446f86b42081dd1a7358',1,'sw::WndBase']]], + ['closedropdown_11',['CloseDropDown',['../classsw_1_1_combo_box.html#a347c5bf1646ae709ec6a4585dea20dae',1,'sw::ComboBox']]], + ['combine_12',['Combine',['../classsw_1_1_path.html#aaa1b4b0e392fed266c3ca9eeabd5200d',1,'sw::Path']]], + ['combobox_13',['ComboBox',['../classsw_1_1_combo_box.html#ab7952615f64988796a72df3027170e8b',1,'sw::ComboBox']]], + ['contains_14',['Contains',['../classsw_1_1_list.html#a459de7b71327cf474c1ac24909b49773',1,'sw::List']]], + ['containskey_15',['ContainsKey',['../classsw_1_1_dictionary.html#a726bccc37022c21d7864673c69138acc',1,'sw::Dictionary']]], + ['contextmenu_16',['ContextMenu',['../classsw_1_1_context_menu.html#ac51b991e84733be50e525147c3cc9d43',1,'sw::ContextMenu::ContextMenu()'],['../classsw_1_1_context_menu.html#a63c072213d8bfb7cbe4d6974eb44266b',1,'sw::ContextMenu::ContextMenu(std::initializer_list< MenuItem > items)']]], + ['control_17',['Control',['../classsw_1_1_control.html#aec7b384d013e9d25c507cf9ded87bff1',1,'sw::Control']]], + ['copy_18',['Copy',['../classsw_1_1_dictionary.html#afa7a405134901716b4affecc9f01df0f',1,'sw::Dictionary::Copy()'],['../classsw_1_1_list.html#a765086d760ea625121500730a2579d28',1,'sw::List::Copy()']]], + ['count_19',['Count',['../classsw_1_1_dictionary.html#a7c16eced6a889e97f4a1807697090fd3',1,'sw::Dictionary::Count()'],['../classsw_1_1_list.html#ac06d9081e817d6c808453928dd33525a',1,'sw::List::Count()']]], + ['createhandle_20',['CreateHandle',['../classsw_1_1_font.html#ac38911636974d3f67e7ece35cfc8172e',1,'sw::Font']]] +]; diff --git a/docs/search/functions_3.js b/docs/search/functions_3.js new file mode 100644 index 00000000..6f03e387 --- /dev/null +++ b/docs/search/functions_3.js @@ -0,0 +1,10 @@ +var searchData= +[ + ['defaultwndproc_0',['DefaultWndProc',['../classsw_1_1_wnd_base.html#a585967d861673ea0477f25c1a5c0fb30',1,'sw::WndBase']]], + ['dictionary_1',['Dictionary',['../classsw_1_1_dictionary.html#a77cbfe628092b74f1a698e7b5fe56c69',1,'sw::Dictionary::Dictionary()'],['../classsw_1_1_dictionary.html#a178b607824a4eff707914f2eb3aaaa22',1,'sw::Dictionary::Dictionary(std::initializer_list< std::pair< const TKey, TVal > > list)']]], + ['diptopxx_2',['DipToPxX',['../classsw_1_1_dip.html#a66e3c3a119b77b632ec5f1f37051ee6d',1,'sw::Dip']]], + ['diptopxy_3',['DipToPxY',['../classsw_1_1_dip.html#ae8986a97dc498280957b4c9e5fa53124',1,'sw::Dip']]], + ['disablelayout_4',['DisableLayout',['../classsw_1_1_layer.html#a4c9e94621cab7abd5ca2e10f5691c3c1',1,'sw::Layer']]], + ['dockpanel_5',['DockPanel',['../classsw_1_1_dock_panel.html#a8c9ce34641a342dc14c8bae2d49e3c08',1,'sw::DockPanel']]], + ['drawmenubar_6',['DrawMenuBar',['../classsw_1_1_window.html#a3daeab5c99e045449a8a5f086c19877e',1,'sw::Window']]] +]; diff --git a/docs/search/functions_4.js b/docs/search/functions_4.js new file mode 100644 index 00000000..4bfbc4db --- /dev/null +++ b/docs/search/functions_4.js @@ -0,0 +1,5 @@ +var searchData= +[ + ['enablelayout_0',['EnableLayout',['../classsw_1_1_layer.html#a5965bfa865e07371ad9e2e773f720653',1,'sw::Layer']]], + ['end_1',['end',['../classsw_1_1_dictionary.html#a98945b3a8a7c6b3e1110a406718a49c8',1,'sw::Dictionary::end()'],['../classsw_1_1_list.html#a9630ceee45943beca3b53931b7864095',1,'sw::List::end()']]] +]; diff --git a/docs/search/functions_5.js b/docs/search/functions_5.js new file mode 100644 index 00000000..f43d426a --- /dev/null +++ b/docs/search/functions_5.js @@ -0,0 +1,8 @@ +var searchData= +[ + ['fillremaingridcolumn_0',['FillRemainGridColumn',['../structsw_1_1_fill_remain_grid_column.html#a0835e5144c6f0246c6d7cf2c8dfd18a1',1,'sw::FillRemainGridColumn']]], + ['fillremaingridrow_1',['FillRemainGridRow',['../structsw_1_1_fill_remain_grid_row.html#ae4f6bd7474c82f753a03296a972bd308',1,'sw::FillRemainGridRow']]], + ['fixsizegridcolumn_2',['FixSizeGridColumn',['../structsw_1_1_fix_size_grid_column.html#a2564cacaada11c191704e59dab7d735b',1,'sw::FixSizeGridColumn']]], + ['fixsizegridrow_3',['FixSizeGridRow',['../structsw_1_1_fix_size_grid_row.html#a196b15d809057c6fc17943da76edcc06',1,'sw::FixSizeGridRow']]], + ['fontchanged_4',['FontChanged',['../classsw_1_1_label.html#af5e6d5d4530ee12b52ce2ab16f180aac',1,'sw::Label::FontChanged()'],['../classsw_1_1_wnd_base.html#ac34494921eed0f67a053a9393d78bcf9',1,'sw::WndBase::FontChanged()']]] +]; diff --git a/docs/search/functions_6.js b/docs/search/functions_6.js new file mode 100644 index 00000000..ed1255f5 --- /dev/null +++ b/docs/search/functions_6.js @@ -0,0 +1,62 @@ +var searchData= +[ + ['get_0',['Get',['../classsw_1_1_read_only_property.html#ac4317dbef2c25af64659b805cbbb26f6',1,'sw::ReadOnlyProperty']]], + ['getabsolutepath_1',['GetAbsolutePath',['../classsw_1_1_path.html#a398068d8b8a1c6a74016dedf0aedafb3',1,'sw::Path']]], + ['getarrangeoffsetx_2',['GetArrangeOffsetX',['../classsw_1_1_u_i_element.html#ae43f4f3c5a5c723d29f20e5590641388',1,'sw::UIElement']]], + ['getarrangeoffsety_3',['GetArrangeOffsetY',['../classsw_1_1_u_i_element.html#ab48faeb3dde62fbbe944a28dce2f3133',1,'sw::UIElement']]], + ['getcanvaslayouttag_4',['GetCanvasLayoutTag',['../classsw_1_1_canvas.html#ab1db5d7f52085916ad4785bdde42d3f8',1,'sw::Canvas']]], + ['getchecked_5',['GetChecked',['../classsw_1_1_menu_base.html#a2a631549b5be6a41f8a24342a880826d',1,'sw::MenuBase']]], + ['getcheckedindices_6',['GetCheckedIndices',['../classsw_1_1_list_view.html#ac4de7a880d513d5fe78d9600304979d2',1,'sw::ListView']]], + ['getchildbottommost_7',['GetChildBottommost',['../classsw_1_1_u_i_element.html#a7bda5652549fe9909e3b6b1383754b30',1,'sw::UIElement']]], + ['getchildlayoutat_8',['GetChildLayoutAt',['../classsw_1_1_i_layout.html#ab6a7ef612525020012594123732d24d4',1,'sw::ILayout::GetChildLayoutAt()'],['../classsw_1_1_layout_host.html#abd04747a5d0395d5f95f06185e28b964',1,'sw::LayoutHost::GetChildLayoutAt()'],['../classsw_1_1_u_i_element.html#a3683672f3c2fc8f80e4f808aac78d262',1,'sw::UIElement::GetChildLayoutAt()']]], + ['getchildlayoutcount_9',['GetChildLayoutCount',['../classsw_1_1_i_layout.html#aa07f4408aab5c6b088b69ede010fccd9',1,'sw::ILayout::GetChildLayoutCount()'],['../classsw_1_1_layout_host.html#a0c6c9750b12c5816608d78d72225b872',1,'sw::LayoutHost::GetChildLayoutCount()'],['../classsw_1_1_u_i_element.html#a994aad366bc1f62ef7d53defa9456e64',1,'sw::UIElement::GetChildLayoutCount() override']]], + ['getchildrightmost_10',['GetChildRightmost',['../classsw_1_1_u_i_element.html#a1f0bde7d9646b68dfe7251eba908cc08',1,'sw::UIElement']]], + ['getcolumnwidth_11',['GetColumnWidth',['../classsw_1_1_list_view.html#a35e0f172950516ae97ab0bbbfddbab14',1,'sw::ListView']]], + ['getcursorhandle_12',['GetCursorHandle',['../classsw_1_1_cursor_helper.html#a1b41b564e3d9a417028b212e01c700fc',1,'sw::CursorHelper::GetCursorHandle(StandardCursor cursor)'],['../classsw_1_1_cursor_helper.html#a00f191c252dec31acb75dc15a8a427b3',1,'sw::CursorHelper::GetCursorHandle(HINSTANCE hInstance, int resourceId)'],['../classsw_1_1_cursor_helper.html#a125c89031f9e41193be7eaf5ec64490e',1,'sw::CursorHelper::GetCursorHandle(HINSTANCE hInstance, const std::wstring &cursorName)'],['../classsw_1_1_cursor_helper.html#a1542d9698d89360ed60437826386116f',1,'sw::CursorHelper::GetCursorHandle(const std::wstring &fileName)']]], + ['getdefaultfont_13',['GetDefaultFont',['../classsw_1_1_font.html#ac3868ad33ae605352723ab3ef0b4a728',1,'sw::Font']]], + ['getdefaultlayout_14',['GetDefaultLayout',['../classsw_1_1_canvas.html#a203ac5f90e7aa9df73df4b4d43fc0266',1,'sw::Canvas::GetDefaultLayout()'],['../classsw_1_1_dock_panel.html#ae788d750c9da6ebb61d28d0bf948eaa7',1,'sw::DockPanel::GetDefaultLayout()'],['../classsw_1_1_grid.html#aa7e060ae29483d32a5fdfa8b8cc6420d',1,'sw::Grid::GetDefaultLayout()'],['../classsw_1_1_layer.html#a57498353e1b1b74f708ec8da81b48605',1,'sw::Layer::GetDefaultLayout()'],['../classsw_1_1_stack_panel.html#a1d7bd2e8b8293003e47f5d297c58044b',1,'sw::StackPanel::GetDefaultLayout()'],['../classsw_1_1_uniform_grid.html#aeedb9dcb3c92bd39fa33589dc8922fcb',1,'sw::UniformGrid::GetDefaultLayout()'],['../classsw_1_1_window.html#abafe422b0435aa15ec04ced4300b6b76',1,'sw::Window::GetDefaultLayout()'],['../classsw_1_1_wrap_panel.html#ab2961a927e8b28a38d9b5e2d4487d163',1,'sw::WrapPanel::GetDefaultLayout()']]], + ['getdesiresize_15',['GetDesireSize',['../classsw_1_1_i_layout.html#a081e12b24d148735bfeeb5cc97b230f1',1,'sw::ILayout::GetDesireSize()'],['../classsw_1_1_layout_host.html#a7099b15d8916a42f58de10d0266e89f6',1,'sw::LayoutHost::GetDesireSize()'],['../classsw_1_1_u_i_element.html#a633ace3fad478f1cc6480fa5512288fb',1,'sw::UIElement::GetDesireSize()']]], + ['getdirectory_16',['GetDirectory',['../classsw_1_1_path.html#abc7ec8c028a17394f82760b1638269ea',1,'sw::Path']]], + ['getdock_17',['GetDock',['../classsw_1_1_dock_panel.html#a439e945468b54f6fa12cc4f2f8087d9f',1,'sw::DockPanel']]], + ['getenabled_18',['GetEnabled',['../classsw_1_1_menu_base.html#ab610a8a98e4bf6f199fe7706dbb57f4d',1,'sw::MenuBase']]], + ['getextendedstyle_19',['GetExtendedStyle',['../classsw_1_1_wnd_base.html#a12044a0ffde9b79b03adef97bd266a1a',1,'sw::WndBase::GetExtendedStyle()'],['../classsw_1_1_wnd_base.html#a40c635116230de013fbbda5c76e00612',1,'sw::WndBase::GetExtendedStyle(LONG_PTR style)']]], + ['getextension_20',['GetExtension',['../classsw_1_1_path.html#a0b64f758ee4721dad5e72bd380f0f247',1,'sw::Path']]], + ['getfilename_21',['GetFileName',['../classsw_1_1_path.html#afd0d273347ab958aa270bd30f7512d77',1,'sw::Path']]], + ['getfilenamewithoutext_22',['GetFileNameWithoutExt',['../classsw_1_1_path.html#a66144fb671c988edc835fb1e7134de81',1,'sw::Path']]], + ['getfont_23',['GetFont',['../classsw_1_1_font.html#a186de58a843c2c87777e04b84623be81',1,'sw::Font']]], + ['getfonthandle_24',['GetFontHandle',['../classsw_1_1_wnd_base.html#a2eec178adddff9e44d83238f19d57b1b',1,'sw::WndBase']]], + ['getgridlayouttag_25',['GetGridLayoutTag',['../classsw_1_1_grid.html#af4b5153c0e5b4548be65c4eba0f0e7c4',1,'sw::Grid']]], + ['gethandle_26',['GetHandle',['../classsw_1_1_menu_base.html#a7f18755d0245d1e8c536438b5ec99093',1,'sw::MenuBase']]], + ['gethorizontalscrollpagesize_27',['GetHorizontalScrollPageSize',['../classsw_1_1_layer.html#a465cbfd99c23c60b746529372a071274',1,'sw::Layer']]], + ['gethorizontalscrollrange_28',['GetHorizontalScrollRange',['../classsw_1_1_layer.html#a61a3007c7519de5b677dcc61b723034a',1,'sw::Layer']]], + ['geticonhandle_29',['GetIconHandle',['../classsw_1_1_icon_helper.html#a1e1d63e74eb37284350c4721d29d1527',1,'sw::IconHelper::GetIconHandle(StandardIcon icon)'],['../classsw_1_1_icon_helper.html#ad66bbd3e3f3df25fe58eccf500343450',1,'sw::IconHelper::GetIconHandle(HINSTANCE hInstance, int resourceId)'],['../classsw_1_1_icon_helper.html#acc37834cca123d041c1476951d65fc5e',1,'sw::IconHelper::GetIconHandle(HINSTANCE hInstance, const std::wstring &iconName)'],['../classsw_1_1_icon_helper.html#a8d59ebd96d73c3ca998133aaa7e9194f',1,'sw::IconHelper::GetIconHandle(const std::wstring &fileName)']]], + ['getitemat_30',['GetItemAt',['../classsw_1_1_combo_box.html#a9847d3dead963ac17d4e181aa138e4d4',1,'sw::ComboBox::GetItemAt()'],['../classsw_1_1_items_control.html#a34a19d40a81adc967b14e84689e8a7e4',1,'sw::ItemsControl::GetItemAt()'],['../classsw_1_1_list_box.html#a3a55067d310d058f12c6bae420ca50e9',1,'sw::ListBox::GetItemAt()'],['../classsw_1_1_list_view.html#a3c9979454e598336e819586d0cd8ea33',1,'sw::ListView::GetItemAt(int index) override'],['../classsw_1_1_list_view.html#ab9a96bf777e2b3662007f17b274a4a2e',1,'sw::ListView::GetItemAt(int row, int col)']]], + ['getitemcheckstate_31',['GetItemCheckState',['../classsw_1_1_list_view.html#ac34d4382c8e43346da5a67ebcf78f97f',1,'sw::ListView']]], + ['getitemindexfrompoint_32',['GetItemIndexFromPoint',['../classsw_1_1_list_box.html#aa6dd58ecf150a782c5c3ec8f4f3c0355',1,'sw::ListBox::GetItemIndexFromPoint()'],['../classsw_1_1_list_view.html#aaa8be22cc91981886a241ca44c932c65',1,'sw::ListView::GetItemIndexFromPoint()']]], + ['getitemscount_33',['GetItemsCount',['../classsw_1_1_combo_box.html#af18b947a96cf7de045525294fcac2825',1,'sw::ComboBox::GetItemsCount()'],['../classsw_1_1_items_control.html#a22321dbf927a5b508a3614e2565c76c2',1,'sw::ItemsControl::GetItemsCount()'],['../classsw_1_1_list_box.html#a0f6d69e679814a36523d091d81e839d7',1,'sw::ListBox::GetItemsCount()'],['../classsw_1_1_list_view.html#a5c953126fc14e93dc7479efc03ceb4f9',1,'sw::ListView::GetItemsCount()']]], + ['getitemselectionstate_34',['GetItemSelectionState',['../classsw_1_1_list_box.html#aa8db114872f69e0be2f32bebba134b20',1,'sw::ListBox']]], + ['getlayouttag_35',['GetLayoutTag',['../classsw_1_1_i_layout.html#a5b95a9aba620f4f42447869f5e7f75c3',1,'sw::ILayout::GetLayoutTag()'],['../classsw_1_1_layout_host.html#ab89962ec32dec364e4e18ea0afe44d52',1,'sw::LayoutHost::GetLayoutTag()'],['../classsw_1_1_u_i_element.html#aa89a8c272d1a9016d2586c6eeab64dce',1,'sw::UIElement::GetLayoutTag()']]], + ['getmenuitem_36',['GetMenuItem',['../classsw_1_1_menu_base.html#a47fe9d419c9c50459389c46b410849d8',1,'sw::MenuBase::GetMenuItem(int id)'],['../classsw_1_1_menu_base.html#a207341719edb495ca22be7090b3a8b37',1,'sw::MenuBase::GetMenuItem(std::initializer_list< int > path)'],['../classsw_1_1_menu_base.html#a09259eb19e71878bd77f4d3dece7fed8',1,'sw::MenuBase::GetMenuItem(std::initializer_list< std::wstring > path)']]], + ['getnextelement_37',['GetNextElement',['../classsw_1_1_u_i_element.html#a06a50134522985f88bb0db352b2be689',1,'sw::UIElement']]], + ['getnexttabstopelement_38',['GetNextTabStopElement',['../classsw_1_1_u_i_element.html#a6968c7b711722677fb0b9dd7f5f80442',1,'sw::UIElement']]], + ['getparent_39',['GetParent',['../classsw_1_1_menu_base.html#a1cb75444ab44b6b4dc3599634b30b07e',1,'sw::MenuBase']]], + ['getrealbackcolor_40',['GetRealBackColor',['../classsw_1_1_u_i_element.html#a82ef0065e6b21ce989852862bc1a0e21',1,'sw::UIElement']]], + ['getrealtextcolor_41',['GetRealTextColor',['../classsw_1_1_u_i_element.html#a18dde4a75ac25ae0458ae616eb9bca85',1,'sw::UIElement']]], + ['getrootelement_42',['GetRootElement',['../classsw_1_1_u_i_element.html#a560ae73ce93ab62df8d04170b11a1f39',1,'sw::UIElement']]], + ['getselectedindex_43',['GetSelectedIndex',['../classsw_1_1_combo_box.html#a1b7b120c4f55c724f3b9f29038659d81',1,'sw::ComboBox::GetSelectedIndex()'],['../classsw_1_1_items_control.html#ac8b269a4d6bd5b46f6f7026d5470b2c5',1,'sw::ItemsControl::GetSelectedIndex()'],['../classsw_1_1_list_box.html#a016fb10dca302d2636bee60c8eabf6d9',1,'sw::ListBox::GetSelectedIndex()'],['../classsw_1_1_list_view.html#a65e4a2137e9cf7509adff246248732cc',1,'sw::ListView::GetSelectedIndex()']]], + ['getselectedindices_44',['GetSelectedIndices',['../classsw_1_1_list_box.html#a32f2ac7b969a63bf52d0d6f320e7f17c',1,'sw::ListBox::GetSelectedIndices()'],['../classsw_1_1_list_view.html#a4ac92414b9424dc44aad14ed796ed943',1,'sw::ListView::GetSelectedIndices()']]], + ['getselecteditem_45',['GetSelectedItem',['../classsw_1_1_combo_box.html#abf46ed1454b54b77128e833a0c2e924a',1,'sw::ComboBox::GetSelectedItem()'],['../classsw_1_1_items_control.html#a8cbd0b52306bcf3cec2d96be0c6dd0ba',1,'sw::ItemsControl::GetSelectedItem()'],['../classsw_1_1_list_box.html#a8082569a03ff936208ac5e07dfcf3ae8',1,'sw::ListBox::GetSelectedItem()'],['../classsw_1_1_list_view.html#a95013292cf5b588ff83ceeb4865a2993',1,'sw::ListView::GetSelectedItem()']]], + ['getselecteditems_46',['GetSelectedItems',['../classsw_1_1_list_box.html#a7de3b077cac741f297c0d5639e8a9edb',1,'sw::ListBox']]], + ['getstyle_47',['GetStyle',['../classsw_1_1_wnd_base.html#a792eeeffd1b43bd75024352f99822144',1,'sw::WndBase::GetStyle()'],['../classsw_1_1_wnd_base.html#a39b4f05dd2900f08e7344e645c514ec3',1,'sw::WndBase::GetStyle(LONG_PTR style)']]], + ['gettabcount_48',['GetTabCount',['../classsw_1_1_tab_control.html#ac52a5ebc430c68920f8ee7e7755f7f34',1,'sw::TabControl']]], + ['gettag_49',['GetTag',['../classsw_1_1_i_tag.html#ad50507cafd55b2d9c18cc5c74a0ed946',1,'sw::ITag::GetTag()'],['../classsw_1_1_menu_item.html#a1187cb70902ab261b8302e7c0c561da9',1,'sw::MenuItem::GetTag()'],['../classsw_1_1_u_i_element.html#a78f1c406d3faac2afcb956e9375f65ec',1,'sw::UIElement::GetTag()']]], + ['gettext_50',['GetText',['../classsw_1_1_combo_box.html#aac58ae29f08c67b0fe043d6b8822e74d',1,'sw::ComboBox::GetText()'],['../classsw_1_1_text_box_base.html#a364003a9b7b601f385861108a4e3273e',1,'sw::TextBoxBase::GetText()'],['../classsw_1_1_wnd_base.html#a888df1f6b89e8da1ba8c7cc8f4671370',1,'sw::WndBase::GetText()']]], + ['getverticalscrollpagesize_51',['GetVerticalScrollPageSize',['../classsw_1_1_layer.html#af373e47fda965795550b31e622839a7f',1,'sw::Layer']]], + ['getverticalscrollrange_52',['GetVerticalScrollRange',['../classsw_1_1_layer.html#a3f5248e4483b277a2f99c9b3cde086b7',1,'sw::Layer']]], + ['getwndbase_53',['GetWndBase',['../classsw_1_1_wnd_base.html#a9a3b21d4e5d8c49130deb57695294add',1,'sw::WndBase']]], + ['grid_54',['Grid',['../classsw_1_1_grid.html#afbb7806a3fabedee2c10c0775076f8bb',1,'sw::Grid']]], + ['gridcolumn_55',['GridColumn',['../structsw_1_1_grid_column.html#a743b954088295855d4f09a81928b6614',1,'sw::GridColumn::GridColumn()'],['../structsw_1_1_grid_column.html#a6bf1570d3cbc01f9e342a2a55ec14117',1,'sw::GridColumn::GridColumn(GridRCType type, double width)'],['../structsw_1_1_grid_column.html#a43365335281efdd5ae44e40d40e6fbe6',1,'sw::GridColumn::GridColumn(double width)']]], + ['gridlayouttag_56',['GridLayoutTag',['../structsw_1_1_grid_layout_tag.html#a15aec68e838c7567c6a371ce735cb534',1,'sw::GridLayoutTag::GridLayoutTag()'],['../structsw_1_1_grid_layout_tag.html#afeab1e02be36734f2efb210e0338df63',1,'sw::GridLayoutTag::GridLayoutTag(uint16_t row, uint16_t column, uint16_t rowSpan, uint16_t columnSpan)'],['../structsw_1_1_grid_layout_tag.html#a9a19b89469f829af9559670d6a6f7c00',1,'sw::GridLayoutTag::GridLayoutTag(uint16_t row, uint16_t column)'],['../structsw_1_1_grid_layout_tag.html#af8d1c932b43a046cc10b4a2a6d97dc29',1,'sw::GridLayoutTag::GridLayoutTag(uint64_t layoutTag)']]], + ['gridrow_57',['GridRow',['../structsw_1_1_grid_row.html#a33599a7582800e97299f2ea8314ed4aa',1,'sw::GridRow::GridRow()'],['../structsw_1_1_grid_row.html#a2691d3372a7aab997487e9fa3c115914',1,'sw::GridRow::GridRow(GridRCType type, double height)'],['../structsw_1_1_grid_row.html#a44aaee7c8ea61e9886bab025fcd8271a',1,'sw::GridRow::GridRow(double height)']]], + ['groupbox_58',['GroupBox',['../classsw_1_1_group_box.html#a6241500d4cd923499613dc0162a38275',1,'sw::GroupBox']]] +]; diff --git a/docs/search/functions_7.js b/docs/search/functions_7.js new file mode 100644 index 00000000..76eb7435 --- /dev/null +++ b/docs/search/functions_7.js @@ -0,0 +1,5 @@ +var searchData= +[ + ['handlechenged_0',['HandleChenged',['../classsw_1_1_control.html#ad16158c308954eedf12dad4603ef17db',1,'sw::Control']]], + ['handleinitialized_1',['HandleInitialized',['../classsw_1_1_wnd_base.html#a4b368860fef40406c091880fc72f9cbb',1,'sw::WndBase']]] +]; diff --git a/docs/search/functions_8.js b/docs/search/functions_8.js new file mode 100644 index 00000000..a7d64b3a --- /dev/null +++ b/docs/search/functions_8.js @@ -0,0 +1,23 @@ +var searchData= +[ + ['idtoindex_0',['IDToIndex',['../classsw_1_1_context_menu.html#a93eb69c1dbf74969dd90d5c7a7532ce8',1,'sw::ContextMenu::IDToIndex()'],['../classsw_1_1_menu.html#a546af91c1b0778610d79ed7e56423dd1',1,'sw::Menu::IDToIndex()'],['../classsw_1_1_menu_base.html#a84c15b6a20df581e6aed4b9df9e84f9a',1,'sw::MenuBase::IDToIndex()']]], + ['indexof_1',['IndexOf',['../classsw_1_1_list.html#a53adb5e4e7172f03bf87113443e9d2b5',1,'sw::List::IndexOf()'],['../classsw_1_1_u_i_element.html#a45cf2817669c10b59535acf8406a1a09',1,'sw::UIElement::IndexOf(UIElement *element)'],['../classsw_1_1_u_i_element.html#a8ff6722c909efcb10fbbc63476ab64d6',1,'sw::UIElement::IndexOf(UIElement &element)']]], + ['indextoid_2',['IndexToID',['../classsw_1_1_context_menu.html#ae27616f20c9f03d7e5b81eaa6e7f3446',1,'sw::ContextMenu::IndexToID()'],['../classsw_1_1_menu.html#a522312cc29234ea9048d94fae7258027',1,'sw::Menu::IndexToID()'],['../classsw_1_1_menu_base.html#a9f94aca19decada231feeed33ab19743',1,'sw::MenuBase::IndexToID()']]], + ['initbuttonbase_3',['InitButtonBase',['../classsw_1_1_button_base.html#a35200f7e5429767c50c089eb312ff248',1,'sw::ButtonBase']]], + ['initcontrol_4',['InitControl',['../classsw_1_1_wnd_base.html#a60707bc74fd7d0599da1ea014cc37b5d',1,'sw::WndBase']]], + ['initmenubase_5',['InitMenuBase',['../classsw_1_1_menu_base.html#aa105bc5eb9ecf6a59f1ccff4b075643c',1,'sw::MenuBase']]], + ['inittextboxbase_6',['InitTextBoxBase',['../classsw_1_1_text_box_base.html#a3a6843f34013ed31f3828263f0984233',1,'sw::TextBoxBase']]], + ['initwindow_7',['InitWindow',['../classsw_1_1_wnd_base.html#a4889c45dfad820c103dd7f74f2cd0661',1,'sw::WndBase']]], + ['insert_8',['Insert',['../classsw_1_1_list.html#a68c7aaae99a0e18274de59cad82c5743',1,'sw::List']]], + ['insertcolumn_9',['InsertColumn',['../classsw_1_1_list_view.html#a985c48bef310cdcb10b722c9aec8ebbf',1,'sw::ListView::InsertColumn(int index, const ListViewColumn &column)'],['../classsw_1_1_list_view.html#a0abf70d4eee217e060b84686f30b8a09',1,'sw::ListView::InsertColumn(int index, const std::wstring &header)']]], + ['insertitem_10',['InsertItem',['../classsw_1_1_combo_box.html#ab1cf2dc76d67d10a2088acfeb29d1398',1,'sw::ComboBox::InsertItem()'],['../classsw_1_1_items_control.html#ab4f053e3c099caf009fab48f7370ad96',1,'sw::ItemsControl::InsertItem()'],['../classsw_1_1_list_box.html#abaa05ef08a38822976373307156029b2',1,'sw::ListBox::InsertItem()'],['../classsw_1_1_list_view.html#a34425690bf39e914861b2211004c2ce1',1,'sw::ListView::InsertItem()']]], + ['iscontextmenuid_11',['IsContextMenuID',['../classsw_1_1_context_menu.html#a968f4539826715feb35237acb1ec02b3',1,'sw::ContextMenu']]], + ['iscontrol_12',['IsControl',['../classsw_1_1_wnd_base.html#ace8f6b05caa5d335f7d574c38035bfa7',1,'sw::WndBase']]], + ['isempty_13',['IsEmpty',['../classsw_1_1_dictionary.html#a16703bd325716445121e257ae489dcc4',1,'sw::Dictionary::IsEmpty()'],['../classsw_1_1_list.html#aed38231dffce414f40d272aba6e7099c',1,'sw::List::IsEmpty()']]], + ['ismodal_14',['IsModal',['../classsw_1_1_window.html#a1cdd78ebe0571b1c9bb49403ed8d8381',1,'sw::Window']]], + ['isrootelement_15',['IsRootElement',['../classsw_1_1_u_i_element.html#a67bd7d81e6091118e4c97cc24c68543d',1,'sw::UIElement']]], + ['isroutedeventregistered_16',['IsRoutedEventRegistered',['../classsw_1_1_u_i_element.html#adf8152f31c5e109ba016316182bcec47',1,'sw::UIElement']]], + ['isseparator_17',['IsSeparator',['../classsw_1_1_menu_item.html#a136e71998ffff40e3d165749ba7f7306',1,'sw::MenuItem']]], + ['isvisible_18',['IsVisible',['../classsw_1_1_wnd_base.html#a6ee668e7a5261f96df0bd69a1fb868d3',1,'sw::WndBase']]], + ['itemscontrol_19',['ItemsControl',['../classsw_1_1_items_control.html#a35e8ff864ec4faded2e2ff54f02e85b5',1,'sw::ItemsControl']]] +]; diff --git a/docs/search/functions_9.js b/docs/search/functions_9.js new file mode 100644 index 00000000..ae2d6727 --- /dev/null +++ b/docs/search/functions_9.js @@ -0,0 +1,8 @@ +var searchData= +[ + ['label_0',['Label',['../classsw_1_1_label.html#ae1ee6644b4de352317836eb2a4c00c3c',1,'sw::Label']]], + ['layer_1',['Layer',['../classsw_1_1_layer.html#a61030d006cafc26525bc07bced899b92',1,'sw::Layer']]], + ['list_2',['List',['../classsw_1_1_list.html#ad84dc17e0d073e18e2f44871c27025de',1,'sw::List::List()'],['../classsw_1_1_list.html#abfff18bc7387d154bc89481259f847a0',1,'sw::List::List(std::initializer_list< T > list)'],['../classsw_1_1_list.html#a4e4501c96b9e786d67b420312cafb8cc',1,'sw::List::List(int capacity)']]], + ['listbox_3',['ListBox',['../classsw_1_1_list_box.html#a479eeef30684198f09eaaa472def8550',1,'sw::ListBox']]], + ['listview_4',['ListView',['../classsw_1_1_list_view.html#a6f491872e0416f1ab65cdb3866009293',1,'sw::ListView']]] +]; diff --git a/docs/search/functions_a.js b/docs/search/functions_a.js new file mode 100644 index 00000000..3f0e4366 --- /dev/null +++ b/docs/search/functions_a.js @@ -0,0 +1,13 @@ +var searchData= +[ + ['max_0',['Max',['../classsw_1_1_utils.html#add73fdd8d714ed80d3741fffcef5fbec',1,'sw::Utils']]], + ['measure_1',['Measure',['../classsw_1_1_i_layout.html#afcdbdecd5f99cdb25b891c7dc3093fdb',1,'sw::ILayout::Measure()'],['../classsw_1_1_label.html#aa7fe8e679f9d35eaf5691403ed5c9a96',1,'sw::Label::Measure()'],['../classsw_1_1_layer.html#a3ac4fcba5970f01d5c944c0376a354c7',1,'sw::Layer::Measure()'],['../classsw_1_1_layout_host.html#aa520181822f89994362a010237687b3f',1,'sw::LayoutHost::Measure()'],['../classsw_1_1_panel_base.html#a8ac6001fdc5c32131b3d33678bd376b3',1,'sw::PanelBase::Measure()'],['../classsw_1_1_u_i_element.html#aef217f2655c4a746606bf302edc16cf4',1,'sw::UIElement::Measure()']]], + ['measureoverride_2',['MeasureOverride',['../classsw_1_1_canvas_layout.html#a8e0f36dd4b70eda9db6c2665b019a4e5',1,'sw::CanvasLayout::MeasureOverride()'],['../classsw_1_1_dock_layout.html#a62fcb5b4236d5706caadb23ac557139a',1,'sw::DockLayout::MeasureOverride()'],['../classsw_1_1_fill_layout.html#a5ef072479f4f0019c1b58427f1c36098',1,'sw::FillLayout::MeasureOverride()'],['../classsw_1_1_grid_layout.html#aac702cbbed9459c559d85c337313d3a9',1,'sw::GridLayout::MeasureOverride()'],['../classsw_1_1_layout_host.html#a4206d0a20d92581d33a4510fb2ba1871',1,'sw::LayoutHost::MeasureOverride()'],['../classsw_1_1_stack_layout.html#aeae06d336288887cf29c912aee4c03b6',1,'sw::StackLayout::MeasureOverride()'],['../classsw_1_1_stack_layout_h.html#ab5ae73207dfc9020a799c3fd1a4d9231',1,'sw::StackLayoutH::MeasureOverride()'],['../classsw_1_1_stack_layout_v.html#a11f007de647c9b1c88120aeed9ea65b7',1,'sw::StackLayoutV::MeasureOverride()'],['../classsw_1_1_uniform_grid_layout.html#aaf9adca410dd56a6736c5ec0b96a167f',1,'sw::UniformGridLayout::MeasureOverride()'],['../classsw_1_1_wrap_layout.html#a5d7818fc025713f3a29df602ca934178',1,'sw::WrapLayout::MeasureOverride()'],['../classsw_1_1_wrap_layout_h.html#a66eacfc28ef8001230272227cb4fcbe3',1,'sw::WrapLayoutH::MeasureOverride()'],['../classsw_1_1_wrap_layout_v.html#a3e87afe055e4d53c9ac4c6ad0794ddf4',1,'sw::WrapLayoutV::MeasureOverride()']]], + ['menu_3',['Menu',['../classsw_1_1_menu.html#a6fb318031278424d8e571ee05b6654bc',1,'sw::Menu::Menu()'],['../classsw_1_1_menu.html#ac24676f02acaac6350331a49ca2e6f44',1,'sw::Menu::Menu(std::initializer_list< MenuItem > items)']]], + ['menubase_4',['MenuBase',['../classsw_1_1_menu_base.html#aae4c6660b8c5341160a67d88bca9bc18',1,'sw::MenuBase::MenuBase()'],['../classsw_1_1_menu_base.html#a48c5d3f04743099a94a1832fa7d9d31b',1,'sw::MenuBase::MenuBase(const MenuBase &menu)']]], + ['menuitem_5',['MenuItem',['../classsw_1_1_menu_item.html#a45cb03eb9423fbe1c187f237ec89377a',1,'sw::MenuItem::MenuItem(const std::wstring &text)'],['../classsw_1_1_menu_item.html#af68934d85fe10b3b01bf4038d66275e4',1,'sw::MenuItem::MenuItem(const std::wstring &text, std::initializer_list< MenuItem > subItems)'],['../classsw_1_1_menu_item.html#a7f24130f1770af6fce9792fb41cba522',1,'sw::MenuItem::MenuItem(const std::wstring &text, const decltype(command) &command)']]], + ['min_6',['Min',['../classsw_1_1_utils.html#a76b3fe0842e62bf943a314afed4d474a',1,'sw::Utils']]], + ['movetobottom_7',['MoveToBottom',['../classsw_1_1_u_i_element.html#a793adc7d50d0373d099b26b0a511b95d',1,'sw::UIElement']]], + ['movetotop_8',['MoveToTop',['../classsw_1_1_u_i_element.html#abce4a26101de27550375c300b121d95d',1,'sw::UIElement']]], + ['msgloop_9',['MsgLoop',['../classsw_1_1_app.html#a05192f9abf49cc0a698024855dde22de',1,'sw::App']]] +]; diff --git a/docs/search/functions_b.js b/docs/search/functions_b.js new file mode 100644 index 00000000..41dc1f36 --- /dev/null +++ b/docs/search/functions_b.js @@ -0,0 +1,5 @@ +var searchData= +[ + ['nchittest_0',['NcHitTest',['../classsw_1_1_wnd_base.html#a87c9d860ba24487f2b61b72987a4bd63',1,'sw::WndBase']]], + ['notifylayoutupdated_1',['NotifyLayoutUpdated',['../classsw_1_1_u_i_element.html#ab5832ef956cdc4face3e9dbd0c72e66e',1,'sw::UIElement']]] +]; diff --git a/docs/search/functions_c.js b/docs/search/functions_c.js new file mode 100644 index 00000000..1ca73e6b --- /dev/null +++ b/docs/search/functions_c.js @@ -0,0 +1,74 @@ +var searchData= +[ + ['onacceleratorcommand_0',['OnAcceleratorCommand',['../classsw_1_1_wnd_base.html#a935f2bb51b99929ac5166ad52396971a',1,'sw::WndBase']]], + ['onactived_1',['OnActived',['../classsw_1_1_window.html#a2403f422df1271f56f2ef574d91f232d',1,'sw::Window']]], + ['onaddedchild_2',['OnAddedChild',['../classsw_1_1_tab_control.html#a6a4c0d7c81d279669765feaef0f55ecd',1,'sw::TabControl::OnAddedChild()'],['../classsw_1_1_u_i_element.html#ae3e134d807af7614e1cc812abb860762',1,'sw::UIElement::OnAddedChild()']]], + ['onchar_3',['OnChar',['../classsw_1_1_text_box_base.html#aa88527cddd82fc158e0ac3ca662604c1',1,'sw::TextBoxBase::OnChar()'],['../classsw_1_1_u_i_element.html#a3a92f96787dd7981f0c1934ff618b36e',1,'sw::UIElement::OnChar()'],['../classsw_1_1_wnd_base.html#ad0f719a2feffe354737cef9b13b63db0',1,'sw::WndBase::OnChar()']]], + ['oncheckstatechanged_4',['OnCheckStateChanged',['../classsw_1_1_list_view.html#a5b4b18df705396deeb3a2dc2fb0048cc',1,'sw::ListView']]], + ['onclicked_5',['OnClicked',['../classsw_1_1_button_base.html#a2cd07956db48b796257bd1ac238642f6',1,'sw::ButtonBase']]], + ['onclose_6',['OnClose',['../classsw_1_1_u_i_element.html#a1c1f0b6a491e639c76e46a29bff00d65',1,'sw::UIElement::OnClose()'],['../classsw_1_1_window.html#a50969fbd9f30ad27e72f11cb28ee4697',1,'sw::Window::OnClose()'],['../classsw_1_1_wnd_base.html#a0e30c4d0b87c473115e7521c5c95703a',1,'sw::WndBase::OnClose()']]], + ['oncolor_7',['OnColor',['../classsw_1_1_u_i_element.html#a5e16c574d3fc57a9da8ac8d9c2bf1a24',1,'sw::UIElement::OnColor()'],['../classsw_1_1_wnd_base.html#aa605b4a21b4cd8c43c226349665a5f28',1,'sw::WndBase::OnColor()']]], + ['oncommand_8',['OnCommand',['../classsw_1_1_button_base.html#ad95b3a535345f674c55b7c6287e49a2d',1,'sw::ButtonBase::OnCommand()'],['../classsw_1_1_combo_box.html#a691d1f3e1dd2cadae40fdcca2f05f6e2',1,'sw::ComboBox::OnCommand()'],['../classsw_1_1_list_box.html#a018949ce98442934f04da456de5c6db1',1,'sw::ListBox::OnCommand()'],['../classsw_1_1_text_box_base.html#a1e7210993dcbf6cfdaff3dcc3246dfd5',1,'sw::TextBoxBase::OnCommand()'],['../classsw_1_1_wnd_base.html#a60e633e3cfea36b186c4a210925e865a',1,'sw::WndBase::OnCommand()']]], + ['oncontextmenu_9',['OnContextMenu',['../classsw_1_1_list_box.html#a1708816955c247ec4b7e0a1291486088',1,'sw::ListBox::OnContextMenu()'],['../classsw_1_1_u_i_element.html#a656bb4995529a018d8c823fc45abf233',1,'sw::UIElement::OnContextMenu()'],['../classsw_1_1_wnd_base.html#a2c436f7819721b3f1a700c39ea538003',1,'sw::WndBase::OnContextMenu(bool isKeyboardMsg, Point mousePosition)']]], + ['oncontrolcommand_10',['OnControlCommand',['../classsw_1_1_wnd_base.html#a69256166096bb51cde45f101c4e9ae95',1,'sw::WndBase']]], + ['oncreate_11',['OnCreate',['../classsw_1_1_wnd_base.html#a7dd30ab5e8700832140c329739b4b671',1,'sw::WndBase']]], + ['onctlcolor_12',['OnCtlColor',['../classsw_1_1_wnd_base.html#aa04cd83e79c42d21127799e573d9f299',1,'sw::WndBase']]], + ['ondeadchar_13',['OnDeadChar',['../classsw_1_1_wnd_base.html#a4c72db003eeb8a29565576ad26cc89b8',1,'sw::WndBase']]], + ['ondestroy_14',['OnDestroy',['../classsw_1_1_window.html#a09165434040ada6ea3f00a7d79b1f7a2',1,'sw::Window::OnDestroy()'],['../classsw_1_1_wnd_base.html#a98d960679d1889998ba548af6a3c8fc4',1,'sw::WndBase::OnDestroy()']]], + ['ondoubleclicked_15',['OnDoubleClicked',['../classsw_1_1_button_base.html#aa0fb82e77ba464863fc609c987d5ff5d',1,'sw::ButtonBase']]], + ['ondrawfocusrect_16',['OnDrawFocusRect',['../classsw_1_1_button.html#a496b008fab7266676831e3473353537d',1,'sw::Button::OnDrawFocusRect()'],['../classsw_1_1_text_box_base.html#a89b507ceef32d379c93a60b5989b74fe',1,'sw::TextBoxBase::OnDrawFocusRect()'],['../classsw_1_1_u_i_element.html#a78d190af4c3b1768776db0ebd6d0d71a',1,'sw::UIElement::OnDrawFocusRect()']]], + ['ondrawitem_17',['OnDrawItem',['../classsw_1_1_wnd_base.html#a6e9cac4e02b3a420c42968cbf061fd02',1,'sw::WndBase']]], + ['onenabledchanged_18',['OnEnabledChanged',['../classsw_1_1_wnd_base.html#a755bd826227232fd30ba5fda47bfb060',1,'sw::WndBase']]], + ['onendpaint_19',['OnEndPaint',['../classsw_1_1_u_i_element.html#a57a1cb1cc82765f93b21fa8261ec2e50',1,'sw::UIElement::OnEndPaint()'],['../classsw_1_1_wnd_base.html#ad90b0eebbaa959949cae5b736e2104aa',1,'sw::WndBase::OnEndPaint()']]], + ['onendtrack_20',['OnEndTrack',['../classsw_1_1_slider.html#a7791814523c6758f573499fa9f1ca074',1,'sw::Slider']]], + ['onerasebackground_21',['OnEraseBackground',['../classsw_1_1_window.html#adfcacbd8da1c33b53a16990c76d86079',1,'sw::Window::OnEraseBackground()'],['../classsw_1_1_wnd_base.html#a748fda35e75d416077598f243afe9da1',1,'sw::WndBase::OnEraseBackground()']]], + ['onfirstshow_22',['OnFirstShow',['../classsw_1_1_window.html#a35a8bd930f1cf8a85204569f00b33f34',1,'sw::Window']]], + ['onheaderitemclicked_23',['OnHeaderItemClicked',['../classsw_1_1_list_view.html#aebad3b5c7fafae2aa71f811beecfaeb8',1,'sw::ListView']]], + ['onheaderitemdoubleclicked_24',['OnHeaderItemDoubleClicked',['../classsw_1_1_list_view.html#a294d8b15fd8755f4b6aa303092d5290a',1,'sw::ListView']]], + ['onhorizontalscroll_25',['OnHorizontalScroll',['../classsw_1_1_layer.html#ab199e8fc6b90975b7dcb5fdb4e5f2853',1,'sw::Layer::OnHorizontalScroll()'],['../classsw_1_1_panel_base.html#a9d40f5306f341eb9fff7c389b11f76f6',1,'sw::PanelBase::OnHorizontalScroll()'],['../classsw_1_1_slider.html#a0614fc49d6825b3f864171246fa15892',1,'sw::Slider::OnHorizontalScroll()'],['../classsw_1_1_wnd_base.html#af6773148b0a9a1fdd3c8a0d8cd54a2fd',1,'sw::WndBase::OnHorizontalScroll()']]], + ['oninactived_26',['OnInactived',['../classsw_1_1_window.html#a9f8bea034629f087944e9b33af60d9ec',1,'sw::Window']]], + ['onitemchanged_27',['OnItemChanged',['../classsw_1_1_list_view.html#a9f6978e162ff25d4328cad8496205ee9',1,'sw::ListView']]], + ['onitemclicked_28',['OnItemClicked',['../classsw_1_1_list_view.html#a60fce24f88dc39ab4b25a24edd44d940',1,'sw::ListView']]], + ['onitemdoubleclicked_29',['OnItemDoubleClicked',['../classsw_1_1_list_view.html#aad1b3b081bf328350b93f1cfba68cd0e',1,'sw::ListView']]], + ['onkeydown_30',['OnKeyDown',['../classsw_1_1_button.html#a7c8ac08e29b2b2294047949bfc025891',1,'sw::Button::OnKeyDown()'],['../classsw_1_1_text_box_base.html#a83561e8ffe232f84c13dc14c941600f6',1,'sw::TextBoxBase::OnKeyDown()'],['../classsw_1_1_u_i_element.html#ab7adb46425947c0b14b3bc5b60f6fdac',1,'sw::UIElement::OnKeyDown()'],['../classsw_1_1_wnd_base.html#aea1d61cd6e108834e498009926ff3ebd',1,'sw::WndBase::OnKeyDown()']]], + ['onkeyup_31',['OnKeyUp',['../classsw_1_1_u_i_element.html#ad2be8df1de363a180ef2c32606e2fc74',1,'sw::UIElement::OnKeyUp()'],['../classsw_1_1_wnd_base.html#af4e6b89a39f12d2fbdf987d79c05b190',1,'sw::WndBase::OnKeyUp()']]], + ['onkillfocus_32',['OnKillFocus',['../classsw_1_1_button.html#a367d1dfa43e065dbe2a0272d4cfef458',1,'sw::Button::OnKillFocus()'],['../classsw_1_1_u_i_element.html#a6b8833ac8fe8798edd0480f737aea426',1,'sw::UIElement::OnKillFocus()'],['../classsw_1_1_wnd_base.html#a6de15bd6a264721f6bfadd40d9fce3b0',1,'sw::WndBase::OnKillFocus()']]], + ['onmenucommand_33',['OnMenuCommand',['../classsw_1_1_u_i_element.html#aca1d15ee60f06d11aeccadfc92ed23d2',1,'sw::UIElement::OnMenuCommand()'],['../classsw_1_1_window.html#a8ff6176f2fb886593f448b430c21fc90',1,'sw::Window::OnMenuCommand()'],['../classsw_1_1_wnd_base.html#afffc1d57f289f965bc50d8150c4586e1',1,'sw::WndBase::OnMenuCommand()']]], + ['onmouseleave_34',['OnMouseLeave',['../classsw_1_1_u_i_element.html#ac65b1a6485b454004801a296c788db6a',1,'sw::UIElement::OnMouseLeave()'],['../classsw_1_1_wnd_base.html#aaf334072263bea6dddf93a7601979023',1,'sw::WndBase::OnMouseLeave()']]], + ['onmouseleftbuttondoubleclick_35',['OnMouseLeftButtonDoubleClick',['../classsw_1_1_wnd_base.html#a5a8952400bee12db2117fbf76312d373',1,'sw::WndBase']]], + ['onmouseleftbuttondown_36',['OnMouseLeftButtonDown',['../classsw_1_1_u_i_element.html#a307e0afb1a83b8a31a54844089483f76',1,'sw::UIElement::OnMouseLeftButtonDown()'],['../classsw_1_1_wnd_base.html#a118948e07b472d90fce7e9811ea174aa',1,'sw::WndBase::OnMouseLeftButtonDown()']]], + ['onmouseleftbuttonup_37',['OnMouseLeftButtonUp',['../classsw_1_1_u_i_element.html#ad3360842adfd2298d4d505305250a6eb',1,'sw::UIElement::OnMouseLeftButtonUp()'],['../classsw_1_1_wnd_base.html#ad82a0ab5f0622abaf30456e7e309409e',1,'sw::WndBase::OnMouseLeftButtonUp(Point mousePosition, MouseKey keyState)']]], + ['onmousemiddlebuttondoubleclick_38',['OnMouseMiddleButtonDoubleClick',['../classsw_1_1_wnd_base.html#a4aa14c2130ef0fbb656d28c287e401f5',1,'sw::WndBase']]], + ['onmousemiddlebuttondown_39',['OnMouseMiddleButtonDown',['../classsw_1_1_u_i_element.html#aabbfe747a3396f5cb08e952cd583c825',1,'sw::UIElement::OnMouseMiddleButtonDown()'],['../classsw_1_1_wnd_base.html#a348d10334d2f74a44f741bf85eddaa2c',1,'sw::WndBase::OnMouseMiddleButtonDown()']]], + ['onmousemiddlebuttonup_40',['OnMouseMiddleButtonUp',['../classsw_1_1_u_i_element.html#a62da7e785db521278afb58d28e30f4fa',1,'sw::UIElement::OnMouseMiddleButtonUp()'],['../classsw_1_1_wnd_base.html#a143aff6cca9e55608630d1fc320d4666',1,'sw::WndBase::OnMouseMiddleButtonUp()']]], + ['onmousemove_41',['OnMouseMove',['../classsw_1_1_u_i_element.html#a2589db7fdbba4423307e64f6289a4650',1,'sw::UIElement::OnMouseMove()'],['../classsw_1_1_wnd_base.html#ad188b201bbbc650c4ad9c388dbac18b4',1,'sw::WndBase::OnMouseMove(Point mousePosition, MouseKey keyState)']]], + ['onmouserightbuttondoubleclick_42',['OnMouseRightButtonDoubleClick',['../classsw_1_1_wnd_base.html#a5b90855aaaa4556e5ef5fe68e8149669',1,'sw::WndBase']]], + ['onmouserightbuttondown_43',['OnMouseRightButtonDown',['../classsw_1_1_u_i_element.html#a8d1a3049967256fa8306f1364ba209c9',1,'sw::UIElement::OnMouseRightButtonDown()'],['../classsw_1_1_wnd_base.html#a4c802a79d332af6e6a6ddcf13005a587',1,'sw::WndBase::OnMouseRightButtonDown()']]], + ['onmouserightbuttonup_44',['OnMouseRightButtonUp',['../classsw_1_1_u_i_element.html#a42ce311746de9bace84a221efeed7e1f',1,'sw::UIElement::OnMouseRightButtonUp()'],['../classsw_1_1_wnd_base.html#aeb7286fd72b6d49b6d0b22d8cde07941',1,'sw::WndBase::OnMouseRightButtonUp()']]], + ['onmousewheel_45',['OnMouseWheel',['../classsw_1_1_u_i_element.html#a4d8e08dc4281b7bf67bb60c9f92fbde0',1,'sw::UIElement::OnMouseWheel()'],['../classsw_1_1_wnd_base.html#adcf94f9017f5589b3027955e48c34b62',1,'sw::WndBase::OnMouseWheel()']]], + ['onmove_46',['OnMove',['../classsw_1_1_u_i_element.html#a6482d770b94d6b40da944d64730e8237',1,'sw::UIElement::OnMove()'],['../classsw_1_1_wnd_base.html#a17769747f602f2f7c18a0a49ce97a125',1,'sw::WndBase::OnMove(Point newClientPosition)']]], + ['onnchittest_47',['OnNcHitTest',['../classsw_1_1_wnd_base.html#a1445af2018a8e840a25a7487da22c51b',1,'sw::WndBase']]], + ['onnotified_48',['OnNotified',['../classsw_1_1_list_view.html#aaad9cba6a7d80f3862720d2771cb28dc',1,'sw::ListView::OnNotified()'],['../classsw_1_1_tab_control.html#ac0342af02418896ed6e98f6d11125348',1,'sw::TabControl::OnNotified()'],['../classsw_1_1_wnd_base.html#a4aad533e3d37a7de43645d703dda1a84',1,'sw::WndBase::OnNotified()']]], + ['onnotify_49',['OnNotify',['../classsw_1_1_list_view.html#a3d46f549079a2f75656de1e5903671cf',1,'sw::ListView::OnNotify()'],['../classsw_1_1_wnd_base.html#a191f7c32914b029dca7c93e03b4841e0',1,'sw::WndBase::OnNotify()']]], + ['onpaint_50',['OnPaint',['../classsw_1_1_panel.html#ab57a6afea25cdefeea622ff364727a8e',1,'sw::Panel::OnPaint()'],['../classsw_1_1_window.html#afa57e21216664a6fa3f9fdf04dad7a7d',1,'sw::Window::OnPaint()'],['../classsw_1_1_wnd_base.html#a029ba4be0e492f8383f2b5fe22125acb',1,'sw::WndBase::OnPaint()']]], + ['onremovedchild_51',['OnRemovedChild',['../classsw_1_1_tab_control.html#a1642e450b1cf606338eb85bd9f93c82c',1,'sw::TabControl::OnRemovedChild()'],['../classsw_1_1_u_i_element.html#aadedba1a9bca85555b70bc247b8ef835',1,'sw::UIElement::OnRemovedChild()']]], + ['onscroll_52',['OnScroll',['../classsw_1_1_layer.html#af21620044342125a8e59671a6fb222e8',1,'sw::Layer']]], + ['onselectedindexchanged_53',['OnSelectedIndexChanged',['../classsw_1_1_tab_control.html#a654688668bdf8331e27cbe4564d6cf63',1,'sw::TabControl']]], + ['onselectionchanged_54',['OnSelectionChanged',['../classsw_1_1_combo_box.html#aae57315267ac472d28f9a55ac28cc902',1,'sw::ComboBox::OnSelectionChanged()'],['../classsw_1_1_items_control.html#aaf5eb0f69c26b57da81fe8a22f962ec6',1,'sw::ItemsControl::OnSelectionChanged()']]], + ['onsetcursor_55',['OnSetCursor',['../classsw_1_1_u_i_element.html#a6175e146290ecff80407d4c8afa1cf05',1,'sw::UIElement::OnSetCursor()'],['../classsw_1_1_wnd_base.html#ab37c3f3ea7654eb6a0b15405196c4549',1,'sw::WndBase::OnSetCursor()']]], + ['onsetfocus_56',['OnSetFocus',['../classsw_1_1_button.html#a7ef48914988a2c38835ff09dee5c5040',1,'sw::Button::OnSetFocus()'],['../classsw_1_1_u_i_element.html#a95c6eb88c9f93bb135da9ee303ada3be',1,'sw::UIElement::OnSetFocus()'],['../classsw_1_1_wnd_base.html#a4b15e8f2bcac32da4d5e540445ae201a',1,'sw::WndBase::OnSetFocus()']]], + ['onsize_57',['OnSize',['../classsw_1_1_panel.html#a655497d6bdbf760e34df1d799d89b009',1,'sw::Panel::OnSize()'],['../classsw_1_1_u_i_element.html#af4f4d3a0d23a886c0257c439821f5809',1,'sw::UIElement::OnSize()'],['../classsw_1_1_wnd_base.html#aaba3c3ea0a8d12be237ef28e44018677',1,'sw::WndBase::OnSize(Size newClientSize)']]], + ['onsyschar_58',['OnSysChar',['../classsw_1_1_wnd_base.html#a515de5eb7bc6dbc8314c447a99154c6c',1,'sw::WndBase']]], + ['onsysdeadchar_59',['OnSysDeadChar',['../classsw_1_1_wnd_base.html#acf4e6c0bbc8fddc9e790864e403c5c91',1,'sw::WndBase']]], + ['onsyskeydown_60',['OnSysKeyDown',['../classsw_1_1_wnd_base.html#ad63e584926b894913ee1ef4c039a2f98',1,'sw::WndBase']]], + ['onsyskeyup_61',['OnSysKeyUp',['../classsw_1_1_wnd_base.html#a46dafa7371fbef198ee7a38c4aabc632',1,'sw::WndBase']]], + ['ontabstop_62',['OnTabStop',['../classsw_1_1_u_i_element.html#a0f0826e68eb96f7b7dd7882c4c0171b9',1,'sw::UIElement']]], + ['ontextchanged_63',['OnTextChanged',['../classsw_1_1_label.html#af90d6f76f8d674ae945193f3f4f630e9',1,'sw::Label::OnTextChanged()'],['../classsw_1_1_u_i_element.html#a7e1fbc142c7cfe4a4a60959daf0753bc',1,'sw::UIElement::OnTextChanged()'],['../classsw_1_1_wnd_base.html#adb808283f6ccd5a32834ad25fa2f407b',1,'sw::WndBase::OnTextChanged()']]], + ['onvaluechanged_64',['OnValueChanged',['../classsw_1_1_slider.html#acf6c700d10cedb1ac2c69072a9ea0549',1,'sw::Slider']]], + ['onverticalscroll_65',['OnVerticalScroll',['../classsw_1_1_layer.html#ac06c5746cd104b7f8f9ab4d9ea9c5833',1,'sw::Layer::OnVerticalScroll()'],['../classsw_1_1_panel_base.html#af23d21a7b280c75e49278ce141ff428b',1,'sw::PanelBase::OnVerticalScroll()'],['../classsw_1_1_slider.html#a1bc544724aafc7ac79ca14fdc0e126a5',1,'sw::Slider::OnVerticalScroll()'],['../classsw_1_1_wnd_base.html#a72a4024b2096ecef4248b1c254b674e2',1,'sw::WndBase::OnVerticalScroll()']]], + ['operator_20const_20t_20_26_66',['operator const T &',['../classsw_1_1_read_only_property.html#a7610c93a1d2bcbdb34a97ac90e36fcea',1,'sw::ReadOnlyProperty']]], + ['operator_20uint64_5ft_67',['operator uint64_t',['../structsw_1_1_canvas_layout_tag.html#a54ca60a93c85b0c06ad1d848fed9af42',1,'sw::CanvasLayoutTag::operator uint64_t()'],['../structsw_1_1_grid_layout_tag.html#ac512b325c8e5a5e5848e01e5c93b0be0',1,'sw::GridLayoutTag::operator uint64_t()']]], + ['operator_2d_3e_68',['operator->',['../classsw_1_1_read_only_property.html#ace02f4ac6e2e2ba863038ed5b1befb8c',1,'sw::ReadOnlyProperty::operator->()'],['../classsw_1_1_property.html#adbca5ee89c3f7d07035fcece6af5c9be',1,'sw::Property::operator->()']]], + ['operator_3d_69',['operator=',['../classsw_1_1_menu_base.html#a6fcf63228e79f855d4fa11c083028fb5',1,'sw::MenuBase::operator=()'],['../classsw_1_1_write_only_property.html#a63a9ab87270f1ce81833bb36349e258a',1,'sw::WriteOnlyProperty::operator=()'],['../classsw_1_1_property.html#a15318a6d29413d76006662d698f447c5',1,'sw::Property::operator=()']]], + ['operator_5b_5d_70',['operator[]',['../classsw_1_1_dictionary.html#a3f2f6938ef081002887f747d74950a30',1,'sw::Dictionary::operator[]()'],['../classsw_1_1_list.html#a56e16552c6690d1c808646c4232dd992',1,'sw::List::operator[]()'],['../classsw_1_1_u_i_element.html#a3dee0000f9edfdce128c7ca3c95ec4ab',1,'sw::UIElement::operator[]()']]] +]; diff --git a/docs/search/functions_d.js b/docs/search/functions_d.js new file mode 100644 index 00000000..fa7d4f86 --- /dev/null +++ b/docs/search/functions_d.js @@ -0,0 +1,13 @@ +var searchData= +[ + ['panel_0',['Panel',['../classsw_1_1_panel.html#a937db7d8878602d93eead371e0aab655',1,'sw::Panel']]], + ['panelbase_1',['PanelBase',['../classsw_1_1_panel_base.html#abab2cca25b5d32f8bce01252e9db500e',1,'sw::PanelBase']]], + ['parentchanged_2',['ParentChanged',['../classsw_1_1_u_i_element.html#a87b86762809c8e4a0ace610a977caa78',1,'sw::UIElement::ParentChanged()'],['../classsw_1_1_wnd_base.html#a4d09cfbc382789150798ff6ad3d9f988',1,'sw::WndBase::ParentChanged()']]], + ['passwordbox_3',['PasswordBox',['../classsw_1_1_password_box.html#a5e6b907e4c80b16dc1691eb6271778f5',1,'sw::PasswordBox']]], + ['pointfromscreen_4',['PointFromScreen',['../classsw_1_1_wnd_base.html#a6f1b33e5930fc14467f65ad89c2c35c3',1,'sw::WndBase']]], + ['pointtoscreen_5',['PointToScreen',['../classsw_1_1_wnd_base.html#a292d93c230f5534cdf68ac5d685dd487',1,'sw::WndBase']]], + ['progressbar_6',['ProgressBar',['../classsw_1_1_progress_bar.html#a461cb23f2cc6c276eda9312cb269a403',1,'sw::ProgressBar']]], + ['property_7',['Property',['../classsw_1_1_property.html#a657ad195af10d76fb55801b3cec62aca',1,'sw::Property']]], + ['pxtodipx_8',['PxToDipX',['../classsw_1_1_dip.html#aa0244988630536a31439cdfde27ec209',1,'sw::Dip']]], + ['pxtodipy_9',['PxToDipY',['../classsw_1_1_dip.html#a54fd07b8418adcff0ecb8483098ab860',1,'sw::Dip']]] +]; diff --git a/docs/search/functions_e.js b/docs/search/functions_e.js new file mode 100644 index 00000000..77e93e6c --- /dev/null +++ b/docs/search/functions_e.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['quitmsgloop_0',['QuitMsgLoop',['../classsw_1_1_app.html#a6c23858a471e3ad5e9e57ea711a912cb',1,'sw::App']]] +]; diff --git a/docs/search/functions_f.js b/docs/search/functions_f.js new file mode 100644 index 00000000..12489d5d --- /dev/null +++ b/docs/search/functions_f.js @@ -0,0 +1,20 @@ +var searchData= +[ + ['radiobutton_0',['RadioButton',['../classsw_1_1_radio_button.html#ab3a285dc904b85423de229d3187ec408',1,'sw::RadioButton']]], + ['raiseroutedevent_1',['RaiseRoutedEvent',['../classsw_1_1_u_i_element.html#a0635558e1928f1144566a30b884303aa',1,'sw::UIElement::RaiseRoutedEvent(RoutedEventType eventType)'],['../classsw_1_1_u_i_element.html#a135d4fc74c3bf7a434271620944b9f9b',1,'sw::UIElement::RaiseRoutedEvent(RoutedEventArgs &eventArgs)']]], + ['rbegin_2',['rbegin',['../classsw_1_1_dictionary.html#aad835fe48c0fccba0e7e99001c7f3de6',1,'sw::Dictionary::rbegin()'],['../classsw_1_1_list.html#a5d1e8dcbb8c1b4ba128cb011ee401f3a',1,'sw::List::rbegin()']]], + ['readonlyproperty_3',['ReadOnlyProperty',['../classsw_1_1_read_only_property.html#a800a531ff60f5be40012d548537be339',1,'sw::ReadOnlyProperty']]], + ['redraw_4',['Redraw',['../classsw_1_1_wnd_base.html#a1c0d183115a35f097b0598af43c9ca9a',1,'sw::WndBase']]], + ['registerroutedevent_5',['RegisterRoutedEvent',['../classsw_1_1_u_i_element.html#a62c0e59790735abb3f0a9f002e651c16',1,'sw::UIElement::RegisterRoutedEvent(RoutedEventType eventType, const RoutedEvent &handler)'],['../classsw_1_1_u_i_element.html#a09946400c66a4bfd34cfb8918652a34a',1,'sw::UIElement::RegisterRoutedEvent(RoutedEventType eventType, T &obj, void(T::*handler)(UIElement &, RoutedEventArgs &))'],['../classsw_1_1_u_i_element.html#a0fe3a905c1fd58baa911bc13aac9f181',1,'sw::UIElement::RegisterRoutedEvent(std::function< void(UIElement &, TEventArgs &)> handler)'],['../classsw_1_1_u_i_element.html#abb7de98159e23ece7285c87a2592d7ea',1,'sw::UIElement::RegisterRoutedEvent(THandleObj &obj, void(THandleObj::*handler)(UIElement &, TEventArgs &))']]], + ['remove_6',['Remove',['../classsw_1_1_dictionary.html#afc07e417b7ccc36dc5a7dab5018b6186',1,'sw::Dictionary::Remove()'],['../classsw_1_1_list.html#ae0f77fc0d146ee739725da4cc337bbe4',1,'sw::List::Remove(const T &value) const']]], + ['removeat_7',['RemoveAt',['../classsw_1_1_list.html#a61b8b974966080702d94323ef0e46f85',1,'sw::List']]], + ['removechild_8',['RemoveChild',['../classsw_1_1_u_i_element.html#a925353891b62cb6989410d788a8a4e90',1,'sw::UIElement::RemoveChild(UIElement *element)'],['../classsw_1_1_u_i_element.html#a9e825715639370ad2dd1f1276e6cb97f',1,'sw::UIElement::RemoveChild(UIElement &element)']]], + ['removechildat_9',['RemoveChildAt',['../classsw_1_1_u_i_element.html#a622a68f74b9122c0de9c57e547b0a62b',1,'sw::UIElement']]], + ['removecolumnat_10',['RemoveColumnAt',['../classsw_1_1_list_view.html#a739a22388145f5bdc9d694e0a7cdf060',1,'sw::ListView']]], + ['removeitem_11',['RemoveItem',['../classsw_1_1_menu_base.html#a75c96dd59694d38a9ea59e3973cd5bea',1,'sw::MenuBase']]], + ['removeitemat_12',['RemoveItemAt',['../classsw_1_1_combo_box.html#acd95ee1c4a1d8909d78df8c8e1820088',1,'sw::ComboBox::RemoveItemAt()'],['../classsw_1_1_items_control.html#a8ee8ced8a1134133fa7066ee4e29b7eb',1,'sw::ItemsControl::RemoveItemAt()'],['../classsw_1_1_list_box.html#a7bc0ff18482d6a90f643e9b4d796c9ed',1,'sw::ListBox::RemoveItemAt()'],['../classsw_1_1_list_view.html#aa8794834f72d435f8b6dee8b34d1d59c',1,'sw::ListView::RemoveItemAt()']]], + ['rend_13',['rend',['../classsw_1_1_dictionary.html#ab46b8829980f88dd6fe703d4d2961773',1,'sw::Dictionary::rend()'],['../classsw_1_1_list.html#a926521f6a537069d6e398306b9f870fb',1,'sw::List::rend()']]], + ['resetcursor_14',['ResetCursor',['../classsw_1_1_u_i_element.html#a421400e98ae700b0593cda2ceec5c1f7',1,'sw::UIElement']]], + ['resethandle_15',['ResetHandle',['../classsw_1_1_control.html#ac6593e51639858796dfa85f3910ccba9',1,'sw::Control']]], + ['routedeventargs_16',['RoutedEventArgs',['../structsw_1_1_routed_event_args.html#ad6e6da62f114abfabb682afd38b6f7a3',1,'sw::RoutedEventArgs']]] +]; diff --git a/docs/search/mag.svg b/docs/search/mag.svg new file mode 100644 index 00000000..ffb6cf0d --- /dev/null +++ b/docs/search/mag.svg @@ -0,0 +1,24 @@ + + + + + + + diff --git a/docs/search/mag_d.svg b/docs/search/mag_d.svg new file mode 100644 index 00000000..4122773f --- /dev/null +++ b/docs/search/mag_d.svg @@ -0,0 +1,24 @@ + + + + + + + diff --git a/docs/search/mag_sel.svg b/docs/search/mag_sel.svg new file mode 100644 index 00000000..553dba87 --- /dev/null +++ b/docs/search/mag_sel.svg @@ -0,0 +1,31 @@ + + + + + + + + + diff --git a/docs/search/mag_seld.svg b/docs/search/mag_seld.svg new file mode 100644 index 00000000..c906f84c --- /dev/null +++ b/docs/search/mag_seld.svg @@ -0,0 +1,31 @@ + + + + + + + + + diff --git a/docs/search/related_0.js b/docs/search/related_0.js new file mode 100644 index 00000000..df0a393d --- /dev/null +++ b/docs/search/related_0.js @@ -0,0 +1,6 @@ +var searchData= +[ + ['operator_21_3d_0',['operator!=',['../classsw_1_1_dictionary.html#a9d62c349f91ea2d17e49c9f424e522da',1,'sw::Dictionary::operator!='],['../classsw_1_1_list.html#ab3818bbafce8936cc4a4f7a43dc163aa',1,'sw::List::operator!='],['../classsw_1_1_wnd_base.html#a3e4f8edb05ac0381561f4a105db73a34',1,'sw::WndBase::operator!=']]], + ['operator_3c_3c_1',['operator<<',['../classsw_1_1_dictionary.html#a09fce0167bbe5ff0e080de8b1a52e286',1,'sw::Dictionary::operator<<'],['../classsw_1_1_list.html#ab50f6f7c37c3c4649e332d596d5bda2f',1,'sw::List::operator<<'],['../classsw_1_1_read_only_property.html#a081d365b2904532c706e9dc7e4c0bd90',1,'sw::ReadOnlyProperty::operator<<']]], + ['operator_3d_3d_2',['operator==',['../classsw_1_1_dictionary.html#aa139d8b586f45b45157b268832ac9522',1,'sw::Dictionary::operator=='],['../classsw_1_1_list.html#a6c5f217b25ad01a2af3b311520bcfc8e',1,'sw::List::operator=='],['../classsw_1_1_wnd_base.html#a91165e81b129c626cabcc7b3d8a5dc43',1,'sw::WndBase::operator==']]] +]; diff --git a/docs/search/search.css b/docs/search/search.css new file mode 100644 index 00000000..19f76f9d --- /dev/null +++ b/docs/search/search.css @@ -0,0 +1,291 @@ +/*---------------- Search Box positioning */ + +#main-menu > li:last-child { + /* This
  • object is the parent of the search bar */ + display: flex; + justify-content: center; + align-items: center; + height: 36px; + margin-right: 1em; +} + +/*---------------- Search box styling */ + +.SRPage * { + font-weight: normal; + line-height: normal; +} + +dark-mode-toggle { + margin-left: 5px; + display: flex; + float: right; +} + +#MSearchBox { + display: inline-block; + white-space : nowrap; + background: var(--search-background-color); + border-radius: 0.65em; + box-shadow: var(--search-box-shadow); + z-index: 102; +} + +#MSearchBox .left { + display: inline-block; + vertical-align: middle; + height: 1.4em; +} + +#MSearchSelect { + display: inline-block; + vertical-align: middle; + width: 20px; + height: 19px; + background-image: var(--search-magnification-select-image); + margin: 0 0 0 0.3em; + padding: 0; +} + +#MSearchSelectExt { + display: inline-block; + vertical-align: middle; + width: 10px; + height: 19px; + background-image: var(--search-magnification-image); + margin: 0 0 0 0.5em; + padding: 0; +} + + +#MSearchField { + display: inline-block; + vertical-align: middle; + width: 7.5em; + height: 19px; + margin: 0 0.15em; + padding: 0; + line-height: 1em; + border:none; + color: var(--search-foreground-color); + outline: none; + font-family: var(--font-family-search); + -webkit-border-radius: 0px; + border-radius: 0px; + background: none; +} + +@media(hover: none) { + /* to avoid zooming on iOS */ + #MSearchField { + font-size: 16px; + } +} + +#MSearchBox .right { + display: inline-block; + vertical-align: middle; + width: 1.4em; + height: 1.4em; +} + +#MSearchClose { + display: none; + font-size: inherit; + background : none; + border: none; + margin: 0; + padding: 0; + outline: none; + +} + +#MSearchCloseImg { + padding: 0.3em; + margin: 0; +} + +.MSearchBoxActive #MSearchField { + color: var(--search-active-color); +} + + + +/*---------------- Search filter selection */ + +#MSearchSelectWindow { + display: none; + position: absolute; + left: 0; top: 0; + border: 1px solid var(--search-filter-border-color); + background-color: var(--search-filter-background-color); + z-index: 10001; + padding-top: 4px; + padding-bottom: 4px; + -moz-border-radius: 4px; + -webkit-border-top-left-radius: 4px; + -webkit-border-top-right-radius: 4px; + -webkit-border-bottom-left-radius: 4px; + -webkit-border-bottom-right-radius: 4px; + -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); +} + +.SelectItem { + font: 8pt var(--font-family-search); + padding-left: 2px; + padding-right: 12px; + border: 0px; +} + +span.SelectionMark { + margin-right: 4px; + font-family: var(--font-family-monospace); + outline-style: none; + text-decoration: none; +} + +a.SelectItem { + display: block; + outline-style: none; + color: var(--search-filter-foreground-color); + text-decoration: none; + padding-left: 6px; + padding-right: 12px; +} + +a.SelectItem:focus, +a.SelectItem:active { + color: var(--search-filter-foreground-color); + outline-style: none; + text-decoration: none; +} + +a.SelectItem:hover { + color: var(--search-filter-highlight-text-color); + background-color: var(--search-filter-highlight-bg-color); + outline-style: none; + text-decoration: none; + cursor: pointer; + display: block; +} + +/*---------------- Search results window */ + +iframe#MSearchResults { + /*width: 60ex;*/ + height: 15em; +} + +#MSearchResultsWindow { + display: none; + position: absolute; + left: 0; top: 0; + border: 1px solid var(--search-results-border-color); + background-color: var(--search-results-background-color); + z-index:10000; + width: 300px; + height: 400px; + overflow: auto; +} + +/* ----------------------------------- */ + + +#SRIndex { + clear:both; +} + +.SREntry { + font-size: 10pt; + padding-left: 1ex; +} + +.SRPage .SREntry { + font-size: 8pt; + padding: 1px 5px; +} + +div.SRPage { + margin: 5px 2px; + background-color: var(--search-results-background-color); +} + +.SRChildren { + padding-left: 3ex; padding-bottom: .5em +} + +.SRPage .SRChildren { + display: none; +} + +.SRSymbol { + font-weight: bold; + color: var(--search-results-foreground-color); + font-family: var(--font-family-search); + text-decoration: none; + outline: none; +} + +a.SRScope { + display: block; + color: var(--search-results-foreground-color); + font-family: var(--font-family-search); + font-size: 8pt; + text-decoration: none; + outline: none; +} + +a.SRSymbol:focus, a.SRSymbol:active, +a.SRScope:focus, a.SRScope:active { + text-decoration: underline; +} + +span.SRScope { + padding-left: 4px; + font-family: var(--font-family-search); +} + +.SRPage .SRStatus { + padding: 2px 5px; + font-size: 8pt; + font-style: italic; + font-family: var(--font-family-search); +} + +.SRResult { + display: none; +} + +div.searchresults { + margin-left: 10px; + margin-right: 10px; +} + +/*---------------- External search page results */ + +.pages b { + color: white; + padding: 5px 5px 3px 5px; + background-image: var(--nav-gradient-active-image-parent); + background-repeat: repeat-x; + text-shadow: 0 1px 1px #000000; +} + +.pages { + line-height: 17px; + margin-left: 4px; + text-decoration: none; +} + +.hl { + font-weight: bold; +} + +#searchresults { + margin-bottom: 20px; +} + +.searchpages { + margin-top: 10px; +} + diff --git a/docs/search/search.js b/docs/search/search.js new file mode 100644 index 00000000..666af01e --- /dev/null +++ b/docs/search/search.js @@ -0,0 +1,694 @@ +/* + @licstart The following is the entire license notice for the JavaScript code in this file. + + The MIT License (MIT) + + Copyright (C) 1997-2020 by Dimitri van Heesch + + Permission is hereby granted, free of charge, to any person obtaining a copy of this software + and associated documentation files (the "Software"), to deal in the Software without restriction, + including without limitation the rights to use, copy, modify, merge, publish, distribute, + sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all copies or + substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING + BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + @licend The above is the entire license notice for the JavaScript code in this file + */ +const SEARCH_COOKIE_NAME = ''+'search_grp'; + +const searchResults = new SearchResults(); + +/* A class handling everything associated with the search panel. + + Parameters: + name - The name of the global variable that will be + storing this instance. Is needed to be able to set timeouts. + resultPath - path to use for external files +*/ +function SearchBox(name, resultsPath, extension) { + if (!name || !resultsPath) { alert("Missing parameters to SearchBox."); } + if (!extension || extension == "") { extension = ".html"; } + + function getXPos(item) { + let x = 0; + if (item.offsetWidth) { + while (item && item!=document.body) { + x += item.offsetLeft; + item = item.offsetParent; + } + } + return x; + } + + function getYPos(item) { + let y = 0; + if (item.offsetWidth) { + while (item && item!=document.body) { + y += item.offsetTop; + item = item.offsetParent; + } + } + return y; + } + + // ---------- Instance variables + this.name = name; + this.resultsPath = resultsPath; + this.keyTimeout = 0; + this.keyTimeoutLength = 500; + this.closeSelectionTimeout = 300; + this.lastSearchValue = ""; + this.lastResultsPage = ""; + this.hideTimeout = 0; + this.searchIndex = 0; + this.searchActive = false; + this.extension = extension; + + // ----------- DOM Elements + + this.DOMSearchField = () => document.getElementById("MSearchField"); + this.DOMSearchSelect = () => document.getElementById("MSearchSelect"); + this.DOMSearchSelectWindow = () => document.getElementById("MSearchSelectWindow"); + this.DOMPopupSearchResults = () => document.getElementById("MSearchResults"); + this.DOMPopupSearchResultsWindow = () => document.getElementById("MSearchResultsWindow"); + this.DOMSearchClose = () => document.getElementById("MSearchClose"); + this.DOMSearchBox = () => document.getElementById("MSearchBox"); + + // ------------ Event Handlers + + // Called when focus is added or removed from the search field. + this.OnSearchFieldFocus = function(isActive) { + this.Activate(isActive); + } + + this.OnSearchSelectShow = function() { + const searchSelectWindow = this.DOMSearchSelectWindow(); + const searchField = this.DOMSearchSelect(); + + const left = getXPos(searchField); + const top = getYPos(searchField) + searchField.offsetHeight; + + // show search selection popup + searchSelectWindow.style.display='block'; + searchSelectWindow.style.left = left + 'px'; + searchSelectWindow.style.top = top + 'px'; + + // stop selection hide timer + if (this.hideTimeout) { + clearTimeout(this.hideTimeout); + this.hideTimeout=0; + } + return false; // to avoid "image drag" default event + } + + this.OnSearchSelectHide = function() { + this.hideTimeout = setTimeout(this.CloseSelectionWindow.bind(this), + this.closeSelectionTimeout); + } + + // Called when the content of the search field is changed. + this.OnSearchFieldChange = function(evt) { + if (this.keyTimeout) { // kill running timer + clearTimeout(this.keyTimeout); + this.keyTimeout = 0; + } + + const e = evt ? evt : window.event; // for IE + if (e.keyCode==40 || e.keyCode==13) { + if (e.shiftKey==1) { + this.OnSearchSelectShow(); + const win=this.DOMSearchSelectWindow(); + for (let i=0;i do a search + this.Search(); + } + } + + this.OnSearchSelectKey = function(evt) { + const e = (evt) ? evt : window.event; // for IE + if (e.keyCode==40 && this.searchIndex0) { // Up + this.searchIndex--; + this.OnSelectItem(this.searchIndex); + } else if (e.keyCode==13 || e.keyCode==27) { + e.stopPropagation(); + this.OnSelectItem(this.searchIndex); + this.CloseSelectionWindow(); + this.DOMSearchField().focus(); + } + return false; + } + + // --------- Actions + + // Closes the results window. + this.CloseResultsWindow = function() { + this.DOMPopupSearchResultsWindow().style.display = 'none'; + this.DOMSearchClose().style.display = 'none'; + this.Activate(false); + } + + this.CloseSelectionWindow = function() { + this.DOMSearchSelectWindow().style.display = 'none'; + } + + // Performs a search. + this.Search = function() { + this.keyTimeout = 0; + + // strip leading whitespace + const searchValue = this.DOMSearchField().value.replace(/^ +/, ""); + + const code = searchValue.toLowerCase().charCodeAt(0); + let idxChar = searchValue.substr(0, 1).toLowerCase(); + if ( 0xD800 <= code && code <= 0xDBFF && searchValue > 1) { // surrogate pair + idxChar = searchValue.substr(0, 2); + } + + let jsFile; + let idx = indexSectionsWithContent[this.searchIndex].indexOf(idxChar); + if (idx!=-1) { + const hexCode=idx.toString(16); + jsFile = this.resultsPath + indexSectionNames[this.searchIndex] + '_' + hexCode + '.js'; + } + + const loadJS = function(url, impl, loc) { + const scriptTag = document.createElement('script'); + scriptTag.src = url; + scriptTag.onload = impl; + scriptTag.onreadystatechange = impl; + loc.appendChild(scriptTag); + } + + const domPopupSearchResultsWindow = this.DOMPopupSearchResultsWindow(); + const domSearchBox = this.DOMSearchBox(); + const domPopupSearchResults = this.DOMPopupSearchResults(); + const domSearchClose = this.DOMSearchClose(); + const resultsPath = this.resultsPath; + + const handleResults = function() { + document.getElementById("Loading").style.display="none"; + if (typeof searchData !== 'undefined') { + createResults(resultsPath); + document.getElementById("NoMatches").style.display="none"; + } + + if (idx!=-1) { + searchResults.Search(searchValue); + } else { // no file with search results => force empty search results + searchResults.Search('===='); + } + + if (domPopupSearchResultsWindow.style.display!='block') { + domSearchClose.style.display = 'inline-block'; + let left = getXPos(domSearchBox) + 150; + let top = getYPos(domSearchBox) + 20; + domPopupSearchResultsWindow.style.display = 'block'; + left -= domPopupSearchResults.offsetWidth; + const maxWidth = document.body.clientWidth; + const maxHeight = document.body.clientHeight; + let width = 300; + if (left<10) left=10; + if (width+left+8>maxWidth) width=maxWidth-left-8; + let height = 400; + if (height+top+8>maxHeight) height=maxHeight-top-8; + domPopupSearchResultsWindow.style.top = top + 'px'; + domPopupSearchResultsWindow.style.left = left + 'px'; + domPopupSearchResultsWindow.style.width = width + 'px'; + domPopupSearchResultsWindow.style.height = height + 'px'; + } + } + + if (jsFile) { + loadJS(jsFile, handleResults, this.DOMPopupSearchResultsWindow()); + } else { + handleResults(); + } + + this.lastSearchValue = searchValue; + } + + // -------- Activation Functions + + // Activates or deactivates the search panel, resetting things to + // their default values if necessary. + this.Activate = function(isActive) { + if (isActive || // open it + this.DOMPopupSearchResultsWindow().style.display == 'block' + ) { + this.DOMSearchBox().className = 'MSearchBoxActive'; + this.searchActive = true; + } else if (!isActive) { // directly remove the panel + this.DOMSearchBox().className = 'MSearchBoxInactive'; + this.searchActive = false; + this.lastSearchValue = '' + this.lastResultsPage = ''; + this.DOMSearchField().value = ''; + } + } +} + +// ----------------------------------------------------------------------- + +// The class that handles everything on the search results page. +function SearchResults() { + + function convertToId(search) { + let result = ''; + for (let i=0;i. + this.lastMatchCount = 0; + this.lastKey = 0; + this.repeatOn = false; + + // Toggles the visibility of the passed element ID. + this.FindChildElement = function(id) { + const parentElement = document.getElementById(id); + let element = parentElement.firstChild; + + while (element && element!=parentElement) { + if (element.nodeName.toLowerCase() == 'div' && element.className == 'SRChildren') { + return element; + } + + if (element.nodeName.toLowerCase() == 'div' && element.hasChildNodes()) { + element = element.firstChild; + } else if (element.nextSibling) { + element = element.nextSibling; + } else { + do { + element = element.parentNode; + } + while (element && element!=parentElement && !element.nextSibling); + + if (element && element!=parentElement) { + element = element.nextSibling; + } + } + } + } + + this.Toggle = function(id) { + const element = this.FindChildElement(id); + if (element) { + if (element.style.display == 'block') { + element.style.display = 'none'; + } else { + element.style.display = 'block'; + } + } + } + + // Searches for the passed string. If there is no parameter, + // it takes it from the URL query. + // + // Always returns true, since other documents may try to call it + // and that may or may not be possible. + this.Search = function(search) { + if (!search) { // get search word from URL + search = window.location.search; + search = search.substring(1); // Remove the leading '?' + search = unescape(search); + } + + search = search.replace(/^ +/, ""); // strip leading spaces + search = search.replace(/ +$/, ""); // strip trailing spaces + search = search.toLowerCase(); + search = convertToId(search); + + const resultRows = document.getElementsByTagName("div"); + let matches = 0; + + let i = 0; + while (i < resultRows.length) { + const row = resultRows.item(i); + if (row.className == "SRResult") { + let rowMatchName = row.id.toLowerCase(); + rowMatchName = rowMatchName.replace(/^sr\d*_/, ''); // strip 'sr123_' + + if (search.length<=rowMatchName.length && + rowMatchName.substr(0, search.length)==search) { + row.style.display = 'block'; + matches++; + } else { + row.style.display = 'none'; + } + } + i++; + } + document.getElementById("Searching").style.display='none'; + if (matches == 0) { // no results + document.getElementById("NoMatches").style.display='block'; + } else { // at least one result + document.getElementById("NoMatches").style.display='none'; + } + this.lastMatchCount = matches; + return true; + } + + // return the first item with index index or higher that is visible + this.NavNext = function(index) { + let focusItem; + for (;;) { + const focusName = 'Item'+index; + focusItem = document.getElementById(focusName); + if (focusItem && focusItem.parentNode.parentNode.style.display=='block') { + break; + } else if (!focusItem) { // last element + break; + } + focusItem=null; + index++; + } + return focusItem; + } + + this.NavPrev = function(index) { + let focusItem; + for (;;) { + const focusName = 'Item'+index; + focusItem = document.getElementById(focusName); + if (focusItem && focusItem.parentNode.parentNode.style.display=='block') { + break; + } else if (!focusItem) { // last element + break; + } + focusItem=null; + index--; + } + return focusItem; + } + + this.ProcessKeys = function(e) { + if (e.type == "keydown") { + this.repeatOn = false; + this.lastKey = e.keyCode; + } else if (e.type == "keypress") { + if (!this.repeatOn) { + if (this.lastKey) this.repeatOn = true; + return false; // ignore first keypress after keydown + } + } else if (e.type == "keyup") { + this.lastKey = 0; + this.repeatOn = false; + } + return this.lastKey!=0; + } + + this.Nav = function(evt,itemIndex) { + const e = (evt) ? evt : window.event; // for IE + if (e.keyCode==13) return true; + if (!this.ProcessKeys(e)) return false; + + if (this.lastKey==38) { // Up + const newIndex = itemIndex-1; + let focusItem = this.NavPrev(newIndex); + if (focusItem) { + let child = this.FindChildElement(focusItem.parentNode.parentNode.id); + if (child && child.style.display == 'block') { // children visible + let n=0; + let tmpElem; + for (;;) { // search for last child + tmpElem = document.getElementById('Item'+newIndex+'_c'+n); + if (tmpElem) { + focusItem = tmpElem; + } else { // found it! + break; + } + n++; + } + } + } + if (focusItem) { + focusItem.focus(); + } else { // return focus to search field + document.getElementById("MSearchField").focus(); + } + } else if (this.lastKey==40) { // Down + const newIndex = itemIndex+1; + let focusItem; + const item = document.getElementById('Item'+itemIndex); + const elem = this.FindChildElement(item.parentNode.parentNode.id); + if (elem && elem.style.display == 'block') { // children visible + focusItem = document.getElementById('Item'+itemIndex+'_c0'); + } + if (!focusItem) focusItem = this.NavNext(newIndex); + if (focusItem) focusItem.focus(); + } else if (this.lastKey==39) { // Right + const item = document.getElementById('Item'+itemIndex); + const elem = this.FindChildElement(item.parentNode.parentNode.id); + if (elem) elem.style.display = 'block'; + } else if (this.lastKey==37) { // Left + const item = document.getElementById('Item'+itemIndex); + const elem = this.FindChildElement(item.parentNode.parentNode.id); + if (elem) elem.style.display = 'none'; + } else if (this.lastKey==27) { // Escape + e.stopPropagation(); + searchBox.CloseResultsWindow(); + document.getElementById("MSearchField").focus(); + } else if (this.lastKey==13) { // Enter + return true; + } + return false; + } + + this.NavChild = function(evt,itemIndex,childIndex) { + const e = (evt) ? evt : window.event; // for IE + if (e.keyCode==13) return true; + if (!this.ProcessKeys(e)) return false; + + if (this.lastKey==38) { // Up + if (childIndex>0) { + const newIndex = childIndex-1; + document.getElementById('Item'+itemIndex+'_c'+newIndex).focus(); + } else { // already at first child, jump to parent + document.getElementById('Item'+itemIndex).focus(); + } + } else if (this.lastKey==40) { // Down + const newIndex = childIndex+1; + let elem = document.getElementById('Item'+itemIndex+'_c'+newIndex); + if (!elem) { // last child, jump to parent next parent + elem = this.NavNext(itemIndex+1); + } + if (elem) { + elem.focus(); + } + } else if (this.lastKey==27) { // Escape + e.stopPropagation(); + searchBox.CloseResultsWindow(); + document.getElementById("MSearchField").focus(); + } else if (this.lastKey==13) { // Enter + return true; + } + return false; + } +} + +function createResults(resultsPath) { + + function setKeyActions(elem,action) { + elem.setAttribute('onkeydown',action); + elem.setAttribute('onkeypress',action); + elem.setAttribute('onkeyup',action); + } + + function setClassAttr(elem,attr) { + elem.setAttribute('class',attr); + elem.setAttribute('className',attr); + } + + const results = document.getElementById("SRResults"); + results.innerHTML = ''; + searchData.forEach((elem,index) => { + const id = elem[0]; + const srResult = document.createElement('div'); + srResult.setAttribute('id','SR_'+id); + setClassAttr(srResult,'SRResult'); + const srEntry = document.createElement('div'); + setClassAttr(srEntry,'SREntry'); + const srLink = document.createElement('a'); + srLink.setAttribute('id','Item'+index); + setKeyActions(srLink,'return searchResults.Nav(event,'+index+')'); + setClassAttr(srLink,'SRSymbol'); + srLink.innerHTML = elem[1][0]; + srEntry.appendChild(srLink); + if (elem[1].length==2) { // single result + srLink.setAttribute('href',resultsPath+elem[1][1][0]); + srLink.setAttribute('onclick','searchBox.CloseResultsWindow()'); + if (elem[1][1][1]) { + srLink.setAttribute('target','_parent'); + } else { + srLink.setAttribute('target','_blank'); + } + const srScope = document.createElement('span'); + setClassAttr(srScope,'SRScope'); + srScope.innerHTML = elem[1][1][2]; + srEntry.appendChild(srScope); + } else { // multiple results + srLink.setAttribute('href','javascript:searchResults.Toggle("SR_'+id+'")'); + const srChildren = document.createElement('div'); + setClassAttr(srChildren,'SRChildren'); + for (let c=0; c-{AmhX=Jf(#6djGiuzAr*{o?=JLmPLyc> z_*`QK&+BH@jWrYJ7>r6%keRM@)Qyv8R=enp0jiI>aWlGyB58O zFVR20d+y`K7vDw(hJF3;>dD*3-?v=<8M)@x|EEGLnJsniYK!2U1 Y!`|5biEc?d1`HDhPgg&ebxsLQ02F6;9RL6T literal 0 HcmV?d00001 diff --git a/docs/splitbard.png b/docs/splitbard.png new file mode 100644 index 0000000000000000000000000000000000000000..8367416d757fd7b6dc4272b6432dc75a75abd068 GIT binary patch literal 282 zcmeAS@N?(olHy`uVBq!ia0vp^Yzz!63>-{AmhX=Jf@VhhFKy35^fiT zT~&lUj3=cDh^%3HDY9k5CEku}PHXNoNC(_$U3XPb&Q*ME25pT;2(*BOgAf<+R$lzakPG`kF31()Fx{L5Wrac|GQzjeE= zueY1`Ze{#x<8=S|`~MgGetGce)#vN&|J{Cd^tS%;tBYTo?+^d68<#n_Y_xx`J||4O V@QB{^CqU0Kc)I$ztaD0e0svEzbJzd? literal 0 HcmV?d00001 diff --git a/docs/structsw_1_1___has_event_type.html b/docs/structsw_1_1___has_event_type.html new file mode 100644 index 00000000..790537a0 --- /dev/null +++ b/docs/structsw_1_1___has_event_type.html @@ -0,0 +1,127 @@ + + + + + + + +SimpleWindow: sw::_HasEventType< T, typename > Struct Template Reference + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    sw::_HasEventType< T, typename > Struct Template Reference
    +
    +
    + +

    结构体模板,用于检测类型T是否含有名为EventType的静态字段 + More...

    + +

    #include <RoutedEventArgs.h>

    +
    +Inheritance diagram for sw::_HasEventType< T, typename >:
    +
    +
    + + +sw::_IsTypedRoutedEventArgs< T > + +
    +

    Detailed Description

    +
    template<typename T, typename = void>
    +struct sw::_HasEventType< T, typename >

    结构体模板,用于检测类型T是否含有名为EventType的静态字段

    +

    The documentation for this struct was generated from the following file: +
    +
    + + + + diff --git a/docs/structsw_1_1___has_event_type.png b/docs/structsw_1_1___has_event_type.png new file mode 100644 index 0000000000000000000000000000000000000000..2a2e3e475e91c2ff35a235ac6217bf1ca7b09297 GIT binary patch literal 1226 zcmeAS@N?(olHy`uVBq!ia0vp^H-NZ1SR%c<=xyZhAIs2~du+B*-tA0mugfbEer>7#LVWJzX3_Dj46+eZT3k0>{z* zlw}|O`R~bmEZ?#0?Xt}B!X1+@ON(Bd&-AlvO3vkS{ec+5)?t-nh_KebJ($nl#YdaV6Y&#bA^8Cb=$s2b^8Ur;2T^H?l)VLXN zMgQ8O&BrAN$vKojJ37>cJT^*I%}0 zs=m@uWBzOU%%4(!e@mZ!eV+Z;nLn(o62_a=!Nl4G&7~#_86KqXVm#0@OY}|I>?t{6 z8>VLaZOS~jNQBH;ytaoSo{Sr11oTzNecK`08t-Gb()Mb4CzDO~`?$+`Axf#dagBFbv5^^kJoy*T{JVWx&uqf(Z=6-UE$qeOy2V=WiWjYKuHx@{ zRT(NG_;b>|Kg(_|`u|e=t>%oCZAwbZP5$la?vVHzbDvpQ@MpxcVkMK-J z3>ZEvA%XEDvg+_WnTJy0ZHpFRWr$R9b(A2opHNs-X_yqu_7C;&A&e-^mXXv^0Z$)Y;v3R zjWrL?+PiYLWOHOo;fov6(tl4o{%7%de#1CC&2THHbHcsoWbv-!3BLobobKIb!SMP_ z)RNwsDXS7>o~^b%ckhx3Fw&CeZ{7W6lVkMxi(>r`drK#8(Kfy@ZA<0-)LW;et@UJU z`>rO}X&>)9JCCKDz0B&kSF5y4mU!1%h5c)~mTq6&rFJEUSJ(7H*o4iY6FXki_U;dJ zaf!ctf9*G!Hy;k?<@I;GI4z~dA$W1&xw|v^+?5u+&#u_x;^J;4-R0u)e=8#R!ZxHv dPUHN_&ho=ZyWql{VqmGm;OXk;vd$@?2>|5=PG$fA literal 0 HcmV?d00001 diff --git a/docs/structsw_1_1___has_event_type_3_01_t_00_01decltype_07void_07std_1_1declval_3_01_t_01_4_07_08_8_event_type_08_08_4.html b/docs/structsw_1_1___has_event_type_3_01_t_00_01decltype_07void_07std_1_1declval_3_01_t_01_4_07_08_8_event_type_08_08_4.html new file mode 100644 index 00000000..c2e114e9 --- /dev/null +++ b/docs/structsw_1_1___has_event_type_3_01_t_00_01decltype_07void_07std_1_1declval_3_01_t_01_4_07_08_8_event_type_08_08_4.html @@ -0,0 +1,124 @@ + + + + + + + +SimpleWindow: sw::_HasEventType< T, decltype(void(std::declval< T >().EventType))> Struct Template Reference + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    sw::_HasEventType< T, decltype(void(std::declval< T >().EventType))> Struct Template Reference
    +
    +
    + +

    模板特化:当T包含EventType时,将_IsTypedRoutedEventArgs<T>设为std::true_type + More...

    + +

    #include <RoutedEventArgs.h>

    +
    +Inheritance diagram for sw::_HasEventType< T, decltype(void(std::declval< T >().EventType))>:
    +
    +
    + +
    +

    Detailed Description

    +
    template<typename T>
    +struct sw::_HasEventType< T, decltype(void(std::declval< T >().EventType))>

    模板特化:当T包含EventType时,将_IsTypedRoutedEventArgs<T>设为std::true_type

    +

    The documentation for this struct was generated from the following file: +
    +
    + + + + diff --git a/docs/structsw_1_1___has_event_type_3_01_t_00_01decltype_07void_07std_1_1declval_3_01_t_01_4_07_08_8_event_type_08_08_4.png b/docs/structsw_1_1___has_event_type_3_01_t_00_01decltype_07void_07std_1_1declval_3_01_t_01_4_07_08_8_event_type_08_08_4.png new file mode 100644 index 0000000000000000000000000000000000000000..3fc114425956032def3918821f70f745f7e20e86 GIT binary patch literal 1121 zcmeAS@N?(olHy`uVBq!ia0y~yV4MwP2XHV0$sckWoIpxCz$e7@|Ns9$=8HF9OZyKk zw=mEwkeGhv#e)YAfa0cS!3f*F8(FfeDDeT9L6`HiQGV@L(#+qt)^K5Ox~ zxSP+d{I7nm^KFBLrSGNv(eIXD)6QjRPH5cGIx{jUO^i>%Q%yy(r^I=Zp{KcufhE*&+{-+3olCE9+3NAWA(oJ`*r1_(T%HZPUZj4dAe_wigK}{x!bkl z^_4Z+@w>xsiLWc3vF>TwrhiZO*c2MCRy%nhMt8YwY4Lx_{#$!ysW2C-n*WVjf6ll1 z%AL@Xg~r7nf2S2ZUN`rm?>%#spXYBB-_l#Saf@%F{+{%;hTM5=ePQCW-Y+eZ^4xdk zVVlbOqxVZT$NoId`EkBVrR={yJ1v)ioTqqlzQWxJDL$8YJ&&ot7*C!ZJELQ0+|9=D zM|K~B0%JqL5@`mGlh?yfF*bC7nZCY2W&@Df;Wdk~VFrldxr;uGKZfRMX`M48EfOY8 z@dz@w)T?q-<*rAN51g^@X>NbLGeGj+nWtbCgy-buX{|U$^OOgwfUXH>c08$+fB6 zy|2>9>wCK3tH2lihuyUwd8y~k`Z2BYn(H3%zRfe;F6Eyt4V%B_T+u_nJ0;PHlOBsL z{&GKT;WqV$k3}`Fx)x5p9F|w(r~PnOrrj#Bi6*y`PWvwIz3BTkzo_Jw*uOLU+(sQ% zl22c}obhsVfPC-nQ`f_n+!ZfQk>z5jj1@!04?hi|;&D(WZb*0_&?`JhAB^ zs-*t?Y@mhUt*2WqIqq#a_4hLG#oRaU>n1E=GxwgZDK~felqcIV!%e#r`M11#zn6Wx z+~>d=|75mEksn{ayzA;&e(1T0=P&UeYgIkD_lcfZvwpL9eQKFLztPO2Dv5J<-TZ!V z`Q_Jsttw}K?3;CZ_sp}8Ld_?AF?80Ow!}R0%UAo;mHxicH{ZpdA1jvb$kCau$2G$!+rJ4ZeU@+;OXk;vd$@?2>^|fD1`t3 literal 0 HcmV?d00001 diff --git a/docs/structsw_1_1___is_typed_routed_event_args.html b/docs/structsw_1_1___is_typed_routed_event_args.html new file mode 100644 index 00000000..2ad3ac59 --- /dev/null +++ b/docs/structsw_1_1___is_typed_routed_event_args.html @@ -0,0 +1,127 @@ + + + + + + + +SimpleWindow: sw::_IsTypedRoutedEventArgs< T > Struct Template Reference + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    sw::_IsTypedRoutedEventArgs< T > Struct Template Reference
    +
    +
    + +

    结构体模板,用于检测类型T是否包含事件类型信息 + More...

    + +

    #include <RoutedEventArgs.h>

    +
    +Inheritance diagram for sw::_IsTypedRoutedEventArgs< T >:
    +
    +
    + + +sw::_HasEventType< T, typename > + +
    +

    Detailed Description

    +
    template<typename T>
    +struct sw::_IsTypedRoutedEventArgs< T >

    结构体模板,用于检测类型T是否包含事件类型信息

    +

    The documentation for this struct was generated from the following file: +
    +
    + + + + diff --git a/docs/structsw_1_1___is_typed_routed_event_args.png b/docs/structsw_1_1___is_typed_routed_event_args.png new file mode 100644 index 0000000000000000000000000000000000000000..bc6caab1786e9ca42a0440b54692346edea84826 GIT binary patch literal 1154 zcmeAS@N?(olHy`uVBq!ia0vp^SAn>LgBeJ=_r=WsQqloFA+G=b{|7Q(y!l$%e`vXd zfo6fk^fNCWJa_;UH$5A+1SrQ@666=m0OW&#In(Sb3=Ay1o-U3d6^w7^zMr((fa9ot z!Lkqk{A<=elb^Na+N-yd5|#JhJ`@t2)Gb4I(oO-`DpL3-iZa}o5X{)XO9JD7IWYDfwkRkW z&6wlma-S8rF(duX=yTZod9t*dzM8#v#Y@?%JBz3OicGdH z7mcWTe_L)wTDfgN=!|zWRz7|?t#B24SBFga@6{?wMYHWHZ+ox0xBT~y?r{1TxJ_ME) N44$rjF6*2UngEot9d7^t literal 0 HcmV?d00001 diff --git a/docs/structsw_1_1_auto_size_grid_column-members.html b/docs/structsw_1_1_auto_size_grid_column-members.html new file mode 100644 index 00000000..58f9633e --- /dev/null +++ b/docs/structsw_1_1_auto_size_grid_column-members.html @@ -0,0 +1,115 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    sw::AutoSizeGridColumn Member List
    +
    +
    + +

    This is the complete list of members for sw::AutoSizeGridColumn, including all inherited members.

    + + + + + + + +
    AutoSizeGridColumn()sw::AutoSizeGridColumn
    GridColumn()sw::GridColumn
    GridColumn(GridRCType type, double width)sw::GridColumn
    GridColumn(double width)sw::GridColumn
    typesw::GridColumn
    widthsw::GridColumn
    +
    + + + + diff --git a/docs/structsw_1_1_auto_size_grid_column.html b/docs/structsw_1_1_auto_size_grid_column.html new file mode 100644 index 00000000..afb26662 --- /dev/null +++ b/docs/structsw_1_1_auto_size_grid_column.html @@ -0,0 +1,162 @@ + + + + + + + +SimpleWindow: sw::AutoSizeGridColumn Struct Reference + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    + +
    sw::AutoSizeGridColumn Struct Reference
    +
    +
    + +

    自动宽度的列 + More...

    + +

    #include <GridLayout.h>

    +
    +Inheritance diagram for sw::AutoSizeGridColumn:
    +
    +
    + + +sw::GridColumn + +
    + + + + + + + + + + + + + + + +

    +Public Member Functions

    AutoSizeGridColumn ()
     初始化AutoSizeGridColumn
     
    - Public Member Functions inherited from sw::GridColumn
    GridColumn ()
     创建一个FillRemain的GridColumn
     
    GridColumn (GridRCType type, double width)
     初始化GridColumn
     
    GridColumn (double width)
     固定大小的列
     
    + + + + + + + + +

    +Additional Inherited Members

    - Public Attributes inherited from sw::GridColumn
    +GridRCType type
     类型
     
    +double width
     宽度
     
    +

    Detailed Description

    +

    自动宽度的列

    +

    The documentation for this struct was generated from the following file: +
    +
    + + + + diff --git a/docs/structsw_1_1_auto_size_grid_column.js b/docs/structsw_1_1_auto_size_grid_column.js new file mode 100644 index 00000000..59d2f514 --- /dev/null +++ b/docs/structsw_1_1_auto_size_grid_column.js @@ -0,0 +1,4 @@ +var structsw_1_1_auto_size_grid_column = +[ + [ "AutoSizeGridColumn", "structsw_1_1_auto_size_grid_column.html#a6dd90239ba99030b22c7354dd9ef1fc9", null ] +]; \ No newline at end of file diff --git a/docs/structsw_1_1_auto_size_grid_column.png b/docs/structsw_1_1_auto_size_grid_column.png new file mode 100644 index 0000000000000000000000000000000000000000..17c5928d02fa9516a3e8764ee563a512b19f8ada GIT binary patch literal 644 zcmeAS@N?(olHy`uVBq!ia0vp^Q-L^ugBeJwM;@;NQqloFA+G=b{|7Q(y!l$%e`vXd zfo6fk^fNCWJa_;UH$5A+1SrQ@666=m0OW&#In(Sb3=B;Co-U3d6^w7^zV3Uiz|+$1 zxa!&8`9Dm=4+v~}y|ySU^SW`-A6-nhE#TdtAkr&aG)p6W|I zEww87o}Bgl310cjCC_>kDT#-QFJ#rd`NF8k+qB2?Q`kAKb1Qc3`ezlY`zY{)=?b;< zz0)@E=f6)lKgr{_P1r$0{ogA$ZF#=oU;NDA^mQjDi>jQA4-J^O#NW|%k{zq4=dUd~ zq30~ut1(n~=rct4c?a!{(@xU${Mr^JknOu_M>E5N&;Z5;e@9jZplXI6A|VV9g7FG` z`Mxs9E7MZZ^HLI*mggtU6)Go}=dawAYJ4N_)Q%kSHGl8j_&M{w|B9gJ_kX!7cuJW> zulUitU&Z(8if!ha@2>66`~L2oS!`clXKmVvyU!}mymvF3zC1oNYrop&ps8Pz6jWnV z()suQ%62Nv-QudS*E^e#4_>K!Uyp8= zo;OXm`Fy}trCH2&EBkvd1@g+B54bz0H29kJDsGR}xu0d?lka>!&E>}z$Qx2-$$L9? zQ~8Gs_9O59pOWb;TDfn{0+qE37fe!_-{du^2IQ&C$W>E + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    sw::AutoSizeGridRow Member List
    +
    +
    + +

    This is the complete list of members for sw::AutoSizeGridRow, including all inherited members.

    + + + + + + + +
    AutoSizeGridRow()sw::AutoSizeGridRow
    GridRow()sw::GridRow
    GridRow(GridRCType type, double height)sw::GridRow
    GridRow(double height)sw::GridRow
    heightsw::GridRow
    typesw::GridRow
    +
    + + + + diff --git a/docs/structsw_1_1_auto_size_grid_row.html b/docs/structsw_1_1_auto_size_grid_row.html new file mode 100644 index 00000000..0536bf1f --- /dev/null +++ b/docs/structsw_1_1_auto_size_grid_row.html @@ -0,0 +1,162 @@ + + + + + + + +SimpleWindow: sw::AutoSizeGridRow Struct Reference + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    + +
    sw::AutoSizeGridRow Struct Reference
    +
    +
    + +

    自动高度的行 + More...

    + +

    #include <GridLayout.h>

    +
    +Inheritance diagram for sw::AutoSizeGridRow:
    +
    +
    + + +sw::GridRow + +
    + + + + + + + + + + + + + + + +

    +Public Member Functions

    AutoSizeGridRow ()
     初始化AutoSizeGridRow
     
    - Public Member Functions inherited from sw::GridRow
    GridRow ()
     创建一个FillRemain的GridRow
     
    GridRow (GridRCType type, double height)
     初始化GridRow
     
    GridRow (double height)
     固定大小的行
     
    + + + + + + + + +

    +Additional Inherited Members

    - Public Attributes inherited from sw::GridRow
    +GridRCType type
     类型
     
    +double height
     高度
     
    +

    Detailed Description

    +

    自动高度的行

    +

    The documentation for this struct was generated from the following file: +
    +
    + + + + diff --git a/docs/structsw_1_1_auto_size_grid_row.js b/docs/structsw_1_1_auto_size_grid_row.js new file mode 100644 index 00000000..21d9758f --- /dev/null +++ b/docs/structsw_1_1_auto_size_grid_row.js @@ -0,0 +1,4 @@ +var structsw_1_1_auto_size_grid_row = +[ + [ "AutoSizeGridRow", "structsw_1_1_auto_size_grid_row.html#a2bdf1d29e1b15c59580fd5592afade9a", null ] +]; \ No newline at end of file diff --git a/docs/structsw_1_1_auto_size_grid_row.png b/docs/structsw_1_1_auto_size_grid_row.png new file mode 100644 index 0000000000000000000000000000000000000000..688fd43331e02747423ee8598981e4deb6151514 GIT binary patch literal 579 zcmV-J0=)f+P)vTJr#LVva2S`&=-}Ys|Ns9r%~qrU000SeQchC<|NsC0|NsC0Hv*f~0005b zNkl;KPvrlylCTMHv9LDj0&{ zBMj;I$+IkFSGED*j(*Be6HVC)gR>0)|I`hJQdkLl%BD&6ub$Ej^*UxR0C4o4p~f1~ zT4==}8)w$juDt-@Qnwf+u9<+=`L1*6^DuS|FaWH&*$a=s+_hak&LHh*m;08%yc#b6 zaCCDXmcI5eG!?H5cc$TfFXo!-G?+}zckwv}0Qj#8hF}N=0I+%pL(Vzx6%oUi%>)z;GaJhj;=*d>6q$MCv~nf*}})h^&Gk7=nR_$SN3uAsC2=tb*ZBF{G5z zW>I2h-l|{-hHo(#vwA7>Je##apFfs5|IEye-Z3PTWjxm>&($*&hO6_2p0IJ{ zJk~R&{$66MfAMVlhM~nUd4!=_hHX07rFXl(F7(W$YpRfgL84zUm^@?GXXq5_mWEj@ zicQVWfb)8>GI*}05yH_MkDZ5gB2|N~7?!l7 zOIPzSU8n7Z(|iegM(YQqN#?s~>jboX7gr3-%zG3J!4M40%vKL!NGYYg`T{#vY;dlO Rr91!t002ovPDHLkV1nsz43Gc- literal 0 HcmV?d00001 diff --git a/docs/structsw_1_1_canvas_layout_tag-members.html b/docs/structsw_1_1_canvas_layout_tag-members.html new file mode 100644 index 00000000..39e085a3 --- /dev/null +++ b/docs/structsw_1_1_canvas_layout_tag-members.html @@ -0,0 +1,115 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    sw::CanvasLayoutTag Member List
    +
    +
    + +

    This is the complete list of members for sw::CanvasLayoutTag, including all inherited members.

    + + + + + + + +
    CanvasLayoutTag()sw::CanvasLayoutTag
    CanvasLayoutTag(float left, float top)sw::CanvasLayoutTag
    CanvasLayoutTag(uint64_t layoutTag)sw::CanvasLayoutTag
    leftsw::CanvasLayoutTag
    operator uint64_t() constsw::CanvasLayoutTag
    topsw::CanvasLayoutTag
    +
    + + + + diff --git a/docs/structsw_1_1_canvas_layout_tag.html b/docs/structsw_1_1_canvas_layout_tag.html new file mode 100644 index 00000000..5ee765ad --- /dev/null +++ b/docs/structsw_1_1_canvas_layout_tag.html @@ -0,0 +1,152 @@ + + + + + + + +SimpleWindow: sw::CanvasLayoutTag Struct Reference + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    + +
    sw::CanvasLayoutTag Struct Reference
    +
    +
    + +

    绝对位置布局方式的布局标记 + More...

    + +

    #include <CanvasLayout.h>

    + + + + + + + + + + + + + + +

    +Public Member Functions

    CanvasLayoutTag ()
     左边顶边均为0
     
    CanvasLayoutTag (float left, float top)
     指定左边和顶边
     
    CanvasLayoutTag (uint64_t layoutTag)
     从LayoutTag创建
     
    operator uint64_t () const
     隐式转换LayoutTag
     
    + + + + + + + +

    +Public Attributes

    +float left
     左边
     
    +float top
     顶边
     
    +

    Detailed Description

    +

    绝对位置布局方式的布局标记

    +

    The documentation for this struct was generated from the following file: +
    +
    + + + + diff --git a/docs/structsw_1_1_canvas_layout_tag.js b/docs/structsw_1_1_canvas_layout_tag.js new file mode 100644 index 00000000..68606618 --- /dev/null +++ b/docs/structsw_1_1_canvas_layout_tag.js @@ -0,0 +1,9 @@ +var structsw_1_1_canvas_layout_tag = +[ + [ "CanvasLayoutTag", "structsw_1_1_canvas_layout_tag.html#ad3e70c4391d2f7835676e5aae48a4377", null ], + [ "CanvasLayoutTag", "structsw_1_1_canvas_layout_tag.html#ae9def609feb263d19aa829b29010184c", null ], + [ "CanvasLayoutTag", "structsw_1_1_canvas_layout_tag.html#a5fcb2062d7a1239c4bd0f9fbf971718c", null ], + [ "operator uint64_t", "structsw_1_1_canvas_layout_tag.html#a54ca60a93c85b0c06ad1d848fed9af42", null ], + [ "left", "structsw_1_1_canvas_layout_tag.html#a66e509ca8ce039a228ccb15cba5aa509", null ], + [ "top", "structsw_1_1_canvas_layout_tag.html#aebee142b9a9c5838c3fc2cb7a62374af", null ] +]; \ No newline at end of file diff --git a/docs/structsw_1_1_color-members.html b/docs/structsw_1_1_color-members.html new file mode 100644 index 00000000..ff418bff --- /dev/null +++ b/docs/structsw_1_1_color-members.html @@ -0,0 +1,260 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    sw::Color Member List
    +
    +
    + +

    This is the complete list of members for sw::Color, including all inherited members.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    AliceBlue enum value (defined in sw::Color)sw::Color
    AntiqueWhite enum value (defined in sw::Color)sw::Color
    Aqua enum value (defined in sw::Color)sw::Color
    Aquamarine enum value (defined in sw::Color)sw::Color
    Azure enum value (defined in sw::Color)sw::Color
    bsw::Color
    Beige enum value (defined in sw::Color)sw::Color
    Bisque enum value (defined in sw::Color)sw::Color
    Black enum value (defined in sw::Color)sw::Color
    BlanchedAlmond enum value (defined in sw::Color)sw::Color
    Blue enum value (defined in sw::Color)sw::Color
    BlueViolet enum value (defined in sw::Color)sw::Color
    Brown enum value (defined in sw::Color)sw::Color
    BurlyWood enum value (defined in sw::Color)sw::Color
    CadetBlue enum value (defined in sw::Color)sw::Color
    Chartreuse enum value (defined in sw::Color)sw::Color
    Chocolate enum value (defined in sw::Color)sw::Color
    Color() (defined in sw::Color)sw::Color
    Color(uint8_t r, uint8_t g, uint8_t b) (defined in sw::Color)sw::Color
    Color(COLORREF color) (defined in sw::Color)sw::Color
    Coral enum value (defined in sw::Color)sw::Color
    CornflowerBlue enum value (defined in sw::Color)sw::Color
    Cornsilk enum value (defined in sw::Color)sw::Color
    Crimson enum value (defined in sw::Color)sw::Color
    Cyan enum value (defined in sw::Color)sw::Color
    DarkBlue enum value (defined in sw::Color)sw::Color
    DarkCyan enum value (defined in sw::Color)sw::Color
    DarkGoldenrod enum value (defined in sw::Color)sw::Color
    DarkGray enum value (defined in sw::Color)sw::Color
    DarkGreen enum value (defined in sw::Color)sw::Color
    DarkKhaki enum value (defined in sw::Color)sw::Color
    DarkMagenta enum value (defined in sw::Color)sw::Color
    DarkOliveGreen enum value (defined in sw::Color)sw::Color
    DarkOrange enum value (defined in sw::Color)sw::Color
    DarkOrchid enum value (defined in sw::Color)sw::Color
    DarkRed enum value (defined in sw::Color)sw::Color
    DarkSalmon enum value (defined in sw::Color)sw::Color
    DarkSeaGreen enum value (defined in sw::Color)sw::Color
    DarkSlateBlue enum value (defined in sw::Color)sw::Color
    DarkSlateGray enum value (defined in sw::Color)sw::Color
    DarkTurquoise enum value (defined in sw::Color)sw::Color
    DarkViolet enum value (defined in sw::Color)sw::Color
    DeepPink enum value (defined in sw::Color)sw::Color
    DeepSkyBlue enum value (defined in sw::Color)sw::Color
    DimGray enum value (defined in sw::Color)sw::Color
    DodgerBlue enum value (defined in sw::Color)sw::Color
    Firebrick enum value (defined in sw::Color)sw::Color
    FloralWhite enum value (defined in sw::Color)sw::Color
    ForestGreen enum value (defined in sw::Color)sw::Color
    Fuchsia enum value (defined in sw::Color)sw::Color
    gsw::Color
    Gainsboro enum value (defined in sw::Color)sw::Color
    GhostWhite enum value (defined in sw::Color)sw::Color
    Gold enum value (defined in sw::Color)sw::Color
    Goldenrod enum value (defined in sw::Color)sw::Color
    Gray enum value (defined in sw::Color)sw::Color
    Green enum value (defined in sw::Color)sw::Color
    GreenYellow enum value (defined in sw::Color)sw::Color
    Honeydew enum value (defined in sw::Color)sw::Color
    HotPink enum value (defined in sw::Color)sw::Color
    IndianRed enum value (defined in sw::Color)sw::Color
    Indigo enum value (defined in sw::Color)sw::Color
    Ivory enum value (defined in sw::Color)sw::Color
    Khaki enum value (defined in sw::Color)sw::Color
    Lavender enum value (defined in sw::Color)sw::Color
    LavenderBlush enum value (defined in sw::Color)sw::Color
    LawnGreen enum value (defined in sw::Color)sw::Color
    LemonChiffon enum value (defined in sw::Color)sw::Color
    LightBlue enum value (defined in sw::Color)sw::Color
    LightCoral enum value (defined in sw::Color)sw::Color
    LightCyan enum value (defined in sw::Color)sw::Color
    LightGoldenrodYellow enum value (defined in sw::Color)sw::Color
    LightGray enum value (defined in sw::Color)sw::Color
    LightGreen enum value (defined in sw::Color)sw::Color
    LightPink enum value (defined in sw::Color)sw::Color
    LightSalmon enum value (defined in sw::Color)sw::Color
    LightSeaGreen enum value (defined in sw::Color)sw::Color
    LightSkyBlue enum value (defined in sw::Color)sw::Color
    LightSlateGray enum value (defined in sw::Color)sw::Color
    LightSteelBlue enum value (defined in sw::Color)sw::Color
    LightYellow enum value (defined in sw::Color)sw::Color
    Lime enum value (defined in sw::Color)sw::Color
    LimeGreen enum value (defined in sw::Color)sw::Color
    Linen enum value (defined in sw::Color)sw::Color
    Magenta enum value (defined in sw::Color)sw::Color
    Maroon enum value (defined in sw::Color)sw::Color
    MediumAquamarine enum value (defined in sw::Color)sw::Color
    MediumBlue enum value (defined in sw::Color)sw::Color
    MediumOrchid enum value (defined in sw::Color)sw::Color
    MediumPurple enum value (defined in sw::Color)sw::Color
    MediumSeaGreen enum value (defined in sw::Color)sw::Color
    MediumSlateBlue enum value (defined in sw::Color)sw::Color
    MediumSpringGreen enum value (defined in sw::Color)sw::Color
    MediumTurquoise enum value (defined in sw::Color)sw::Color
    MediumVioletRed enum value (defined in sw::Color)sw::Color
    MidnightBlue enum value (defined in sw::Color)sw::Color
    MintCream enum value (defined in sw::Color)sw::Color
    MistyRose enum value (defined in sw::Color)sw::Color
    Moccasin enum value (defined in sw::Color)sw::Color
    NavajoWhite enum value (defined in sw::Color)sw::Color
    Navy enum value (defined in sw::Color)sw::Color
    OldLace enum value (defined in sw::Color)sw::Color
    Olive enum value (defined in sw::Color)sw::Color
    OliveDrab enum value (defined in sw::Color)sw::Color
    operator COLORREF() const (defined in sw::Color)sw::Color
    operator!= (defined in sw::Color)sw::Colorfriend
    operator<< (defined in sw::Color)sw::Colorfriend
    operator== (defined in sw::Color)sw::Colorfriend
    Orange enum value (defined in sw::Color)sw::Color
    OrangeRed enum value (defined in sw::Color)sw::Color
    Orchid enum value (defined in sw::Color)sw::Color
    PaleGoldenrod enum value (defined in sw::Color)sw::Color
    PaleGreen enum value (defined in sw::Color)sw::Color
    PaleTurquoise enum value (defined in sw::Color)sw::Color
    PaleVioletRed enum value (defined in sw::Color)sw::Color
    PapayaWhip enum value (defined in sw::Color)sw::Color
    PeachPuff enum value (defined in sw::Color)sw::Color
    Peru enum value (defined in sw::Color)sw::Color
    Pink enum value (defined in sw::Color)sw::Color
    Plum enum value (defined in sw::Color)sw::Color
    PowderBlue enum value (defined in sw::Color)sw::Color
    Purple enum value (defined in sw::Color)sw::Color
    rsw::Color
    Red enum value (defined in sw::Color)sw::Color
    RosyBrown enum value (defined in sw::Color)sw::Color
    RoyalBlue enum value (defined in sw::Color)sw::Color
    SaddleBrown enum value (defined in sw::Color)sw::Color
    Salmon enum value (defined in sw::Color)sw::Color
    SandyBrown enum value (defined in sw::Color)sw::Color
    SeaGreen enum value (defined in sw::Color)sw::Color
    SeaShell enum value (defined in sw::Color)sw::Color
    Sienna enum value (defined in sw::Color)sw::Color
    Silver enum value (defined in sw::Color)sw::Color
    SkyBlue enum value (defined in sw::Color)sw::Color
    SlateBlue enum value (defined in sw::Color)sw::Color
    SlateGray enum value (defined in sw::Color)sw::Color
    Snow enum value (defined in sw::Color)sw::Color
    SolidColors enum name (defined in sw::Color)sw::Color
    SpringGreen enum value (defined in sw::Color)sw::Color
    SteelBlue enum value (defined in sw::Color)sw::Color
    Tan enum value (defined in sw::Color)sw::Color
    Teal enum value (defined in sw::Color)sw::Color
    Thistle enum value (defined in sw::Color)sw::Color
    Tomato enum value (defined in sw::Color)sw::Color
    Turquoise enum value (defined in sw::Color)sw::Color
    Violet enum value (defined in sw::Color)sw::Color
    Wheat enum value (defined in sw::Color)sw::Color
    White enum value (defined in sw::Color)sw::Color
    WhiteSmoke enum value (defined in sw::Color)sw::Color
    Yellow enum value (defined in sw::Color)sw::Color
    YellowGreen enum value (defined in sw::Color)sw::Color
    +
    + + + + diff --git a/docs/structsw_1_1_color.html b/docs/structsw_1_1_color.html new file mode 100644 index 00000000..b375e02e --- /dev/null +++ b/docs/structsw_1_1_color.html @@ -0,0 +1,344 @@ + + + + + + + +SimpleWindow: sw::Color Struct Reference + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + + +
    + +

    颜色 + More...

    + +

    #include <Color.h>

    + + + + +

    +Public Types

    enum  SolidColors : COLORREF {
    +  AliceBlue = RGB(240, 248, 255) +, AntiqueWhite = RGB(250, 235, 215) +, Aqua = RGB(0, 255, 255) +, Aquamarine = RGB(127, 255, 212) +,
    +  Azure = RGB(240, 255, 255) +, Beige = RGB(245, 245, 220) +, Bisque = RGB(255, 228, 196) +, Black = RGB(0, 0, 0) +,
    +  BlanchedAlmond = RGB(255, 235, 205) +, Blue = RGB(0, 0, 255) +, BlueViolet = RGB(138, 43, 226) +, Brown = RGB(165, 42, 42) +,
    +  BurlyWood = RGB(222, 184, 135) +, CadetBlue = RGB(95, 158, 160) +, Chartreuse = RGB(127, 255, 0) +, Chocolate = RGB(210, 105, 30) +,
    +  Coral = RGB(255, 127, 80) +, CornflowerBlue = RGB(100, 149, 237) +, Cornsilk = RGB(255, 248, 220) +, Crimson = RGB(220, 20, 60) +,
    +  Cyan = RGB(0, 255, 255) +, DarkBlue = RGB(0, 0, 139) +, DarkCyan = RGB(0, 139, 139) +, DarkGoldenrod = RGB(184, 134, 11) +,
    +  DarkGray = RGB(169, 169, 169) +, DarkGreen = RGB(0, 100, 0) +, DarkKhaki = RGB(189, 183, 107) +, DarkMagenta = RGB(139, 0, 139) +,
    +  DarkOliveGreen = RGB(85, 107, 47) +, DarkOrange = RGB(255, 140, 0) +, DarkOrchid = RGB(153, 50, 204) +, DarkRed = RGB(139, 0, 0) +,
    +  DarkSalmon = RGB(233, 150, 122) +, DarkSeaGreen = RGB(143, 188, 143) +, DarkSlateBlue = RGB(72, 61, 139) +, DarkSlateGray = RGB(47, 79, 79) +,
    +  DarkTurquoise = RGB(0, 206, 209) +, DarkViolet = RGB(148, 0, 211) +, DeepPink = RGB(255, 20, 147) +, DeepSkyBlue = RGB(0, 191, 255) +,
    +  DimGray = RGB(105, 105, 105) +, DodgerBlue = RGB(30, 144, 255) +, Firebrick = RGB(178, 34, 34) +, FloralWhite = RGB(255, 250, 240) +,
    +  ForestGreen = RGB(34, 139, 34) +, Fuchsia = RGB(255, 0, 255) +, Gainsboro = RGB(220, 220, 220) +, GhostWhite = RGB(248, 248, 255) +,
    +  Gold = RGB(255, 215, 0) +, Goldenrod = RGB(218, 165, 32) +, Gray = RGB(128, 128, 128) +, Green = RGB(0, 128, 0) +,
    +  GreenYellow = RGB(173, 255, 47) +, Honeydew = RGB(240, 255, 240) +, HotPink = RGB(255, 105, 180) +, IndianRed = RGB(205, 92, 92) +,
    +  Indigo = RGB(75, 0, 130) +, Ivory = RGB(255, 255, 240) +, Khaki = RGB(240, 230, 140) +, Lavender = RGB(230, 230, 250) +,
    +  LavenderBlush = RGB(255, 240, 245) +, LawnGreen = RGB(124, 252, 0) +, LemonChiffon = RGB(255, 250, 205) +, LightBlue = RGB(173, 216, 230) +,
    +  LightCoral = RGB(240, 128, 128) +, LightCyan = RGB(224, 255, 255) +, LightGoldenrodYellow = RGB(250, 250, 210) +, LightGray = RGB(211, 211, 211) +,
    +  LightGreen = RGB(144, 238, 144) +, LightPink = RGB(255, 182, 193) +, LightSalmon = RGB(255, 160, 122) +, LightSeaGreen = RGB(32, 178, 170) +,
    +  LightSkyBlue = RGB(135, 206, 250) +, LightSlateGray = RGB(119, 136, 153) +, LightSteelBlue = RGB(176, 196, 222) +, LightYellow = RGB(255, 255, 224) +,
    +  Lime = RGB(0, 255, 0) +, LimeGreen = RGB(50, 205, 50) +, Linen = RGB(250, 240, 230) +, Magenta = RGB(255, 0, 255) +,
    +  Maroon = RGB(128, 0, 0) +, MediumAquamarine = RGB(102, 205, 170) +, MediumBlue = RGB(0, 0, 205) +, MediumOrchid = RGB(186, 85, 211) +,
    +  MediumPurple = RGB(147, 112, 219) +, MediumSeaGreen = RGB(60, 179, 113) +, MediumSlateBlue = RGB(123, 104, 238) +, MediumSpringGreen = RGB(0, 250, 154) +,
    +  MediumTurquoise = RGB(72, 209, 204) +, MediumVioletRed = RGB(199, 21, 133) +, MidnightBlue = RGB(25, 25, 112) +, MintCream = RGB(245, 255, 250) +,
    +  MistyRose = RGB(255, 228, 225) +, Moccasin = RGB(255, 228, 181) +, NavajoWhite = RGB(255, 222, 173) +, Navy = RGB(0, 0, 128) +,
    +  OldLace = RGB(253, 245, 230) +, Olive = RGB(128, 128, 0) +, OliveDrab = RGB(107, 142, 35) +, Orange = RGB(255, 165, 0) +,
    +  OrangeRed = RGB(255, 69, 0) +, Orchid = RGB(218, 112, 214) +, PaleGoldenrod = RGB(238, 232, 170) +, PaleGreen = RGB(152, 251, 152) +,
    +  PaleTurquoise = RGB(175, 238, 238) +, PaleVioletRed = RGB(219, 112, 147) +, PapayaWhip = RGB(255, 239, 213) +, PeachPuff = RGB(255, 218, 185) +,
    +  Peru = RGB(205, 133, 63) +, Pink = RGB(255, 192, 203) +, Plum = RGB(221, 160, 221) +, PowderBlue = RGB(176, 224, 230) +,
    +  Purple = RGB(128, 0, 128) +, Red = RGB(255, 0, 0) +, RosyBrown = RGB(188, 143, 143) +, RoyalBlue = RGB(65, 105, 225) +,
    +  SaddleBrown = RGB(139, 69, 19) +, Salmon = RGB(250, 128, 114) +, SandyBrown = RGB(244, 164, 96) +, SeaGreen = RGB(46, 139, 87) +,
    +  SeaShell = RGB(255, 245, 238) +, Sienna = RGB(160, 82, 45) +, Silver = RGB(192, 192, 192) +, SkyBlue = RGB(135, 206, 235) +,
    +  SlateBlue = RGB(106, 90, 205) +, SlateGray = RGB(112, 128, 144) +, Snow = RGB(255, 250, 250) +, SpringGreen = RGB(0, 255, 127) +,
    +  SteelBlue = RGB(70, 130, 180) +, Tan = RGB(210, 180, 140) +, Teal = RGB(0, 128, 128) +, Thistle = RGB(216, 191, 216) +,
    +  Tomato = RGB(255, 99, 71) +, Turquoise = RGB(64, 224, 208) +, Violet = RGB(238, 130, 238) +, Wheat = RGB(245, 222, 179) +,
    +  White = RGB(255, 255, 255) +, WhiteSmoke = RGB(245, 245, 245) +, Yellow = RGB(255, 255, 0) +, YellowGreen = RGB(154, 205, 50) +
    + }
     
    + + + + + + + +

    +Public Member Functions

    Color (uint8_t r, uint8_t g, uint8_t b)
     
    Color (COLORREF color)
     
    operator COLORREF () const
     
    + + + + + + + + + + +

    +Public Attributes

    +uint8_t r
     R分量
     
    +uint8_t g
     G分量
     
    +uint8_t b
     B分量
     
    + + + + + + + +

    +Friends

    +bool operator== (const Color &left, const Color &right)
     
    +bool operator!= (const Color &left, const Color &right)
     
    +std::wostream & operator<< (std::wostream &wos, const Color &color)
     
    +

    Detailed Description

    +

    颜色

    +

    The documentation for this struct was generated from the following file:
      +
    • D:/code/GitHub/sw/sw/inc/Color.h
    • +
    +
    +
    + + + + diff --git a/docs/structsw_1_1_color.js b/docs/structsw_1_1_color.js new file mode 100644 index 00000000..32da589b --- /dev/null +++ b/docs/structsw_1_1_color.js @@ -0,0 +1,6 @@ +var structsw_1_1_color = +[ + [ "b", "structsw_1_1_color.html#aeeb136eece447ed3f36a6767a807bb4d", null ], + [ "g", "structsw_1_1_color.html#a5bf136539d077e375ba6f481ad8a8b25", null ], + [ "r", "structsw_1_1_color.html#ab334150d36ae29d3db72843e072994c9", null ] +]; \ No newline at end of file diff --git a/docs/structsw_1_1_fill_remain_grid_column-members.html b/docs/structsw_1_1_fill_remain_grid_column-members.html new file mode 100644 index 00000000..4b7fc8ac --- /dev/null +++ b/docs/structsw_1_1_fill_remain_grid_column-members.html @@ -0,0 +1,115 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    sw::FillRemainGridColumn Member List
    +
    +
    + +

    This is the complete list of members for sw::FillRemainGridColumn, including all inherited members.

    + + + + + + + +
    FillRemainGridColumn(double proportion=1)sw::FillRemainGridColumn
    GridColumn()sw::GridColumn
    GridColumn(GridRCType type, double width)sw::GridColumn
    GridColumn(double width)sw::GridColumn
    typesw::GridColumn
    widthsw::GridColumn
    +
    + + + + diff --git a/docs/structsw_1_1_fill_remain_grid_column.html b/docs/structsw_1_1_fill_remain_grid_column.html new file mode 100644 index 00000000..cb70c1b4 --- /dev/null +++ b/docs/structsw_1_1_fill_remain_grid_column.html @@ -0,0 +1,162 @@ + + + + + + + +SimpleWindow: sw::FillRemainGridColumn Struct Reference + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    + +
    sw::FillRemainGridColumn Struct Reference
    +
    +
    + +

    填充剩余宽度的列 + More...

    + +

    #include <GridLayout.h>

    +
    +Inheritance diagram for sw::FillRemainGridColumn:
    +
    +
    + + +sw::GridColumn + +
    + + + + + + + + + + + + + + + +

    +Public Member Functions

    FillRemainGridColumn (double proportion=1)
     初始化FillRemainGridColumn
     
    - Public Member Functions inherited from sw::GridColumn
    GridColumn ()
     创建一个FillRemain的GridColumn
     
    GridColumn (GridRCType type, double width)
     初始化GridColumn
     
    GridColumn (double width)
     固定大小的列
     
    + + + + + + + + +

    +Additional Inherited Members

    - Public Attributes inherited from sw::GridColumn
    +GridRCType type
     类型
     
    +double width
     宽度
     
    +

    Detailed Description

    +

    填充剩余宽度的列

    +

    The documentation for this struct was generated from the following file: +
    +
    + + + + diff --git a/docs/structsw_1_1_fill_remain_grid_column.js b/docs/structsw_1_1_fill_remain_grid_column.js new file mode 100644 index 00000000..c8dbcc89 --- /dev/null +++ b/docs/structsw_1_1_fill_remain_grid_column.js @@ -0,0 +1,4 @@ +var structsw_1_1_fill_remain_grid_column = +[ + [ "FillRemainGridColumn", "structsw_1_1_fill_remain_grid_column.html#a0835e5144c6f0246c6d7cf2c8dfd18a1", null ] +]; \ No newline at end of file diff --git a/docs/structsw_1_1_fill_remain_grid_column.png b/docs/structsw_1_1_fill_remain_grid_column.png new file mode 100644 index 0000000000000000000000000000000000000000..b816ff2ea7c4b2c94b91be2f326986b0f81d8674 GIT binary patch literal 643 zcmeAS@N?(olHy`uVBq!ia0vp^bAdR3gBeJg^tJZ^Dd_;85ZC|z{{xvX-h3_XKeXJ! zK(jz%`k5CG9y|bwo1P6@0+iz{3GxeO0P?}WoN4wI1_mZRPZ!6K3dXl{-}gOM;5pLn zxa!&8`9Ed}bR>G-{+jlF!nxf&KZK9}yL#+r&z$18uoEgfS2Xph)N)x(`ts7fztj8xO`OBpf&pj};j&0L>*=Fmx?~1vW_2SpB{+@pkRp{M# zebMYMF50>MiPhWEy_U#s4=+1&x$d>j*NwUNt&6pNwg0-MdVX53{leqY@&(GC^FgkQ zny2@CPPiz;ofYg1I;)qylfa$qZzjtMXH%WYUw%*}E=ToZs2IY5J0xZBIQfx(Le{wTkw=;KMzxeB2s@pGKeSY;p z%gl?R{kzqr7yk3`Hne&5$>MYAtjJya>fYWfEqUHJ>D + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    sw::FillRemainGridRow Member List
    +
    +
    + +

    This is the complete list of members for sw::FillRemainGridRow, including all inherited members.

    + + + + + + + +
    FillRemainGridRow(double proportion=1)sw::FillRemainGridRow
    GridRow()sw::GridRow
    GridRow(GridRCType type, double height)sw::GridRow
    GridRow(double height)sw::GridRow
    heightsw::GridRow
    typesw::GridRow
    +
    + + + + diff --git a/docs/structsw_1_1_fill_remain_grid_row.html b/docs/structsw_1_1_fill_remain_grid_row.html new file mode 100644 index 00000000..38aeddad --- /dev/null +++ b/docs/structsw_1_1_fill_remain_grid_row.html @@ -0,0 +1,162 @@ + + + + + + + +SimpleWindow: sw::FillRemainGridRow Struct Reference + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    + +
    sw::FillRemainGridRow Struct Reference
    +
    +
    + +

    填充剩余高度的行 + More...

    + +

    #include <GridLayout.h>

    +
    +Inheritance diagram for sw::FillRemainGridRow:
    +
    +
    + + +sw::GridRow + +
    + + + + + + + + + + + + + + + +

    +Public Member Functions

    FillRemainGridRow (double proportion=1)
     初始化FillRemainGridRow
     
    - Public Member Functions inherited from sw::GridRow
    GridRow ()
     创建一个FillRemain的GridRow
     
    GridRow (GridRCType type, double height)
     初始化GridRow
     
    GridRow (double height)
     固定大小的行
     
    + + + + + + + + +

    +Additional Inherited Members

    - Public Attributes inherited from sw::GridRow
    +GridRCType type
     类型
     
    +double height
     高度
     
    +

    Detailed Description

    +

    填充剩余高度的行

    +

    The documentation for this struct was generated from the following file: +
    +
    + + + + diff --git a/docs/structsw_1_1_fill_remain_grid_row.js b/docs/structsw_1_1_fill_remain_grid_row.js new file mode 100644 index 00000000..9d0d901e --- /dev/null +++ b/docs/structsw_1_1_fill_remain_grid_row.js @@ -0,0 +1,4 @@ +var structsw_1_1_fill_remain_grid_row = +[ + [ "FillRemainGridRow", "structsw_1_1_fill_remain_grid_row.html#ae4f6bd7474c82f753a03296a972bd308", null ] +]; \ No newline at end of file diff --git a/docs/structsw_1_1_fill_remain_grid_row.png b/docs/structsw_1_1_fill_remain_grid_row.png new file mode 100644 index 0000000000000000000000000000000000000000..037c8f6e3c947e2bec76411dcdaa72b5b684e137 GIT binary patch literal 614 zcmV-s0-61ZP)vTJr#LVva2S`&=-}Ys|Ns9r%~qrU000SeQchC<|NsC0|NsC0Hv*f~0005; zNkl;Jl{by<(+yo)3+ zxaYFQJffBqjZ2-_v+uvRyGZgSw_R#{(;=lZHuhobmt)q5lVqPaYSeQvHL%0iTxyxh zp$}cmquE807rfCguI^jAniKFYce~}i8lBHz?G}@<^Bw)Z3rT*Ra3M)gxR9hLTu9P0 znM=+&&jA2@&I14@VIr5uV;-4_T%Ib^$jsyt-w^=x2p0hGgbM(8!UX_4;Q|1jZ~*{M zxB!4BTmZlmE&$*O7Xa{t3jlb+1pqw%&?TjmCILy3rXXA-$rCP;?M)E>>YVtu=G%x%xhR2!kJDLZ@so3FZ* zF!i@4b5m>nk-bO@Yq=u3c;;YQGqlV?s&CW%usGY3VS4sgZN(oy(TS^z_!L z*2UDo4g;53rgC(z`{jHT_B{qJ=CR3V`^9$djefaw+1s_#O1<;x)ySXU;5%x2qwV5- z#)$a<7cP?Yw}gu%dBR1KJmDfqp2=KNN@)&$03r->%$>JsqW}N^07*qoM6N<$f++kY AY5)KL literal 0 HcmV?d00001 diff --git a/docs/structsw_1_1_fix_size_grid_column-members.html b/docs/structsw_1_1_fix_size_grid_column-members.html new file mode 100644 index 00000000..62839b4b --- /dev/null +++ b/docs/structsw_1_1_fix_size_grid_column-members.html @@ -0,0 +1,115 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    sw::FixSizeGridColumn Member List
    +
    +
    + +

    This is the complete list of members for sw::FixSizeGridColumn, including all inherited members.

    + + + + + + + +
    FixSizeGridColumn(double width)sw::FixSizeGridColumn
    GridColumn()sw::GridColumn
    GridColumn(GridRCType type, double width)sw::GridColumn
    GridColumn(double width)sw::GridColumn
    typesw::GridColumn
    widthsw::GridColumn
    +
    + + + + diff --git a/docs/structsw_1_1_fix_size_grid_column.html b/docs/structsw_1_1_fix_size_grid_column.html new file mode 100644 index 00000000..43b99b1c --- /dev/null +++ b/docs/structsw_1_1_fix_size_grid_column.html @@ -0,0 +1,162 @@ + + + + + + + +SimpleWindow: sw::FixSizeGridColumn Struct Reference + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    + +
    sw::FixSizeGridColumn Struct Reference
    +
    +
    + +

    固定宽度的列 + More...

    + +

    #include <GridLayout.h>

    +
    +Inheritance diagram for sw::FixSizeGridColumn:
    +
    +
    + + +sw::GridColumn + +
    + + + + + + + + + + + + + + + +

    +Public Member Functions

    FixSizeGridColumn (double width)
     初始化FixSizeGridColumn
     
    - Public Member Functions inherited from sw::GridColumn
    GridColumn ()
     创建一个FillRemain的GridColumn
     
    GridColumn (GridRCType type, double width)
     初始化GridColumn
     
    GridColumn (double width)
     固定大小的列
     
    + + + + + + + + +

    +Additional Inherited Members

    - Public Attributes inherited from sw::GridColumn
    +GridRCType type
     类型
     
    +double width
     宽度
     
    +

    Detailed Description

    +

    固定宽度的列

    +

    The documentation for this struct was generated from the following file: +
    +
    + + + + diff --git a/docs/structsw_1_1_fix_size_grid_column.js b/docs/structsw_1_1_fix_size_grid_column.js new file mode 100644 index 00000000..7abbc13d --- /dev/null +++ b/docs/structsw_1_1_fix_size_grid_column.js @@ -0,0 +1,4 @@ +var structsw_1_1_fix_size_grid_column = +[ + [ "FixSizeGridColumn", "structsw_1_1_fix_size_grid_column.html#a2564cacaada11c191704e59dab7d735b", null ] +]; \ No newline at end of file diff --git a/docs/structsw_1_1_fix_size_grid_column.png b/docs/structsw_1_1_fix_size_grid_column.png new file mode 100644 index 0000000000000000000000000000000000000000..b0fcae18642985cb8f617ff245774bdeea346fed GIT binary patch literal 627 zcmeAS@N?(olHy`uVBq!ia0vp^JwP15!3-q-Jj#s#QqloFA+G=b{|7Q(y!l$%e`vXd zfo6fk^fNCWJa_;UH$5A+1SrQ@666=m0OW&#In(Sb3=E9_JY5_^Dj46+eV_M4f#*oO zW7OH-_8)WqF_;zJiqp@!cyf1-Lc$sT+b7enM7`E>Qax!p#Xv<;GttB7QhCCu-`9^X z+x)qjFRmt{=- z|FX32GPSn%xRud94hdelFoD z`R6CwU)|>`w{XI?zuB{%X}l3lRy=?F-&{k{)K&i)O(s6+2e~Kc(1esFEs7^SRv!d9 zRf(yA{R>k==oXEw1!h9p%U1{W_0hK?x)3<8>o3<^Pq7#xh+}&7eabK}-4*`=si>=cT?aE5^>&X=2W9&&wq{xqE(|+p+!S z3w5LKa|@4#tK42>;(2Mk7R>c66PEzPXiCs2rC-dAi;KUk>@uASOdbrLu6{1-oD!M< D#N8e% literal 0 HcmV?d00001 diff --git a/docs/structsw_1_1_fix_size_grid_row-members.html b/docs/structsw_1_1_fix_size_grid_row-members.html new file mode 100644 index 00000000..3c55f069 --- /dev/null +++ b/docs/structsw_1_1_fix_size_grid_row-members.html @@ -0,0 +1,115 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    sw::FixSizeGridRow Member List
    +
    +
    + +

    This is the complete list of members for sw::FixSizeGridRow, including all inherited members.

    + + + + + + + +
    FixSizeGridRow(double height)sw::FixSizeGridRow
    GridRow()sw::GridRow
    GridRow(GridRCType type, double height)sw::GridRow
    GridRow(double height)sw::GridRow
    heightsw::GridRow
    typesw::GridRow
    +
    + + + + diff --git a/docs/structsw_1_1_fix_size_grid_row.html b/docs/structsw_1_1_fix_size_grid_row.html new file mode 100644 index 00000000..41e4e80e --- /dev/null +++ b/docs/structsw_1_1_fix_size_grid_row.html @@ -0,0 +1,162 @@ + + + + + + + +SimpleWindow: sw::FixSizeGridRow Struct Reference + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    + +
    sw::FixSizeGridRow Struct Reference
    +
    +
    + +

    固定高度的行 + More...

    + +

    #include <GridLayout.h>

    +
    +Inheritance diagram for sw::FixSizeGridRow:
    +
    +
    + + +sw::GridRow + +
    + + + + + + + + + + + + + + + +

    +Public Member Functions

    FixSizeGridRow (double height)
     初始化FixSizeGridRow
     
    - Public Member Functions inherited from sw::GridRow
    GridRow ()
     创建一个FillRemain的GridRow
     
    GridRow (GridRCType type, double height)
     初始化GridRow
     
    GridRow (double height)
     固定大小的行
     
    + + + + + + + + +

    +Additional Inherited Members

    - Public Attributes inherited from sw::GridRow
    +GridRCType type
     类型
     
    +double height
     高度
     
    +

    Detailed Description

    +

    固定高度的行

    +

    The documentation for this struct was generated from the following file: +
    +
    + + + + diff --git a/docs/structsw_1_1_fix_size_grid_row.js b/docs/structsw_1_1_fix_size_grid_row.js new file mode 100644 index 00000000..4c4a5d82 --- /dev/null +++ b/docs/structsw_1_1_fix_size_grid_row.js @@ -0,0 +1,4 @@ +var structsw_1_1_fix_size_grid_row = +[ + [ "FixSizeGridRow", "structsw_1_1_fix_size_grid_row.html#a196b15d809057c6fc17943da76edcc06", null ] +]; \ No newline at end of file diff --git a/docs/structsw_1_1_fix_size_grid_row.png b/docs/structsw_1_1_fix_size_grid_row.png new file mode 100644 index 0000000000000000000000000000000000000000..dbb4b90cd1f2b8a0c0b4095a2550f07c78d4a6f5 GIT binary patch literal 574 zcmeAS@N?(olHy`uVBq!ia0vp^RX`lT!3-oHZkX5xq@)9ULR|m<{|{uoc=NTi|Il&^ z1I+@7>1SR%c<=xyZhAIs2~du+B*-tA0mugfbEer>7#J8&db&7Ljgf?0;I$K0Eua zO679%3)O$PHZ8Qyo3!Uj_LphL#NJNnm;3g9-|0o)pS%uMiF~PA#UI$Tq=Rj)tooan z?aMtjt+p=Vd%kP-uBsO%?(4g+-<_`I+e%-?I+=j{B{+Tgte)e0tc__~)zg+G-EpepRvMXZ&tX y|82Y6jUR?*cuK8mowfw%drv8#?**J@EaKNIP8IQdo@NY;X$DVMKbLh*2~7ZX4h-M` literal 0 HcmV?d00001 diff --git a/docs/structsw_1_1_got_char_event_args-members.html b/docs/structsw_1_1_got_char_event_args-members.html new file mode 100644 index 00000000..6c0b3b0c --- /dev/null +++ b/docs/structsw_1_1_got_char_event_args-members.html @@ -0,0 +1,117 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    sw::GotCharEventArgs Member List
    +
    +
    + +

    This is the complete list of members for sw::GotCharEventArgs, including all inherited members.

    + + + + + + + + + +
    ch (defined in sw::GotCharEventArgs)sw::GotCharEventArgs
    EventTypesw::RoutedEventArgsOfType< UIElement_GotChar >static
    eventTypesw::RoutedEventArgs
    flags (defined in sw::GotCharEventArgs)sw::GotCharEventArgs
    GotCharEventArgs(wchar_t ch, KeyFlags flags) (defined in sw::GotCharEventArgs)sw::GotCharEventArgsinline
    handledsw::RoutedEventArgs
    handledMsgsw::RoutedEventArgs
    RoutedEventArgs(RoutedEventType eventType)sw::RoutedEventArgs
    +
    + + + + diff --git a/docs/structsw_1_1_got_char_event_args.html b/docs/structsw_1_1_got_char_event_args.html new file mode 100644 index 00000000..102631f6 --- /dev/null +++ b/docs/structsw_1_1_got_char_event_args.html @@ -0,0 +1,173 @@ + + + + + + + +SimpleWindow: sw::GotCharEventArgs Struct Reference + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    + +
    sw::GotCharEventArgs Struct Reference
    +
    +
    + +

    输入字符事件类型参数 + More...

    + +

    #include <RoutedEventArgs.h>

    +
    +Inheritance diagram for sw::GotCharEventArgs:
    +
    +
    + + +sw::RoutedEventArgsOfType< UIElement_GotChar > +sw::RoutedEventArgs + +
    + + + + + + + + +

    +Public Member Functions

    GotCharEventArgs (wchar_t ch, KeyFlags flags)
     
    - Public Member Functions inherited from sw::RoutedEventArgs
    RoutedEventArgs (RoutedEventType eventType)
     RoutedEventArgs构造函数
     
    + + + + + + + + + + + + + + + +

    +Public Attributes

    +wchar_t ch
     
    +KeyFlags flags
     
    - Public Attributes inherited from sw::RoutedEventArgs
    +RoutedEventType eventType
     事件类型
     
    +bool handled = false
     事件是否已被处理,若将此字段设为true,则事件不会继续往上传递
     
    +bool handledMsg = false
     表示是否已处理事件所对应的Windows消息,对于部分消息将字段设为true可取消对DefaultWndProc的调用,若当前事件无对应消息则该字段无意义
     
    + + + + + +

    +Additional Inherited Members

    - Static Public Attributes inherited from sw::RoutedEventArgsOfType< UIElement_GotChar >
    +static constexpr RoutedEventType EventType
     路由事件的类型,RegisterRoutedEvent模板函数使用此字段注册事件
     
    +

    Detailed Description

    +

    输入字符事件类型参数

    +

    The documentation for this struct was generated from the following file: +
    +
    + + + + diff --git a/docs/structsw_1_1_got_char_event_args.png b/docs/structsw_1_1_got_char_event_args.png new file mode 100644 index 0000000000000000000000000000000000000000..b3334d467c808f435c1e1e9d1c662baa707e3c0a GIT binary patch literal 1515 zcmd5+YgEz)6vrMeJtGRvTBXoVLs3)bBc;%^OfxhYf{&P}y`XgjbPl9+X>B`GXW9-B ziiVzi;B&YjF~Y>GwEjRfE7u=2$z~}?rVX4r4x^oIXZyYnyC3eozkBb8dw=(yTS_Fv zLR~kzLLd+*et$Fx0&xm*_$6yrIy5<=lISpQ!~;n&cDvo-PR&?2=lh#?1bF9ctkg~! z3U&$hojd1Tw^d{}Akonnw`G>O6e(o}`mbX0eGS4`1h8JV@$VD7u{q&-ns< zSlx|IxN_i3Cj&8kl zJ$I)H>NfbeVc}KW5Tz#;WOp|N;q^yro?5Q z>FZ!1duz=DO=z3*@og$|&pfHWxy85G_*0ATmg-9*RNY=oSixD@zWrnk%BwvK3}7S; z6Fl)R=Xkf=1?4L3;h`{}Q&{DxY?$ury4oraY&*#o5QuRilT=DdH9gHYGBR*^B9c73 zp+zd}0vC3J+($CMkM-MUaCFvpdj}ctPIIR+QnAaB1}F0}ZY_4%+XY?9kMNkem_&ug zWwaRJdPvY>!rNK@IsEMyN}Ts%echd(=f{G|!<8EHX-)s4+)wzRUu8rULjTM-j z31zsao`0%RMNl)Whw2OOnaVV(x`<@hr{l7FiVWQAc?=*?Aur&EP$TZJa^Y>%!Q5uX zH7~qzqkBm6<8!=UO6q-!+VmXoz70VQEpk&9N;GyBXqgHM*p^n@dEAmZMrT5$h|zHi zm12<^Z{#DzJTte?I1HjSA zc*R3Dptn6bOO7byoUUht?m=ddX{UFAVOKUi@zIlq6CN=0TWGp@iD_y@uB3xP=Ia)@ zHB|+ObAWTK$E+uIHu<{fhxCm0jzW|9ndeS!eTT4Hea91*#|@u$9)TO@)su8S2!qRE zRrL&%RcwFpqrcGzPi)jSFs7pTjofXfvZd{Sx_{|J3Ul?eHvKqOMGq0#C7Q6iD3j7X=yn1BM(gl1g3e}YhE^$M1| zm@KK;1`Ci9t2@!VolK`I2CbuI+?+O9*2!ZYiy;>}M$8)Za+Bu1JDal4_N3g;{f#^Z zG+)&z+$!mGJ0JpB{ol$SXHH`3D&r@^vwO%w*jV4vGZrCOK0bMjhVWbXRj~D literal 0 HcmV?d00001 diff --git a/docs/structsw_1_1_grid_column-members.html b/docs/structsw_1_1_grid_column-members.html new file mode 100644 index 00000000..b8dbd53e --- /dev/null +++ b/docs/structsw_1_1_grid_column-members.html @@ -0,0 +1,114 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    sw::GridColumn Member List
    +
    +
    + +

    This is the complete list of members for sw::GridColumn, including all inherited members.

    + + + + + + +
    GridColumn()sw::GridColumn
    GridColumn(GridRCType type, double width)sw::GridColumn
    GridColumn(double width)sw::GridColumn
    typesw::GridColumn
    widthsw::GridColumn
    +
    + + + + diff --git a/docs/structsw_1_1_grid_column.html b/docs/structsw_1_1_grid_column.html new file mode 100644 index 00000000..d7a76844 --- /dev/null +++ b/docs/structsw_1_1_grid_column.html @@ -0,0 +1,159 @@ + + + + + + + +SimpleWindow: sw::GridColumn Struct Reference + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    + +
    sw::GridColumn Struct Reference
    +
    +
    + +

    网格中的列信息 + More...

    + +

    #include <GridLayout.h>

    +
    +Inheritance diagram for sw::GridColumn:
    +
    +
    + + +sw::AutoSizeGridColumn +sw::FillRemainGridColumn +sw::FixSizeGridColumn + +
    + + + + + + + + + + + +

    +Public Member Functions

    GridColumn ()
     创建一个FillRemain的GridColumn
     
    GridColumn (GridRCType type, double width)
     初始化GridColumn
     
    GridColumn (double width)
     固定大小的列
     
    + + + + + + + +

    +Public Attributes

    +GridRCType type
     类型
     
    +double width
     宽度
     
    +

    Detailed Description

    +

    网格中的列信息

    +

    The documentation for this struct was generated from the following file: +
    +
    + + + + diff --git a/docs/structsw_1_1_grid_column.js b/docs/structsw_1_1_grid_column.js new file mode 100644 index 00000000..d0e2f0a9 --- /dev/null +++ b/docs/structsw_1_1_grid_column.js @@ -0,0 +1,8 @@ +var structsw_1_1_grid_column = +[ + [ "GridColumn", "structsw_1_1_grid_column.html#a743b954088295855d4f09a81928b6614", null ], + [ "GridColumn", "structsw_1_1_grid_column.html#a6bf1570d3cbc01f9e342a2a55ec14117", null ], + [ "GridColumn", "structsw_1_1_grid_column.html#a43365335281efdd5ae44e40d40e6fbe6", null ], + [ "type", "structsw_1_1_grid_column.html#a6291c41939a7abda14003bf799325d1b", null ], + [ "width", "structsw_1_1_grid_column.html#aa07dbbfe79ce8c33ebd7bffa430bf6eb", null ] +]; \ No newline at end of file diff --git a/docs/structsw_1_1_grid_column.png b/docs/structsw_1_1_grid_column.png new file mode 100644 index 0000000000000000000000000000000000000000..b5aa129e28f8386f89cb147beed5dfcb72cc1ce7 GIT binary patch literal 1148 zcmeAS@N?(olHy`uVBq!ia0y~yV0;Z^2XHV0Nxty46M>X;fKQ0)|NsAi%olIImi8Z7 zZegHVATj;Siw6%L0L4wuhAjcgah3%61v3EoU|`NP`w9aC3%jR_V@L(#+qthNt=5om zojzNu`+NPPmoBOgRCC$h7#@E2*vhct_RncGe^`I8wIxdAaW^n#91=+GF+aMF@mAt> zhS~%q9PqH}$4~FyH{I>#^&OFTy!?i#gZ00?T_>}93~$TDhd(akE#UTBS#jpF>*FHF zyw4xsS6-`$oAv#2v0nX3J=gW&YBL10OWtIh@OAz+j%jV!-gf`i;~A?qe4>F;*Q|$GGc(`_@$E5}+f$ zH2LB-0mGvE@RaVT-`6haeVLlgiyGdpahS1n*N@)~(?gdSk0fXwvmbSGaahTjKR5YLeE* zY|pHtn%55>oc{26eyxT5g!%vfoH+h{-Q*7Vnzkb>_RsZIj zDycd5PCPQ5qkiejuH1EVj!kZSTIw6Otba@Vnd5Vn-npJ>p0aK_`_hfqo2A`qAOEVo zWBL4R>z!S3esSlfvE`m{Uw(V(|IN?E_J8>)z3JoGxpMZ2RdIzs{RGRE<#ye>^RG0h zGBx%}^7ZGB;^I%lUQdiR~e((Un75gJ#f3@wzd53du}n)o}aDSyYKI+Lu(i9 zEB$MhH>*}${L_N={Mh%Rd0&f`@%^ltzpikvbYXei`PNfuM{G9qmdt&9|54i9Z9ju+U5{K94c}qcr@?!3oAuQ1^@paev+t|+Rph_+`fH`Dv{lhw&#zft z>$S~Kzj!rIz4}L>OXi7f<)RUHmsq{hfBm)a&QHzj;-6Nuzt=hUa^-2==fd%)pX@Q; zzU26Gt^7L2eH^~u|7>V~?>40^Cwgt!%~#uP3|&|C{fg$d@0mR(Hul6_IX%zs4|9vB zEUErrY8dO{x$4k5)s;fP$P9zVY)EIUcaSzTW>*~n%8HihdQPqBe=Xp&LpxH?nd9NQ d8qYKJ3<8r+3hSw)UjmjB44$rjF6*2UngG|xL}UN} literal 0 HcmV?d00001 diff --git a/docs/structsw_1_1_grid_layout_tag-members.html b/docs/structsw_1_1_grid_layout_tag-members.html new file mode 100644 index 00000000..3e019158 --- /dev/null +++ b/docs/structsw_1_1_grid_layout_tag-members.html @@ -0,0 +1,118 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    sw::GridLayoutTag Member List
    +
    +
    + +

    This is the complete list of members for sw::GridLayoutTag, including all inherited members.

    + + + + + + + + + + +
    columnsw::GridLayoutTag
    columnSpansw::GridLayoutTag
    GridLayoutTag()sw::GridLayoutTag
    GridLayoutTag(uint16_t row, uint16_t column, uint16_t rowSpan, uint16_t columnSpan)sw::GridLayoutTag
    GridLayoutTag(uint16_t row, uint16_t column)sw::GridLayoutTag
    GridLayoutTag(uint64_t layoutTag)sw::GridLayoutTag
    operator uint64_t() constsw::GridLayoutTag
    rowsw::GridLayoutTag
    rowSpansw::GridLayoutTag
    +
    + + + + diff --git a/docs/structsw_1_1_grid_layout_tag.html b/docs/structsw_1_1_grid_layout_tag.html new file mode 100644 index 00000000..b28f71c5 --- /dev/null +++ b/docs/structsw_1_1_grid_layout_tag.html @@ -0,0 +1,164 @@ + + + + + + + +SimpleWindow: sw::GridLayoutTag Struct Reference + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    + +
    sw::GridLayoutTag Struct Reference
    +
    +
    + +

    网格布局方式的布局标记 + More...

    + +

    #include <GridLayout.h>

    + + + + + + + + + + + + + + + + + +

    +Public Member Functions

    GridLayoutTag ()
     GridLayoutTag默认值
     
    GridLayoutTag (uint16_t row, uint16_t column, uint16_t rowSpan, uint16_t columnSpan)
     初始化GridLayoutTag
     
    GridLayoutTag (uint16_t row, uint16_t column)
     初始化GridLayoutTag
     
    GridLayoutTag (uint64_t layoutTag)
     从LayoutTag创建
     
    operator uint64_t () const
     隐式转换LayoutTag
     
    + + + + + + + + + + + + + +

    +Public Attributes

    +uint16_t row
     所在行
     
    +uint16_t column
     所在列
     
    +uint16_t rowSpan
     所跨行数
     
    +uint16_t columnSpan
     所跨列数
     
    +

    Detailed Description

    +

    网格布局方式的布局标记

    +

    The documentation for this struct was generated from the following file: +
    +
    + + + + diff --git a/docs/structsw_1_1_grid_layout_tag.js b/docs/structsw_1_1_grid_layout_tag.js new file mode 100644 index 00000000..18187670 --- /dev/null +++ b/docs/structsw_1_1_grid_layout_tag.js @@ -0,0 +1,12 @@ +var structsw_1_1_grid_layout_tag = +[ + [ "GridLayoutTag", "structsw_1_1_grid_layout_tag.html#a15aec68e838c7567c6a371ce735cb534", null ], + [ "GridLayoutTag", "structsw_1_1_grid_layout_tag.html#afeab1e02be36734f2efb210e0338df63", null ], + [ "GridLayoutTag", "structsw_1_1_grid_layout_tag.html#a9a19b89469f829af9559670d6a6f7c00", null ], + [ "GridLayoutTag", "structsw_1_1_grid_layout_tag.html#af8d1c932b43a046cc10b4a2a6d97dc29", null ], + [ "operator uint64_t", "structsw_1_1_grid_layout_tag.html#ac512b325c8e5a5e5848e01e5c93b0be0", null ], + [ "column", "structsw_1_1_grid_layout_tag.html#aa7a46315a36db1adc57e6cd12aa36713", null ], + [ "columnSpan", "structsw_1_1_grid_layout_tag.html#ad6949937cb3becc28cee7f7c79604fd8", null ], + [ "row", "structsw_1_1_grid_layout_tag.html#a8411afa319d4ad7cf2d95edd5aa3434c", null ], + [ "rowSpan", "structsw_1_1_grid_layout_tag.html#a5caf39bc6aa93afd290f09ee15f2c722", null ] +]; \ No newline at end of file diff --git a/docs/structsw_1_1_grid_row-members.html b/docs/structsw_1_1_grid_row-members.html new file mode 100644 index 00000000..51198569 --- /dev/null +++ b/docs/structsw_1_1_grid_row-members.html @@ -0,0 +1,114 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    sw::GridRow Member List
    +
    +
    + +

    This is the complete list of members for sw::GridRow, including all inherited members.

    + + + + + + +
    GridRow()sw::GridRow
    GridRow(GridRCType type, double height)sw::GridRow
    GridRow(double height)sw::GridRow
    heightsw::GridRow
    typesw::GridRow
    +
    + + + + diff --git a/docs/structsw_1_1_grid_row.html b/docs/structsw_1_1_grid_row.html new file mode 100644 index 00000000..57c044fb --- /dev/null +++ b/docs/structsw_1_1_grid_row.html @@ -0,0 +1,159 @@ + + + + + + + +SimpleWindow: sw::GridRow Struct Reference + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    + +
    sw::GridRow Struct Reference
    +
    +
    + +

    网格中的行信息 + More...

    + +

    #include <GridLayout.h>

    +
    +Inheritance diagram for sw::GridRow:
    +
    +
    + + +sw::AutoSizeGridRow +sw::FillRemainGridRow +sw::FixSizeGridRow + +
    + + + + + + + + + + + +

    +Public Member Functions

    GridRow ()
     创建一个FillRemain的GridRow
     
    GridRow (GridRCType type, double height)
     初始化GridRow
     
    GridRow (double height)
     固定大小的行
     
    + + + + + + + +

    +Public Attributes

    +GridRCType type
     类型
     
    +double height
     高度
     
    +

    Detailed Description

    +

    网格中的行信息

    +

    The documentation for this struct was generated from the following file: +
    +
    + + + + diff --git a/docs/structsw_1_1_grid_row.js b/docs/structsw_1_1_grid_row.js new file mode 100644 index 00000000..af052e61 --- /dev/null +++ b/docs/structsw_1_1_grid_row.js @@ -0,0 +1,8 @@ +var structsw_1_1_grid_row = +[ + [ "GridRow", "structsw_1_1_grid_row.html#a33599a7582800e97299f2ea8314ed4aa", null ], + [ "GridRow", "structsw_1_1_grid_row.html#a2691d3372a7aab997487e9fa3c115914", null ], + [ "GridRow", "structsw_1_1_grid_row.html#a44aaee7c8ea61e9886bab025fcd8271a", null ], + [ "height", "structsw_1_1_grid_row.html#abe71efc459295a5dbfad7bf7aaff4d4e", null ], + [ "type", "structsw_1_1_grid_row.html#a6d8ada10faf765f507353052361bfacf", null ] +]; \ No newline at end of file diff --git a/docs/structsw_1_1_grid_row.png b/docs/structsw_1_1_grid_row.png new file mode 100644 index 0000000000000000000000000000000000000000..bd2e36270e2f4cff22fdee0b076351a01c9446c0 GIT binary patch literal 1131 zcmeAS@N?(olHy`uVBq!ia0y~yVB8912XHV0$(3EwSwKoUz$e7@|Ns9$=8HF9OZyKk zw=mEwkeGhv#e)YAfa0cS!3f*F8(FfeDDeT9L6`J1PUV@L(#+qrKiEmja= zz3n{p=x_Uvet%e8Rg7oG-n82MO-->&ef!5x;twi$4jb68FfbRK7D(>tKX8rV)&|pt zd&u}lk^nvD>MXm9@djGZkX^%Cz%&V7w{rzQ?MDm)XY=&HusM|g%);ISw z>#os1y>DB8T32$<#vYJycND#^ZQ`4;|Ay3o{EI2M*^`P-@7_AC_RP92!(-ezybF4t z)xOf=VAJBRm)*{^;sF!mmV|5uQ5miUP24OOn$|Lg6lgSX=?OS+Z(|EMxR60> zhXaG|4Jij!f{Gv3^NBif*r)L*w#YvYP;9xt z&Fufa*a;>tT&%48xBcBef8zgjnjhsdX8*kwWq4uf*00|tFV;CX@A2D&>(_1_s@>(` znq7JOrrYUj(>zX2o{?h9_eR%xw#LceEoFRDd?vroURt^Nz|fBnjtsAu)$ zW>n_9!;5ZNUD_us&NTH)_*zkB(fM1Ka-7_C_uKEszv}dF__nWUxxJ=#iwA4=?d1L6 zA75HLS4@$+WXB=_jo&lwK40Vz-nc~3va3Jb^26+dTG#IJeeYC?eUp9MZI)@1cJ^|f z>gXL=H=noFZd^Z=+0(gbj_%Yowdyy{?kkhcoB8Fk>#kQ5T77eNAGi8i^l0Bfo%h$) zmfM;7PG`BLw|{FGrwZ@M!W-(7YLj<=p7rBwLb>cGqdQ^$&Wo+Qp{V*YJ}}p9(ii=T z3=MIQNqQS0ad)L@t!EHx^yDR6z)01-F-s*B8mVB3*5y&$iY@6AL^N6i<{eaa{>vDy XzG?2yk6~TFVu8Wa)z4*}Q$iB}$Ic($ literal 0 HcmV?d00001 diff --git a/docs/structsw_1_1_key_down_event_args-members.html b/docs/structsw_1_1_key_down_event_args-members.html new file mode 100644 index 00000000..ff8580a8 --- /dev/null +++ b/docs/structsw_1_1_key_down_event_args-members.html @@ -0,0 +1,117 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    sw::KeyDownEventArgs Member List
    +
    +
    + +

    This is the complete list of members for sw::KeyDownEventArgs, including all inherited members.

    + + + + + + + + + +
    EventTypesw::RoutedEventArgsOfType< UIElement_KeyDown >static
    eventTypesw::RoutedEventArgs
    flags (defined in sw::KeyDownEventArgs)sw::KeyDownEventArgs
    handledsw::RoutedEventArgs
    handledMsgsw::RoutedEventArgs
    key (defined in sw::KeyDownEventArgs)sw::KeyDownEventArgs
    KeyDownEventArgs(VirtualKey key, KeyFlags flags) (defined in sw::KeyDownEventArgs)sw::KeyDownEventArgsinline
    RoutedEventArgs(RoutedEventType eventType)sw::RoutedEventArgs
    +
    + + + + diff --git a/docs/structsw_1_1_key_down_event_args.html b/docs/structsw_1_1_key_down_event_args.html new file mode 100644 index 00000000..cb253150 --- /dev/null +++ b/docs/structsw_1_1_key_down_event_args.html @@ -0,0 +1,173 @@ + + + + + + + +SimpleWindow: sw::KeyDownEventArgs Struct Reference + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    + +
    sw::KeyDownEventArgs Struct Reference
    +
    +
    + +

    键盘按键按下事件参数类型 + More...

    + +

    #include <RoutedEventArgs.h>

    +
    +Inheritance diagram for sw::KeyDownEventArgs:
    +
    +
    + + +sw::RoutedEventArgsOfType< UIElement_KeyDown > +sw::RoutedEventArgs + +
    + + + + + + + + +

    +Public Member Functions

    KeyDownEventArgs (VirtualKey key, KeyFlags flags)
     
    - Public Member Functions inherited from sw::RoutedEventArgs
    RoutedEventArgs (RoutedEventType eventType)
     RoutedEventArgs构造函数
     
    + + + + + + + + + + + + + + + +

    +Public Attributes

    +VirtualKey key
     
    +KeyFlags flags
     
    - Public Attributes inherited from sw::RoutedEventArgs
    +RoutedEventType eventType
     事件类型
     
    +bool handled = false
     事件是否已被处理,若将此字段设为true,则事件不会继续往上传递
     
    +bool handledMsg = false
     表示是否已处理事件所对应的Windows消息,对于部分消息将字段设为true可取消对DefaultWndProc的调用,若当前事件无对应消息则该字段无意义
     
    + + + + + +

    +Additional Inherited Members

    - Static Public Attributes inherited from sw::RoutedEventArgsOfType< UIElement_KeyDown >
    +static constexpr RoutedEventType EventType
     路由事件的类型,RegisterRoutedEvent模板函数使用此字段注册事件
     
    +

    Detailed Description

    +

    键盘按键按下事件参数类型

    +

    The documentation for this struct was generated from the following file: +
    +
    + + + + diff --git a/docs/structsw_1_1_key_down_event_args.png b/docs/structsw_1_1_key_down_event_args.png new file mode 100644 index 0000000000000000000000000000000000000000..6561ac1662346b71c3a57fab03fdcb33e67da6ae GIT binary patch literal 1549 zcmd5+?K_hT7@yP2s2r+`%L(CXk#jo2LS*Wwv^lopWh`gJj?*GcdfIBusv}p9%FDHt znNc5*WG2LVkh~<(^KhXodqHWBOgKpMQrlVQ4>+IBhjV|p@89pf?{B}~eP;!ej+$=R zwgH7gnG*1aLs2LrZv+0*c#R=fjwF>Eigj=h`G{VxH^BEF7MZ#2<@;QnPg@C~_hVyY zhQ0?JQEHf(oDC&~p$z<=@cKsd5`|hGZAD zn1u(aQMi@&5=`{-3255yV?2qMb4<2$qfuJGSqqQPxo3krOD&O6nN^cs3?;`6^`D6K zlx~XA`P>L4tT>F&7?#14&TZry`PCX}f0XXjRY{@;UqaD30@;GQy*M|D45Yn|mqZ8g zT-3?KJ_Xixo@iqAeav_-Ty7b5s!qGTQe@~i9bQ$7-R=AG$y^;UrT36N$t;~`Gd0ZY^55(Z9RJSGUCP--(8R;GPdiMQ zolzH47aP?zh^*#8^IP>7G;judil)kRKDGLjKZfg&cB$xV_3{jld@G@V1_bR`Qa zc9hA>#GxWkt`kc`4>CNC;Hc-dz z9Cz!o67x^&3CpRg=V%@unjtT6fy!$XH|e0=Cn!71%|`Pa*cvdc_`pd_aJcQGb*E-d zs45)`ORtvr2v%QP?Ji4H_w4`brPbT7EZ#LpUHBq@Doz=a0`ph4DZ-0%HuWHrQBU>5 ztB|f(xtkLqC9WDa)5e(cO6}U}`_YhXbH`lBMY(dz?eY69T))i#r(8hxWA+3N)bEon z2R8%`*g5@g9e6jPFg>C0F5gusTt}yu8v}H@;Y@_WOxKfi!~qft+2@-;b`z}+j1&rO zADqQv>umF(0wR+o_O>mQDpt2zQ{gQV zr&(_Px!C%oDYA0V6Wf&jqK@e*?F@(rsh!IL-MPe}k+>QA`ez43RXb^w^SGhMTwtnn z4Zxl8OjSza>8y1E8Q3C1TH`gNdGWaM&khHhOfEI{Rt*nq*wr6y(acL)K9eHpe%9i4 zE_z~C8-cBpMLpE3a~D$qO48^M8e6w<=^>cN>Z?ehvn=lP85W-43$WM)a|D8XGrX}_ oGg>bMb*PkkiD9n9!LvD+yomTNEncz7@VHTgBc#I;|Jd}u0fw&zivR!s literal 0 HcmV?d00001 diff --git a/docs/structsw_1_1_key_flags-members.html b/docs/structsw_1_1_key_flags-members.html new file mode 100644 index 00000000..b61307dd --- /dev/null +++ b/docs/structsw_1_1_key_flags-members.html @@ -0,0 +1,116 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    sw::KeyFlags Member List
    +
    +
    + +

    This is the complete list of members for sw::KeyFlags, including all inherited members.

    + + + + + + + + +
    contextCode (defined in sw::KeyFlags)sw::KeyFlags
    isExtendedKey (defined in sw::KeyFlags)sw::KeyFlags
    KeyFlags(LPARAM lParam) (defined in sw::KeyFlags)sw::KeyFlags
    previousKeyState (defined in sw::KeyFlags)sw::KeyFlags
    repeatCount (defined in sw::KeyFlags)sw::KeyFlags
    scanCode (defined in sw::KeyFlags)sw::KeyFlags
    transitionState (defined in sw::KeyFlags)sw::KeyFlags
    +
    + + + + diff --git a/docs/structsw_1_1_key_flags.html b/docs/structsw_1_1_key_flags.html new file mode 100644 index 00000000..85d07bd8 --- /dev/null +++ b/docs/structsw_1_1_key_flags.html @@ -0,0 +1,149 @@ + + + + + + + +SimpleWindow: sw::KeyFlags Struct Reference + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    + +
    sw::KeyFlags Struct Reference
    +
    +
    + +

    https://learn.microsoft.com/en-us/windows/win32/inputdev/about-keyboard-input#keystroke-message-flags + More...

    + +

    #include <Keys.h>

    + + + + +

    +Public Member Functions

    KeyFlags (LPARAM lParam)
     
    + + + + + + + + + + + + + +

    +Public Attributes

    +uint16_t repeatCount
     
    +uint8_t scanCode
     
    +bool isExtendedKey
     
    +bool contextCode
     
    +bool previousKeyState
     
    +bool transitionState
     
    +

    Detailed Description

    +
    The documentation for this struct was generated from the following file:
      +
    • D:/code/GitHub/sw/sw/inc/Keys.h
    • +
    +
    +
    + + + + diff --git a/docs/structsw_1_1_key_up_event_args-members.html b/docs/structsw_1_1_key_up_event_args-members.html new file mode 100644 index 00000000..2e71ed7a --- /dev/null +++ b/docs/structsw_1_1_key_up_event_args-members.html @@ -0,0 +1,117 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    sw::KeyUpEventArgs Member List
    +
    +
    + +

    This is the complete list of members for sw::KeyUpEventArgs, including all inherited members.

    + + + + + + + + + +
    EventTypesw::RoutedEventArgsOfType< UIElement_KeyUp >static
    eventTypesw::RoutedEventArgs
    flags (defined in sw::KeyUpEventArgs)sw::KeyUpEventArgs
    handledsw::RoutedEventArgs
    handledMsgsw::RoutedEventArgs
    key (defined in sw::KeyUpEventArgs)sw::KeyUpEventArgs
    KeyUpEventArgs(VirtualKey key, KeyFlags flags) (defined in sw::KeyUpEventArgs)sw::KeyUpEventArgsinline
    RoutedEventArgs(RoutedEventType eventType)sw::RoutedEventArgs
    +
    + + + + diff --git a/docs/structsw_1_1_key_up_event_args.html b/docs/structsw_1_1_key_up_event_args.html new file mode 100644 index 00000000..6096e52e --- /dev/null +++ b/docs/structsw_1_1_key_up_event_args.html @@ -0,0 +1,173 @@ + + + + + + + +SimpleWindow: sw::KeyUpEventArgs Struct Reference + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    + +
    sw::KeyUpEventArgs Struct Reference
    +
    +
    + +

    键盘按键抬起事件参数类型 + More...

    + +

    #include <RoutedEventArgs.h>

    +
    +Inheritance diagram for sw::KeyUpEventArgs:
    +
    +
    + + +sw::RoutedEventArgsOfType< UIElement_KeyUp > +sw::RoutedEventArgs + +
    + + + + + + + + +

    +Public Member Functions

    KeyUpEventArgs (VirtualKey key, KeyFlags flags)
     
    - Public Member Functions inherited from sw::RoutedEventArgs
    RoutedEventArgs (RoutedEventType eventType)
     RoutedEventArgs构造函数
     
    + + + + + + + + + + + + + + + +

    +Public Attributes

    +VirtualKey key
     
    +KeyFlags flags
     
    - Public Attributes inherited from sw::RoutedEventArgs
    +RoutedEventType eventType
     事件类型
     
    +bool handled = false
     事件是否已被处理,若将此字段设为true,则事件不会继续往上传递
     
    +bool handledMsg = false
     表示是否已处理事件所对应的Windows消息,对于部分消息将字段设为true可取消对DefaultWndProc的调用,若当前事件无对应消息则该字段无意义
     
    + + + + + +

    +Additional Inherited Members

    - Static Public Attributes inherited from sw::RoutedEventArgsOfType< UIElement_KeyUp >
    +static constexpr RoutedEventType EventType
     路由事件的类型,RegisterRoutedEvent模板函数使用此字段注册事件
     
    +

    Detailed Description

    +

    键盘按键抬起事件参数类型

    +

    The documentation for this struct was generated from the following file: +
    +
    + + + + diff --git a/docs/structsw_1_1_key_up_event_args.png b/docs/structsw_1_1_key_up_event_args.png new file mode 100644 index 0000000000000000000000000000000000000000..68c8f26bb8f8b7ef9040ad800e908452a3110036 GIT binary patch literal 1507 zcmb`HdsNbA7{`CQc`8qo8rhO=Gn&#uJtIXeG#jKpOcYQnOk8Vff|m?|<|Qpxq-ZrX z6U;I~#Ta&RXiA`Vv8^B%{m`j-$uraNQfZW?gVD~~I%og({_(!g_j&$#-sk&y-@GtV zAk5au761Sk7=)()fR(EyK0f~w%f9#8u~f@}2-_Y`Fq_SmaAeHLK6$g++XJ=#voo5J zfq?-_-cuVXvD6l%QAkw4qW@l4>oN!cY?48IK=?tc@$#PJQQw6&cZ0XIn$3enw@c7O zwH=P#op@#BcAk8+R6<8p7E6jL4=w~zoWXdBD`{}23zCHig)u8BaYja#*)-tZkL=g0RW>dkCZ*RPTPA28b$S&e;C(n%t!b~gj znd1aW6#!jtaB@%y(RG|vwRiep)54mD*cj@;P-=>ccl{si#SOXb%UVN2RO;gAd6P%0 zWn{l*5SH7aG@~|2o;*xSKJ9xppp9Ezaf`Kwa5&g~0r!IFl2sYoAKNLxL(n z+A{NYOQrmO7vGFOO(9Znk#CuVM76iCY{Y8OVq`dZS5RYCD<>abzPMEJDko&@RB4HZeSR~w3-%tWjO-`YRM z&#N;Xk*aA#3Xkt*Njx1u1RA-f6H-;U0GeyCSoB60GR4D#y1PGq_`Kfv_`)uNhyqcS zXRTihPg@584?r@|nVD6I$_akQ+~QCRbNLp$oIO7}ULSxvT_mnb5D5}QRjg8t#sO1@ zp%e>u<-lX(9M=$pLYp9RT%1*(o58c!Bc99ki`Qs4rO%sZ|1{-GQ}5A>g1K) zByxL&^jpKm`|=%7;>k(o1o!pT@%^4q{-wgR z()6xXwO*sR{&vk6uW=XD^pIUb%UFbuSjQ@KLcqjL(v2A9(H?4wo#NQmh=<8d{VZ)w zKot75TyZi)g`O4ZHg)`zBlWY74)Y4}!y41kxdM84472-+kG-+Wlkuxf%(nWQdbrHz zOh;~#oILCD9d}ixsU|*-Q&?v1;WuV2Yj(RAYL?%be(Z%&9`1M4YfY*<&<2a(_lM#z rb&LO-!M|e}_?#iCLJ6x9e24t?F4%-#Q#r%(9RnbNgs + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    sw::ListViewCheckStateChangedEventArgs Member List
    +
    + +
    + + + + diff --git a/docs/structsw_1_1_list_view_check_state_changed_event_args.html b/docs/structsw_1_1_list_view_check_state_changed_event_args.html new file mode 100644 index 00000000..87cadc53 --- /dev/null +++ b/docs/structsw_1_1_list_view_check_state_changed_event_args.html @@ -0,0 +1,170 @@ + + + + + + + +SimpleWindow: sw::ListViewCheckStateChangedEventArgs Struct Reference + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    + +
    sw::ListViewCheckStateChangedEventArgs Struct Reference
    +
    +
    + +

    列表视图某个复选框选中状态改变的事件参数类型 + More...

    + +

    #include <RoutedEventArgs.h>

    +
    +Inheritance diagram for sw::ListViewCheckStateChangedEventArgs:
    +
    +
    + + +sw::RoutedEventArgsOfType< ListView_CheckStateChanged > +sw::RoutedEventArgs + +
    + + + + + + + + +

    +Public Member Functions

    ListViewCheckStateChangedEventArgs (int index)
     
    - Public Member Functions inherited from sw::RoutedEventArgs
    RoutedEventArgs (RoutedEventType eventType)
     RoutedEventArgs构造函数
     
    + + + + + + + + + + + + + +

    +Public Attributes

    +int index
     
    - Public Attributes inherited from sw::RoutedEventArgs
    +RoutedEventType eventType
     事件类型
     
    +bool handled = false
     事件是否已被处理,若将此字段设为true,则事件不会继续往上传递
     
    +bool handledMsg = false
     表示是否已处理事件所对应的Windows消息,对于部分消息将字段设为true可取消对DefaultWndProc的调用,若当前事件无对应消息则该字段无意义
     
    + + + + + +

    +Additional Inherited Members

    - Static Public Attributes inherited from sw::RoutedEventArgsOfType< ListView_CheckStateChanged >
    +static constexpr RoutedEventType EventType
     路由事件的类型,RegisterRoutedEvent模板函数使用此字段注册事件
     
    +

    Detailed Description

    +

    列表视图某个复选框选中状态改变的事件参数类型

    +

    The documentation for this struct was generated from the following file: +
    +
    + + + + diff --git a/docs/structsw_1_1_list_view_check_state_changed_event_args.png b/docs/structsw_1_1_list_view_check_state_changed_event_args.png new file mode 100644 index 0000000000000000000000000000000000000000..553732e21fba0dc531e34c6691643f7a909299b1 GIT binary patch literal 1792 zcmd5-{X5fZ7@s%_sZJ7CyJ{6G9eLaFk`-~heIp7bA)>yEWnRu^vNoOG#YILTu};>J z#A4Pm$95&^T4>m24PS?xyv;`PQf79(bzNQO4>-S^=ZELHpXa`>=Xvh?^SSRk^KgKV zq5dX)1Oj0Q_<9B*5L$RxzOhOho~Ji{yaO-D!~P*&8jS`P$0p~9xy=>Mww6hzh3#X5 zgM;w7L&q@&tkWX|1q37D{kP$?qC|{9=w<<)?jdPfic&d#*k!fuYx>1YQ<|2YnKtV! zWD40I{#i**B49zgu-=VfljxhZj*^xJYfl?-WUt22g@xOS3n` zLj&o?{QE_#xjw&;)90zU>Y{!7a)P8o7?b=Hfp=pSbw&Q`*>}tqrr+&_hNcHv8E(6< zT#CCgp2IXX;j&T_$$f=6={PdC?01|)Tw;A|OvZ6ZI;1Kk+3cWgXsHqkoVpeA+vZJI zI09w$v~Rb;`HGnBfX$At{#J(5ntdVK2JeYG3|lbh~@1lgx&$2O61m?xw*53 z>pUlPZ@dRF6z!H%qHU1V0aMr{TWq+_dqQ`W8BzO69#;##@4u>-jzSL$ zXazwBbv6J8&BsT9?>`LUm|xBN3K|Y-Q`61&E|vB%ecqW$z3KZSk`HD4h28-Qx2LNTOj>IDnGCUK`EVS`%`&9hyEv z24*5Aczg~;Mvf*X|0yYX?(_HED;$2uv`_oSNNo~?`@C3nsGvGDF+(wEiYtR&n=1OR zBh_HiW>i*{UnTC`F>*I=IesHwLlaZiK=PT#BA2w%2D&8GVPb$EG1gOv6I(HbHNeU~ zgBk8?yBxX+SLG#^OvT=NlG@7)h_xNAP!JcG&wKu52P=?3+PoUs&vq#pWmsja8%g7- zP{@MqRnburMHOQ|<{J5GkkfNh@N!sZ7PIU@!c3Ic{q2!|4stTG+$ zU5CJ?lM7vBatI#t*wUr2l@S=ixeUFG(_a+N$dtQZoDOs}tM_7J-f&y}S$&&P)K-zC zY%(XAd4UG8SZ5xPcafEBy7-biDe5+aJew-eR6?cdWIGdCxz`+83N>Y&S23kZb=qc8 ziZfmwM(IDB^e!>-<dPA><%nG#gJk}{rgU4Km7vbbPsa)bGmB+#@#$!Xa|Hz9Ttc&KgE+-urf%hA z`KPhP)Y_9M6R?M>yq?+@-4llD){SC2p+EIwKYqr7jzdLN#j@ZpM<6^U)Gw{ym14Z} z8-3AeAvQ0Z=0mx!DgLB#*$=o^37I6uxjELe*^IZn(kNo5Ius*X zOiDJv$T6m9u)o2x6&~`kgztEPEBB|c8@$d^3oXuH7&p16f`Jbb(KBrJJE4x zWSAIgOkFv(J7>hY^Y*odK^d|aN!T-AE;eyTvl6GX%TxNMYjoEZPZ6ZIxgNb0Y$N-& zIMiprRd_9_DR)1qac1d>6I!J&tb~^D-;*leEbO6sJRMgKw|L#DMc{ z=bN|F-;Wy-R4!O>o`2rMWGWvbx7wjqK4qP)7-J(e>#qY7j%WijVo5Pvh`s~ZPq1mL fGl%ijT3Tscl%8_>M!+Q8s}O)!fM< + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    sw::ListViewColumn Member List
    +
    +
    + +

    This is the complete list of members for sw::ListViewColumn, including all inherited members.

    + + + + + + + + +
    alignmentsw::ListViewColumn
    headersw::ListViewColumn
    ListViewColumn(const std::wstring &header) (defined in sw::ListViewColumn)sw::ListViewColumn
    ListViewColumn(const std::wstring &header, double width) (defined in sw::ListViewColumn)sw::ListViewColumn
    ListViewColumn(const LVCOLUMNW &lvc) (defined in sw::ListViewColumn)sw::ListViewColumn
    operator LVCOLUMNW() const (defined in sw::ListViewColumn)sw::ListViewColumn
    widthsw::ListViewColumn
    +
    + + + + diff --git a/docs/structsw_1_1_list_view_column.html b/docs/structsw_1_1_list_view_column.html new file mode 100644 index 00000000..e13d6415 --- /dev/null +++ b/docs/structsw_1_1_list_view_column.html @@ -0,0 +1,152 @@ + + + + + + + +SimpleWindow: sw::ListViewColumn Struct Reference + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    + +
    sw::ListViewColumn Struct Reference
    +
    +
    + +

    列表视图的列信息 + More...

    + +

    #include <ListView.h>

    + + + + + + + + + + +

    +Public Member Functions

    ListViewColumn (const std::wstring &header)
     
    ListViewColumn (const std::wstring &header, double width)
     
    ListViewColumn (const LVCOLUMNW &lvc)
     
    operator LVCOLUMNW () const
     
    + + + + + + + + + + +

    +Public Attributes

    +std::wstring header
     列标题
     
    +double width
     列宽度
     
    +ListViewColumnAlignment alignment = ListViewColumnAlignment::Left
     对齐方式
     
    +

    Detailed Description

    +

    列表视图的列信息

    +

    The documentation for this struct was generated from the following file: +
    +
    + + + + diff --git a/docs/structsw_1_1_list_view_column.js b/docs/structsw_1_1_list_view_column.js new file mode 100644 index 00000000..975d6402 --- /dev/null +++ b/docs/structsw_1_1_list_view_column.js @@ -0,0 +1,6 @@ +var structsw_1_1_list_view_column = +[ + [ "alignment", "structsw_1_1_list_view_column.html#a073e675567add518aa85b5356d472cf9", null ], + [ "header", "structsw_1_1_list_view_column.html#a2fd382151fa269ec5f5042232cfb84f8", null ], + [ "width", "structsw_1_1_list_view_column.html#abd8ec9f51310be92ec1ff113314e5257", null ] +]; \ No newline at end of file diff --git a/docs/structsw_1_1_list_view_header_clicked_event_args-members.html b/docs/structsw_1_1_list_view_header_clicked_event_args-members.html new file mode 100644 index 00000000..992f98bc --- /dev/null +++ b/docs/structsw_1_1_list_view_header_clicked_event_args-members.html @@ -0,0 +1,115 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    sw::ListViewHeaderClickedEventArgs Member List
    +
    +
    + +

    This is the complete list of members for sw::ListViewHeaderClickedEventArgs, including all inherited members.

    + + + + + + + +
    eventTypesw::RoutedEventArgs
    handledsw::RoutedEventArgs
    handledMsgsw::RoutedEventArgs
    index (defined in sw::ListViewHeaderClickedEventArgs)sw::ListViewHeaderClickedEventArgs
    ListViewHeaderClickedEventArgs(RoutedEventType eventType, int index) (defined in sw::ListViewHeaderClickedEventArgs)sw::ListViewHeaderClickedEventArgsinline
    RoutedEventArgs(RoutedEventType eventType)sw::RoutedEventArgs
    +
    + + + + diff --git a/docs/structsw_1_1_list_view_header_clicked_event_args.html b/docs/structsw_1_1_list_view_header_clicked_event_args.html new file mode 100644 index 00000000..7f7475ec --- /dev/null +++ b/docs/structsw_1_1_list_view_header_clicked_event_args.html @@ -0,0 +1,161 @@ + + + + + + + +SimpleWindow: sw::ListViewHeaderClickedEventArgs Struct Reference + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    + +
    sw::ListViewHeaderClickedEventArgs Struct Reference
    +
    +
    + +

    列表视图的列标题单击与双击事件参数类型 + More...

    + +

    #include <RoutedEventArgs.h>

    +
    +Inheritance diagram for sw::ListViewHeaderClickedEventArgs:
    +
    +
    + + +sw::RoutedEventArgs + +
    + + + + + + + + +

    +Public Member Functions

    ListViewHeaderClickedEventArgs (RoutedEventType eventType, int index)
     
    - Public Member Functions inherited from sw::RoutedEventArgs
    RoutedEventArgs (RoutedEventType eventType)
     RoutedEventArgs构造函数
     
    + + + + + + + + + + + + + +

    +Public Attributes

    +int index
     
    - Public Attributes inherited from sw::RoutedEventArgs
    +RoutedEventType eventType
     事件类型
     
    +bool handled = false
     事件是否已被处理,若将此字段设为true,则事件不会继续往上传递
     
    +bool handledMsg = false
     表示是否已处理事件所对应的Windows消息,对于部分消息将字段设为true可取消对DefaultWndProc的调用,若当前事件无对应消息则该字段无意义
     
    +

    Detailed Description

    +

    列表视图的列标题单击与双击事件参数类型

    +

    The documentation for this struct was generated from the following file: +
    +
    + + + + diff --git a/docs/structsw_1_1_list_view_header_clicked_event_args.png b/docs/structsw_1_1_list_view_header_clicked_event_args.png new file mode 100644 index 0000000000000000000000000000000000000000..cebc57ed22dbc1f05b00b1663692ce9d334ea0f9 GIT binary patch literal 839 zcmeAS@N?(olHy`uVBq!ia0vp^_klQogBeJ!I~X7gq@)9ULR|m<{|{uoc=NTi|Il&^ z1I+@7>1SR%c<=xyZhAIs2~du+B*-tA0mugfbEer>7#Nr?dAc};R4~4s`>^k^0#8eO zXUNaL^M71wX<+v#IT?1BweVHUE8hI=PK}(_*xIVne)Wm+$vV@Y9-HE8C+Y9` zKXHl2`!)NwZLm7$K7Z|`C$_ay*3XPO>pm&HtGb5ggXaC+4DVI=IPb^Ji@jaC=K8Pw zkG%~It=Q#is(<`@z2%Wg<+}Eo=vjP9;%ddu^~*y)%f<^yeV^1W$7uI_@|&gq^?ua+ z4^1?kpXWBI{Ht(%SWT&yJEPZvoc+g=X4!9g82)#r?yIzeOYNnXp5U8))W&J+!ToQ} z7wy{eW6R2}f5F0WAO1T1cip{0y8CBk&*`kXuKy*s&uc53 znfuO}KUZh?vgRZ^!{4k=j1EBc3>Vg`$uoReO^i@YfMScm27xnY+O9q^HhvvG`TUtR z@v)zeZWY-S_vZS`LuWpzubnw_<*M25Z-(WCu)i&gUNSRsWjFKt4<{?dqwhVqT{k^{ z<;nE4vSm9?yZSt<-oNCB+hyi;b+?NogYTTE`8ajC{?3=iR`b3eowB?}%g*TO<8ycO zmgY>&zwH%tcJ^}lL(f)n*+upr-^HVSe7VEjJMLo9*M2Ukp0(@o@Z7%5XPbVXaFS87yZry*>V{2!rMff! zWjr={=3UZJ<{laS@U;5wIKg;v{oBtkKG5d6|43VW_OYVIOZ7(|p8cn7Fv~jrd%U5& zv|Ij{`LjMWyZcP&V$5IW?;P8o_A)B~Q#S*Hr>mdK II;Vst02W@gkpKVy literal 0 HcmV?d00001 diff --git a/docs/structsw_1_1_list_view_item_clicked_event_args-members.html b/docs/structsw_1_1_list_view_item_clicked_event_args-members.html new file mode 100644 index 00000000..47d9f46b --- /dev/null +++ b/docs/structsw_1_1_list_view_item_clicked_event_args-members.html @@ -0,0 +1,116 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    sw::ListViewItemClickedEventArgs Member List
    +
    +
    + +

    This is the complete list of members for sw::ListViewItemClickedEventArgs, including all inherited members.

    + + + + + + + + +
    col (defined in sw::ListViewItemClickedEventArgs)sw::ListViewItemClickedEventArgs
    eventTypesw::RoutedEventArgs
    handledsw::RoutedEventArgs
    handledMsgsw::RoutedEventArgs
    ListViewItemClickedEventArgs(RoutedEventType eventType, int row, int col) (defined in sw::ListViewItemClickedEventArgs)sw::ListViewItemClickedEventArgsinline
    RoutedEventArgs(RoutedEventType eventType)sw::RoutedEventArgs
    row (defined in sw::ListViewItemClickedEventArgs)sw::ListViewItemClickedEventArgs
    +
    + + + + diff --git a/docs/structsw_1_1_list_view_item_clicked_event_args.html b/docs/structsw_1_1_list_view_item_clicked_event_args.html new file mode 100644 index 00000000..1a4ad766 --- /dev/null +++ b/docs/structsw_1_1_list_view_item_clicked_event_args.html @@ -0,0 +1,164 @@ + + + + + + + +SimpleWindow: sw::ListViewItemClickedEventArgs Struct Reference + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    + +
    sw::ListViewItemClickedEventArgs Struct Reference
    +
    +
    + +

    列表视图项单击与双击事件参数类型 + More...

    + +

    #include <RoutedEventArgs.h>

    +
    +Inheritance diagram for sw::ListViewItemClickedEventArgs:
    +
    +
    + + +sw::RoutedEventArgs + +
    + + + + + + + + +

    +Public Member Functions

    ListViewItemClickedEventArgs (RoutedEventType eventType, int row, int col)
     
    - Public Member Functions inherited from sw::RoutedEventArgs
    RoutedEventArgs (RoutedEventType eventType)
     RoutedEventArgs构造函数
     
    + + + + + + + + + + + + + + + +

    +Public Attributes

    +int row
     
    +int col
     
    - Public Attributes inherited from sw::RoutedEventArgs
    +RoutedEventType eventType
     事件类型
     
    +bool handled = false
     事件是否已被处理,若将此字段设为true,则事件不会继续往上传递
     
    +bool handledMsg = false
     表示是否已处理事件所对应的Windows消息,对于部分消息将字段设为true可取消对DefaultWndProc的调用,若当前事件无对应消息则该字段无意义
     
    +

    Detailed Description

    +

    列表视图项单击与双击事件参数类型

    +

    The documentation for this struct was generated from the following file: +
    +
    + + + + diff --git a/docs/structsw_1_1_list_view_item_clicked_event_args.png b/docs/structsw_1_1_list_view_item_clicked_event_args.png new file mode 100644 index 0000000000000000000000000000000000000000..457553ec444b7adfe1be7300f45b40195b712299 GIT binary patch literal 819 zcmeAS@N?(olHy`uVBq!ia0vp^r-3+tgBeIRv=lZ1Dd_;85ZC|z{{xvX-h3_XKeXJ! zK(jz%`k5CG9y|bwo1P6@0+iz{3GxeO0P?}WoN4wI1_q{mo-U3d6^w7^CicBn;Av^^ z+%oI;{2xm>8FLh}wyf9gdXct^)1r<4*cbh6xwq8>%_hxp>TXpzemP0;{MXxo=`(lrWmG(*U-wb|lwe=0-hr<4ePvl>ITz__f z&b4DIKik~yPJiJ(sV17ax<^GmbK`_36;V1Wmh;M{<=)U@%XNo1tgn)TNwccDm(I)iy_E0t#b>`~ z=}fv3e5Ocva%3F0P`LiyfH$WvzDRqT}?0o&LQ0(fU4NqL^-dssr9=T!0!#n#@vO{&aK22{r z^EC2O*00Fp8nqZ%VQCpNoTgg h1IpT)L-EYQ`fszAdzPKGQUE4z22WQ%mvv4FO#miMlBoay literal 0 HcmV?d00001 diff --git a/docs/structsw_1_1_mouse_button_down_event_args-members.html b/docs/structsw_1_1_mouse_button_down_event_args-members.html new file mode 100644 index 00000000..293e6290 --- /dev/null +++ b/docs/structsw_1_1_mouse_button_down_event_args-members.html @@ -0,0 +1,118 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    sw::MouseButtonDownEventArgs Member List
    +
    +
    + +

    This is the complete list of members for sw::MouseButtonDownEventArgs, including all inherited members.

    + + + + + + + + + + +
    EventTypesw::RoutedEventArgsOfType< UIElement_MouseButtonDown >static
    eventTypesw::RoutedEventArgs
    handledsw::RoutedEventArgs
    handledMsgsw::RoutedEventArgs
    key (defined in sw::MouseButtonDownEventArgs)sw::MouseButtonDownEventArgs
    keyState (defined in sw::MouseButtonDownEventArgs)sw::MouseButtonDownEventArgs
    MouseButtonDownEventArgs(MouseKey key, Point mousePosition, MouseKey keyState) (defined in sw::MouseButtonDownEventArgs)sw::MouseButtonDownEventArgsinline
    mousePosition (defined in sw::MouseButtonDownEventArgs)sw::MouseButtonDownEventArgs
    RoutedEventArgs(RoutedEventType eventType)sw::RoutedEventArgs
    +
    + + + + diff --git a/docs/structsw_1_1_mouse_button_down_event_args.html b/docs/structsw_1_1_mouse_button_down_event_args.html new file mode 100644 index 00000000..c368d7fe --- /dev/null +++ b/docs/structsw_1_1_mouse_button_down_event_args.html @@ -0,0 +1,176 @@ + + + + + + + +SimpleWindow: sw::MouseButtonDownEventArgs Struct Reference + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    + +
    sw::MouseButtonDownEventArgs Struct Reference
    +
    +
    + +

    鼠标按键按下事件参数类型 + More...

    + +

    #include <RoutedEventArgs.h>

    +
    +Inheritance diagram for sw::MouseButtonDownEventArgs:
    +
    +
    + + +sw::RoutedEventArgsOfType< UIElement_MouseButtonDown > +sw::RoutedEventArgs + +
    + + + + + + + + +

    +Public Member Functions

    MouseButtonDownEventArgs (MouseKey key, Point mousePosition, MouseKey keyState)
     
    - Public Member Functions inherited from sw::RoutedEventArgs
    RoutedEventArgs (RoutedEventType eventType)
     RoutedEventArgs构造函数
     
    + + + + + + + + + + + + + + + + + +

    +Public Attributes

    +MouseKey key
     
    +Point mousePosition
     
    +MouseKey keyState
     
    - Public Attributes inherited from sw::RoutedEventArgs
    +RoutedEventType eventType
     事件类型
     
    +bool handled = false
     事件是否已被处理,若将此字段设为true,则事件不会继续往上传递
     
    +bool handledMsg = false
     表示是否已处理事件所对应的Windows消息,对于部分消息将字段设为true可取消对DefaultWndProc的调用,若当前事件无对应消息则该字段无意义
     
    + + + + + +

    +Additional Inherited Members

    - Static Public Attributes inherited from sw::RoutedEventArgsOfType< UIElement_MouseButtonDown >
    +static constexpr RoutedEventType EventType
     路由事件的类型,RegisterRoutedEvent模板函数使用此字段注册事件
     
    +

    Detailed Description

    +

    鼠标按键按下事件参数类型

    +

    The documentation for this struct was generated from the following file: +
    +
    + + + + diff --git a/docs/structsw_1_1_mouse_button_down_event_args.png b/docs/structsw_1_1_mouse_button_down_event_args.png new file mode 100644 index 0000000000000000000000000000000000000000..97d7fcb5a84cc766ebf643bd8558fd9299520eda GIT binary patch literal 1655 zcmd5-=~q)%5DzH0l~zv5fdYy^G~}>YKz0p+0gP-B0fiu_z(X_y1WiORRiqWf3W-2u zQ4|ufMiYIOC1G(5ge;&~%z0n{K}GZdDh7mT(pOLQALy6f4|C_v%$d38H@~^JkQ5eV zwA6el3WYKvZYD&aP2!$t3RWK~zE|)0GcLo7Eq^sU zJdD`g6ww^Sx8z_%*ftb${<1vutNucv4E2cwzsSRS6Xyr0qu$FG28XUXr_+rjl4}p6 zUsQ|tm0rVc7TZ&y$z6jo z3OD$!LyluRqw0bIQB+M%zFi#^C@Xg?BH^#<0-?D&oT#BMQuKI61zMDa0yPr8YmS|} zlxlI7Q`PJnXb9ESw7TWAtX}KR8B^Gd~P-_ z=(L5>meVU#fVdD2?|~;Gn=Wl#nU=1s%2F`r{Z^pol8pzX-QjqjKulL*ReEO+Q?;fH zqqbitlPq38oV5i2}M>m?1nyfxZ8 zI}pp=sGVxv;!#@X)b7^ns)E0m*aE+4N`aGsTcc;I>F!ua8W-n zQ+8d+so9~X%=4+B!{!Dn-tn?C`=R>_XGq>m)!0k8PEiy+8A4NTWQ#Tdv#}k(pp4HJ z)o5BjamM257PcqgN8xVb11r6(4ApaMe(HupXsS27%q%CYPs}&UpM7*xQQ!m70mVC#nWcv3d`@_6KDw&zsLsRwgG67a&-5} zl!^_($NgwE9TREW!X!1xGa56m^}K00K6ksxBbya2GB_7qOa|ln=SFbs90sYAKo<)F zL}XAp%-@&jN_UBySRG!asV%z4unc;(qo;0MAjgG^BRLGG@003lCTwM|3R#c!T!7Tcis(o_uaxbafeh={E?Ga!58~EA56fM}4-Of~r zJWD?ZDpMDclc$6UI8EvYDEBhEZL;-z-yN-kJ;M`nPi1UBMKP&jRL&ln=DyeJqDRzM z%=0TCgE*Xqd$FA4i(^QGGzg_~d8V8X+iqJONv-Ukhb}az<#Mfysf@q##mOwFtkN+( zWtp?IQ7oMre6ahvAFTxg0LqN))2BgR=wMi`4-7qo__{MNH9JT>r@!KsTn_6ywXgDM z=!;s%-f2H?3z2=%(9tXFuz##T%A3SpfF{(Q)ezpP^9w(2is6Dr+5Kg;yth2p9G|nB zW};Kv6G$%>rpL5dy*qS^s*FE7DwGU{O!3bYUdqI_{FB8X&e9eDZvQ3=&4=Apa=DXj z(iD^4R#1`#yd+56U9)VGsw$8->npPBlh(?>g$VHMX{%Q@IbF_o>gmWAfg%Qk5%~VQ G^8N;B_&OZ` literal 0 HcmV?d00001 diff --git a/docs/structsw_1_1_mouse_button_up_event_args-members.html b/docs/structsw_1_1_mouse_button_up_event_args-members.html new file mode 100644 index 00000000..c7ed4128 --- /dev/null +++ b/docs/structsw_1_1_mouse_button_up_event_args-members.html @@ -0,0 +1,118 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    sw::MouseButtonUpEventArgs Member List
    +
    +
    + +

    This is the complete list of members for sw::MouseButtonUpEventArgs, including all inherited members.

    + + + + + + + + + + +
    EventTypesw::RoutedEventArgsOfType< UIElement_MouseButtonUp >static
    eventTypesw::RoutedEventArgs
    handledsw::RoutedEventArgs
    handledMsgsw::RoutedEventArgs
    key (defined in sw::MouseButtonUpEventArgs)sw::MouseButtonUpEventArgs
    keyState (defined in sw::MouseButtonUpEventArgs)sw::MouseButtonUpEventArgs
    MouseButtonUpEventArgs(MouseKey key, Point mousePosition, MouseKey keyState) (defined in sw::MouseButtonUpEventArgs)sw::MouseButtonUpEventArgsinline
    mousePosition (defined in sw::MouseButtonUpEventArgs)sw::MouseButtonUpEventArgs
    RoutedEventArgs(RoutedEventType eventType)sw::RoutedEventArgs
    +
    + + + + diff --git a/docs/structsw_1_1_mouse_button_up_event_args.html b/docs/structsw_1_1_mouse_button_up_event_args.html new file mode 100644 index 00000000..1b240381 --- /dev/null +++ b/docs/structsw_1_1_mouse_button_up_event_args.html @@ -0,0 +1,176 @@ + + + + + + + +SimpleWindow: sw::MouseButtonUpEventArgs Struct Reference + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    + +
    sw::MouseButtonUpEventArgs Struct Reference
    +
    +
    + +

    鼠标按键抬起事件参数类型 + More...

    + +

    #include <RoutedEventArgs.h>

    +
    +Inheritance diagram for sw::MouseButtonUpEventArgs:
    +
    +
    + + +sw::RoutedEventArgsOfType< UIElement_MouseButtonUp > +sw::RoutedEventArgs + +
    + + + + + + + + +

    +Public Member Functions

    MouseButtonUpEventArgs (MouseKey key, Point mousePosition, MouseKey keyState)
     
    - Public Member Functions inherited from sw::RoutedEventArgs
    RoutedEventArgs (RoutedEventType eventType)
     RoutedEventArgs构造函数
     
    + + + + + + + + + + + + + + + + + +

    +Public Attributes

    +MouseKey key
     
    +Point mousePosition
     
    +MouseKey keyState
     
    - Public Attributes inherited from sw::RoutedEventArgs
    +RoutedEventType eventType
     事件类型
     
    +bool handled = false
     事件是否已被处理,若将此字段设为true,则事件不会继续往上传递
     
    +bool handledMsg = false
     表示是否已处理事件所对应的Windows消息,对于部分消息将字段设为true可取消对DefaultWndProc的调用,若当前事件无对应消息则该字段无意义
     
    + + + + + +

    +Additional Inherited Members

    - Static Public Attributes inherited from sw::RoutedEventArgsOfType< UIElement_MouseButtonUp >
    +static constexpr RoutedEventType EventType
     路由事件的类型,RegisterRoutedEvent模板函数使用此字段注册事件
     
    +

    Detailed Description

    +

    鼠标按键抬起事件参数类型

    +

    The documentation for this struct was generated from the following file: +
    +
    + + + + diff --git a/docs/structsw_1_1_mouse_button_up_event_args.png b/docs/structsw_1_1_mouse_button_up_event_args.png new file mode 100644 index 0000000000000000000000000000000000000000..1f792614dd3cca682dd984569dd3d7f4e4c6eb7d GIT binary patch literal 1619 zcmb`HX;4#F7=|yP6*nTHqEJ}|lwu$3<9t}P!A!H(gp2&v`@v`Kl1dWCRZXC>&pz+8LnI8xbkYDAOfU0xv0 zhl$ZSxQxE{R&{zWA0=z}*I-1xCe&Dx;nFS%oTVmmeL0=fhog5bo73{)SK&7j_8~o5 zhN-oTe*t_$KOI3@kK}qyH>jd+VSSZId<1@=cQ})^?!hxU$6|BfqhtAHbg@N*pW)}C z&ai4W?4Hfg@@qdiL1LGFDC|iaP6ydyEYcTIJAKb6aH zRA$es#uyS?*2ly;JEx#G!TxcT|aZ~)Wj zdTzO8jlE@k25tGkuENDr_K5MPRge*C9m0@$J#FoWyrvrySz_+RD07f9Jn@-^}v zOqL^<;Yci`VL|j2aM~W(!@~TLnFmu8ZUD*t@F{K5a%;uJc!_*=a9dx?_X~x+*%E|V zyv0ZhYaL|d=#b&4pf{P`P&p>=ulz!0dwu8R4cB4c)!on9Cdn)_rA8kH%}BQD9um${ znp;!$_T)$C89H7`@DYaSVwG59FS%bak#sJtQU~##K3JkkS^=r9j@)^3EAW|X)w?-< z_3CYD`$X{ed!{bSxBeaXbGR~|NhyZ4KsU%0x#s1E$;}>%n?JApXw7?Prt>1sdbRr0 zz>&3Q+C5LgW6w+SG}8iH9>Oq5+(2&@)c$m`PzR|9@MM}z|MP`c5ZB@xK}l|0prU#v z%69MAGq>=12f^$^K^B+7q(SkLrW~Ydyg|jwQM9mkB#PjQ_&)cTP$r4)m%fN+@jA(U z?5=Bgh~NhXN5)qab>G`1hv8!;PDJnWrlbH@Up+ z*2Ruu&$M!Jy2?9p^4z0F9E#kHLf5Eqv85xJ(9qy_c!1wA&+2+z6bYu7s?3?mM<*2w zM$@KHgX*OnIN5IfH2+?L-Iu(-!is}J_BaPQmj;?ldCmii0E`o2ES#FLIA!F6qKFIc zx)=^DL1DCv{J&uQH_|b5k&9%ti=^7;+jaQI^-^_1CIyd2n+ThY8SIftvuN?rqc7gd zMwRX5wfTLcckT5(`w#WDo``mjq^4_}Q|e%9F%w}7>FX=ledZK3YPwRhWy&kHj485t za=W`;e(UOwMJHmm%_Z57#NZEQ%ft!hg0eUg9>2s#R%zWoCwkE8y6cQK7Bhe?YC?Fr1z3$SKoAzM3e$6~jj+Z-a)MU0#n zSMS~D&nX~q+G`-Ge{{5&M{jl8vC!SQvYyL&IkniH6aTvXc=Tw-nK~-AkLI952$#8< zjbpH8s93n5PUT_^w6pIH$$QkU9Um-{t0qEgw-%%l%XJpI)Cje^Kc#aA(W#K_Iis2t zCCmrQ_@`T?(u@S6fTDN9(-ku^4!hRrt6%=Y?f4mcgu~X-PJXeMV*moq#l`DAOa{^R O4}iN!0hNA7&i@XwA3*T{ literal 0 HcmV?d00001 diff --git a/docs/structsw_1_1_mouse_move_event_args-members.html b/docs/structsw_1_1_mouse_move_event_args-members.html new file mode 100644 index 00000000..d233552a --- /dev/null +++ b/docs/structsw_1_1_mouse_move_event_args-members.html @@ -0,0 +1,117 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    sw::MouseMoveEventArgs Member List
    +
    +
    + +

    This is the complete list of members for sw::MouseMoveEventArgs, including all inherited members.

    + + + + + + + + + +
    EventTypesw::RoutedEventArgsOfType< UIElement_MouseMove >static
    eventTypesw::RoutedEventArgs
    handledsw::RoutedEventArgs
    handledMsgsw::RoutedEventArgs
    keyState (defined in sw::MouseMoveEventArgs)sw::MouseMoveEventArgs
    MouseMoveEventArgs(Point mousePosition, MouseKey keyState) (defined in sw::MouseMoveEventArgs)sw::MouseMoveEventArgsinline
    mousePosition (defined in sw::MouseMoveEventArgs)sw::MouseMoveEventArgs
    RoutedEventArgs(RoutedEventType eventType)sw::RoutedEventArgs
    +
    + + + + diff --git a/docs/structsw_1_1_mouse_move_event_args.html b/docs/structsw_1_1_mouse_move_event_args.html new file mode 100644 index 00000000..78e782e8 --- /dev/null +++ b/docs/structsw_1_1_mouse_move_event_args.html @@ -0,0 +1,173 @@ + + + + + + + +SimpleWindow: sw::MouseMoveEventArgs Struct Reference + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    + +
    sw::MouseMoveEventArgs Struct Reference
    +
    +
    + +

    鼠标移动事件参数类型 + More...

    + +

    #include <RoutedEventArgs.h>

    +
    +Inheritance diagram for sw::MouseMoveEventArgs:
    +
    +
    + + +sw::RoutedEventArgsOfType< UIElement_MouseMove > +sw::RoutedEventArgs + +
    + + + + + + + + +

    +Public Member Functions

    MouseMoveEventArgs (Point mousePosition, MouseKey keyState)
     
    - Public Member Functions inherited from sw::RoutedEventArgs
    RoutedEventArgs (RoutedEventType eventType)
     RoutedEventArgs构造函数
     
    + + + + + + + + + + + + + + + +

    +Public Attributes

    +Point mousePosition
     
    +MouseKey keyState
     
    - Public Attributes inherited from sw::RoutedEventArgs
    +RoutedEventType eventType
     事件类型
     
    +bool handled = false
     事件是否已被处理,若将此字段设为true,则事件不会继续往上传递
     
    +bool handledMsg = false
     表示是否已处理事件所对应的Windows消息,对于部分消息将字段设为true可取消对DefaultWndProc的调用,若当前事件无对应消息则该字段无意义
     
    + + + + + +

    +Additional Inherited Members

    - Static Public Attributes inherited from sw::RoutedEventArgsOfType< UIElement_MouseMove >
    +static constexpr RoutedEventType EventType
     路由事件的类型,RegisterRoutedEvent模板函数使用此字段注册事件
     
    +

    Detailed Description

    +

    鼠标移动事件参数类型

    +

    The documentation for this struct was generated from the following file: +
    +
    + + + + diff --git a/docs/structsw_1_1_mouse_move_event_args.png b/docs/structsw_1_1_mouse_move_event_args.png new file mode 100644 index 0000000000000000000000000000000000000000..f5f44cd5c316b2907f76d71f291be6419b973b31 GIT binary patch literal 1556 zcmb_cX;4#F7=0`%Xw}NNO%Xu~FU3j~6J!yIAPNsizyJnhNu5G02mvA?76@A{Xc<%z zG?1{2V_0OXxRPL?LIpws$PyBkEY>Kp1W*Ww64Phag4tS#^Tv7Gth?!jvxIWJ81$`ftU`{_0LSY1HPG57+uXrPri1A1 z=3H&c#r(v$MR^Fs%Pe=`+MGezK&kuAt=4t>VC0Oc7TLD5WGuJ1bJ==be1<8bugIFW zwgH@&Uy+cu```}XS!qVmN#e-boN3R6I21R%=~ zOaJEi+o|2YSJ(tb4IZCIeW5yU$z6lK&pVgpF!(%*63@Y_H_t|zDO$E<#8Q?Qh(b<$ zdU*Mw^=g~Sb6HR!O|zxmOEnX>&m@bd5nAWlTItIC)D2EvQ_^@^9i%vFHJRp$LNKuw z5dIBUYzyJ(pE`xx*}{RKpDi%nI70_UMIpTq*KG%+A0Yt7zq$=r9R&!4+a^lKXcLP} zc2}TrLJ`XN^J6K7mn<;)9@juUOD_fh7sxb%Qw`yyY#4T9{a08SU$n2HkW+}; zpl>Sp*HwSPV3#xKs(DXR>+Un(g_-iH$t_LtnWyer*0QN2wUuA9woVa2c+0PjXOD-) z{KeYitu)<2@4GU=9I45U+u{U`zDzwC3QBf_QpKc&My04kf5D8D(JZ^)Z=YcAl-t)@ z<})0`m;R77!I!gRXT@Ps*G^@%OqxP;TC$80&JL ziak$G%>vO6F~h>C4NF27Lg?3z6~VNt%_lVt6!EZXKB?~$_lnx&_?d1gdki^Z`;5Z7 z>9^$C5hZ6QZF?h+TnKF8tz*1+#hx%XC)Q`GW^p0QahkE-qzRzi}q5BEm5@;)4tUFg~Y=0+XDc-QDU zOU8>FLcvb=DRZ)<*$3I0m7XjqSj>2@`Y!FOr(t=BwTwi0NHQ@>nbAQ`LgOz z@PYYZk|WQjw1z*zj~H5h-Ed6P*C@U>N_#iLx2qphLuB39C(TJy3ZJhwTR`uRtY!)t zC0_LQmsM6j9jKZMnVUe6->ONYCQJ_c$>yL(RpVyEVV$s5O^@h74g!(P-yWaM5 literal 0 HcmV?d00001 diff --git a/docs/structsw_1_1_mouse_wheel_event_args-members.html b/docs/structsw_1_1_mouse_wheel_event_args-members.html new file mode 100644 index 00000000..94a1f998 --- /dev/null +++ b/docs/structsw_1_1_mouse_wheel_event_args-members.html @@ -0,0 +1,118 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    sw::MouseWheelEventArgs Member List
    +
    +
    + +

    This is the complete list of members for sw::MouseWheelEventArgs, including all inherited members.

    + + + + + + + + + + +
    EventTypesw::RoutedEventArgsOfType< UIElement_MouseWheel >static
    eventTypesw::RoutedEventArgs
    handledsw::RoutedEventArgs
    handledMsgsw::RoutedEventArgs
    keyState (defined in sw::MouseWheelEventArgs)sw::MouseWheelEventArgs
    mousePosition (defined in sw::MouseWheelEventArgs)sw::MouseWheelEventArgs
    MouseWheelEventArgs(int wheelDelta, Point mousePosition, MouseKey keyState) (defined in sw::MouseWheelEventArgs)sw::MouseWheelEventArgsinline
    RoutedEventArgs(RoutedEventType eventType)sw::RoutedEventArgs
    wheelDelta (defined in sw::MouseWheelEventArgs)sw::MouseWheelEventArgs
    +
    + + + + diff --git a/docs/structsw_1_1_mouse_wheel_event_args.html b/docs/structsw_1_1_mouse_wheel_event_args.html new file mode 100644 index 00000000..c1ac36ef --- /dev/null +++ b/docs/structsw_1_1_mouse_wheel_event_args.html @@ -0,0 +1,176 @@ + + + + + + + +SimpleWindow: sw::MouseWheelEventArgs Struct Reference + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    + +
    sw::MouseWheelEventArgs Struct Reference
    +
    +
    + +

    鼠标滚轮滚动事件参数类型 + More...

    + +

    #include <RoutedEventArgs.h>

    +
    +Inheritance diagram for sw::MouseWheelEventArgs:
    +
    +
    + + +sw::RoutedEventArgsOfType< UIElement_MouseWheel > +sw::RoutedEventArgs + +
    + + + + + + + + +

    +Public Member Functions

    MouseWheelEventArgs (int wheelDelta, Point mousePosition, MouseKey keyState)
     
    - Public Member Functions inherited from sw::RoutedEventArgs
    RoutedEventArgs (RoutedEventType eventType)
     RoutedEventArgs构造函数
     
    + + + + + + + + + + + + + + + + + +

    +Public Attributes

    +int wheelDelta
     
    +Point mousePosition
     
    +MouseKey keyState
     
    - Public Attributes inherited from sw::RoutedEventArgs
    +RoutedEventType eventType
     事件类型
     
    +bool handled = false
     事件是否已被处理,若将此字段设为true,则事件不会继续往上传递
     
    +bool handledMsg = false
     表示是否已处理事件所对应的Windows消息,对于部分消息将字段设为true可取消对DefaultWndProc的调用,若当前事件无对应消息则该字段无意义
     
    + + + + + +

    +Additional Inherited Members

    - Static Public Attributes inherited from sw::RoutedEventArgsOfType< UIElement_MouseWheel >
    +static constexpr RoutedEventType EventType
     路由事件的类型,RegisterRoutedEvent模板函数使用此字段注册事件
     
    +

    Detailed Description

    +

    鼠标滚轮滚动事件参数类型

    +

    The documentation for this struct was generated from the following file: +
    +
    + + + + diff --git a/docs/structsw_1_1_mouse_wheel_event_args.png b/docs/structsw_1_1_mouse_wheel_event_args.png new file mode 100644 index 0000000000000000000000000000000000000000..9607c810678b9dd1ba1dd332ffaeafa83c1043f8 GIT binary patch literal 1568 zcmb`HYh2Q26vt7sWokODXqn~|OIOpxTbfNxoua5sUFI}v3OFyIc}bmkS*_A-X_AV6 zFS$My0(DRdW|&BR_iV}Wuq*?8C`&O{_XWb`VxGH*dO4g7GrrrjIPTbAmZjSyEjkb=+MRizy*~mLwUGf| zNNpR%Mwc-HPjiePHp4EaHh@*vo}AQX>|+>r2GPN9lSA5DC%j|FTqDRKv+*JgAct2? z=D`)wgfs&&%`djQ8#$$_V(W6d$Z7U^y<_s$$y9*&I1;^5SQ1JPQddaQ?H}1A}1(2$u^% zSHLEi??4tlxzc}t@%LwYW31|7^`%Spkfd&?yZUQaD?`&uG+K+6{;|GI1<$A9Saq+f zaJBosWe^V%GT$_KpS!-QrJz(x->Yxa7BjT^rV_ZCYJ~r_%qj%`MWGmgyXr&OvjNVI zW5--+wK?{kQ4=`%nHy($(ktU^4!a@XX06HT6l1}&nvT>ZBY+vkgIh=nuvacqr5BXl zk73I`7#6s`1e08)p!g%>j{Jp{bK)`weZCLl{a(kRew<+=n7+O)>q12gGfzP~CZ*Yc zfZeJ6PF#VK8#S8uFeDyh9i)u~>r^)RqlBO_Si9$&xbkp4T)aSdD2+JkBic|ubx_7l zB(`SE5g8nY@NI|fUc&IA@P%!6HZZ6mOi<|`BXDt9!^@Y7P}{V1zD#NW>Ie#+Te;-= zSw+qrng=Cl86jdRaoWqB4te`qTWLt=bQql@l|>U@eNZx*a5VQ(wt)$Yw$q~y#IhMP zSiKRapJn?_(K9PVM>IPH*?v3XO2mhG;{07plEb`Syg+K!3xDGock9M>jO6qjiZWsGN7GwChl0~< zKjfOjIfAF5(-solwR(FZso(t1KhLYLlw@iR_qVdJsxPIeWomRm4D!VY0Ah>JsSn84 zR}rTJCB_+=o>wvVdBgw7+&=(49e}dtHp95h2m5=XG36D&QU5-BJ8d&`C7@XX=YcBH zF&K|(Yr1fL5lgExVj9xKNp2X-k=x?_qHD`&+&g>}85sSr{oZV1l}%Ze13wNxQA^Te z9j5vPrD+;imfm9S-SGga82eBbnqg>1hrad$8Vld$hN-P0mnXIfa}=V@?@#Whn~>3C z&UrOJ_#vBeXRP7|5=xLR2yef_Gyy&{HDFTwB_Mo@P0(^U21?4EiD(vv3~?uh1iD4E z*b@;(Ly`U<7}fow(Ni)tL9-XWUt&#d`|eytbdK-3?Lg2si#9Z%OM!HDDyLgH6%XPQ z1S1}m5`UVok zU-}v&|70V$vI=0Amd0Urdi`};9giZ*(TH+%_;r!nqDKUyMH^kL+T{?0cc2&b*qQUc E0keqt)c^nh literal 0 HcmV?d00001 diff --git a/docs/structsw_1_1_point-members.html b/docs/structsw_1_1_point-members.html new file mode 100644 index 00000000..8ef956ff --- /dev/null +++ b/docs/structsw_1_1_point-members.html @@ -0,0 +1,118 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    sw::Point Member List
    +
    +
    + +

    This is the complete list of members for sw::Point, including all inherited members.

    + + + + + + + + + + +
    operator POINT() const (defined in sw::Point)sw::Point
    operator!= (defined in sw::Point)sw::Pointfriend
    operator<< (defined in sw::Point)sw::Pointfriend
    operator== (defined in sw::Point)sw::Pointfriend
    Point() (defined in sw::Point)sw::Point
    Point(double x, double y) (defined in sw::Point)sw::Point
    Point(const POINT &point) (defined in sw::Point)sw::Point
    xsw::Point
    ysw::Point
    +
    + + + + diff --git a/docs/structsw_1_1_point.html b/docs/structsw_1_1_point.html new file mode 100644 index 00000000..f2ca10a3 --- /dev/null +++ b/docs/structsw_1_1_point.html @@ -0,0 +1,158 @@ + + + + + + + +SimpleWindow: sw::Point Struct Reference + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    + +
    sw::Point Struct Reference
    +
    +
    + +

    表示相对于左上角的点坐标 + More...

    + +

    #include <Point.h>

    + + + + + + + + +

    +Public Member Functions

    Point (double x, double y)
     
    Point (const POINT &point)
     
    operator POINT () const
     
    + + + + + + + +

    +Public Attributes

    +double x
     横坐标
     
    +double y
     纵坐标
     
    + + + + + + + +

    +Friends

    +bool operator== (const Point &left, const Point &right)
     
    +bool operator!= (const Point &left, const Point &right)
     
    +std::wostream & operator<< (std::wostream &wos, const Point &point)
     
    +

    Detailed Description

    +

    表示相对于左上角的点坐标

    +

    The documentation for this struct was generated from the following file:
      +
    • D:/code/GitHub/sw/sw/inc/Point.h
    • +
    +
    +
    + + + + diff --git a/docs/structsw_1_1_point.js b/docs/structsw_1_1_point.js new file mode 100644 index 00000000..41d91a2c --- /dev/null +++ b/docs/structsw_1_1_point.js @@ -0,0 +1,5 @@ +var structsw_1_1_point = +[ + [ "x", "structsw_1_1_point.html#afceae691252771cc050e8e4152971ba9", null ], + [ "y", "structsw_1_1_point.html#a4d0905242fc362a62b21ea6adf2e54e6", null ] +]; \ No newline at end of file diff --git a/docs/structsw_1_1_position_changed_event_args-members.html b/docs/structsw_1_1_position_changed_event_args-members.html new file mode 100644 index 00000000..8656689d --- /dev/null +++ b/docs/structsw_1_1_position_changed_event_args-members.html @@ -0,0 +1,116 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    sw::PositionChangedEventArgs Member List
    +
    +
    + +

    This is the complete list of members for sw::PositionChangedEventArgs, including all inherited members.

    + + + + + + + + +
    EventTypesw::RoutedEventArgsOfType< UIElement_PositionChanged >static
    eventTypesw::RoutedEventArgs
    handledsw::RoutedEventArgs
    handledMsgsw::RoutedEventArgs
    newClientPosition (defined in sw::PositionChangedEventArgs)sw::PositionChangedEventArgs
    PositionChangedEventArgs(Point newClientPosition) (defined in sw::PositionChangedEventArgs)sw::PositionChangedEventArgsinline
    RoutedEventArgs(RoutedEventType eventType)sw::RoutedEventArgs
    +
    + + + + diff --git a/docs/structsw_1_1_position_changed_event_args.html b/docs/structsw_1_1_position_changed_event_args.html new file mode 100644 index 00000000..057f7a8a --- /dev/null +++ b/docs/structsw_1_1_position_changed_event_args.html @@ -0,0 +1,170 @@ + + + + + + + +SimpleWindow: sw::PositionChangedEventArgs Struct Reference + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    + +
    sw::PositionChangedEventArgs Struct Reference
    +
    +
    + +

    位置改变事件参数类型 + More...

    + +

    #include <RoutedEventArgs.h>

    +
    +Inheritance diagram for sw::PositionChangedEventArgs:
    +
    +
    + + +sw::RoutedEventArgsOfType< UIElement_PositionChanged > +sw::RoutedEventArgs + +
    + + + + + + + + +

    +Public Member Functions

    PositionChangedEventArgs (Point newClientPosition)
     
    - Public Member Functions inherited from sw::RoutedEventArgs
    RoutedEventArgs (RoutedEventType eventType)
     RoutedEventArgs构造函数
     
    + + + + + + + + + + + + + +

    +Public Attributes

    +Point newClientPosition
     
    - Public Attributes inherited from sw::RoutedEventArgs
    +RoutedEventType eventType
     事件类型
     
    +bool handled = false
     事件是否已被处理,若将此字段设为true,则事件不会继续往上传递
     
    +bool handledMsg = false
     表示是否已处理事件所对应的Windows消息,对于部分消息将字段设为true可取消对DefaultWndProc的调用,若当前事件无对应消息则该字段无意义
     
    + + + + + +

    +Additional Inherited Members

    - Static Public Attributes inherited from sw::RoutedEventArgsOfType< UIElement_PositionChanged >
    +static constexpr RoutedEventType EventType
     路由事件的类型,RegisterRoutedEvent模板函数使用此字段注册事件
     
    +

    Detailed Description

    +

    位置改变事件参数类型

    +

    The documentation for this struct was generated from the following file: +
    +
    + + + + diff --git a/docs/structsw_1_1_position_changed_event_args.png b/docs/structsw_1_1_position_changed_event_args.png new file mode 100644 index 0000000000000000000000000000000000000000..57fe0111d0848702ef168da6f9b4134e5969ab6e GIT binary patch literal 1659 zcmb`IdpOit7{^B>8&+kev4&+Cm%)Z6Y7%a@f`+zS&p-{l)lw=|9>a+X1Y;Z9;Hw9C# zU%!U;?Rv;uIQGRU643_%`=7_ob@>AbgsLjw>f)QAB)u~fU1qb1fF2^*DHNa?x@AnA z>o|?g+KwtyvH2xPW2lNv@*sKO4tZm7*<2k`H8z9AG{Lcbt$=&nP+;S@7cQvsN7lfv z1w1|Rtt@Hs45y4WAGMYPmEJj2jn%J~%P#2g56B*CRDEr)3oaTpom^=mOUL;>jdcN( zm*?}Lqz@~7A!1Jwwu+RDAK&xaT>11&@2W0}-ca&R%SS!*&~WXHoT+eS|Gq;-NR-$m{I^mE~ZfHyfM!opnS_gS|lptX!sA&N6Deb%S( zAg$$ez;H?HCFr>TT4i4f9$o9s zDiCb&mFZfr=C?Q*n`7UF|9M{%lqbo&^e}550J4x>1O~1cTg={~(vl=we+}W9%~Ud4 z{^-$;NaKd4x^Fu#v~|`i)iKOPYHaebP*pQQDW798mEf}oxOu7GBwJ^5IL!9_ui>s0 z+_qvimrW`vbSD`Bwtugb2aSI;12m<1-F+2J#}qCkdC+{Cp;Trq*D@4|Bkv zMs5mx8#zY5JbkP{3+eS<7vPM~KGvF0!OfE3)4 zKY5bR@60TxbSLQ_U5gjaS46fQlr=4{cA(ouk&&N9TGz_knc~{vth0Kx0W@Xa*9)Ag zE>Y_Mr;>vQ7jb@9<39PNh38w`@m49$3QWl$LU15wUejjf|*sI!HIQ!|AY zv)1G!+AD+g1nqzq9gWNje(_uOO)`s%#YCjRY`tF;8N3cg-#QWzkUW1!i@Cz4na(ty zS9C)cTx<_hu>77mX@^v+CV^tqK8MLUQ0GiHOWri#7ayD=y4h&mmbBeIGwtLQngPU> zoe-5P2fkVun?g1KOWF4E%WhJCvD*Z_)aQopP6H%s9&2ix?Yq+~khQj5%WZibxcbl# z&_77K#*^{~j{djF-_Oo-$Gc;HOb zQWqh0L#2yGC}r2Vg&S9t*1cONr?`>)1!2qb&ewBU#6cN2xP%y%@VW}@XS)U1~{O2;7W zEQhxUE$t~HsjKWwH0hdM(XGrC;|2nhl3o-np@#5smuYf>0nf1)vezUc`SDxn>I&{< z`Qv6)a4ozpl5{fJG1l?{KipANlW=oTMIpCawtFv5edneHK zHh720J7oz6Rq(Zn@z3sf51c5ey8aK1MT6ZnR-H9go|_biF;j;4>F(p5@Hc?~2t?P) IeaC+K1CHJuv;Y7A literal 0 HcmV?d00001 diff --git a/docs/structsw_1_1_proc_msg-members.html b/docs/structsw_1_1_proc_msg-members.html new file mode 100644 index 00000000..ce499956 --- /dev/null +++ b/docs/structsw_1_1_proc_msg-members.html @@ -0,0 +1,115 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    sw::ProcMsg Member List
    +
    +
    + +

    This is the complete list of members for sw::ProcMsg, including all inherited members.

    + + + + + + + +
    hwndsw::ProcMsg
    lParamsw::ProcMsg
    ProcMsg() (defined in sw::ProcMsg)sw::ProcMsg
    ProcMsg(const HWND &hwnd, const UINT &uMsg, const WPARAM &wParam, const LPARAM &lParam) (defined in sw::ProcMsg)sw::ProcMsg
    uMsgsw::ProcMsg
    wParamsw::ProcMsg
    +
    + + + + diff --git a/docs/structsw_1_1_proc_msg.html b/docs/structsw_1_1_proc_msg.html new file mode 100644 index 00000000..326b0986 --- /dev/null +++ b/docs/structsw_1_1_proc_msg.html @@ -0,0 +1,147 @@ + + + + + + + +SimpleWindow: sw::ProcMsg Struct Reference + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    + +
    sw::ProcMsg Struct Reference
    +
    +
    + +

    对Windows窗口消息的封装 + More...

    + +

    #include <ProcMsg.h>

    + + + + +

    +Public Member Functions

    ProcMsg (const HWND &hwnd, const UINT &uMsg, const WPARAM &wParam, const LPARAM &lParam)
     
    + + + + + + + + + + + + + +

    +Public Attributes

    +HWND hwnd
     接收到消息的窗口句柄
     
    +UINT uMsg
     消息类型
     
    +WPARAM wParam
     消息的附加信息
     
    +LPARAM lParam
     消息的附加信息
     
    +

    Detailed Description

    +

    对Windows窗口消息的封装

    +

    The documentation for this struct was generated from the following file: +
    +
    + + + + diff --git a/docs/structsw_1_1_proc_msg.js b/docs/structsw_1_1_proc_msg.js new file mode 100644 index 00000000..f931f641 --- /dev/null +++ b/docs/structsw_1_1_proc_msg.js @@ -0,0 +1,7 @@ +var structsw_1_1_proc_msg = +[ + [ "hwnd", "structsw_1_1_proc_msg.html#a944e366c9c75b08eebbb32fc3959f334", null ], + [ "lParam", "structsw_1_1_proc_msg.html#acb7f68d396561c6c4c877255b18b1b5d", null ], + [ "uMsg", "structsw_1_1_proc_msg.html#a63d6c8d6ebe3bc0621ac4596a487c418", null ], + [ "wParam", "structsw_1_1_proc_msg.html#a114f533462da6db1852ad4aa5485d86b", null ] +]; \ No newline at end of file diff --git a/docs/structsw_1_1_rect-members.html b/docs/structsw_1_1_rect-members.html new file mode 100644 index 00000000..28046ed5 --- /dev/null +++ b/docs/structsw_1_1_rect-members.html @@ -0,0 +1,122 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    sw::Rect Member List
    +
    +
    + +

    This is the complete list of members for sw::Rect, including all inherited members.

    + + + + + + + + + + + + + + +
    GetPos() const (defined in sw::Rect)sw::Rect
    GetSize() const (defined in sw::Rect)sw::Rect
    heightsw::Rect
    leftsw::Rect
    operator RECT() const (defined in sw::Rect)sw::Rect
    operator!= (defined in sw::Rect)sw::Rectfriend
    operator<< (defined in sw::Rect)sw::Rectfriend
    operator== (defined in sw::Rect)sw::Rectfriend
    Rect() (defined in sw::Rect)sw::Rect
    Rect(double left, double top, double width, double height) (defined in sw::Rect)sw::Rect
    Rect(const RECT &rect) (defined in sw::Rect)sw::Rect
    topsw::Rect
    widthsw::Rect
    +
    + + + + diff --git a/docs/structsw_1_1_rect.html b/docs/structsw_1_1_rect.html new file mode 100644 index 00000000..9f3b2150 --- /dev/null +++ b/docs/structsw_1_1_rect.html @@ -0,0 +1,172 @@ + + + + + + + +SimpleWindow: sw::Rect Struct Reference + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    + +
    sw::Rect Struct Reference
    +
    +
    + +

    表示一个矩形区域 + More...

    + +

    #include <Rect.h>

    + + + + + + + + + + + + +

    +Public Member Functions

    Rect (double left, double top, double width, double height)
     
    Rect (const RECT &rect)
     
    operator RECT () const
     
    +Point GetPos () const
     
    +Size GetSize () const
     
    + + + + + + + + + + + + + +

    +Public Attributes

    +double left
     左边
     
    +double top
     顶边
     
    +double width
     宽度
     
    +double height
     高度
     
    + + + + + + + +

    +Friends

    +bool operator== (const Rect &left, const Rect &right)
     
    +bool operator!= (const Rect &left, const Rect &right)
     
    +std::wostream & operator<< (std::wostream &wos, const Rect &rect)
     
    +

    Detailed Description

    +

    表示一个矩形区域

    +

    The documentation for this struct was generated from the following file:
      +
    • D:/code/GitHub/sw/sw/inc/Rect.h
    • +
    +
    +
    + + + + diff --git a/docs/structsw_1_1_rect.js b/docs/structsw_1_1_rect.js new file mode 100644 index 00000000..761a7316 --- /dev/null +++ b/docs/structsw_1_1_rect.js @@ -0,0 +1,7 @@ +var structsw_1_1_rect = +[ + [ "height", "structsw_1_1_rect.html#afb7a0a9a12dad7756f46b2e1abdafa7c", null ], + [ "left", "structsw_1_1_rect.html#af6c8b62aa73047637c58d8cdf6c05aff", null ], + [ "top", "structsw_1_1_rect.html#adeb78de2f6a13f22d475605eb0e0e074", null ], + [ "width", "structsw_1_1_rect.html#ada69154ab3d734587ef9695b10144b01", null ] +]; \ No newline at end of file diff --git a/docs/structsw_1_1_routed_event_args-members.html b/docs/structsw_1_1_routed_event_args-members.html new file mode 100644 index 00000000..0394e4e5 --- /dev/null +++ b/docs/structsw_1_1_routed_event_args-members.html @@ -0,0 +1,113 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    sw::RoutedEventArgs Member List
    +
    +
    + +

    This is the complete list of members for sw::RoutedEventArgs, including all inherited members.

    + + + + + +
    eventTypesw::RoutedEventArgs
    handledsw::RoutedEventArgs
    handledMsgsw::RoutedEventArgs
    RoutedEventArgs(RoutedEventType eventType)sw::RoutedEventArgs
    +
    + + + + diff --git a/docs/structsw_1_1_routed_event_args.html b/docs/structsw_1_1_routed_event_args.html new file mode 100644 index 00000000..b01dfd24 --- /dev/null +++ b/docs/structsw_1_1_routed_event_args.html @@ -0,0 +1,168 @@ + + + + + + + +SimpleWindow: sw::RoutedEventArgs Struct Reference + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    + +
    sw::RoutedEventArgs Struct Reference
    +
    +
    + +

    路由事件的参数 + More...

    + +

    #include <RoutedEvent.h>

    +
    +Inheritance diagram for sw::RoutedEventArgs:
    +
    +
    + + +sw::RoutedEventArgsOfType< UIElement_GotChar > +sw::RoutedEventArgsOfType< UIElement_KeyDown > +sw::RoutedEventArgsOfType< UIElement_KeyUp > +sw::RoutedEventArgsOfType< ListView_CheckStateChanged > +sw::RoutedEventArgsOfType< UIElement_MouseButtonDown > +sw::RoutedEventArgsOfType< UIElement_MouseButtonUp > +sw::RoutedEventArgsOfType< UIElement_MouseMove > +sw::RoutedEventArgsOfType< UIElement_MouseWheel > +sw::RoutedEventArgsOfType< UIElement_PositionChanged > +sw::RoutedEventArgsOfType< Layer_Scrolling > +sw::RoutedEventArgsOfType< UIElement_ShowContextMenu > +sw::RoutedEventArgsOfType< UIElement_SizeChanged > +sw::RoutedEventArgsOfType< Window_Closing > +sw::ListViewHeaderClickedEventArgs +sw::ListViewItemClickedEventArgs +sw::RoutedEventArgsOfType< TYPE > + +
    + + + + + +

    +Public Member Functions

    RoutedEventArgs (RoutedEventType eventType)
     RoutedEventArgs构造函数
     
    + + + + + + + + + + +

    +Public Attributes

    +RoutedEventType eventType
     事件类型
     
    +bool handled = false
     事件是否已被处理,若将此字段设为true,则事件不会继续往上传递
     
    +bool handledMsg = false
     表示是否已处理事件所对应的Windows消息,对于部分消息将字段设为true可取消对DefaultWndProc的调用,若当前事件无对应消息则该字段无意义
     
    +

    Detailed Description

    +

    路由事件的参数

    +

    The documentation for this struct was generated from the following file: +
    +
    + + + + diff --git a/docs/structsw_1_1_routed_event_args.js b/docs/structsw_1_1_routed_event_args.js new file mode 100644 index 00000000..97363575 --- /dev/null +++ b/docs/structsw_1_1_routed_event_args.js @@ -0,0 +1,7 @@ +var structsw_1_1_routed_event_args = +[ + [ "RoutedEventArgs", "structsw_1_1_routed_event_args.html#ad6e6da62f114abfabb682afd38b6f7a3", null ], + [ "eventType", "structsw_1_1_routed_event_args.html#a46df8118b89dcc6c494cdbded901b082", null ], + [ "handled", "structsw_1_1_routed_event_args.html#a9fb971eec1e6ba4aee1366c3f9c20bfd", null ], + [ "handledMsg", "structsw_1_1_routed_event_args.html#ac299c564c53fa039f47a06d08272d969", null ] +]; \ No newline at end of file diff --git a/docs/structsw_1_1_routed_event_args.png b/docs/structsw_1_1_routed_event_args.png new file mode 100644 index 0000000000000000000000000000000000000000..853330300f19edf20b0e9bbea2f229be700779f7 GIT binary patch literal 13864 zcmeHudsve9`+ujcv#wgXvU07JpH=EMK{HQlWvgc69E$u5rpsi!E9~&?)Ta6`d!!O_r1Q?-v9W3Adm0& zec!Lw{d(OT+q}tl`jmN7#*7&=ef?K!w~QGxPCjPL`16y-gJ+6Ac(4cju-&|In~&LS z2A5qu+Jvn8MJqr3WbX&rHC=6OZQyydAn+>q-Q@T!o3@Stk1fk}T+Y)mW6-7R*RI}{ zG*&68-~ZgBblo$1CA>{#K293M0F~kVogBHGI79GkTE6}vSgY5@tvnoQdiCnnzW3_qKmL%Ko|cw2e=T_F zU?(cwkU|Cz0TqQ2FM>Eh@VmQtUt$5RMs zJ~`n^Tybn2TRd;v{F+Bp(#+b~Jco7;6-VbjAlzqCb&tHjdi)Xc=3q(6F>zl-f&PKQ z&Gh8{ab1&L#|3ggoYE?YCj>+HK5h9hfyG{7uT%^_52OSN4NmgUmEupSCaOK#G z_jc^a2fsNFe)H~9@YF%%<^PeVvPEgs!cR6fpcag+_=v$shM?>45E*R5Y7_%r^&Qx+ z_XIT93OTv88W=wO9XO`?3b^}2WUtaiMx_FRg!Qa6Z0LRFK0<$iRM8f8n>dpmNAa(y z8IIp(TUWbZkVqJ+d;vjO$H1G-hvl53v1kUI^3%n3acIe;0cSywfMf$fWxLuFNX>h0 z!b56gzw@Ff%a0NKgXdRdmj~>0IxX5isAq4XXJW?@skkZzhM>JzI?#xl)!La-oa~Ho zE(v|OVbDNFktG+iSP_tLA;^g~Un;IFCeD0nuXa#e5q(6Fo=CE(ha9gp@;*UU{9-NKZMjE$e?l+J5OPRrTT z-sExpLhAOg_CfptWv|N)Q}Y5>%_RsLo`LLU1Qi1skDt5_p*82h3%*36>rg;7NI*-V9dH`G z93nfO^99ErMJ@c)zaf4?@9~NXIY=X~`uXFgZA4{^89z&~=-$1xag#p%^#Au$;LaLQ z{yV9KFDJFlP9}py`4SSUXCW0j84`}vXDpO3Qk}upA+`BCIRsgXxG6_Y#4%v_6t6?m zJ(HOkU0|ohPINj$J`;IK6a73)Ra9{9fVd0BOT90a!`*X{1MtT4oYq1P>WJe4H=g7j zoLw!mYVk<&Bbez;??XQ7h8#nuMsR+4a-k%?hR>wRc;$6D zNwi{)oPd@Ed`dj|km^)*P9iE|t8Z{S2BKOBlA6B7&yb25fRbI;K%&NXh;%)4HM+Gi zCsUp()LfC%CeW`7TsXB72O?>Kjsxt#ZPMO>KQhS-oy6=sBv411o^_KvY`B)c&rZ<4)w-wTUTfLZTA|$i~Y7%y; z9uF0lF3$}vVhYKR8je@s1Q=By7p>;{6wj$=lyj@~xYKwmMr8wDimA(>>N zvdlgYu`jWj;Od(-_{fOogdZ|PG?&9wVP`YjX$g0zwYzhgW2drZ;#1(@Ymo|A3yR;W zlMyYb=NM@C^YqkwB$2G6OozLhpaB@>-!JPWmYTH6_dy()uHkt_LEyyMhRb-9uEr2{P%3-RG z5)BChEIUb)XC3JRrDz0;dbO`&+&!M8k-mnYGxmSzkd)1Z6gPm>J%y$Kym4QRaoc_tSS6oIAi1!+S*ekix58bK1 z&!Mf3wSz+}VN|d{bR@YxP0~EOcIj2Wr-8a90n7U+XdF9O+gPES!wy=@>fRQY9nz_Ir+=$ay}|A(l5jBQ{9piA!VwzEEN+i(2)Wm;Vc9eYSDRiQ8=IM zLbh(#Pd?xBo~0O_Rt;>>QDs5l8G&ouXA#fD#NqOdAuZJ$fnY+=Zmk`NF6vpw9b_ zVf<1ZZ8dgW&;J|*dIN(s)zMzRrMO5`0WaGI4Fk{weZe1*=TG3&<}Q%&un@F>T-_;L z5@Rb`=iSYe<@l_oA$e zLUG9&Ug+#Q3Qo*VA8$`pFeaT6&Jd7rbhV zB|UViZZbv;g#oC{@X;i!=WHu1JgN2`jJ_4E=u~0sdp9V20nuB*?8!{I^H^}5Ym_YP z-gF^U;Odu@B%-x~P2JIGG{x(3I|K7FMXZLj=K0FYNS?8nF^{vtir4ieZadQvcuM?E z8bg2kvB0sMo?>6ZJ$y+ZK^Oa^hYDn1;i#sUSaZ;41Ir*qGk~qm*hfmgD4ZnQ!+$`6 zmwt<)I?CA{Vfcv@E2rC$utI$7ctrYY`NP_VPZ-JMQQor~a8=-OyuOY_HAV z&4_2{>0y*1+LcS+v(^V;h`VDqINYE{4duLiQ0Ce!=R4_gUnxWh(^<27P7A`@7F8r)>FwrKB>>;+wLYYsOa^)-n1Zlq)a@BZ~W;TfXERLM@!`*+0RweCw z{%cthc8UJqFvJ)Xk=WB%dPnkk=s8iVuHtrBgw*;+@wfrqW{`z@l*rLdwnIar{Zh0>C6ny{wZh9Q*BQ>Z$s%|sKd4J|)b2SzSiU0Skk5X3=U zB=76apem**_DHUuaJ>>E00fxPw?DT~})8y}=Mh`xOqEOewv<_ey@A4{#xD!}ZBqNXy+ zy1x|d_3X4+ka{guKy=V(aMP6@JpU)>_Xqb7j*DBXm)S1DD4Ot6nXjvCe*h~7tKwYZ zu-j8;-Pd8&0+3xQ3l8Rv&oM=;h9HIyIDnN{jqkPC(y1n6Y+*{t) z2k7D$!yCBypVNqG`lta7s3V|VTzmlYLJPR{6bO1Pn7!__{)BgLAaU^Y-|4{^>WrJ` zZoB?Wm)c!8w&FS7u65&M|`v ztNW;iTnzJDkLJ%2w4v*@Q4WqyRt`f>IKkgcuRwEd;)2xsNI$qh;MyG$-P9w0>)}Y{px1MvDAldO|`#xnNz= zWqo-m?Fav_vai!sez}1!hVfEIp7-g6EBb5&qAJrFISA3Ll43de9rAVk7DvNT;Q_9H z{p>Dm)}~VVwr|{VFgaf1po{0c?BM0pi}E=8!Tw}t z0tm`@#hooM!SGOLa(NwsOSy6#jD^YqFwHdBG(~jZJT(U)F^`S`0K>|eFJaJ~t>Fi^ug<^BkCk5y{~o%W61t=FPd+(y>a&?@D8{>#_tG<*9V1qRvLZ$K|ql_X!km;wn;Af?hYRv=!(hw&N3w}IL*yZDIto&XWZOh@ph zZDnk5x0VLw2n-i(9Bo$a1Lfm=q-f7b3qoKBxg49eee_ZtcMECIfMz{f^*hiRW5y2r z$29Z5CuSh8l6Ro*W^;1NqL&O zpkm{Ie}2Ma#<6U6-l?E*v3#CgpU}P3cJOf6y111`yc^PV$-l|#d$)E+^z~ECPs`V7 z#7r1Y`3jYR>9{hQLjQN<4=-M^=OqIkI)$9{R~kh_$X_b!k=<&Zyt*Vzr;Spj!jkC< zTSfJtz{G7U%J>q{mBDqI%vHDq8a*bJit{OdK=5q(1Kk5j*q18cps{8in-P(ZpqMYU zHezsthJGP4L~QRBd~3uxl6T2Q^g(w2YkhFIEv4klIWD&`?J?^rdFhY>Z$j3SZIII0 z+oULvoQW-+u`rUS3c)-w^)%sm4*AQo7e-1=DHXpEQ8L*J+O%N|=(FNH;6Ff;@Mmf9 zA0TO{<>J?=uFO!OOT9@&gS!!bBny>ihhf}%g3@7WZQ2*Hw(>Yr@#`*YU^n`XX3*u) zgR9A#oprZ=UDqgF1^hAHEh@3y;Ca{ST_C0-no-7x*5PZB+RuUw-^-JG|LaI-7})>i zAydt#5ipu-9RCK45JmkTF#5Cb-p2kL6i>2V9s@z1alO`oS|u6e(P6ttp5X-(9D?Vr z$FG!*-*^mN@TbdbjV<-Y)yCN4;V=wGtc@Ei>O%9+{=|%Tu#zrsDJseSCEC;YyH1Mv z)u^1|DXO?Yo7+^pTU{JGRbL*&pwu&QHT%mpfNGbQ-(ZA=&-YOQr4BOjr9uhe~e3`Z3=xT9Rp|25Z3l)G5$tKACxg5`pooJdSd zCcda#=aS*?zK1P@;n@IVE(39_`_qLjC0?Kyn+TM_8uM=t7B2t7M~C}WwZZC;{Na^>xFXa|#{ zH?`PsS$H8zH%KQ;mlm>KyTBJ|ws)p+&D|*VtQy;bdQ$1lFas); zC7wjf=@Q-U$%SEW#Pl}al3)6X^-)t}wWpwSD9PcKwTn-Ih45Kx2|m)i>o(-L)@{IC zqBsxRTQmvaTkEbgq(uYifzHisXL!Y4wGh6~qDKgyy>v^W__(a+k-$xxK{elco9fwz zEF91>gi#DHr$kj0K&WY|<*_4eQ)9h98h5C1NovIK4SC5k^LDh%QwzjFVJTtMyb^ZT z5H}q;dw`^0i08qN+#{-7sZKA=+kpSm*&9Kvtxa5fKg~^t{kFVI(Pyf*)es2yB25MLg46yQKeaQ)v#ShBrvr-s`vmf!+-+8P@zxrI)@U{Ovk4IID zyzeT+{Q@9RwK!{`&%x3B&j_ag*M;7`+ebD4&$o=R4LM3nqn~7F&WwWVm_8MkyN+{>Y6w`<5ipuW0jY;7Yvt8n{+(bxw;Fo7!apOiF;wCMl1^r^1|@<9~+GrivflzY@L&u^V|g?hmQa`Ea2osi)0&HV+Dpn-c3Tz9yXo{p)%swpqohe zAk`{nDDNEz;?6-%Hc5~T0}%5Y)hzx|0{^xWIP2f)?dY+ZkKIWF*9$;KSzF96yC|Lk z#rlmTwhmp`Ntb&k#7=JF)4T|f&^h1DSm5yl$bjPg%#}%u{dxDXAN|omZn^Ik@dqJr zQ>}hQSFD;x)eeR?E5U@7D^hAF{@r0FlzX|SH#LFfPI2bln4p39H(@vzkQ~sSgIwDs zLUN71bYMyhf7L-ukoOb76K~xRrd{9!OI52<>UEf>c9FHJ?qgj@OdXW#?D@J17L{1R zyEITOkDMqFUkkWf78OTX5tp!Z)KDH^P3mmO5h$g(=JEp9L)dGntrVsLFD3g_eC;@OBO7sTOKTZv@Q zm7*&nZx<}K2p8i8of$$*J(5_1q~sQImG)y?e9u``Sb14Z;?1LpOQlPjlTg-pIX19) zB`@fqsVn^GwRSI_+c&Y*vBZ41+ZHi17mq;PqRc@+@TR0!Ad?w;%m1hY;z~_BnnAaK zY>v^QVi@dba&uS)az+{;Ko6NKk=YGIwpav2jZKS?UaqpJ1H8eaJm1S6y&U$kLFS$+ zQT|(j$-HV@k`EReH|f0{Kq2@~4+8$%PsCz1Z_Q-!00+JTck2-GZgd{-jdJm4al_2{ z%P#C}TzKhu5GeAeitp_<0wL)n5~(&QnRW*a?BHVge3|Ny4?l0c2u!;O3^~tO$4oyo zLP9RGad}ZDsJn4!g_U&bGfVqbKWvPtVLz-H)dOKVJ+4tY6n)4LVolS}WYzGRCrPrx zw5gK;_XqQq5kO_Z>o1wBr2)Cwz#K?T`Pp^9DiE`7Y*aH(GdxeW09Oypf8H2(wPT+Yfwe%JfN z4s4WETRVWxcR`m|i{*GOMoIlT9B>AHswX~UZtF>2n&hw zDpIoQWpmy#l1xi&h{fr_0-Mfx0-Lc;ndDaNOF}|xeOkh_9?&ASdWN^m1-VQD2JJLc zEE*RdGj03TAosGlb(5K|I5+O;{I`IyB?bMQ4!^DRJV9P2uhwsYv@AraOUG#R7l~v& z-jF7kuFGn?DYy(h>=X$rpnh~hL634*ZUVNBFnRdyCNSX_1~Q)y^i$`-Y7n>6D`hS~ zmWV>8hjKeMf@D2`>;|Y&WzUsL3}U5P3|3@N`u|WEM{DQ*ehA3Gza7?6;&6;Hjm~jB zh~s8sAfc7+*y}O#i&ylG?PT%7NJ><&PB~%;RbR2pwc;9#w3Cm~I@Ok~0w;;$JXF;w z^X$Rz$?2g;&JD0r(kU)f(o3i9oU6JQB3g!)4|k_8MheY2xlMJ@Zde(*l&Uu3DwFZ~J)at-WLg!;fhG-96BN5aZLd8o`o#4KE;!Jj)V9ja`*!m;rNo$s;p4?aE{nhv4@Zhm zmen2*{6v^56Q#MKLAWE6U2QB>UajfuEgXaW%v9gPToAuNn3F8nj~Ph(toG9YN>1^m z{H%~DiE99YOUIyR6#&n5DB|oadC3x_2v>^5PQk!nvDhyEW^nn9o&FXb z_}@9AO$q+Xc08ytqSaGNXtI6?Y%MqBFhpn>I{r7taw0!~xduY3!^2qbcm#h12}iW3 z9BMjLnG@?8I%gu|=e}hQ~8ki9b%@L z^5q!&Mqu$*oNX@?WhS^kk@YBMI)={& ztqo}s_T46=XI|d(L(wB1M!*+&2~@mXJ{<{DG literal 0 HcmV?d00001 diff --git a/docs/structsw_1_1_routed_event_args_of_type-members.html b/docs/structsw_1_1_routed_event_args_of_type-members.html new file mode 100644 index 00000000..6cc86910 --- /dev/null +++ b/docs/structsw_1_1_routed_event_args_of_type-members.html @@ -0,0 +1,115 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    sw::RoutedEventArgsOfType< TYPE > Member List
    +
    + +
    + + + + diff --git a/docs/structsw_1_1_routed_event_args_of_type.html b/docs/structsw_1_1_routed_event_args_of_type.html new file mode 100644 index 00000000..442e175b --- /dev/null +++ b/docs/structsw_1_1_routed_event_args_of_type.html @@ -0,0 +1,165 @@ + + + + + + + +SimpleWindow: sw::RoutedEventArgsOfType< TYPE > Struct Template Reference + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    + +
    sw::RoutedEventArgsOfType< TYPE > Struct Template Reference
    +
    +
    + +

    表示特定类型路由事件的事件参数类型,继承自该类的事件参数可以用于RegisterRoutedEvent模板函数 + More...

    + +

    #include <RoutedEventArgs.h>

    +
    +Inheritance diagram for sw::RoutedEventArgsOfType< TYPE >:
    +
    +
    + + +sw::RoutedEventArgs + +
    + + + + + +

    +Static Public Attributes

    +static constexpr RoutedEventType EventType = TYPE
     路由事件的类型,RegisterRoutedEvent模板函数使用此字段注册事件
     
    + + + + + + + + + + + + + + + +

    +Additional Inherited Members

    - Public Member Functions inherited from sw::RoutedEventArgs
    RoutedEventArgs (RoutedEventType eventType)
     RoutedEventArgs构造函数
     
    - Public Attributes inherited from sw::RoutedEventArgs
    +RoutedEventType eventType
     事件类型
     
    +bool handled = false
     事件是否已被处理,若将此字段设为true,则事件不会继续往上传递
     
    +bool handledMsg = false
     表示是否已处理事件所对应的Windows消息,对于部分消息将字段设为true可取消对DefaultWndProc的调用,若当前事件无对应消息则该字段无意义
     
    +

    Detailed Description

    +
    template<RoutedEventType TYPE>
    +struct sw::RoutedEventArgsOfType< TYPE >

    表示特定类型路由事件的事件参数类型,继承自该类的事件参数可以用于RegisterRoutedEvent模板函数

    +
    Template Parameters
    + + +
    TYPE一个RoutedEventType枚举值,表示路由事件类型
    +
    +
    +

    The documentation for this struct was generated from the following file: +
    +
    + + + + diff --git a/docs/structsw_1_1_routed_event_args_of_type.png b/docs/structsw_1_1_routed_event_args_of_type.png new file mode 100644 index 0000000000000000000000000000000000000000..86f676a44e23dbe0db9821c70710756cf999b712 GIT binary patch literal 863 zcmeAS@N?(olHy`uVBq!ia0vp^Pk}gqgBeI(6mWV3q@)9ULR|m<{|{uoc=NTi|Il&^ z1I+@7>1SR%c<=xyZhAIs2~du+B*-tA0mugfbEer>7#NsddAc};R4~4s`>^k^0#A#& zaHi?||3{{?aY%67^{rm}s_53vWu3`CHrW2{E{zTUe#mRmIa5u~OYLf^p1&?k)|`IZ zev-+i@@@Im5z^sq^KDg6+P}UzzyjS>GOvI^~oQ2WoOUcR?wAryzJDZ>U%b4%(B`4 z>&iw~`}besi#DCUO_zO2{_N8?9JbkO_xnz}Rk7x!$LkX(1J|(05EtMeq30>!XQ6u3c~~E$wCY@7>XX$XGBgr zx_5)eq+(w$&rb_IH9hT2mfiX5IjQH(+_%vm3_V|I+_8^;TJhDu#ZyY_sO-wi+3D}^ zFMN}?Vd<15#z$oiJKrd;cy6L1T7UH1B{nwclT)@Ed#slI-lyBLnCtgl<--$OnRO4J zejzjCeC>YG#h<(kSGV$U_H9*py1z!vecJtiwl$JVEtNk9#%!JP@^H(sm}g7>yedr9 z$Ze|7+rLa_F}K&@gl9z#k>^r{uLa#oDc4xdqU!vPakIbm^y5q4!eSy+=T@R$_w1Hs z$=auiu0Am7l`h${cI$*6dkW^?*wPxzW4%q!d)XTKZEsU+7q85gzX@_W#v zf8FnNZ~b35ZHadk^HNzZ&#V+}70>>cvRmJng)YA|-&fOf{naH?RDhvB>4~%S(@i?v b<$sxf%kJ%BW!KFHW(5XMS3j3^P6 + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    sw::ScrollingEventArgs Member List
    +
    +
    + +

    This is the complete list of members for sw::ScrollingEventArgs, including all inherited members.

    + + + + + + + + + + + +
    cancel (defined in sw::ScrollingEventArgs)sw::ScrollingEventArgs
    event (defined in sw::ScrollingEventArgs)sw::ScrollingEventArgs
    EventTypesw::RoutedEventArgsOfType< Layer_Scrolling >static
    eventTypesw::RoutedEventArgs
    handledsw::RoutedEventArgs
    handledMsgsw::RoutedEventArgs
    pos (defined in sw::ScrollingEventArgs)sw::ScrollingEventArgs
    RoutedEventArgs(RoutedEventType eventType)sw::RoutedEventArgs
    scrollbar (defined in sw::ScrollingEventArgs)sw::ScrollingEventArgs
    ScrollingEventArgs(ScrollOrientation scrollbar, ScrollEvent event, double pos) (defined in sw::ScrollingEventArgs)sw::ScrollingEventArgsinline
    +
    + + + + diff --git a/docs/structsw_1_1_scrolling_event_args.html b/docs/structsw_1_1_scrolling_event_args.html new file mode 100644 index 00000000..359ba537 --- /dev/null +++ b/docs/structsw_1_1_scrolling_event_args.html @@ -0,0 +1,179 @@ + + + + + + + +SimpleWindow: sw::ScrollingEventArgs Struct Reference + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    + +
    sw::ScrollingEventArgs Struct Reference
    +
    +
    + +

    窗口/面板滚动条滚动事件参数类型 + More...

    + +

    #include <RoutedEventArgs.h>

    +
    +Inheritance diagram for sw::ScrollingEventArgs:
    +
    +
    + + +sw::RoutedEventArgsOfType< Layer_Scrolling > +sw::RoutedEventArgs + +
    + + + + + + + + +

    +Public Member Functions

    ScrollingEventArgs (ScrollOrientation scrollbar, ScrollEvent event, double pos)
     
    - Public Member Functions inherited from sw::RoutedEventArgs
    RoutedEventArgs (RoutedEventType eventType)
     RoutedEventArgs构造函数
     
    + + + + + + + + + + + + + + + + + + + +

    +Public Attributes

    +bool cancel = false
     
    +ScrollOrientation scrollbar
     
    +ScrollEvent event
     
    +double pos
     
    - Public Attributes inherited from sw::RoutedEventArgs
    +RoutedEventType eventType
     事件类型
     
    +bool handled = false
     事件是否已被处理,若将此字段设为true,则事件不会继续往上传递
     
    +bool handledMsg = false
     表示是否已处理事件所对应的Windows消息,对于部分消息将字段设为true可取消对DefaultWndProc的调用,若当前事件无对应消息则该字段无意义
     
    + + + + + +

    +Additional Inherited Members

    - Static Public Attributes inherited from sw::RoutedEventArgsOfType< Layer_Scrolling >
    +static constexpr RoutedEventType EventType
     路由事件的类型,RegisterRoutedEvent模板函数使用此字段注册事件
     
    +

    Detailed Description

    +

    窗口/面板滚动条滚动事件参数类型

    +

    The documentation for this struct was generated from the following file: +
    +
    + + + + diff --git a/docs/structsw_1_1_scrolling_event_args.png b/docs/structsw_1_1_scrolling_event_args.png new file mode 100644 index 0000000000000000000000000000000000000000..d735fcad9dcf6b2f50d6bf4e4a5e7901318dc819 GIT binary patch literal 1513 zcmb_cdo+}J82%>NZIh_1N-~{HgPOrKN1JsdXd_YLsW>2z=^9iNR$d6n;IZxg*PLnxIL9NIoPV8-HtBns;lm!V<)ddeM%xrl1;FNbq)iK66N81+GjQk;_bX z{5spx;twWZqh|4pZmAb-bGfS+EyWNz^rIOb4eH7!9_G!GAvv$ zTe$0AXdtm><%$OT!}y^$$mwKkLv={PPCj~X&WVD=&T@OQgooi%+v0}>Yt#2=r@>f( zXl*<5Y}Nc3=W%jejoF-C1_7#I*QDFElIdic0^PK=Np}^=d__}`cuCqbRo0-@6mc*E z#qiKPU}gS&^ur5(ZUqmx-a=kpdc;SASf*BkyMa}sUvCXqySj7ubto>t{#7<2m`?Kcr13{mPo}znl)CekmBy&97xI^_Z z;$T&1RNs)CpV(r-@vL|;7GX$Eng}fqt1aeU(}u1gXrFawcGrLORGy3qNP)J}dVZM? zw#-VVRK~|>+u1Edm#XF>yN&{f-javNzL%7;ET#R^;o5m=ljP`X2(xeggD5kdYu+>c zzJob>sTSGSrAO$0o~SpoHhxdtl8m1wr^qkY%he95_4xsT$m?Ya`gc8z#l#!CAWenX ztj1g>XJ>^gao2oi%9y?T$;=9qUBgjnWI=B8f;rN{RDG07g%0Ok+zxxEDbE;l9kQ4? zx@4nP^>cIq;roOY5H)?MGKsrn(N{a|Y)Lq7E6iKn&J1Y~81+RN#_62I(wUKGMdS1C zWL8bW`IBR4(@C;J`l%o&RenX_Rkz5^pRd*KrHKXMC|WnpH-L65J0*>EUo?eh=g>5D zMO(mXk#VK1RCfZquC4DN!N^N&MMt?v9M}=Ah5R&Fb>IGeMqg+{YrRRr2BJ+aDmQJr zo+MR;@CNc=q17OE1I}#d8F>gvSjV7jePQCDq zy9S590}?0{+^9f^L2EPV4bR_*;;iiP8>)K3jPNpQ+>AXw>zO!7^rG+6$Q)IDhjQLx zA0(T^S|(L7WkLM8;B%bb_WHAtvRNKvt89;u)fErj!>Za7YsH%*E6T0$oFMsmg3MP* z4-Cd`853Q5m{1ZriyeD%VxX8WHdx&z95-^T6O|QyX!ztp$M*L7KAjzj?qGy;Ur@di zhP`%DI}}xOp5hKw4@93D<&4R3Tu52U+r$sK9j9OBH>iZDT^C+=yx+l%8A~Z?5{s_f zV)7PMsOo`{Lu16=>nl?W-!x}a=R2}3L$zJ|#%I|R2YB8|M2Jq;uHu`uI?bpY39h(z z!fZ* + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    sw::ShowContextMenuEventArgs Member List
    +
    +
    + +

    This is the complete list of members for sw::ShowContextMenuEventArgs, including all inherited members.

    + + + + + + + + + + +
    cancel (defined in sw::ShowContextMenuEventArgs)sw::ShowContextMenuEventArgs
    EventTypesw::RoutedEventArgsOfType< UIElement_ShowContextMenu >static
    eventTypesw::RoutedEventArgs
    handledsw::RoutedEventArgs
    handledMsgsw::RoutedEventArgs
    isKeyboardMsg (defined in sw::ShowContextMenuEventArgs)sw::ShowContextMenuEventArgs
    mousePosition (defined in sw::ShowContextMenuEventArgs)sw::ShowContextMenuEventArgs
    RoutedEventArgs(RoutedEventType eventType)sw::RoutedEventArgs
    ShowContextMenuEventArgs(bool isKeyboardMsg, Point mousePosition) (defined in sw::ShowContextMenuEventArgs)sw::ShowContextMenuEventArgsinline
    +
    + + + + diff --git a/docs/structsw_1_1_show_context_menu_event_args.html b/docs/structsw_1_1_show_context_menu_event_args.html new file mode 100644 index 00000000..5393b0dd --- /dev/null +++ b/docs/structsw_1_1_show_context_menu_event_args.html @@ -0,0 +1,176 @@ + + + + + + + +SimpleWindow: sw::ShowContextMenuEventArgs Struct Reference + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    + +
    sw::ShowContextMenuEventArgs Struct Reference
    +
    +
    + +

    显示用户自定义上下文菜单的事件参数类型 + More...

    + +

    #include <RoutedEventArgs.h>

    +
    +Inheritance diagram for sw::ShowContextMenuEventArgs:
    +
    +
    + + +sw::RoutedEventArgsOfType< UIElement_ShowContextMenu > +sw::RoutedEventArgs + +
    + + + + + + + + +

    +Public Member Functions

    ShowContextMenuEventArgs (bool isKeyboardMsg, Point mousePosition)
     
    - Public Member Functions inherited from sw::RoutedEventArgs
    RoutedEventArgs (RoutedEventType eventType)
     RoutedEventArgs构造函数
     
    + + + + + + + + + + + + + + + + + +

    +Public Attributes

    +bool cancel = false
     
    +bool isKeyboardMsg
     
    +Point mousePosition
     
    - Public Attributes inherited from sw::RoutedEventArgs
    +RoutedEventType eventType
     事件类型
     
    +bool handled = false
     事件是否已被处理,若将此字段设为true,则事件不会继续往上传递
     
    +bool handledMsg = false
     表示是否已处理事件所对应的Windows消息,对于部分消息将字段设为true可取消对DefaultWndProc的调用,若当前事件无对应消息则该字段无意义
     
    + + + + + +

    +Additional Inherited Members

    - Static Public Attributes inherited from sw::RoutedEventArgsOfType< UIElement_ShowContextMenu >
    +static constexpr RoutedEventType EventType
     路由事件的类型,RegisterRoutedEvent模板函数使用此字段注册事件
     
    +

    Detailed Description

    +

    显示用户自定义上下文菜单的事件参数类型

    +

    The documentation for this struct was generated from the following file: +
    +
    + + + + diff --git a/docs/structsw_1_1_show_context_menu_event_args.png b/docs/structsw_1_1_show_context_menu_event_args.png new file mode 100644 index 0000000000000000000000000000000000000000..6f6ac022355867e19fad5a75bd78e4366677791c GIT binary patch literal 1672 zcmcIlYfzGD6vkXNE7P`S%xu*Zr!`X(LrpDnGYxMQmDZBdsz7`w^F~4-S}~eDbG^34&&zjJYJ%yBfYV3SYPBYvR4gRtG(K?MXLEUbVf*CR z*qEjc?+7l_VEReOpi>ad`*(9$$LxbZbhjeBy-pLglqEBGx!We)meSNTmAZL%mYshA zhVOdTiD_rd2#h$%cRadQUVx+{{p!tcK&|OXE;cB7+A)B>&AaVRnFW#u)tOxshuu>{ z#p9(O)P}}e@s#;da8ZYDp1!Mq$A^T`;uxz-qWp%I zm~Ol3wy-8C`T@?1j-ROFpkKTFY=@EgUqlb1eSrl@IzFO4NL9Or2ZG8g0b|ZeF=f4b z8+Z-T!z9v74zwOxX0Z+o#-0i9sYBn#zZgaNd~ZEv&y~Pnh@Rlg^Kxp`b^mdf!n|41 zT``zWdbFAvL$I?;3 z5Pq5FMw|8v(0T(C%V7kU5NQoMqxbzQ6)45ksYYLS*?uMil*fs#`3-n>X}mdKMiIRv zWgBv43O80o?<^(&6l|y7B=VxYAUXQLSjN=cBUC$^m`j;dfus8F!=G{&8x&2tU@>JE z`7slR7KRb)ahwdTiuC);mC5kcxo0>*g1{447$IBA9IkXJC9UG5{7Z%e)a|1E9~SSK zcHPeNB6vpAA|0FrQmU}E39(eKC?-=1x%ERNsri~t{lYh!doG!n#?px=YJY4$yJANMYdLn z02OZR(*MR|r-<>ew>UKJeS{xRzzg$GCOk1*hIQlLuL%=4Gx=-9385u9ZsKulTuPR} z;X2ZlEgz7@ve7h`_)-gURKGuQdzo!s27Co(iSP;twq#M<*68y&A9Vq_au-6|USd6! zQ*D;!B5X{F1o@^PqO+iDw$EAF$9hy&7=NVEUnFeC@wc(IDKC&|Egcp@zD`|101(Hk zl=9eABaI?A8A>miTBK+|UUknEr4;q4KOgMaP}@Xg=6m&F@^)%oSimWVwen_ zJWfZuW>BzLuVx8#q^;AziEDxqFp^7W#qtzNl5^M0vS;jbMHH5xH_k!#CbQeyDN(=S z3`O9;)8kHDec9e_vgj0e%DdyO;}&!G&=keB!Ki61;#0mFe5b-J)+AR`8y&G~f&DM= z*E=v+!q${Fs&e3pg2!bkKm01F#<0};u=5ksr!go%W;LPC4Q@VV*U#qU6zRG|#G70ipO zE=3vF^5YB|GDF9Y5NNE;HK>RxV7LzN;XpQ@y(Y + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    sw::Size Member List
    +
    +
    + +

    This is the complete list of members for sw::Size, including all inherited members.

    + + + + + + + + + + +
    heightsw::Size
    operator SIZE() const (defined in sw::Size)sw::Size
    operator!= (defined in sw::Size)sw::Sizefriend
    operator<< (defined in sw::Size)sw::Sizefriend
    operator== (defined in sw::Size)sw::Sizefriend
    Size() (defined in sw::Size)sw::Size
    Size(double width, double height) (defined in sw::Size)sw::Size
    Size(const SIZE &size) (defined in sw::Size)sw::Size
    widthsw::Size
    +
    + + + + diff --git a/docs/structsw_1_1_size.html b/docs/structsw_1_1_size.html new file mode 100644 index 00000000..75110e3b --- /dev/null +++ b/docs/structsw_1_1_size.html @@ -0,0 +1,158 @@ + + + + + + + +SimpleWindow: sw::Size Struct Reference + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    + +
    sw::Size Struct Reference
    +
    +
    + +

    尺寸 + More...

    + +

    #include <Size.h>

    + + + + + + + + +

    +Public Member Functions

    Size (double width, double height)
     
    Size (const SIZE &size)
     
    operator SIZE () const
     
    + + + + + + + +

    +Public Attributes

    +double width
     宽度
     
    +double height
     高度
     
    + + + + + + + +

    +Friends

    +bool operator== (const Size &left, const Size &right)
     
    +bool operator!= (const Size &left, const Size &right)
     
    +std::wostream & operator<< (std::wostream &wos, const Size &size)
     
    +

    Detailed Description

    +

    尺寸

    +

    The documentation for this struct was generated from the following file:
      +
    • D:/code/GitHub/sw/sw/inc/Size.h
    • +
    +
    +
    + + + + diff --git a/docs/structsw_1_1_size.js b/docs/structsw_1_1_size.js new file mode 100644 index 00000000..8d9c23d1 --- /dev/null +++ b/docs/structsw_1_1_size.js @@ -0,0 +1,5 @@ +var structsw_1_1_size = +[ + [ "height", "structsw_1_1_size.html#a084604eba918ac19b2f8402e330d767b", null ], + [ "width", "structsw_1_1_size.html#a22c3b210b0c48e2812604381f729d5bd", null ] +]; \ No newline at end of file diff --git a/docs/structsw_1_1_size_changed_event_args-members.html b/docs/structsw_1_1_size_changed_event_args-members.html new file mode 100644 index 00000000..a120862c --- /dev/null +++ b/docs/structsw_1_1_size_changed_event_args-members.html @@ -0,0 +1,116 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    sw::SizeChangedEventArgs Member List
    +
    +
    + +

    This is the complete list of members for sw::SizeChangedEventArgs, including all inherited members.

    + + + + + + + + +
    EventTypesw::RoutedEventArgsOfType< UIElement_SizeChanged >static
    eventTypesw::RoutedEventArgs
    handledsw::RoutedEventArgs
    handledMsgsw::RoutedEventArgs
    newClientSize (defined in sw::SizeChangedEventArgs)sw::SizeChangedEventArgs
    RoutedEventArgs(RoutedEventType eventType)sw::RoutedEventArgs
    SizeChangedEventArgs(Size newClientSize) (defined in sw::SizeChangedEventArgs)sw::SizeChangedEventArgsinline
    +
    + + + + diff --git a/docs/structsw_1_1_size_changed_event_args.html b/docs/structsw_1_1_size_changed_event_args.html new file mode 100644 index 00000000..88c9a5bc --- /dev/null +++ b/docs/structsw_1_1_size_changed_event_args.html @@ -0,0 +1,170 @@ + + + + + + + +SimpleWindow: sw::SizeChangedEventArgs Struct Reference + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    + +
    sw::SizeChangedEventArgs Struct Reference
    +
    +
    + +

    尺寸改变事件参数类型 + More...

    + +

    #include <RoutedEventArgs.h>

    +
    +Inheritance diagram for sw::SizeChangedEventArgs:
    +
    +
    + + +sw::RoutedEventArgsOfType< UIElement_SizeChanged > +sw::RoutedEventArgs + +
    + + + + + + + + +

    +Public Member Functions

    SizeChangedEventArgs (Size newClientSize)
     
    - Public Member Functions inherited from sw::RoutedEventArgs
    RoutedEventArgs (RoutedEventType eventType)
     RoutedEventArgs构造函数
     
    + + + + + + + + + + + + + +

    +Public Attributes

    +Size newClientSize
     
    - Public Attributes inherited from sw::RoutedEventArgs
    +RoutedEventType eventType
     事件类型
     
    +bool handled = false
     事件是否已被处理,若将此字段设为true,则事件不会继续往上传递
     
    +bool handledMsg = false
     表示是否已处理事件所对应的Windows消息,对于部分消息将字段设为true可取消对DefaultWndProc的调用,若当前事件无对应消息则该字段无意义
     
    + + + + + +

    +Additional Inherited Members

    - Static Public Attributes inherited from sw::RoutedEventArgsOfType< UIElement_SizeChanged >
    +static constexpr RoutedEventType EventType
     路由事件的类型,RegisterRoutedEvent模板函数使用此字段注册事件
     
    +

    Detailed Description

    +

    尺寸改变事件参数类型

    +

    The documentation for this struct was generated from the following file: +
    +
    + + + + diff --git a/docs/structsw_1_1_size_changed_event_args.png b/docs/structsw_1_1_size_changed_event_args.png new file mode 100644 index 0000000000000000000000000000000000000000..fae8a15206c70d3f5fab363b13dc1525f6ba6d03 GIT binary patch literal 1605 zcmcJPc`(~)7{?Rz2vu60twGhUXf{)fQj)=Qe2_mv}maNTYJJX%+-#h#M@xIUX&+~mg?~{2N=c=t~ zpb3FMw6Q0g@DK^J4_lRk#o=*Y5S9Pw*sC%7A&@OSSf^uW5}-0r8dC!3Ze@CSmnA9@n0lzYDU4Q& zI`C^Z`_0#>x_ImSmfLtYyc=@YX*e>Mor0ja;q}YB7|%|Cj6E)Mx7k+7X@cnuQ|!)^ z>6my!yX*+p{bP67u^+Vo&H)#Y5%=7#Jx77|lh`&@(#E3!;iP}#W{dOGbX3U_hGa{(y0i|uqM9wv|{4A*-^ghRrMyz(VLxfdib1XJ^v<=+6hLoVCvj z3W4Cl!IOV?is!(uB8`4beI^2x0 zENA1enx18O`x#G$&`mirwfh^ufB6DDbfOyg(Z4`(JT~}m4(N7ljW2+10v&B()WB0J(DRMwK z?MtRqc*i=}C~pF5R}7y&oaW!#E9zLQzmrUh2LLd?_>C_m6^bb$6XTV_E;sC#mC>eR#Zq*8edEJYWr7@Bfky*Jv*JKuGjBTU>oT+gzYV6uL<5^;(L4#t#lqo#~y ztU3#n_YfLL&pwQV2a=Vqhtq0Vwpxqi-Xmd7)?jGhDPQ20TYX4(atj+TtwY1M% z1O=8@$@hMl?2QreefZ|?dzCZW;#R!_7(f8q4Zl6YL@9feQaxXsDd70e`Cox=qEi;l zlD`$1&FW!4f5U&^{EP!6l{%?q0?ja?s5yODxr2dTREm=_{8x8*437%H6_i(L6zfl55Q88>QRx`CBd9 z1_Q%McEsl74Y6P_kv29DDsD#2*jS@Nm<#h`&3K7z+-mAbP@mD-rR8IZp4AVBEahaW zxy%oB4%I8GQz#WhU3*BR@7~=3qEM9pwIR~LXTn?ZV@(jR*mmNM%AkyT%>Pz$kKgfuPGcQ^S(1(TqXUWbwh1jl0AumKNIlTYyY0o@&RfhipMj_J zk+W6na(`Lfk|~ksz9zgEki8ihFh9cvRUaGp1pH zhMz#^X7Ke)|7baEcY{muKdecMdk`2!j$T#O-jFYT-k$&N!#aAA&Fc E1r2Ty{Qv*} literal 0 HcmV?d00001 diff --git a/docs/structsw_1_1_thickness-members.html b/docs/structsw_1_1_thickness-members.html new file mode 100644 index 00000000..2f47e1b8 --- /dev/null +++ b/docs/structsw_1_1_thickness-members.html @@ -0,0 +1,120 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    sw::Thickness Member List
    +
    +
    + +

    This is the complete list of members for sw::Thickness, including all inherited members.

    + + + + + + + + + + + + +
    bottomsw::Thickness
    leftsw::Thickness
    operator!= (defined in sw::Thickness)sw::Thicknessfriend
    operator<< (defined in sw::Thickness)sw::Thicknessfriend
    operator== (defined in sw::Thickness)sw::Thicknessfriend
    rightsw::Thickness
    Thickness() (defined in sw::Thickness)sw::Thickness
    Thickness(double thickness) (defined in sw::Thickness)sw::Thickness
    Thickness(double horizontal, double vertical) (defined in sw::Thickness)sw::Thickness
    Thickness(double left, double top, double right, double bottom) (defined in sw::Thickness)sw::Thickness
    topsw::Thickness
    +
    + + + + diff --git a/docs/structsw_1_1_thickness.html b/docs/structsw_1_1_thickness.html new file mode 100644 index 00000000..b266d72e --- /dev/null +++ b/docs/structsw_1_1_thickness.html @@ -0,0 +1,166 @@ + + + + + + + +SimpleWindow: sw::Thickness Struct Reference + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    + +
    sw::Thickness Struct Reference
    +
    +
    + +

    表示矩形区域周围边框的厚度 + More...

    + +

    #include <Thickness.h>

    + + + + + + + + +

    +Public Member Functions

    Thickness (double thickness)
     
    Thickness (double horizontal, double vertical)
     
    Thickness (double left, double top, double right, double bottom)
     
    + + + + + + + + + + + + + +

    +Public Attributes

    +double left
     左边
     
    +double top
     顶边
     
    +double right
     右边
     
    +double bottom
     底边
     
    + + + + + + + +

    +Friends

    +bool operator== (const Thickness &left, const Thickness &right)
     
    +bool operator!= (const Thickness &left, const Thickness &right)
     
    +std::wostream & operator<< (std::wostream &wos, const Thickness &thickness)
     
    +

    Detailed Description

    +

    表示矩形区域周围边框的厚度

    +

    The documentation for this struct was generated from the following file: +
    +
    + + + + diff --git a/docs/structsw_1_1_thickness.js b/docs/structsw_1_1_thickness.js new file mode 100644 index 00000000..17947790 --- /dev/null +++ b/docs/structsw_1_1_thickness.js @@ -0,0 +1,7 @@ +var structsw_1_1_thickness = +[ + [ "bottom", "structsw_1_1_thickness.html#acea3dd0c6fdcc155ac47ec7c3eab97fa", null ], + [ "left", "structsw_1_1_thickness.html#ad060a41dfe2453ef882849546eb7980e", null ], + [ "right", "structsw_1_1_thickness.html#a0efb5b20b89f2d86885a447b36926bd5", null ], + [ "top", "structsw_1_1_thickness.html#a817cf35540e487ad81984daf97b92208", null ] +]; \ No newline at end of file diff --git a/docs/structsw_1_1_window_closing_event_args-members.html b/docs/structsw_1_1_window_closing_event_args-members.html new file mode 100644 index 00000000..29900e4a --- /dev/null +++ b/docs/structsw_1_1_window_closing_event_args-members.html @@ -0,0 +1,115 @@ + + + + + + + +SimpleWindow: Member List + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    +
    sw::WindowClosingEventArgs Member List
    +
    + +
    + + + + diff --git a/docs/structsw_1_1_window_closing_event_args.html b/docs/structsw_1_1_window_closing_event_args.html new file mode 100644 index 00000000..4bc8fb2d --- /dev/null +++ b/docs/structsw_1_1_window_closing_event_args.html @@ -0,0 +1,163 @@ + + + + + + + +SimpleWindow: sw::WindowClosingEventArgs Struct Reference + + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SimpleWindow +
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +
    +
    Loading...
    +
    Searching...
    +
    No Matches
    +
    +
    +
    +
    + +
    + +
    sw::WindowClosingEventArgs Struct Reference
    +
    +
    + +

    窗口正在关闭事件参数类型 + More...

    + +

    #include <RoutedEventArgs.h>

    +
    +Inheritance diagram for sw::WindowClosingEventArgs:
    +
    +
    + + +sw::RoutedEventArgsOfType< Window_Closing > +sw::RoutedEventArgs + +
    + + + + + + + + + + + + + + +

    +Public Attributes

    +bool cancel = false
     
    - Public Attributes inherited from sw::RoutedEventArgs
    +RoutedEventType eventType
     事件类型
     
    +bool handled = false
     事件是否已被处理,若将此字段设为true,则事件不会继续往上传递
     
    +bool handledMsg = false
     表示是否已处理事件所对应的Windows消息,对于部分消息将字段设为true可取消对DefaultWndProc的调用,若当前事件无对应消息则该字段无意义
     
    + + + + + + + + + +

    +Additional Inherited Members

    - Public Member Functions inherited from sw::RoutedEventArgs
    RoutedEventArgs (RoutedEventType eventType)
     RoutedEventArgs构造函数
     
    - Static Public Attributes inherited from sw::RoutedEventArgsOfType< Window_Closing >
    +static constexpr RoutedEventType EventType
     路由事件的类型,RegisterRoutedEvent模板函数使用此字段注册事件
     
    +

    Detailed Description

    +

    窗口正在关闭事件参数类型

    +

    The documentation for this struct was generated from the following file: +
    +
    + + + + diff --git a/docs/structsw_1_1_window_closing_event_args.png b/docs/structsw_1_1_window_closing_event_args.png new file mode 100644 index 0000000000000000000000000000000000000000..893837fa935ede42b2285ea9012e6844ec8eb37f GIT binary patch literal 1528 zcmb_ceLT|%7$2#Vmpd*~SzPohChtU6omzg`uNa%*h^-gxn72ZbDXy9{NA{}-$yq~^ zspkD9kxsNZE-zX0(uFcj#1%{(*}KVLpJ~Y=;)}jzC+;4 zQF3cziFj{>GXKk*RP%Zfh}9P%*L|dT6-oXS{0ByB&8~v7;`tTN#N@#6!Hk>stF*#H zv&dGg@!I1ZN$8^Moa@A{UvNYdD2B)a7#tHw0|H?^m+GnS2e#bw z?;Fgas}ohs;xZHx`hDZ!jP;m=T=tY>E%$gkI>4!;Q!-Z_W~FdqX56%_Uo*|@pOLCT3=u#+?>YFzsRa^tLinb)j5Otpz5_R_C%vIGP z5Mf-Zz8OHOT;iA{XOh%(U?u`f)cp_Sb2-}l-!=pIRt747jyFkli4BbOQxWrneWy?6 zTi|-fMH?ayz{TOE^2~;pLj(tbtvSrGuijMHk}x$g^A-uw$SpJH*dGNpKCwO`&!CTr zctrNIVUvN&=N6lDq^X1Kuu*P^Hl?}hx7Zir^zyYCb@(%c^fKNz-ws_)_{>v-g#(2l z>GzH9&0>zy{n|?iJu4H~n!rde!-T|WX5xhi$m5HS-}oh_2$P~VM8dQ3gi`ii!t1n@ z2L!^1D;5m8FtL_mxXGw%IM7Fc^e`0zi&&IidYLfdGoEJXVPzEbYHKW`A5HtQNn7?z zrUOb~H}Ep2Iw-2DUoZHFkZayWkuzL>_r!+6A#OCoZcu)na@#C=dyaYTK-;8MZdGlE z$HGdtl+D9z)RP7kyY$dpTqZ$N=F)+oLx#I1ftFBfVcych!m{pzkyJ&YC6KhzcbqL5 z^oW{Fsh8f$5Ag=4T~SEMIuB2W?7c)eP16G=w~gU}KEEwW)J``uFscB~iZWnM0dIOH zst8l}u=y2u=3{NSBb0!gL&@)8uW>w$kq{B59DXJVfQ(CVFxHBB5WQ7-Z|e}lY1YYV zqdzN!GAq52flyUSrR|v)Ms=qtQblCE`u~&B-_+Syz&_!h73`liuBC6!YvYIG&F$

    y()Q5-gX=Y$Kl+_{~#UuO9sD@xG_ip~q!eE#{C z3S_xv=z3AT|42rZPgfudg)tm7Gk7#mQmOE@&dFKMbTf-SD5DG{4YigS6f=wWSCjRM z_H@P#YYO-))>qM$Uu~zwd_5uFwuvE;G)kqP8NOixX{YR`+xO3)Y`uH^#DN4#oYZTs zX;xb!BJR8ZDJ@@)AG-*@q1Qm|Sq_BxZA~FAG4TF2v zk>3iTQY%K?Y8ErA&Rt?ZW(xSzpYH6VQuh=*Osih9vzLGGVh~L2pS5LBsWK;yi9Iiq v6in5JnS4H$$jb454)#2oT|#XixUYy%lpuf3i8{fX!o zUyDD0jOrAiT^tq>fLSOOABs-#u{dV^F$b{L9&!2=9&RmV;;8s^x&UqB$PCj4FdKbh zoB1WTskPUPu05XzFbA}=KZ-GP1fPpAfSs>6AHb12UlR%-i&uOlTpFNS7{jm@mkU1V zh`nrXr~+^lsV-s1dkZOaI|kYyVj3WBpPCY{n~yd%u%e+d=f%`N0FItMPtdgBb@py; zq@v6NVArhyTC7)ULw-Jy8y42S1~4n(3LkrW8mW(F-4oXUP3E`e#g**YyqI7h-J2zK zK{m9##m4ri!7N>CqQqCcnI3hqo1I;Yh&QLNY4T`*ptiQGozK>FF$!$+84Z`xwmeMh zJ0WT+OH$WYFALEaGj2_l+#DC3t7_S`vHpSivNeFbP6+r50cO8iu)`7i%Z4BTPh@_m3Tk!nAm^)5Bqnr%Ov|Baunj#&RPtRuK& z4RGz|D5HNrW83-#ydk}tVKJrNmyYt-sTxLGlJY5nc&Re zU4SgHNPx8~Yxwr$bsju?4q&%T1874xxzq+_%?h8_ofw~(bld=o3iC)LUNR*BY%c0y zWd_jX{Y8`l%z+ol1$@Qa?Cy!(0CVIEeYpKZ`(9{z>3$CIe;pJDQk$m3p}$>xBm4lb zKo{4S)`wdU9Ba9jJbVJ0C=SOefZe%d$8=2r={nu<_^a3~>c#t_U6dye5)JrR(_a^E f@}b6j1K9lwFJq@>o)+Ry00000NkvXXu0mjfWa5j* literal 0 HcmV?d00001 diff --git a/docs/sync_on.png b/docs/sync_on.png new file mode 100644 index 0000000000000000000000000000000000000000..e08320fb64e6fa33b573005ed6d8fe294e19db76 GIT binary patch literal 845 zcmV-T1G4;yP)Y;xxyHF2B5Wzm| zOOGupOTn@c(JmBOl)e;XMNnZuiTJP>rM8<|Q`7I_))aP?*T)ow&n59{}X4$3Goat zgjs?*aasfbrokzG5cT4K=uG`E14xZl@z)F={P0Y^?$4t z>v!teRnNZym<6h{7sLyF1V0HsfEl+l6TrZpsfr1}luH~F7L}ktXu|*uVX^RG$L0`K zWs3j|0tIvVe(N%_?2{(iCPFGf#B6Hjy6o&}D$A%W%jfO8_W%ZO#-mh}EM$LMn7joJ z05dHr!5Y92g+31l<%i1(=L1a1pXX+OYnalY>31V4K}BjyRe3)9n#;-cCVRD_IG1fT zOKGeNY8q;TL@K{dj@D^scf&VCs*-Jb>8b>|`b*osv52-!A?BpbYtTQBns5EAU**$m zSnVSm(teh>tQi*S*A>#ySc=n;`BHz`DuG4&g4Kf8lLhca+zvZ7t7RflD6-i-mcK=M z!=^P$*u2)bkY5asG4gsss!Hn%u~>}kIW`vMs%lJLH+u*9<4PaV_c6U`KqWXQH%+Nu zTv41O(^ZVi@qhjQdG!fbZw&y+2o!iYymO^?ud3{P*HdoX83YV*Uu_HB=?U&W9%AU# z80}k1SS-CXTU7dcQlsm<^oYLxVSseqY6NO}dc`Nj?8vrhNuCdm@^{a3AQ_>6myOj+ z`1RsLUXF|dm|3k7s2jD(B{rzE>WI2scH8i1;=O5Cc9xB3^aJk%fQjqsu+kH#0=_5a z0nCE8@dbQa-|YIuUVvG0L_IwHMEhOj$Mj4Uq05 X8=0q~qBNan00000NkvXXu0mjfptF>5 literal 0 HcmV?d00001 diff --git a/docs/tab_a.png b/docs/tab_a.png new file mode 100644 index 0000000000000000000000000000000000000000..3b725c41c5a527a3a3e40097077d0e206a681247 GIT binary patch literal 142 zcmeAS@N?(olHy`uVBq!ia0vp^j6kfy!2~3aiye;!QlXwMjv*C{Z|8b*H5dputLHD# z=<0|*y7z(Vor?d;H&?EG&cXR}?!j-Lm&u1OOI7AIF5&c)RFE;&p0MYK>*Kl@eiymD r@|NpwKX@^z+;{u_Z~trSBfrMKa%3`zocFjEXaR$#tDnm{r-UW|TZ1%4 literal 0 HcmV?d00001 diff --git a/docs/tab_ad.png b/docs/tab_ad.png new file mode 100644 index 0000000000000000000000000000000000000000..e34850acfc24be58da6d2fd1ccc6b29cc84fe34d GIT binary patch literal 135 zcmeAS@N?(olHy`uVBq!ia0vp^j6kfy!2~3aiye;!QhuH;jv*C{Z|5d*H3V=pKi{In zd2jxLclDRPylmD}^l7{QOtL{vUjO{-WqItb5sQp2h-99b8^^Scr-=2mblCdZuUm?4 jzOJvgvt3{(cjKLW5(A@0qPS@<&}0TrS3j3^P6y&q2{!U5bk+Tso_B!YCpDh>v z{CM*1U8YvQRyBUHt^Ju0W_sq-?;9@_4equ-bavTs=gk796zopr0EBT&m;e9( literal 0 HcmV?d00001 diff --git a/docs/tab_s.png b/docs/tab_s.png new file mode 100644 index 0000000000000000000000000000000000000000..ab478c95b67371d700a20869f7de1ddd73522d50 GIT binary patch literal 184 zcmeAS@N?(olHy`uVBq!ia0vp^j6kfy!2~3aiye;!QuUrLjv*C{Z|^p8HaRdjTwH7) zC?wLlL}}I{)n%R&r+1}IGmDnq;&J#%V6)9VsYhS`O^BVBQlxOUep0c$RENLq#g8A$ z)z7%K_bI&n@J+X_=x}fJoEKed-$<>=ZI-;YrdjIl`U`uzuDWSP?o#Dmo{%SgM#oan kX~E1%D-|#H#QbHoIja2U-MgvsK&LQxy85}Sb4q9e0Efg%P5=M^ literal 0 HcmV?d00001 diff --git a/docs/tab_sd.png b/docs/tab_sd.png new file mode 100644 index 0000000000000000000000000000000000000000..757a565ced4730f85c833fb2547d8e199ae68f19 GIT binary patch literal 188 zcmeAS@N?(olHy`uVBq!ia0vp^j6kfy!2~3aiye;!Qq7(&jv*C{Z|_!fH5o7*c=%9% zcILh!EA=pAQKdx-Cdiev=v{eg{8Ht<{e8_NAN~b=)%W>-WDCE0PyDHGemi$BoXwcK z{>e9^za6*c1ilttWw&V+U;WCPlV9{LdC~Ey%_H(qj`xgfES(4Yz5jSTZfCt`4E$0YRsR*S^mTCR^;V&sxC8{l_Cp7w8-YPgg&ebxsLQ00$vXK>z>% literal 0 HcmV?d00001 diff --git a/docs/tabs.css b/docs/tabs.css new file mode 100644 index 00000000..fe4854aa --- /dev/null +++ b/docs/tabs.css @@ -0,0 +1 @@ +.sm{position:relative;z-index:9999}.sm,.sm ul,.sm li{display:block;list-style:none;margin:0;padding:0;line-height:normal;direction:ltr;text-align:left;-webkit-tap-highlight-color:rgba(0,0,0,0)}.sm-rtl,.sm-rtl ul,.sm-rtl li{direction:rtl;text-align:right}.sm>li>h1,.sm>li>h2,.sm>li>h3,.sm>li>h4,.sm>li>h5,.sm>li>h6{margin:0;padding:0}.sm ul{display:none}.sm li,.sm a{position:relative}.sm a{display:block}.sm a.disabled{cursor:not-allowed}.sm:after{content:"\00a0";display:block;height:0;font:0/0 serif;clear:both;visibility:hidden;overflow:hidden}.sm,.sm *,.sm *:before,.sm *:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.main-menu-btn{position:relative;display:inline-block;width:36px;height:36px;text-indent:36px;margin-left:8px;white-space:nowrap;overflow:hidden;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0)}.main-menu-btn-icon,.main-menu-btn-icon:before,.main-menu-btn-icon:after{position:absolute;top:50%;left:2px;height:2px;width:24px;background:var(--nav-menu-button-color);-webkit-transition:all .25s;transition:all .25s}.main-menu-btn-icon:before{content:'';top:-7px;left:0}.main-menu-btn-icon:after{content:'';top:7px;left:0}#main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon{height:0}#main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon:before{top:0;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}#main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon:after{top:0;-webkit-transform:rotate(45deg);transform:rotate(45deg)}#main-menu-state{position:absolute;width:1px;height:1px;margin:-1px;border:0;padding:0;overflow:hidden;clip:rect(1px,1px,1px,1px)}#main-menu-state:not(:checked) ~ #main-menu{display:none}#main-menu-state:checked ~ #main-menu{display:block}@media(min-width:768px){.main-menu-btn{position:absolute;top:-99999px}#main-menu-state:not(:checked) ~ #main-menu{display:block}}.sm-dox{background-image:var(--nav-gradient-image)}.sm-dox a,.sm-dox a:focus,.sm-dox a:hover,.sm-dox a:active{padding:0 12px;padding-right:43px;font-family:var(--font-family-nav);font-size:13px;font-weight:bold;line-height:36px;text-decoration:none;text-shadow:var(--nav-text-normal-shadow);color:var(--nav-text-normal-color);outline:0}.sm-dox a:hover{background-image:var(--nav-gradient-active-image);background-repeat:repeat-x;color:var(--nav-text-hover-color);text-shadow:var(--nav-text-hover-shadow)}.sm-dox a.current{color:#d23600}.sm-dox a.disabled{color:#bbb}.sm-dox a span.sub-arrow{position:absolute;top:50%;margin-top:-14px;left:auto;right:3px;width:28px;height:28px;overflow:hidden;font:bold 12px/28px monospace !important;text-align:center;text-shadow:none;background:var(--nav-menu-toggle-color);-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px}.sm-dox a span.sub-arrow:before{display:block;content:'+'}.sm-dox a.highlighted span.sub-arrow:before{display:block;content:'-'}.sm-dox>li:first-child>a,.sm-dox>li:first-child>:not(ul) a{-moz-border-radius:5px 5px 0 0;-webkit-border-radius:5px;border-radius:5px 5px 0 0}.sm-dox>li:last-child>a,.sm-dox>li:last-child>*:not(ul) a,.sm-dox>li:last-child>ul,.sm-dox>li:last-child>ul>li:last-child>a,.sm-dox>li:last-child>ul>li:last-child>*:not(ul) a,.sm-dox>li:last-child>ul>li:last-child>ul,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul{-moz-border-radius:0 0 5px 5px;-webkit-border-radius:0;border-radius:0 0 5px 5px}.sm-dox>li:last-child>a.highlighted,.sm-dox>li:last-child>*:not(ul) a.highlighted,.sm-dox>li:last-child>ul>li:last-child>a.highlighted,.sm-dox>li:last-child>ul>li:last-child>*:not(ul) a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a.highlighted{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0}.sm-dox ul{background:var(--nav-menu-background-color)}.sm-dox ul a,.sm-dox ul a:focus,.sm-dox ul a:hover,.sm-dox ul a:active{font-size:12px;border-left:8px solid transparent;line-height:36px;text-shadow:none;background-color:var(--nav-menu-background-color);background-image:none}.sm-dox ul a:hover{background-image:var(--nav-gradient-active-image);background-repeat:repeat-x;color:var(--nav-text-hover-color);text-shadow:0 1px 1px black}.sm-dox ul ul a,.sm-dox ul ul a:hover,.sm-dox ul ul a:focus,.sm-dox ul ul a:active{border-left:16px solid transparent}.sm-dox ul ul ul a,.sm-dox ul ul ul a:hover,.sm-dox ul ul ul a:focus,.sm-dox ul ul ul a:active{border-left:24px solid transparent}.sm-dox ul ul ul ul a,.sm-dox ul ul ul ul a:hover,.sm-dox ul ul ul ul a:focus,.sm-dox ul ul ul ul a:active{border-left:32px solid transparent}.sm-dox ul ul ul ul ul a,.sm-dox ul ul ul ul ul a:hover,.sm-dox ul ul ul ul ul a:focus,.sm-dox ul ul ul ul ul a:active{border-left:40px solid transparent}@media(min-width:768px){.sm-dox ul{position:absolute;width:12em}.sm-dox li{float:left}.sm-dox.sm-rtl li{float:right}.sm-dox ul li,.sm-dox.sm-rtl ul li,.sm-dox.sm-vertical li{float:none}.sm-dox a{white-space:nowrap}.sm-dox ul a,.sm-dox.sm-vertical a{white-space:normal}.sm-dox .sm-nowrap>li>a,.sm-dox .sm-nowrap>li>:not(ul) a{white-space:nowrap}.sm-dox{padding:0 10px;background-image:var(--nav-gradient-image);line-height:36px}.sm-dox a span.sub-arrow{top:50%;margin-top:-2px;right:12px;width:0;height:0;border-width:4px;border-style:solid dashed dashed dashed;border-color:var(--nav-text-normal-color) transparent transparent transparent;background:transparent;-moz-border-radius:0;-webkit-border-radius:0;border-radius:0}.sm-dox a,.sm-dox a:focus,.sm-dox a:active,.sm-dox a:hover,.sm-dox a.highlighted{padding:0 12px;background-image:var(--nav-separator-image);background-repeat:no-repeat;background-position:right;-moz-border-radius:0 !important;-webkit-border-radius:0;border-radius:0 !important}.sm-dox a:hover{background-image:var(--nav-gradient-active-image);background-repeat:repeat-x;color:var(--nav-text-hover-color);text-shadow:var(--nav-text-hover-shadow)}.sm-dox a:hover span.sub-arrow{border-color:var(--nav-text-hover-color) transparent transparent transparent}.sm-dox a.has-submenu{padding-right:24px}.sm-dox li{border-top:0}.sm-dox>li>ul:before,.sm-dox>li>ul:after{content:'';position:absolute;top:-18px;left:30px;width:0;height:0;overflow:hidden;border-width:9px;border-style:dashed dashed solid dashed;border-color:transparent transparent #bbb transparent}.sm-dox>li>ul:after{top:-16px;left:31px;border-width:8px;border-color:transparent transparent var(--nav-menu-background-color) transparent}.sm-dox ul{border:1px solid #bbb;padding:5px 0;background:var(--nav-menu-background-color);-moz-border-radius:5px !important;-webkit-border-radius:5px;border-radius:5px !important;-moz-box-shadow:0 5px 9px rgba(0,0,0,0.2);-webkit-box-shadow:0 5px 9px rgba(0,0,0,0.2);box-shadow:0 5px 9px rgba(0,0,0,0.2)}.sm-dox ul a span.sub-arrow{right:8px;top:50%;margin-top:-5px;border-width:5px;border-color:transparent transparent transparent var(--nav-menu-foreground-color);border-style:dashed dashed dashed solid}.sm-dox ul a,.sm-dox ul a:hover,.sm-dox ul a:focus,.sm-dox ul a:active,.sm-dox ul a.highlighted{color:var(--nav-menu-foreground-color);background-image:none;border:0 !important}.sm-dox ul a:hover{background-image:var(--nav-gradient-active-image);background-repeat:repeat-x;color:var(--nav-text-hover-color);text-shadow:var(--nav-text-hover-shadow)}.sm-dox ul a:hover span.sub-arrow{border-color:transparent transparent transparent var(--nav-text-hover-color)}.sm-dox span.scroll-up,.sm-dox span.scroll-down{position:absolute;display:none;visibility:hidden;overflow:hidden;background:var(--nav-menu-background-color);height:36px}.sm-dox span.scroll-up:hover,.sm-dox span.scroll-down:hover{background:#eee}.sm-dox span.scroll-up:hover span.scroll-up-arrow,.sm-dox span.scroll-up:hover span.scroll-down-arrow{border-color:transparent transparent #d23600 transparent}.sm-dox span.scroll-down:hover span.scroll-down-arrow{border-color:#d23600 transparent transparent transparent}.sm-dox span.scroll-up-arrow,.sm-dox span.scroll-down-arrow{position:absolute;top:0;left:50%;margin-left:-6px;width:0;height:0;overflow:hidden;border-width:6px;border-style:dashed dashed solid dashed;border-color:transparent transparent var(--nav-menu-foreground-color) transparent}.sm-dox span.scroll-down-arrow{top:8px;border-style:solid dashed dashed dashed;border-color:var(--nav-menu-foreground-color) transparent transparent transparent}.sm-dox.sm-rtl a.has-submenu{padding-right:12px;padding-left:24px}.sm-dox.sm-rtl a span.sub-arrow{right:auto;left:12px}.sm-dox.sm-rtl.sm-vertical a.has-submenu{padding:10px 20px}.sm-dox.sm-rtl.sm-vertical a span.sub-arrow{right:auto;left:8px;border-style:dashed solid dashed dashed;border-color:transparent #555 transparent transparent}.sm-dox.sm-rtl>li>ul:before{left:auto;right:30px}.sm-dox.sm-rtl>li>ul:after{left:auto;right:31px}.sm-dox.sm-rtl ul a.has-submenu{padding:10px 20px !important}.sm-dox.sm-rtl ul a span.sub-arrow{right:auto;left:8px;border-style:dashed solid dashed dashed;border-color:transparent #555 transparent transparent}.sm-dox.sm-vertical{padding:10px 0;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px}.sm-dox.sm-vertical a{padding:10px 20px}.sm-dox.sm-vertical a:hover,.sm-dox.sm-vertical a:focus,.sm-dox.sm-vertical a:active,.sm-dox.sm-vertical a.highlighted{background:#fff}.sm-dox.sm-vertical a.disabled{background-image:var(--nav-gradient-image)}.sm-dox.sm-vertical a span.sub-arrow{right:8px;top:50%;margin-top:-5px;border-width:5px;border-style:dashed dashed dashed solid;border-color:transparent transparent transparent #555}.sm-dox.sm-vertical>li>ul:before,.sm-dox.sm-vertical>li>ul:after{display:none}.sm-dox.sm-vertical ul a{padding:10px 20px}.sm-dox.sm-vertical ul a:hover,.sm-dox.sm-vertical ul a:focus,.sm-dox.sm-vertical ul a:active,.sm-dox.sm-vertical ul a.highlighted{background:#eee}.sm-dox.sm-vertical ul a.disabled{background:var(--nav-menu-background-color)}} \ No newline at end of file diff --git a/doxygen/Doxyfile b/doxygen/Doxyfile new file mode 100644 index 00000000..c31b7a0d --- /dev/null +++ b/doxygen/Doxyfile @@ -0,0 +1,2894 @@ +# Doxyfile 1.10.0 + +# This file describes the settings to be used by the documentation system +# doxygen (www.doxygen.org) for a project. +# +# All text after a double hash (##) is considered a comment and is placed in +# front of the TAG it is preceding. +# +# All text after a single hash (#) is considered a comment and will be ignored. +# The format is: +# TAG = value [value, ...] +# For lists, items can also be appended using: +# TAG += value [value, ...] +# Values that contain spaces should be placed between quotes (\" \"). +# +# Note: +# +# Use doxygen to compare the used configuration file with the template +# configuration file: +# doxygen -x [configFile] +# Use doxygen to compare the used configuration file with the template +# configuration file without replacing the environment variables or CMake type +# replacement variables: +# doxygen -x_noenv [configFile] + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- + +# This tag specifies the encoding used for all characters in the configuration +# file that follow. The default is UTF-8 which is also the encoding used for all +# text before the first occurrence of this tag. Doxygen uses libiconv (or the +# iconv built into libc) for the transcoding. See +# https://www.gnu.org/software/libiconv/ for the list of possible encodings. +# The default value is: UTF-8. + +DOXYFILE_ENCODING = UTF-8 + +# The PROJECT_NAME tag is a single word (or a sequence of words surrounded by +# double-quotes, unless you are using Doxywizard) that should identify the +# project for which the documentation is generated. This name is used in the +# title of most generated pages and in a few other places. +# The default value is: My Project. + +PROJECT_NAME = SimpleWindow + +# The PROJECT_NUMBER tag can be used to enter a project or revision number. This +# could be handy for archiving the generated documentation or if some version +# control system is used. + +PROJECT_NUMBER = + +# Using the PROJECT_BRIEF tag one can provide an optional one line description +# for a project that appears at the top of each page and should give viewer a +# quick idea about the purpose of the project. Keep the description short. + +PROJECT_BRIEF = + +# With the PROJECT_LOGO tag one can specify a logo or an icon that is included +# in the documentation. The maximum height of the logo should not exceed 55 +# pixels and the maximum width should not exceed 200 pixels. Doxygen will copy +# the logo to the output directory. + +PROJECT_LOGO = + +# With the PROJECT_ICON tag one can specify an icon that is included in the tabs +# when the HTML document is shown. Doxygen will copy the logo to the output +# directory. + +PROJECT_ICON = + +# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path +# into which the generated documentation will be written. If a relative path is +# entered, it will be relative to the location where doxygen was started. If +# left blank the current directory will be used. + +OUTPUT_DIRECTORY = . + +# If the CREATE_SUBDIRS tag is set to YES then doxygen will create up to 4096 +# sub-directories (in 2 levels) under the output directory of each output format +# and will distribute the generated files over these directories. Enabling this +# option can be useful when feeding doxygen a huge amount of source files, where +# putting all generated files in the same directory would otherwise causes +# performance problems for the file system. Adapt CREATE_SUBDIRS_LEVEL to +# control the number of sub-directories. +# The default value is: NO. + +CREATE_SUBDIRS = NO + +# Controls the number of sub-directories that will be created when +# CREATE_SUBDIRS tag is set to YES. Level 0 represents 16 directories, and every +# level increment doubles the number of directories, resulting in 4096 +# directories at level 8 which is the default and also the maximum value. The +# sub-directories are organized in 2 levels, the first level always has a fixed +# number of 16 directories. +# Minimum value: 0, maximum value: 8, default value: 8. +# This tag requires that the tag CREATE_SUBDIRS is set to YES. + +CREATE_SUBDIRS_LEVEL = 8 + +# If the ALLOW_UNICODE_NAMES tag is set to YES, doxygen will allow non-ASCII +# characters to appear in the names of generated files. If set to NO, non-ASCII +# characters will be escaped, for example _xE3_x81_x84 will be used for Unicode +# U+3044. +# The default value is: NO. + +ALLOW_UNICODE_NAMES = NO + +# The OUTPUT_LANGUAGE tag is used to specify the language in which all +# documentation generated by doxygen is written. Doxygen will use this +# information to generate all constant output in the proper language. +# Possible values are: Afrikaans, Arabic, Armenian, Brazilian, Bulgarian, +# Catalan, Chinese, Chinese-Traditional, Croatian, Czech, Danish, Dutch, English +# (United States), Esperanto, Farsi (Persian), Finnish, French, German, Greek, +# Hindi, Hungarian, Indonesian, Italian, Japanese, Japanese-en (Japanese with +# English messages), Korean, Korean-en (Korean with English messages), Latvian, +# Lithuanian, Macedonian, Norwegian, Persian (Farsi), Polish, Portuguese, +# Romanian, Russian, Serbian, Serbian-Cyrillic, Slovak, Slovene, Spanish, +# Swedish, Turkish, Ukrainian and Vietnamese. +# The default value is: English. + +OUTPUT_LANGUAGE = English + +# If the BRIEF_MEMBER_DESC tag is set to YES, doxygen will include brief member +# descriptions after the members that are listed in the file and class +# documentation (similar to Javadoc). Set to NO to disable this. +# The default value is: YES. + +BRIEF_MEMBER_DESC = YES + +# If the REPEAT_BRIEF tag is set to YES, doxygen will prepend the brief +# description of a member or function before the detailed description +# +# Note: If both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the +# brief descriptions will be completely suppressed. +# The default value is: YES. + +REPEAT_BRIEF = YES + +# This tag implements a quasi-intelligent brief description abbreviator that is +# used to form the text in various listings. Each string in this list, if found +# as the leading text of the brief description, will be stripped from the text +# and the result, after processing the whole list, is used as the annotated +# text. Otherwise, the brief description is used as-is. If left blank, the +# following values are used ($name is automatically replaced with the name of +# the entity):The $name class, The $name widget, The $name file, is, provides, +# specifies, contains, represents, a, an and the. + +ABBREVIATE_BRIEF = "The $name class" \ + "The $name widget" \ + "The $name file" \ + is \ + provides \ + specifies \ + contains \ + represents \ + a \ + an \ + the + +# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then +# doxygen will generate a detailed section even if there is only a brief +# description. +# The default value is: NO. + +ALWAYS_DETAILED_SEC = NO + +# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all +# inherited members of a class in the documentation of that class as if those +# members were ordinary class members. Constructors, destructors and assignment +# operators of the base classes will not be shown. +# The default value is: NO. + +INLINE_INHERITED_MEMB = NO + +# If the FULL_PATH_NAMES tag is set to YES, doxygen will prepend the full path +# before files name in the file list and in the header files. If set to NO the +# shortest path that makes the file name unique will be used +# The default value is: YES. + +FULL_PATH_NAMES = YES + +# The STRIP_FROM_PATH tag can be used to strip a user-defined part of the path. +# Stripping is only done if one of the specified strings matches the left-hand +# part of the path. The tag can be used to show relative paths in the file list. +# If left blank the directory from which doxygen is run is used as the path to +# strip. +# +# Note that you can specify absolute paths here, but also relative paths, which +# will be relative from the directory where doxygen is started. +# This tag requires that the tag FULL_PATH_NAMES is set to YES. + +STRIP_FROM_PATH = + +# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the +# path mentioned in the documentation of a class, which tells the reader which +# header file to include in order to use a class. If left blank only the name of +# the header file containing the class definition is used. Otherwise one should +# specify the list of include paths that are normally passed to the compiler +# using the -I flag. + +STRIP_FROM_INC_PATH = + +# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter (but +# less readable) file names. This can be useful is your file systems doesn't +# support long names like on DOS, Mac, or CD-ROM. +# The default value is: NO. + +SHORT_NAMES = NO + +# If the JAVADOC_AUTOBRIEF tag is set to YES then doxygen will interpret the +# first line (until the first dot) of a Javadoc-style comment as the brief +# description. If set to NO, the Javadoc-style will behave just like regular Qt- +# style comments (thus requiring an explicit @brief command for a brief +# description.) +# The default value is: NO. + +JAVADOC_AUTOBRIEF = NO + +# If the JAVADOC_BANNER tag is set to YES then doxygen will interpret a line +# such as +# /*************** +# as being the beginning of a Javadoc-style comment "banner". If set to NO, the +# Javadoc-style will behave just like regular comments and it will not be +# interpreted by doxygen. +# The default value is: NO. + +JAVADOC_BANNER = NO + +# If the QT_AUTOBRIEF tag is set to YES then doxygen will interpret the first +# line (until the first dot) of a Qt-style comment as the brief description. If +# set to NO, the Qt-style will behave just like regular Qt-style comments (thus +# requiring an explicit \brief command for a brief description.) +# The default value is: NO. + +QT_AUTOBRIEF = NO + +# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make doxygen treat a +# multi-line C++ special comment block (i.e. a block of //! or /// comments) as +# a brief description. This used to be the default behavior. The new default is +# to treat a multi-line C++ comment block as a detailed description. Set this +# tag to YES if you prefer the old behavior instead. +# +# Note that setting this tag to YES also means that rational rose comments are +# not recognized any more. +# The default value is: NO. + +MULTILINE_CPP_IS_BRIEF = NO + +# By default Python docstrings are displayed as preformatted text and doxygen's +# special commands cannot be used. By setting PYTHON_DOCSTRING to NO the +# doxygen's special commands can be used and the contents of the docstring +# documentation blocks is shown as doxygen documentation. +# The default value is: YES. + +PYTHON_DOCSTRING = YES + +# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the +# documentation from any documented member that it re-implements. +# The default value is: YES. + +INHERIT_DOCS = YES + +# If the SEPARATE_MEMBER_PAGES tag is set to YES then doxygen will produce a new +# page for each member. If set to NO, the documentation of a member will be part +# of the file/class/namespace that contains it. +# The default value is: NO. + +SEPARATE_MEMBER_PAGES = NO + +# The TAB_SIZE tag can be used to set the number of spaces in a tab. Doxygen +# uses this value to replace tabs by spaces in code fragments. +# Minimum value: 1, maximum value: 16, default value: 4. + +TAB_SIZE = 4 + +# This tag can be used to specify a number of aliases that act as commands in +# the documentation. An alias has the form: +# name=value +# For example adding +# "sideeffect=@par Side Effects:^^" +# will allow you to put the command \sideeffect (or @sideeffect) in the +# documentation, which will result in a user-defined paragraph with heading +# "Side Effects:". Note that you cannot put \n's in the value part of an alias +# to insert newlines (in the resulting output). You can put ^^ in the value part +# of an alias to insert a newline as if a physical newline was in the original +# file. When you need a literal { or } or , in the value part of an alias you +# have to escape them by means of a backslash (\), this can lead to conflicts +# with the commands \{ and \} for these it is advised to use the version @{ and +# @} or use a double escape (\\{ and \\}) + +ALIASES = + +# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources +# only. Doxygen will then generate output that is more tailored for C. For +# instance, some of the names that are used will be different. The list of all +# members will be omitted, etc. +# The default value is: NO. + +OPTIMIZE_OUTPUT_FOR_C = NO + +# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java or +# Python sources only. Doxygen will then generate output that is more tailored +# for that language. For instance, namespaces will be presented as packages, +# qualified scopes will look different, etc. +# The default value is: NO. + +OPTIMIZE_OUTPUT_JAVA = NO + +# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran +# sources. Doxygen will then generate output that is tailored for Fortran. +# The default value is: NO. + +OPTIMIZE_FOR_FORTRAN = NO + +# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL +# sources. Doxygen will then generate output that is tailored for VHDL. +# The default value is: NO. + +OPTIMIZE_OUTPUT_VHDL = NO + +# Set the OPTIMIZE_OUTPUT_SLICE tag to YES if your project consists of Slice +# sources only. Doxygen will then generate output that is more tailored for that +# language. For instance, namespaces will be presented as modules, types will be +# separated into more groups, etc. +# The default value is: NO. + +OPTIMIZE_OUTPUT_SLICE = NO + +# Doxygen selects the parser to use depending on the extension of the files it +# parses. With this tag you can assign which parser to use for a given +# extension. Doxygen has a built-in mapping, but you can override or extend it +# using this tag. The format is ext=language, where ext is a file extension, and +# language is one of the parsers supported by doxygen: IDL, Java, JavaScript, +# Csharp (C#), C, C++, Lex, D, PHP, md (Markdown), Objective-C, Python, Slice, +# VHDL, Fortran (fixed format Fortran: FortranFixed, free formatted Fortran: +# FortranFree, unknown formatted Fortran: Fortran. In the later case the parser +# tries to guess whether the code is fixed or free formatted code, this is the +# default for Fortran type files). For instance to make doxygen treat .inc files +# as Fortran files (default is PHP), and .f files as C (default is Fortran), +# use: inc=Fortran f=C. +# +# Note: For files without extension you can use no_extension as a placeholder. +# +# Note that for custom extensions you also need to set FILE_PATTERNS otherwise +# the files are not read by doxygen. When specifying no_extension you should add +# * to the FILE_PATTERNS. +# +# Note see also the list of default file extension mappings. + +EXTENSION_MAPPING = + +# If the MARKDOWN_SUPPORT tag is enabled then doxygen pre-processes all comments +# according to the Markdown format, which allows for more readable +# documentation. See https://daringfireball.net/projects/markdown/ for details. +# The output of markdown processing is further processed by doxygen, so you can +# mix doxygen, HTML, and XML commands with Markdown formatting. Disable only in +# case of backward compatibilities issues. +# The default value is: YES. + +MARKDOWN_SUPPORT = YES + +# When the TOC_INCLUDE_HEADINGS tag is set to a non-zero value, all headings up +# to that level are automatically included in the table of contents, even if +# they do not have an id attribute. +# Note: This feature currently applies only to Markdown headings. +# Minimum value: 0, maximum value: 99, default value: 5. +# This tag requires that the tag MARKDOWN_SUPPORT is set to YES. + +TOC_INCLUDE_HEADINGS = 5 + +# The MARKDOWN_ID_STYLE tag can be used to specify the algorithm used to +# generate identifiers for the Markdown headings. Note: Every identifier is +# unique. +# Possible values are: DOXYGEN use a fixed 'autotoc_md' string followed by a +# sequence number starting at 0 and GITHUB use the lower case version of title +# with any whitespace replaced by '-' and punctuation characters removed. +# The default value is: DOXYGEN. +# This tag requires that the tag MARKDOWN_SUPPORT is set to YES. + +MARKDOWN_ID_STYLE = DOXYGEN + +# When enabled doxygen tries to link words that correspond to documented +# classes, or namespaces to their corresponding documentation. Such a link can +# be prevented in individual cases by putting a % sign in front of the word or +# globally by setting AUTOLINK_SUPPORT to NO. +# The default value is: YES. + +AUTOLINK_SUPPORT = YES + +# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want +# to include (a tag file for) the STL sources as input, then you should set this +# tag to YES in order to let doxygen match functions declarations and +# definitions whose arguments contain STL classes (e.g. func(std::string); +# versus func(std::string) {}). This also make the inheritance and collaboration +# diagrams that involve STL classes more complete and accurate. +# The default value is: NO. + +BUILTIN_STL_SUPPORT = NO + +# If you use Microsoft's C++/CLI language, you should set this option to YES to +# enable parsing support. +# The default value is: NO. + +CPP_CLI_SUPPORT = NO + +# Set the SIP_SUPPORT tag to YES if your project consists of sip (see: +# https://www.riverbankcomputing.com/software/sip/intro) sources only. Doxygen +# will parse them like normal C++ but will assume all classes use public instead +# of private inheritance when no explicit protection keyword is present. +# The default value is: NO. + +SIP_SUPPORT = NO + +# For Microsoft's IDL there are propget and propput attributes to indicate +# getter and setter methods for a property. Setting this option to YES will make +# doxygen to replace the get and set methods by a property in the documentation. +# This will only work if the methods are indeed getting or setting a simple +# type. If this is not the case, or you want to show the methods anyway, you +# should set this option to NO. +# The default value is: YES. + +IDL_PROPERTY_SUPPORT = YES + +# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC +# tag is set to YES then doxygen will reuse the documentation of the first +# member in the group (if any) for the other members of the group. By default +# all members of a group must be documented explicitly. +# The default value is: NO. + +DISTRIBUTE_GROUP_DOC = NO + +# If one adds a struct or class to a group and this option is enabled, then also +# any nested class or struct is added to the same group. By default this option +# is disabled and one has to add nested compounds explicitly via \ingroup. +# The default value is: NO. + +GROUP_NESTED_COMPOUNDS = NO + +# Set the SUBGROUPING tag to YES to allow class member groups of the same type +# (for instance a group of public functions) to be put as a subgroup of that +# type (e.g. under the Public Functions section). Set it to NO to prevent +# subgrouping. Alternatively, this can be done per class using the +# \nosubgrouping command. +# The default value is: YES. + +SUBGROUPING = YES + +# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and unions +# are shown inside the group in which they are included (e.g. using \ingroup) +# instead of on a separate page (for HTML and Man pages) or section (for LaTeX +# and RTF). +# +# Note that this feature does not work in combination with +# SEPARATE_MEMBER_PAGES. +# The default value is: NO. + +INLINE_GROUPED_CLASSES = NO + +# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and unions +# with only public data fields or simple typedef fields will be shown inline in +# the documentation of the scope in which they are defined (i.e. file, +# namespace, or group documentation), provided this scope is documented. If set +# to NO, structs, classes, and unions are shown on a separate page (for HTML and +# Man pages) or section (for LaTeX and RTF). +# The default value is: NO. + +INLINE_SIMPLE_STRUCTS = NO + +# When TYPEDEF_HIDES_STRUCT tag is enabled, a typedef of a struct, union, or +# enum is documented as struct, union, or enum with the name of the typedef. So +# typedef struct TypeS {} TypeT, will appear in the documentation as a struct +# with name TypeT. When disabled the typedef will appear as a member of a file, +# namespace, or class. And the struct will be named TypeS. This can typically be +# useful for C code in case the coding convention dictates that all compound +# types are typedef'ed and only the typedef is referenced, never the tag name. +# The default value is: NO. + +TYPEDEF_HIDES_STRUCT = NO + +# The size of the symbol lookup cache can be set using LOOKUP_CACHE_SIZE. This +# cache is used to resolve symbols given their name and scope. Since this can be +# an expensive process and often the same symbol appears multiple times in the +# code, doxygen keeps a cache of pre-resolved symbols. If the cache is too small +# doxygen will become slower. If the cache is too large, memory is wasted. The +# cache size is given by this formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range +# is 0..9, the default is 0, corresponding to a cache size of 2^16=65536 +# symbols. At the end of a run doxygen will report the cache usage and suggest +# the optimal cache size from a speed point of view. +# Minimum value: 0, maximum value: 9, default value: 0. + +LOOKUP_CACHE_SIZE = 0 + +# The NUM_PROC_THREADS specifies the number of threads doxygen is allowed to use +# during processing. When set to 0 doxygen will based this on the number of +# cores available in the system. You can set it explicitly to a value larger +# than 0 to get more control over the balance between CPU load and processing +# speed. At this moment only the input processing can be done using multiple +# threads. Since this is still an experimental feature the default is set to 1, +# which effectively disables parallel processing. Please report any issues you +# encounter. Generating dot graphs in parallel is controlled by the +# DOT_NUM_THREADS setting. +# Minimum value: 0, maximum value: 32, default value: 1. + +NUM_PROC_THREADS = 1 + +# If the TIMESTAMP tag is set different from NO then each generated page will +# contain the date or date and time when the page was generated. Setting this to +# NO can help when comparing the output of multiple runs. +# Possible values are: YES, NO, DATETIME and DATE. +# The default value is: NO. + +TIMESTAMP = NO + +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- + +# If the EXTRACT_ALL tag is set to YES, doxygen will assume all entities in +# documentation are documented, even if no documentation was available. Private +# class members and static file members will be hidden unless the +# EXTRACT_PRIVATE respectively EXTRACT_STATIC tags are set to YES. +# Note: This will also disable the warnings about undocumented members that are +# normally produced when WARNINGS is set to YES. +# The default value is: NO. + +EXTRACT_ALL = NO + +# If the EXTRACT_PRIVATE tag is set to YES, all private members of a class will +# be included in the documentation. +# The default value is: NO. + +EXTRACT_PRIVATE = NO + +# If the EXTRACT_PRIV_VIRTUAL tag is set to YES, documented private virtual +# methods of a class will be included in the documentation. +# The default value is: NO. + +EXTRACT_PRIV_VIRTUAL = NO + +# If the EXTRACT_PACKAGE tag is set to YES, all members with package or internal +# scope will be included in the documentation. +# The default value is: NO. + +EXTRACT_PACKAGE = NO + +# If the EXTRACT_STATIC tag is set to YES, all static members of a file will be +# included in the documentation. +# The default value is: NO. + +EXTRACT_STATIC = NO + +# If the EXTRACT_LOCAL_CLASSES tag is set to YES, classes (and structs) defined +# locally in source files will be included in the documentation. If set to NO, +# only classes defined in header files are included. Does not have any effect +# for Java sources. +# The default value is: YES. + +EXTRACT_LOCAL_CLASSES = YES + +# This flag is only useful for Objective-C code. If set to YES, local methods, +# which are defined in the implementation section but not in the interface are +# included in the documentation. If set to NO, only methods in the interface are +# included. +# The default value is: NO. + +EXTRACT_LOCAL_METHODS = NO + +# If this flag is set to YES, the members of anonymous namespaces will be +# extracted and appear in the documentation as a namespace called +# 'anonymous_namespace{file}', where file will be replaced with the base name of +# the file that contains the anonymous namespace. By default anonymous namespace +# are hidden. +# The default value is: NO. + +EXTRACT_ANON_NSPACES = NO + +# If this flag is set to YES, the name of an unnamed parameter in a declaration +# will be determined by the corresponding definition. By default unnamed +# parameters remain unnamed in the output. +# The default value is: YES. + +RESOLVE_UNNAMED_PARAMS = YES + +# If the HIDE_UNDOC_MEMBERS tag is set to YES, doxygen will hide all +# undocumented members inside documented classes or files. If set to NO these +# members will be included in the various overviews, but no documentation +# section is generated. This option has no effect if EXTRACT_ALL is enabled. +# The default value is: NO. + +HIDE_UNDOC_MEMBERS = NO + +# If the HIDE_UNDOC_CLASSES tag is set to YES, doxygen will hide all +# undocumented classes that are normally visible in the class hierarchy. If set +# to NO, these classes will be included in the various overviews. This option +# will also hide undocumented C++ concepts if enabled. This option has no effect +# if EXTRACT_ALL is enabled. +# The default value is: NO. + +HIDE_UNDOC_CLASSES = NO + +# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend +# declarations. If set to NO, these declarations will be included in the +# documentation. +# The default value is: NO. + +HIDE_FRIEND_COMPOUNDS = NO + +# If the HIDE_IN_BODY_DOCS tag is set to YES, doxygen will hide any +# documentation blocks found inside the body of a function. If set to NO, these +# blocks will be appended to the function's detailed documentation block. +# The default value is: NO. + +HIDE_IN_BODY_DOCS = NO + +# The INTERNAL_DOCS tag determines if documentation that is typed after a +# \internal command is included. If the tag is set to NO then the documentation +# will be excluded. Set it to YES to include the internal documentation. +# The default value is: NO. + +INTERNAL_DOCS = NO + +# With the correct setting of option CASE_SENSE_NAMES doxygen will better be +# able to match the capabilities of the underlying filesystem. In case the +# filesystem is case sensitive (i.e. it supports files in the same directory +# whose names only differ in casing), the option must be set to YES to properly +# deal with such files in case they appear in the input. For filesystems that +# are not case sensitive the option should be set to NO to properly deal with +# output files written for symbols that only differ in casing, such as for two +# classes, one named CLASS and the other named Class, and to also support +# references to files without having to specify the exact matching casing. On +# Windows (including Cygwin) and MacOS, users should typically set this option +# to NO, whereas on Linux or other Unix flavors it should typically be set to +# YES. +# Possible values are: SYSTEM, NO and YES. +# The default value is: SYSTEM. + +CASE_SENSE_NAMES = SYSTEM + +# If the HIDE_SCOPE_NAMES tag is set to NO then doxygen will show members with +# their full class and namespace scopes in the documentation. If set to YES, the +# scope will be hidden. +# The default value is: NO. + +HIDE_SCOPE_NAMES = NO + +# If the HIDE_COMPOUND_REFERENCE tag is set to NO (default) then doxygen will +# append additional text to a page's title, such as Class Reference. If set to +# YES the compound reference will be hidden. +# The default value is: NO. + +HIDE_COMPOUND_REFERENCE= NO + +# If the SHOW_HEADERFILE tag is set to YES then the documentation for a class +# will show which file needs to be included to use the class. +# The default value is: YES. + +SHOW_HEADERFILE = YES + +# If the SHOW_INCLUDE_FILES tag is set to YES then doxygen will put a list of +# the files that are included by a file in the documentation of that file. +# The default value is: YES. + +SHOW_INCLUDE_FILES = YES + +# If the SHOW_GROUPED_MEMB_INC tag is set to YES then Doxygen will add for each +# grouped member an include statement to the documentation, telling the reader +# which file to include in order to use the member. +# The default value is: NO. + +SHOW_GROUPED_MEMB_INC = NO + +# If the FORCE_LOCAL_INCLUDES tag is set to YES then doxygen will list include +# files with double quotes in the documentation rather than with sharp brackets. +# The default value is: NO. + +FORCE_LOCAL_INCLUDES = NO + +# If the INLINE_INFO tag is set to YES then a tag [inline] is inserted in the +# documentation for inline members. +# The default value is: YES. + +INLINE_INFO = YES + +# If the SORT_MEMBER_DOCS tag is set to YES then doxygen will sort the +# (detailed) documentation of file and class members alphabetically by member +# name. If set to NO, the members will appear in declaration order. +# The default value is: YES. + +SORT_MEMBER_DOCS = YES + +# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the brief +# descriptions of file, namespace and class members alphabetically by member +# name. If set to NO, the members will appear in declaration order. Note that +# this will also influence the order of the classes in the class list. +# The default value is: NO. + +SORT_BRIEF_DOCS = NO + +# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the +# (brief and detailed) documentation of class members so that constructors and +# destructors are listed first. If set to NO the constructors will appear in the +# respective orders defined by SORT_BRIEF_DOCS and SORT_MEMBER_DOCS. +# Note: If SORT_BRIEF_DOCS is set to NO this option is ignored for sorting brief +# member documentation. +# Note: If SORT_MEMBER_DOCS is set to NO this option is ignored for sorting +# detailed member documentation. +# The default value is: NO. + +SORT_MEMBERS_CTORS_1ST = NO + +# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the hierarchy +# of group names into alphabetical order. If set to NO the group names will +# appear in their defined order. +# The default value is: NO. + +SORT_GROUP_NAMES = NO + +# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be sorted by +# fully-qualified names, including namespaces. If set to NO, the class list will +# be sorted only by class name, not including the namespace part. +# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. +# Note: This option applies only to the class list, not to the alphabetical +# list. +# The default value is: NO. + +SORT_BY_SCOPE_NAME = NO + +# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to do proper +# type resolution of all parameters of a function it will reject a match between +# the prototype and the implementation of a member function even if there is +# only one candidate or it is obvious which candidate to choose by doing a +# simple string match. By disabling STRICT_PROTO_MATCHING doxygen will still +# accept a match between prototype and implementation in such cases. +# The default value is: NO. + +STRICT_PROTO_MATCHING = NO + +# The GENERATE_TODOLIST tag can be used to enable (YES) or disable (NO) the todo +# list. This list is created by putting \todo commands in the documentation. +# The default value is: YES. + +GENERATE_TODOLIST = YES + +# The GENERATE_TESTLIST tag can be used to enable (YES) or disable (NO) the test +# list. This list is created by putting \test commands in the documentation. +# The default value is: YES. + +GENERATE_TESTLIST = YES + +# The GENERATE_BUGLIST tag can be used to enable (YES) or disable (NO) the bug +# list. This list is created by putting \bug commands in the documentation. +# The default value is: YES. + +GENERATE_BUGLIST = YES + +# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or disable (NO) +# the deprecated list. This list is created by putting \deprecated commands in +# the documentation. +# The default value is: YES. + +GENERATE_DEPRECATEDLIST= YES + +# The ENABLED_SECTIONS tag can be used to enable conditional documentation +# sections, marked by \if ... \endif and \cond +# ... \endcond blocks. + +ENABLED_SECTIONS = + +# The MAX_INITIALIZER_LINES tag determines the maximum number of lines that the +# initial value of a variable or macro / define can have for it to appear in the +# documentation. If the initializer consists of more lines than specified here +# it will be hidden. Use a value of 0 to hide initializers completely. The +# appearance of the value of individual variables and macros / defines can be +# controlled using \showinitializer or \hideinitializer command in the +# documentation regardless of this setting. +# Minimum value: 0, maximum value: 10000, default value: 30. + +MAX_INITIALIZER_LINES = 30 + +# Set the SHOW_USED_FILES tag to NO to disable the list of files generated at +# the bottom of the documentation of classes and structs. If set to YES, the +# list will mention the files that were used to generate the documentation. +# The default value is: YES. + +SHOW_USED_FILES = YES + +# Set the SHOW_FILES tag to NO to disable the generation of the Files page. This +# will remove the Files entry from the Quick Index and from the Folder Tree View +# (if specified). +# The default value is: YES. + +SHOW_FILES = YES + +# Set the SHOW_NAMESPACES tag to NO to disable the generation of the Namespaces +# page. This will remove the Namespaces entry from the Quick Index and from the +# Folder Tree View (if specified). +# The default value is: YES. + +SHOW_NAMESPACES = YES + +# The FILE_VERSION_FILTER tag can be used to specify a program or script that +# doxygen should invoke to get the current version for each file (typically from +# the version control system). Doxygen will invoke the program by executing (via +# popen()) the command command input-file, where command is the value of the +# FILE_VERSION_FILTER tag, and input-file is the name of an input file provided +# by doxygen. Whatever the program writes to standard output is used as the file +# version. For an example see the documentation. + +FILE_VERSION_FILTER = + +# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed +# by doxygen. The layout file controls the global structure of the generated +# output files in an output format independent way. To create the layout file +# that represents doxygen's defaults, run doxygen with the -l option. You can +# optionally specify a file name after the option, if omitted DoxygenLayout.xml +# will be used as the name of the layout file. See also section "Changing the +# layout of pages" for information. +# +# Note that if you run doxygen from a directory containing a file called +# DoxygenLayout.xml, doxygen will parse it automatically even if the LAYOUT_FILE +# tag is left empty. + +LAYOUT_FILE = + +# The CITE_BIB_FILES tag can be used to specify one or more bib files containing +# the reference definitions. This must be a list of .bib files. The .bib +# extension is automatically appended if omitted. This requires the bibtex tool +# to be installed. See also https://en.wikipedia.org/wiki/BibTeX for more info. +# For LaTeX the style of the bibliography can be controlled using +# LATEX_BIB_STYLE. To use this feature you need bibtex and perl available in the +# search path. See also \cite for info how to create references. + +CITE_BIB_FILES = + +#--------------------------------------------------------------------------- +# Configuration options related to warning and progress messages +#--------------------------------------------------------------------------- + +# The QUIET tag can be used to turn on/off the messages that are generated to +# standard output by doxygen. If QUIET is set to YES this implies that the +# messages are off. +# The default value is: NO. + +QUIET = NO + +# The WARNINGS tag can be used to turn on/off the warning messages that are +# generated to standard error (stderr) by doxygen. If WARNINGS is set to YES +# this implies that the warnings are on. +# +# Tip: Turn warnings on while writing the documentation. +# The default value is: YES. + +WARNINGS = YES + +# If the WARN_IF_UNDOCUMENTED tag is set to YES then doxygen will generate +# warnings for undocumented members. If EXTRACT_ALL is set to YES then this flag +# will automatically be disabled. +# The default value is: YES. + +WARN_IF_UNDOCUMENTED = YES + +# If the WARN_IF_DOC_ERROR tag is set to YES, doxygen will generate warnings for +# potential errors in the documentation, such as documenting some parameters in +# a documented function twice, or documenting parameters that don't exist or +# using markup commands wrongly. +# The default value is: YES. + +WARN_IF_DOC_ERROR = YES + +# If WARN_IF_INCOMPLETE_DOC is set to YES, doxygen will warn about incomplete +# function parameter documentation. If set to NO, doxygen will accept that some +# parameters have no documentation without warning. +# The default value is: YES. + +WARN_IF_INCOMPLETE_DOC = YES + +# This WARN_NO_PARAMDOC option can be enabled to get warnings for functions that +# are documented, but have no documentation for their parameters or return +# value. If set to NO, doxygen will only warn about wrong parameter +# documentation, but not about the absence of documentation. If EXTRACT_ALL is +# set to YES then this flag will automatically be disabled. See also +# WARN_IF_INCOMPLETE_DOC +# The default value is: NO. + +WARN_NO_PARAMDOC = NO + +# If WARN_IF_UNDOC_ENUM_VAL option is set to YES, doxygen will warn about +# undocumented enumeration values. If set to NO, doxygen will accept +# undocumented enumeration values. If EXTRACT_ALL is set to YES then this flag +# will automatically be disabled. +# The default value is: NO. + +WARN_IF_UNDOC_ENUM_VAL = NO + +# If the WARN_AS_ERROR tag is set to YES then doxygen will immediately stop when +# a warning is encountered. If the WARN_AS_ERROR tag is set to FAIL_ON_WARNINGS +# then doxygen will continue running as if WARN_AS_ERROR tag is set to NO, but +# at the end of the doxygen process doxygen will return with a non-zero status. +# If the WARN_AS_ERROR tag is set to FAIL_ON_WARNINGS_PRINT then doxygen behaves +# like FAIL_ON_WARNINGS but in case no WARN_LOGFILE is defined doxygen will not +# write the warning messages in between other messages but write them at the end +# of a run, in case a WARN_LOGFILE is defined the warning messages will be +# besides being in the defined file also be shown at the end of a run, unless +# the WARN_LOGFILE is defined as - i.e. standard output (stdout) in that case +# the behavior will remain as with the setting FAIL_ON_WARNINGS. +# Possible values are: NO, YES, FAIL_ON_WARNINGS and FAIL_ON_WARNINGS_PRINT. +# The default value is: NO. + +WARN_AS_ERROR = NO + +# The WARN_FORMAT tag determines the format of the warning messages that doxygen +# can produce. The string should contain the $file, $line, and $text tags, which +# will be replaced by the file and line number from which the warning originated +# and the warning text. Optionally the format may contain $version, which will +# be replaced by the version of the file (if it could be obtained via +# FILE_VERSION_FILTER) +# See also: WARN_LINE_FORMAT +# The default value is: $file:$line: $text. + +WARN_FORMAT = "$file:$line: $text" + +# In the $text part of the WARN_FORMAT command it is possible that a reference +# to a more specific place is given. To make it easier to jump to this place +# (outside of doxygen) the user can define a custom "cut" / "paste" string. +# Example: +# WARN_LINE_FORMAT = "'vi $file +$line'" +# See also: WARN_FORMAT +# The default value is: at line $line of file $file. + +WARN_LINE_FORMAT = "at line $line of file $file" + +# The WARN_LOGFILE tag can be used to specify a file to which warning and error +# messages should be written. If left blank the output is written to standard +# error (stderr). In case the file specified cannot be opened for writing the +# warning and error messages are written to standard error. When as file - is +# specified the warning and error messages are written to standard output +# (stdout). + +WARN_LOGFILE = + +#--------------------------------------------------------------------------- +# Configuration options related to the input files +#--------------------------------------------------------------------------- + +# The INPUT tag is used to specify the files and/or directories that contain +# documented source files. You may enter file names like myfile.cpp or +# directories like /usr/src/myproject. Separate the files or directories with +# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING +# Note: If this tag is empty the current directory is searched. + +INPUT = ../sw/inc/ + +# This tag can be used to specify the character encoding of the source files +# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses +# libiconv (or the iconv built into libc) for the transcoding. See the libiconv +# documentation (see: +# https://www.gnu.org/software/libiconv/) for the list of possible encodings. +# See also: INPUT_FILE_ENCODING +# The default value is: UTF-8. + +INPUT_ENCODING = UTF-8 + +# This tag can be used to specify the character encoding of the source files +# that doxygen parses The INPUT_FILE_ENCODING tag can be used to specify +# character encoding on a per file pattern basis. Doxygen will compare the file +# name with each pattern and apply the encoding instead of the default +# INPUT_ENCODING) if there is a match. The character encodings are a list of the +# form: pattern=encoding (like *.php=ISO-8859-1). See cfg_input_encoding +# "INPUT_ENCODING" for further information on supported encodings. + +INPUT_FILE_ENCODING = + +# If the value of the INPUT tag contains directories, you can use the +# FILE_PATTERNS tag to specify one or more wildcard patterns (like *.cpp and +# *.h) to filter out the source-files in the directories. +# +# Note that for custom extensions or not directly supported extensions you also +# need to set EXTENSION_MAPPING for the extension otherwise the files are not +# read by doxygen. +# +# Note the list of default checked file patterns might differ from the list of +# default file extension mappings. +# +# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cxxm, +# *.cpp, *.cppm, *.ccm, *.c++, *.c++m, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, +# *.idl, *.ddl, *.odl, *.h, *.hh, *.hxx, *.hpp, *.h++, *.ixx, *.l, *.cs, *.d, +# *.php, *.php4, *.php5, *.phtml, *.inc, *.m, *.markdown, *.md, *.mm, *.dox (to +# be provided as doxygen C comment), *.py, *.pyw, *.f90, *.f95, *.f03, *.f08, +# *.f18, *.f, *.for, *.vhd, *.vhdl, *.ucf, *.qsf and *.ice. + +FILE_PATTERNS = *.c \ + *.cc \ + *.cxx \ + *.cxxm \ + *.cpp \ + *.cppm \ + *.ccm \ + *.c++ \ + *.c++m \ + *.java \ + *.ii \ + *.ixx \ + *.ipp \ + *.i++ \ + *.inl \ + *.idl \ + *.ddl \ + *.odl \ + *.h \ + *.hh \ + *.hxx \ + *.hpp \ + *.h++ \ + *.ixx \ + *.l \ + *.cs \ + *.d \ + *.php \ + *.php4 \ + *.php5 \ + *.phtml \ + *.inc \ + *.m \ + *.markdown \ + *.md \ + *.mm \ + *.dox \ + *.py \ + *.pyw \ + *.f90 \ + *.f95 \ + *.f03 \ + *.f08 \ + *.f18 \ + *.f \ + *.for \ + *.vhd \ + *.vhdl \ + *.ucf \ + *.qsf \ + *.ice + +# The RECURSIVE tag can be used to specify whether or not subdirectories should +# be searched for input files as well. +# The default value is: NO. + +RECURSIVE = NO + +# The EXCLUDE tag can be used to specify files and/or directories that should be +# excluded from the INPUT source files. This way you can easily exclude a +# subdirectory from a directory tree whose root is specified with the INPUT tag. +# +# Note that relative paths are relative to the directory from which doxygen is +# run. + +EXCLUDE = + +# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or +# directories that are symbolic links (a Unix file system feature) are excluded +# from the input. +# The default value is: NO. + +EXCLUDE_SYMLINKS = NO + +# If the value of the INPUT tag contains directories, you can use the +# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude +# certain files from those directories. +# +# Note that the wildcards are matched against the file with absolute path, so to +# exclude all test directories for example use the pattern */test/* + +EXCLUDE_PATTERNS = + +# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names +# (namespaces, classes, functions, etc.) that should be excluded from the +# output. The symbol name can be a fully qualified name, a word, or if the +# wildcard * is used, a substring. Examples: ANamespace, AClass, +# ANamespace::AClass, ANamespace::*Test + +EXCLUDE_SYMBOLS = + +# The EXAMPLE_PATH tag can be used to specify one or more files or directories +# that contain example code fragments that are included (see the \include +# command). + +EXAMPLE_PATH = + +# If the value of the EXAMPLE_PATH tag contains directories, you can use the +# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp and +# *.h) to filter out the source-files in the directories. If left blank all +# files are included. + +EXAMPLE_PATTERNS = * + +# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be +# searched for input files to be used with the \include or \dontinclude commands +# irrespective of the value of the RECURSIVE tag. +# The default value is: NO. + +EXAMPLE_RECURSIVE = NO + +# The IMAGE_PATH tag can be used to specify one or more files or directories +# that contain images that are to be included in the documentation (see the +# \image command). + +IMAGE_PATH = + +# The INPUT_FILTER tag can be used to specify a program that doxygen should +# invoke to filter for each input file. Doxygen will invoke the filter program +# by executing (via popen()) the command: +# +# +# +# where is the value of the INPUT_FILTER tag, and is the +# name of an input file. Doxygen will then use the output that the filter +# program writes to standard output. If FILTER_PATTERNS is specified, this tag +# will be ignored. +# +# Note that the filter must not add or remove lines; it is applied before the +# code is scanned, but not when the output code is generated. If lines are added +# or removed, the anchors will not be placed correctly. +# +# Note that doxygen will use the data processed and written to standard output +# for further processing, therefore nothing else, like debug statements or used +# commands (so in case of a Windows batch file always use @echo OFF), should be +# written to standard output. +# +# Note that for custom extensions or not directly supported extensions you also +# need to set EXTENSION_MAPPING for the extension otherwise the files are not +# properly processed by doxygen. + +INPUT_FILTER = + +# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern +# basis. Doxygen will compare the file name with each pattern and apply the +# filter if there is a match. The filters are a list of the form: pattern=filter +# (like *.cpp=my_cpp_filter). See INPUT_FILTER for further information on how +# filters are used. If the FILTER_PATTERNS tag is empty or if none of the +# patterns match the file name, INPUT_FILTER is applied. +# +# Note that for custom extensions or not directly supported extensions you also +# need to set EXTENSION_MAPPING for the extension otherwise the files are not +# properly processed by doxygen. + +FILTER_PATTERNS = + +# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using +# INPUT_FILTER) will also be used to filter the input files that are used for +# producing the source files to browse (i.e. when SOURCE_BROWSER is set to YES). +# The default value is: NO. + +FILTER_SOURCE_FILES = NO + +# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file +# pattern. A pattern will override the setting for FILTER_PATTERN (if any) and +# it is also possible to disable source filtering for a specific pattern using +# *.ext= (so without naming a filter). +# This tag requires that the tag FILTER_SOURCE_FILES is set to YES. + +FILTER_SOURCE_PATTERNS = + +# If the USE_MDFILE_AS_MAINPAGE tag refers to the name of a markdown file that +# is part of the input, its contents will be placed on the main page +# (index.html). This can be useful if you have a project on for instance GitHub +# and want to reuse the introduction page also for the doxygen output. + +USE_MDFILE_AS_MAINPAGE = + +# The Fortran standard specifies that for fixed formatted Fortran code all +# characters from position 72 are to be considered as comment. A common +# extension is to allow longer lines before the automatic comment starts. The +# setting FORTRAN_COMMENT_AFTER will also make it possible that longer lines can +# be processed before the automatic comment starts. +# Minimum value: 7, maximum value: 10000, default value: 72. + +FORTRAN_COMMENT_AFTER = 72 + +#--------------------------------------------------------------------------- +# Configuration options related to source browsing +#--------------------------------------------------------------------------- + +# If the SOURCE_BROWSER tag is set to YES then a list of source files will be +# generated. Documented entities will be cross-referenced with these sources. +# +# Note: To get rid of all source code in the generated output, make sure that +# also VERBATIM_HEADERS is set to NO. +# The default value is: NO. + +SOURCE_BROWSER = NO + +# Setting the INLINE_SOURCES tag to YES will include the body of functions, +# multi-line macros, enums or list initialized variables directly into the +# documentation. +# The default value is: NO. + +INLINE_SOURCES = NO + +# Setting the STRIP_CODE_COMMENTS tag to YES will instruct doxygen to hide any +# special comment blocks from generated source code fragments. Normal C, C++ and +# Fortran comments will always remain visible. +# The default value is: YES. + +STRIP_CODE_COMMENTS = YES + +# If the REFERENCED_BY_RELATION tag is set to YES then for each documented +# entity all documented functions referencing it will be listed. +# The default value is: NO. + +REFERENCED_BY_RELATION = NO + +# If the REFERENCES_RELATION tag is set to YES then for each documented function +# all documented entities called/used by that function will be listed. +# The default value is: NO. + +REFERENCES_RELATION = NO + +# If the REFERENCES_LINK_SOURCE tag is set to YES and SOURCE_BROWSER tag is set +# to YES then the hyperlinks from functions in REFERENCES_RELATION and +# REFERENCED_BY_RELATION lists will link to the source code. Otherwise they will +# link to the documentation. +# The default value is: YES. + +REFERENCES_LINK_SOURCE = YES + +# If SOURCE_TOOLTIPS is enabled (the default) then hovering a hyperlink in the +# source code will show a tooltip with additional information such as prototype, +# brief description and links to the definition and documentation. Since this +# will make the HTML file larger and loading of large files a bit slower, you +# can opt to disable this feature. +# The default value is: YES. +# This tag requires that the tag SOURCE_BROWSER is set to YES. + +SOURCE_TOOLTIPS = YES + +# If the USE_HTAGS tag is set to YES then the references to source code will +# point to the HTML generated by the htags(1) tool instead of doxygen built-in +# source browser. The htags tool is part of GNU's global source tagging system +# (see https://www.gnu.org/software/global/global.html). You will need version +# 4.8.6 or higher. +# +# To use it do the following: +# - Install the latest version of global +# - Enable SOURCE_BROWSER and USE_HTAGS in the configuration file +# - Make sure the INPUT points to the root of the source tree +# - Run doxygen as normal +# +# Doxygen will invoke htags (and that will in turn invoke gtags), so these +# tools must be available from the command line (i.e. in the search path). +# +# The result: instead of the source browser generated by doxygen, the links to +# source code will now point to the output of htags. +# The default value is: NO. +# This tag requires that the tag SOURCE_BROWSER is set to YES. + +USE_HTAGS = NO + +# If the VERBATIM_HEADERS tag is set the YES then doxygen will generate a +# verbatim copy of the header file for each class for which an include is +# specified. Set to NO to disable this. +# See also: Section \class. +# The default value is: YES. + +VERBATIM_HEADERS = YES + +# If the CLANG_ASSISTED_PARSING tag is set to YES then doxygen will use the +# clang parser (see: +# http://clang.llvm.org/) for more accurate parsing at the cost of reduced +# performance. This can be particularly helpful with template rich C++ code for +# which doxygen's built-in parser lacks the necessary type information. +# Note: The availability of this option depends on whether or not doxygen was +# generated with the -Duse_libclang=ON option for CMake. +# The default value is: NO. + +CLANG_ASSISTED_PARSING = NO + +# If the CLANG_ASSISTED_PARSING tag is set to YES and the CLANG_ADD_INC_PATHS +# tag is set to YES then doxygen will add the directory of each input to the +# include path. +# The default value is: YES. +# This tag requires that the tag CLANG_ASSISTED_PARSING is set to YES. + +CLANG_ADD_INC_PATHS = YES + +# If clang assisted parsing is enabled you can provide the compiler with command +# line options that you would normally use when invoking the compiler. Note that +# the include paths will already be set by doxygen for the files and directories +# specified with INPUT and INCLUDE_PATH. +# This tag requires that the tag CLANG_ASSISTED_PARSING is set to YES. + +CLANG_OPTIONS = + +# If clang assisted parsing is enabled you can provide the clang parser with the +# path to the directory containing a file called compile_commands.json. This +# file is the compilation database (see: +# http://clang.llvm.org/docs/HowToSetupToolingForLLVM.html) containing the +# options used when the source files were built. This is equivalent to +# specifying the -p option to a clang tool, such as clang-check. These options +# will then be passed to the parser. Any options specified with CLANG_OPTIONS +# will be added as well. +# Note: The availability of this option depends on whether or not doxygen was +# generated with the -Duse_libclang=ON option for CMake. + +CLANG_DATABASE_PATH = + +#--------------------------------------------------------------------------- +# Configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- + +# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index of all +# compounds will be generated. Enable this if the project contains a lot of +# classes, structs, unions or interfaces. +# The default value is: YES. + +ALPHABETICAL_INDEX = YES + +# The IGNORE_PREFIX tag can be used to specify a prefix (or a list of prefixes) +# that should be ignored while generating the index headers. The IGNORE_PREFIX +# tag works for classes, function and member names. The entity will be placed in +# the alphabetical list under the first letter of the entity name that remains +# after removing the prefix. +# This tag requires that the tag ALPHABETICAL_INDEX is set to YES. + +IGNORE_PREFIX = + +#--------------------------------------------------------------------------- +# Configuration options related to the HTML output +#--------------------------------------------------------------------------- + +# If the GENERATE_HTML tag is set to YES, doxygen will generate HTML output +# The default value is: YES. + +GENERATE_HTML = YES + +# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. If a +# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of +# it. +# The default directory is: html. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_OUTPUT = ../docs + +# The HTML_FILE_EXTENSION tag can be used to specify the file extension for each +# generated HTML page (for example: .htm, .php, .asp). +# The default value is: .html. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_FILE_EXTENSION = .html + +# The HTML_HEADER tag can be used to specify a user-defined HTML header file for +# each generated HTML page. If the tag is left blank doxygen will generate a +# standard header. +# +# To get valid HTML the header file that includes any scripts and style sheets +# that doxygen needs, which is dependent on the configuration options used (e.g. +# the setting GENERATE_TREEVIEW). It is highly recommended to start with a +# default header using +# doxygen -w html new_header.html new_footer.html new_stylesheet.css +# YourConfigFile +# and then modify the file new_header.html. See also section "Doxygen usage" +# for information on how to generate the default header that doxygen normally +# uses. +# Note: The header is subject to change so you typically have to regenerate the +# default header when upgrading to a newer version of doxygen. For a description +# of the possible markers and block names see the documentation. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_HEADER = + +# The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each +# generated HTML page. If the tag is left blank doxygen will generate a standard +# footer. See HTML_HEADER for more information on how to generate a default +# footer and what special commands can be used inside the footer. See also +# section "Doxygen usage" for information on how to generate the default footer +# that doxygen normally uses. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_FOOTER = + +# The HTML_STYLESHEET tag can be used to specify a user-defined cascading style +# sheet that is used by each HTML page. It can be used to fine-tune the look of +# the HTML output. If left blank doxygen will generate a default style sheet. +# See also section "Doxygen usage" for information on how to generate the style +# sheet that doxygen normally uses. +# Note: It is recommended to use HTML_EXTRA_STYLESHEET instead of this tag, as +# it is more robust and this tag (HTML_STYLESHEET) will in the future become +# obsolete. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_STYLESHEET = + +# The HTML_EXTRA_STYLESHEET tag can be used to specify additional user-defined +# cascading style sheets that are included after the standard style sheets +# created by doxygen. Using this option one can overrule certain style aspects. +# This is preferred over using HTML_STYLESHEET since it does not replace the +# standard style sheet and is therefore more robust against future updates. +# Doxygen will copy the style sheet files to the output directory. +# Note: The order of the extra style sheet files is of importance (e.g. the last +# style sheet in the list overrules the setting of the previous ones in the +# list). +# Note: Since the styling of scrollbars can currently not be overruled in +# Webkit/Chromium, the styling will be left out of the default doxygen.css if +# one or more extra stylesheets have been specified. So if scrollbar +# customization is desired it has to be added explicitly. For an example see the +# documentation. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_EXTRA_STYLESHEET = + +# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or +# other source files which should be copied to the HTML output directory. Note +# that these files will be copied to the base HTML output directory. Use the +# $relpath^ marker in the HTML_HEADER and/or HTML_FOOTER files to load these +# files. In the HTML_STYLESHEET file, use the file name only. Also note that the +# files will be copied as-is; there are no commands or markers available. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_EXTRA_FILES = + +# The HTML_COLORSTYLE tag can be used to specify if the generated HTML output +# should be rendered with a dark or light theme. +# Possible values are: LIGHT always generate light mode output, DARK always +# generate dark mode output, AUTO_LIGHT automatically set the mode according to +# the user preference, use light mode if no preference is set (the default), +# AUTO_DARK automatically set the mode according to the user preference, use +# dark mode if no preference is set and TOGGLE allow to user to switch between +# light and dark mode via a button. +# The default value is: AUTO_LIGHT. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_COLORSTYLE = AUTO_LIGHT + +# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. Doxygen +# will adjust the colors in the style sheet and background images according to +# this color. Hue is specified as an angle on a color-wheel, see +# https://en.wikipedia.org/wiki/Hue for more information. For instance the value +# 0 represents red, 60 is yellow, 120 is green, 180 is cyan, 240 is blue, 300 +# purple, and 360 is red again. +# Minimum value: 0, maximum value: 359, default value: 220. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_COLORSTYLE_HUE = 220 + +# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of the colors +# in the HTML output. For a value of 0 the output will use gray-scales only. A +# value of 255 will produce the most vivid colors. +# Minimum value: 0, maximum value: 255, default value: 100. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_COLORSTYLE_SAT = 100 + +# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to the +# luminance component of the colors in the HTML output. Values below 100 +# gradually make the output lighter, whereas values above 100 make the output +# darker. The value divided by 100 is the actual gamma applied, so 80 represents +# a gamma of 0.8, The value 220 represents a gamma of 2.2, and 100 does not +# change the gamma. +# Minimum value: 40, maximum value: 240, default value: 80. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_COLORSTYLE_GAMMA = 80 + +# If the HTML_DYNAMIC_MENUS tag is set to YES then the generated HTML +# documentation will contain a main index with vertical navigation menus that +# are dynamically created via JavaScript. If disabled, the navigation index will +# consists of multiple levels of tabs that are statically embedded in every HTML +# page. Disable this option to support browsers that do not have JavaScript, +# like the Qt help browser. +# The default value is: YES. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_DYNAMIC_MENUS = YES + +# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML +# documentation will contain sections that can be hidden and shown after the +# page has loaded. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_DYNAMIC_SECTIONS = NO + +# If the HTML_CODE_FOLDING tag is set to YES then classes and functions can be +# dynamically folded and expanded in the generated HTML source code. +# The default value is: YES. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_CODE_FOLDING = YES + +# If the HTML_COPY_CLIPBOARD tag is set to YES then doxygen will show an icon in +# the top right corner of code and text fragments that allows the user to copy +# its content to the clipboard. Note this only works if supported by the browser +# and the web page is served via a secure context (see: +# https://www.w3.org/TR/secure-contexts/), i.e. using the https: or file: +# protocol. +# The default value is: YES. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_COPY_CLIPBOARD = YES + +# Doxygen stores a couple of settings persistently in the browser (via e.g. +# cookies). By default these settings apply to all HTML pages generated by +# doxygen across all projects. The HTML_PROJECT_COOKIE tag can be used to store +# the settings under a project specific key, such that the user preferences will +# be stored separately. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_PROJECT_COOKIE = + +# With HTML_INDEX_NUM_ENTRIES one can control the preferred number of entries +# shown in the various tree structured indices initially; the user can expand +# and collapse entries dynamically later on. Doxygen will expand the tree to +# such a level that at most the specified number of entries are visible (unless +# a fully collapsed tree already exceeds this amount). So setting the number of +# entries 1 will produce a full collapsed tree by default. 0 is a special value +# representing an infinite number of entries and will result in a full expanded +# tree by default. +# Minimum value: 0, maximum value: 9999, default value: 100. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_INDEX_NUM_ENTRIES = 100 + +# If the GENERATE_DOCSET tag is set to YES, additional index files will be +# generated that can be used as input for Apple's Xcode 3 integrated development +# environment (see: +# https://developer.apple.com/xcode/), introduced with OSX 10.5 (Leopard). To +# create a documentation set, doxygen will generate a Makefile in the HTML +# output directory. Running make will produce the docset in that directory and +# running make install will install the docset in +# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find it at +# startup. See https://developer.apple.com/library/archive/featuredarticles/Doxy +# genXcode/_index.html for more information. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +GENERATE_DOCSET = NO + +# This tag determines the name of the docset feed. A documentation feed provides +# an umbrella under which multiple documentation sets from a single provider +# (such as a company or product suite) can be grouped. +# The default value is: Doxygen generated docs. +# This tag requires that the tag GENERATE_DOCSET is set to YES. + +DOCSET_FEEDNAME = "Doxygen generated docs" + +# This tag determines the URL of the docset feed. A documentation feed provides +# an umbrella under which multiple documentation sets from a single provider +# (such as a company or product suite) can be grouped. +# This tag requires that the tag GENERATE_DOCSET is set to YES. + +DOCSET_FEEDURL = + +# This tag specifies a string that should uniquely identify the documentation +# set bundle. This should be a reverse domain-name style string, e.g. +# com.mycompany.MyDocSet. Doxygen will append .docset to the name. +# The default value is: org.doxygen.Project. +# This tag requires that the tag GENERATE_DOCSET is set to YES. + +DOCSET_BUNDLE_ID = org.doxygen.Project + +# The DOCSET_PUBLISHER_ID tag specifies a string that should uniquely identify +# the documentation publisher. This should be a reverse domain-name style +# string, e.g. com.mycompany.MyDocSet.documentation. +# The default value is: org.doxygen.Publisher. +# This tag requires that the tag GENERATE_DOCSET is set to YES. + +DOCSET_PUBLISHER_ID = org.doxygen.Publisher + +# The DOCSET_PUBLISHER_NAME tag identifies the documentation publisher. +# The default value is: Publisher. +# This tag requires that the tag GENERATE_DOCSET is set to YES. + +DOCSET_PUBLISHER_NAME = Publisher + +# If the GENERATE_HTMLHELP tag is set to YES then doxygen generates three +# additional HTML index files: index.hhp, index.hhc, and index.hhk. The +# index.hhp is a project file that can be read by Microsoft's HTML Help Workshop +# on Windows. In the beginning of 2021 Microsoft took the original page, with +# a.o. the download links, offline the HTML help workshop was already many years +# in maintenance mode). You can download the HTML help workshop from the web +# archives at Installation executable (see: +# http://web.archive.org/web/20160201063255/http://download.microsoft.com/downlo +# ad/0/A/9/0A939EF6-E31C-430F-A3DF-DFAE7960D564/htmlhelp.exe). +# +# The HTML Help Workshop contains a compiler that can convert all HTML output +# generated by doxygen into a single compiled HTML file (.chm). Compiled HTML +# files are now used as the Windows 98 help format, and will replace the old +# Windows help format (.hlp) on all Windows platforms in the future. Compressed +# HTML files also contain an index, a table of contents, and you can search for +# words in the documentation. The HTML workshop also contains a viewer for +# compressed HTML files. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +GENERATE_HTMLHELP = NO + +# The CHM_FILE tag can be used to specify the file name of the resulting .chm +# file. You can add a path in front of the file if the result should not be +# written to the html output directory. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. + +CHM_FILE = + +# The HHC_LOCATION tag can be used to specify the location (absolute path +# including file name) of the HTML help compiler (hhc.exe). If non-empty, +# doxygen will try to run the HTML help compiler on the generated index.hhp. +# The file has to be specified with full path. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. + +HHC_LOCATION = + +# The GENERATE_CHI flag controls if a separate .chi index file is generated +# (YES) or that it should be included in the main .chm file (NO). +# The default value is: NO. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. + +GENERATE_CHI = NO + +# The CHM_INDEX_ENCODING is used to encode HtmlHelp index (hhk), content (hhc) +# and project file content. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. + +CHM_INDEX_ENCODING = + +# The BINARY_TOC flag controls whether a binary table of contents is generated +# (YES) or a normal table of contents (NO) in the .chm file. Furthermore it +# enables the Previous and Next buttons. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. + +BINARY_TOC = NO + +# The TOC_EXPAND flag can be set to YES to add extra items for group members to +# the table of contents of the HTML help documentation and to the tree view. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. + +TOC_EXPAND = NO + +# The SITEMAP_URL tag is used to specify the full URL of the place where the +# generated documentation will be placed on the server by the user during the +# deployment of the documentation. The generated sitemap is called sitemap.xml +# and placed on the directory specified by HTML_OUTPUT. In case no SITEMAP_URL +# is specified no sitemap is generated. For information about the sitemap +# protocol see https://www.sitemaps.org +# This tag requires that the tag GENERATE_HTML is set to YES. + +SITEMAP_URL = + +# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and +# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated that +# can be used as input for Qt's qhelpgenerator to generate a Qt Compressed Help +# (.qch) of the generated HTML documentation. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +GENERATE_QHP = NO + +# If the QHG_LOCATION tag is specified, the QCH_FILE tag can be used to specify +# the file name of the resulting .qch file. The path specified is relative to +# the HTML output folder. +# This tag requires that the tag GENERATE_QHP is set to YES. + +QCH_FILE = + +# The QHP_NAMESPACE tag specifies the namespace to use when generating Qt Help +# Project output. For more information please see Qt Help Project / Namespace +# (see: +# https://doc.qt.io/archives/qt-4.8/qthelpproject.html#namespace). +# The default value is: org.doxygen.Project. +# This tag requires that the tag GENERATE_QHP is set to YES. + +QHP_NAMESPACE = org.doxygen.Project + +# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating Qt +# Help Project output. For more information please see Qt Help Project / Virtual +# Folders (see: +# https://doc.qt.io/archives/qt-4.8/qthelpproject.html#virtual-folders). +# The default value is: doc. +# This tag requires that the tag GENERATE_QHP is set to YES. + +QHP_VIRTUAL_FOLDER = doc + +# If the QHP_CUST_FILTER_NAME tag is set, it specifies the name of a custom +# filter to add. For more information please see Qt Help Project / Custom +# Filters (see: +# https://doc.qt.io/archives/qt-4.8/qthelpproject.html#custom-filters). +# This tag requires that the tag GENERATE_QHP is set to YES. + +QHP_CUST_FILTER_NAME = + +# The QHP_CUST_FILTER_ATTRS tag specifies the list of the attributes of the +# custom filter to add. For more information please see Qt Help Project / Custom +# Filters (see: +# https://doc.qt.io/archives/qt-4.8/qthelpproject.html#custom-filters). +# This tag requires that the tag GENERATE_QHP is set to YES. + +QHP_CUST_FILTER_ATTRS = + +# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this +# project's filter section matches. Qt Help Project / Filter Attributes (see: +# https://doc.qt.io/archives/qt-4.8/qthelpproject.html#filter-attributes). +# This tag requires that the tag GENERATE_QHP is set to YES. + +QHP_SECT_FILTER_ATTRS = + +# The QHG_LOCATION tag can be used to specify the location (absolute path +# including file name) of Qt's qhelpgenerator. If non-empty doxygen will try to +# run qhelpgenerator on the generated .qhp file. +# This tag requires that the tag GENERATE_QHP is set to YES. + +QHG_LOCATION = + +# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files will be +# generated, together with the HTML files, they form an Eclipse help plugin. To +# install this plugin and make it available under the help contents menu in +# Eclipse, the contents of the directory containing the HTML and XML files needs +# to be copied into the plugins directory of eclipse. The name of the directory +# within the plugins directory should be the same as the ECLIPSE_DOC_ID value. +# After copying Eclipse needs to be restarted before the help appears. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +GENERATE_ECLIPSEHELP = NO + +# A unique identifier for the Eclipse help plugin. When installing the plugin +# the directory name containing the HTML and XML files should also have this +# name. Each documentation set should have its own identifier. +# The default value is: org.doxygen.Project. +# This tag requires that the tag GENERATE_ECLIPSEHELP is set to YES. + +ECLIPSE_DOC_ID = org.doxygen.Project + +# If you want full control over the layout of the generated HTML pages it might +# be necessary to disable the index and replace it with your own. The +# DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) at top +# of each HTML page. A value of NO enables the index and the value YES disables +# it. Since the tabs in the index contain the same information as the navigation +# tree, you can set this option to YES if you also set GENERATE_TREEVIEW to YES. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +DISABLE_INDEX = NO + +# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index +# structure should be generated to display hierarchical information. If the tag +# value is set to YES, a side panel will be generated containing a tree-like +# index structure (just like the one that is generated for HTML Help). For this +# to work a browser that supports JavaScript, DHTML, CSS and frames is required +# (i.e. any modern browser). Windows users are probably better off using the +# HTML help feature. Via custom style sheets (see HTML_EXTRA_STYLESHEET) one can +# further fine tune the look of the index (see "Fine-tuning the output"). As an +# example, the default style sheet generated by doxygen has an example that +# shows how to put an image at the root of the tree instead of the PROJECT_NAME. +# Since the tree basically has the same information as the tab index, you could +# consider setting DISABLE_INDEX to YES when enabling this option. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +GENERATE_TREEVIEW = YES + +# When both GENERATE_TREEVIEW and DISABLE_INDEX are set to YES, then the +# FULL_SIDEBAR option determines if the side bar is limited to only the treeview +# area (value NO) or if it should extend to the full height of the window (value +# YES). Setting this to YES gives a layout similar to +# https://docs.readthedocs.io with more room for contents, but less room for the +# project logo, title, and description. If either GENERATE_TREEVIEW or +# DISABLE_INDEX is set to NO, this option has no effect. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +FULL_SIDEBAR = NO + +# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values that +# doxygen will group on one line in the generated HTML documentation. +# +# Note that a value of 0 will completely suppress the enum values from appearing +# in the overview section. +# Minimum value: 0, maximum value: 20, default value: 4. +# This tag requires that the tag GENERATE_HTML is set to YES. + +ENUM_VALUES_PER_LINE = 4 + +# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be used +# to set the initial width (in pixels) of the frame in which the tree is shown. +# Minimum value: 0, maximum value: 1500, default value: 250. +# This tag requires that the tag GENERATE_HTML is set to YES. + +TREEVIEW_WIDTH = 250 + +# If the EXT_LINKS_IN_WINDOW option is set to YES, doxygen will open links to +# external symbols imported via tag files in a separate window. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +EXT_LINKS_IN_WINDOW = NO + +# If the OBFUSCATE_EMAILS tag is set to YES, doxygen will obfuscate email +# addresses. +# The default value is: YES. +# This tag requires that the tag GENERATE_HTML is set to YES. + +OBFUSCATE_EMAILS = YES + +# If the HTML_FORMULA_FORMAT option is set to svg, doxygen will use the pdf2svg +# tool (see https://github.com/dawbarton/pdf2svg) or inkscape (see +# https://inkscape.org) to generate formulas as SVG images instead of PNGs for +# the HTML output. These images will generally look nicer at scaled resolutions. +# Possible values are: png (the default) and svg (looks nicer but requires the +# pdf2svg or inkscape tool). +# The default value is: png. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_FORMULA_FORMAT = png + +# Use this tag to change the font size of LaTeX formulas included as images in +# the HTML documentation. When you change the font size after a successful +# doxygen run you need to manually remove any form_*.png images from the HTML +# output directory to force them to be regenerated. +# Minimum value: 8, maximum value: 50, default value: 10. +# This tag requires that the tag GENERATE_HTML is set to YES. + +FORMULA_FONTSIZE = 10 + +# The FORMULA_MACROFILE can contain LaTeX \newcommand and \renewcommand commands +# to create new LaTeX commands to be used in formulas as building blocks. See +# the section "Including formulas" for details. + +FORMULA_MACROFILE = + +# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see +# https://www.mathjax.org) which uses client side JavaScript for the rendering +# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX +# installed or if you want to formulas look prettier in the HTML output. When +# enabled you may also need to install MathJax separately and configure the path +# to it using the MATHJAX_RELPATH option. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +USE_MATHJAX = NO + +# With MATHJAX_VERSION it is possible to specify the MathJax version to be used. +# Note that the different versions of MathJax have different requirements with +# regards to the different settings, so it is possible that also other MathJax +# settings have to be changed when switching between the different MathJax +# versions. +# Possible values are: MathJax_2 and MathJax_3. +# The default value is: MathJax_2. +# This tag requires that the tag USE_MATHJAX is set to YES. + +MATHJAX_VERSION = MathJax_2 + +# When MathJax is enabled you can set the default output format to be used for +# the MathJax output. For more details about the output format see MathJax +# version 2 (see: +# http://docs.mathjax.org/en/v2.7-latest/output.html) and MathJax version 3 +# (see: +# http://docs.mathjax.org/en/latest/web/components/output.html). +# Possible values are: HTML-CSS (which is slower, but has the best +# compatibility. This is the name for Mathjax version 2, for MathJax version 3 +# this will be translated into chtml), NativeMML (i.e. MathML. Only supported +# for NathJax 2. For MathJax version 3 chtml will be used instead.), chtml (This +# is the name for Mathjax version 3, for MathJax version 2 this will be +# translated into HTML-CSS) and SVG. +# The default value is: HTML-CSS. +# This tag requires that the tag USE_MATHJAX is set to YES. + +MATHJAX_FORMAT = HTML-CSS + +# When MathJax is enabled you need to specify the location relative to the HTML +# output directory using the MATHJAX_RELPATH option. The destination directory +# should contain the MathJax.js script. For instance, if the mathjax directory +# is located at the same level as the HTML output directory, then +# MATHJAX_RELPATH should be ../mathjax. The default value points to the MathJax +# Content Delivery Network so you can quickly see the result without installing +# MathJax. However, it is strongly recommended to install a local copy of +# MathJax from https://www.mathjax.org before deployment. The default value is: +# - in case of MathJax version 2: https://cdn.jsdelivr.net/npm/mathjax@2 +# - in case of MathJax version 3: https://cdn.jsdelivr.net/npm/mathjax@3 +# This tag requires that the tag USE_MATHJAX is set to YES. + +MATHJAX_RELPATH = + +# The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax +# extension names that should be enabled during MathJax rendering. For example +# for MathJax version 2 (see +# https://docs.mathjax.org/en/v2.7-latest/tex.html#tex-and-latex-extensions): +# MATHJAX_EXTENSIONS = TeX/AMSmath TeX/AMSsymbols +# For example for MathJax version 3 (see +# http://docs.mathjax.org/en/latest/input/tex/extensions/index.html): +# MATHJAX_EXTENSIONS = ams +# This tag requires that the tag USE_MATHJAX is set to YES. + +MATHJAX_EXTENSIONS = + +# The MATHJAX_CODEFILE tag can be used to specify a file with javascript pieces +# of code that will be used on startup of the MathJax code. See the MathJax site +# (see: +# http://docs.mathjax.org/en/v2.7-latest/output.html) for more details. For an +# example see the documentation. +# This tag requires that the tag USE_MATHJAX is set to YES. + +MATHJAX_CODEFILE = + +# When the SEARCHENGINE tag is enabled doxygen will generate a search box for +# the HTML output. The underlying search engine uses javascript and DHTML and +# should work on any modern browser. Note that when using HTML help +# (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets (GENERATE_DOCSET) +# there is already a search function so this one should typically be disabled. +# For large projects the javascript based search engine can be slow, then +# enabling SERVER_BASED_SEARCH may provide a better solution. It is possible to +# search using the keyboard; to jump to the search box use + S +# (what the is depends on the OS and browser, but it is typically +# , /