wxruby3 0.9.0.pre.rc.2-x64-mingw-ucrt → 0.9.0-x64-mingw-ucrt
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/INSTALL.md +30 -8
- data/README.md +3 -3
- data/ext/mkrf_conf_bingem.rb +4 -1
- data/ext/wxbase32u_gcc_custom.dll +0 -0
- data/ext/wxbase32u_net_gcc_custom.dll +0 -0
- data/ext/wxbase32u_xml_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_aui_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_core_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_gl_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_html_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_media_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_propgrid_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_qa_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_ribbon_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_richtext_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_stc_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_webview_gcc_custom.dll +0 -0
- data/ext/wxmsw32u_xrc_gcc_custom.dll +0 -0
- data/lib/wx/accessors.rb +10 -2
- data/lib/wx/aui/auifloatframe.rb +20 -0
- data/lib/wx/aui/auimanager.rb +3 -0
- data/lib/wx/aui/auinotebook.rb +17 -0
- data/lib/wx/aui/events/evt_list.rb +7 -7
- data/lib/wx/aui/require.rb +5 -1
- data/lib/wx/aui.rb +4 -1
- data/lib/wx/core/acceleratortable.rb +8 -0
- data/lib/wx/core/animation.rb +8 -0
- data/lib/wx/core/app.rb +8 -0
- data/lib/wx/core/array_ext.rb +7 -0
- data/lib/wx/core/art_locator.rb +7 -0
- data/lib/wx/core/artprovider.rb +9 -0
- data/lib/wx/core/bitmap.rb +16 -4
- data/lib/wx/core/bitmap_combobox.rb +7 -0
- data/lib/wx/core/brush.rb +7 -0
- data/lib/wx/core/busycursor.rb +9 -0
- data/lib/wx/core/choice.rb +7 -0
- data/lib/wx/core/choicedlg.rb +7 -0
- data/lib/wx/core/clientdc.rb +9 -0
- data/lib/wx/core/clipboard.rb +8 -0
- data/lib/wx/core/collapsible_pane.rb +8 -1
- data/lib/wx/core/colour.rb +8 -0
- data/lib/wx/core/combo_ctrl.rb +110 -0
- data/lib/wx/core/combobox.rb +7 -0
- data/lib/wx/core/config.rb +303 -0
- data/lib/wx/core/controlwithitems.rb +12 -1
- data/lib/wx/core/cursor.rb +14 -4
- data/lib/wx/core/data_object.rb +7 -0
- data/lib/wx/core/dataformat.rb +9 -0
- data/lib/wx/core/datetime.rb +14 -0
- data/lib/wx/core/dc.rb +7 -0
- data/lib/wx/core/dialog.rb +18 -1
- data/lib/wx/core/enum.rb +7 -0
- data/lib/wx/core/event.rb +7 -0
- data/lib/wx/core/event_blocker.rb +7 -0
- data/lib/wx/core/event_loop.rb +14 -0
- data/lib/wx/core/events/evt_list.rb +76 -0
- data/lib/wx/core/evthandler.rb +8 -0
- data/lib/wx/core/ext.rb +7 -0
- data/lib/wx/core/file_dialog.rb +23 -0
- data/lib/wx/core/find_replace_dialog.rb +7 -0
- data/lib/wx/core/functions.rb +8 -0
- data/lib/wx/core/gauge.rb +10 -1
- data/lib/wx/core/genericdirctrl.rb +9 -0
- data/lib/wx/core/hboxsizer.rb +16 -0
- data/lib/wx/core/helpcontroller.rb +8 -0
- data/lib/wx/core/helpcontrollerhelpprovider.rb +9 -0
- data/lib/wx/core/helpprovider.rb +10 -1
- data/lib/wx/core/icon.rb +17 -6
- data/lib/wx/core/id_helper.rb +7 -0
- data/lib/wx/core/image.rb +49 -4
- data/lib/wx/core/imagelist.rb +8 -1
- data/lib/wx/core/listbox.rb +7 -0
- data/lib/wx/core/listctrl.rb +26 -13
- data/lib/wx/core/locale.rb +8 -0
- data/lib/wx/core/log.rb +114 -0
- data/lib/wx/core/menu.rb +9 -0
- data/lib/wx/core/menu_bar.rb +7 -0
- data/lib/wx/core/menuitem.rb +9 -0
- data/lib/wx/core/notebook.rb +9 -0
- data/lib/wx/core/object.rb +9 -0
- data/lib/wx/core/paintdc.rb +7 -0
- data/lib/wx/core/pen.rb +7 -0
- data/lib/wx/core/pen_info.rb +7 -0
- data/lib/wx/core/platform_info.rb +7 -0
- data/lib/wx/core/point.rb +8 -0
- data/lib/wx/core/real_point.rb +8 -0
- data/lib/wx/core/rect.rb +9 -0
- data/lib/wx/core/region_iterator.rb +7 -0
- data/lib/wx/core/simplehelpprovider.rb +9 -0
- data/lib/wx/core/size.rb +8 -0
- data/lib/wx/core/sizer.rb +9 -0
- data/lib/wx/core/splash_screen.rb +22 -2
- data/lib/wx/core/text_entry.rb +7 -0
- data/lib/wx/core/textctrl.rb +86 -5
- data/lib/wx/core/timer.rb +9 -0
- data/lib/wx/core/toolbar.rb +9 -0
- data/lib/wx/core/toolbartool.rb +8 -0
- data/lib/wx/core/treectrl.rb +9 -0
- data/lib/wx/core/v_list_box.rb +7 -0
- data/lib/wx/core/validator.rb +7 -0
- data/lib/wx/core/variant.rb +7 -0
- data/lib/wx/core/vboxsizer.rb +16 -0
- data/lib/wx/core/window.rb +8 -0
- data/lib/wx/core/window_update_locker.rb +9 -0
- data/lib/wx/core/xmlresource.rb +8 -0
- data/lib/wx/core.rb +4 -1
- data/lib/wx/doc/app.rb +7 -1
- data/lib/wx/doc/array_ext.rb +6 -0
- data/lib/wx/doc/art_locator.rb +7 -0
- data/lib/wx/doc/aui/auimanager.rb +6 -0
- data/lib/wx/doc/aui/auinotebook.rb +6 -0
- data/lib/wx/doc/bitmap.rb +19 -15
- data/lib/wx/doc/brush.rb +6 -0
- data/lib/wx/doc/busy_info.rb +6 -0
- data/lib/wx/doc/client_dc.rb +6 -0
- data/lib/wx/doc/clipboard.rb +6 -0
- data/lib/wx/doc/colour_dialog.rb +6 -0
- data/lib/wx/doc/config.rb +190 -0
- data/lib/wx/doc/const.rb +7 -0
- data/lib/wx/doc/controlwithitems.rb +6 -0
- data/lib/wx/doc/core.rb +6 -0
- data/lib/wx/doc/cursor.rb +13 -5
- data/lib/wx/doc/data_object.rb +6 -0
- data/lib/wx/doc/datetime.rb +16 -0
- data/lib/wx/doc/dc.rb +6 -0
- data/lib/wx/doc/enum.rb +8 -1
- data/lib/wx/doc/event.rb +12 -0
- data/lib/wx/doc/event_blocker.rb +6 -0
- data/lib/wx/doc/event_loop.rb +13 -0
- data/lib/wx/doc/events.rb +6 -0
- data/lib/wx/doc/evthandler.rb +8 -0
- data/lib/wx/doc/extra/00_starting.md +6 -6
- data/lib/wx/doc/extra/01_packages.md +52 -51
- data/lib/wx/doc/extra/02_lifecycles.md +9 -8
- data/lib/wx/doc/extra/05_event-handling.md +37 -12
- data/lib/wx/doc/extra/06_geometry.md +5 -5
- data/lib/wx/doc/extra/07_colour_and_font.md +2 -2
- data/lib/wx/doc/extra/09_exceptions.md +2 -2
- data/lib/wx/doc/extra/10_art.md +18 -12
- data/lib/wx/doc/extra/11_drawing_and_dc.md +8 -8
- data/lib/wx/doc/font.rb +7 -1
- data/lib/wx/doc/font_data.rb +16 -0
- data/lib/wx/doc/functions.rb +60 -24
- data/lib/wx/doc/gc_dc.rb +7 -1
- data/lib/wx/doc/gdi_common.rb +8 -1
- data/lib/wx/doc/gen/about_dialog_info.rb +10 -10
- data/lib/wx/doc/gen/accelerator.rb +8 -13
- data/lib/wx/doc/gen/accessible.rb +27 -23
- data/lib/wx/doc/gen/activity_indicator.rb +7 -7
- data/lib/wx/doc/gen/animation.rb +20 -20
- data/lib/wx/doc/gen/animation_ctrl.rb +14 -13
- data/lib/wx/doc/gen/any_button.rb +3 -3
- data/lib/wx/doc/gen/app.rb +25 -88
- data/lib/wx/doc/gen/app_traits.rb +381 -0
- data/lib/wx/doc/gen/art_provider.rb +64 -4
- data/lib/wx/doc/gen/aui/aui_dock_art.rb +12 -12
- data/lib/wx/doc/gen/aui/aui_floating_frame.rb +6 -6
- data/lib/wx/doc/gen/aui/aui_manager.rb +57 -41
- data/lib/wx/doc/gen/aui/aui_manager_event.rb +16 -10
- data/lib/wx/doc/gen/aui/aui_mdi_child_frame.rb +19 -20
- data/lib/wx/doc/gen/aui/aui_mdi_client_window.rb +7 -7
- data/lib/wx/doc/gen/aui/aui_mdi_parent_frame.rb +12 -12
- data/lib/wx/doc/gen/aui/aui_notebook.rb +136 -26
- data/lib/wx/doc/gen/aui/aui_notebook_event.rb +17 -2
- data/lib/wx/doc/gen/aui/aui_pane_info.rb +95 -95
- data/lib/wx/doc/gen/aui/aui_tab_art.rb +17 -17
- data/lib/wx/doc/gen/aui/aui_tool_bar.rb +61 -46
- data/lib/wx/doc/gen/aui/aui_tool_bar_art.rb +18 -18
- data/lib/wx/doc/gen/aui/aui_tool_bar_event.rb +6 -6
- data/lib/wx/doc/gen/aui/aui_tool_bar_item.rb +11 -11
- data/lib/wx/doc/gen/aui/event_list.rb +7 -0
- data/lib/wx/doc/gen/banner_window.rb +98 -0
- data/lib/wx/doc/gen/bitmap.rb +56 -81
- data/lib/wx/doc/gen/bitmap_button.rb +13 -9
- data/lib/wx/doc/gen/bitmap_combo_box.rb +14 -9
- data/lib/wx/doc/gen/book_ctrl_base.rb +20 -16
- data/lib/wx/doc/gen/book_ctrl_event.rb +2 -2
- data/lib/wx/doc/gen/box_sizer.rb +1 -1
- data/lib/wx/doc/gen/brush.rb +24 -12
- data/lib/wx/doc/gen/busy_info.rb +1 -1
- data/lib/wx/doc/gen/button.rb +23 -11
- data/lib/wx/doc/gen/calculate_layout_event.rb +2 -1
- data/lib/wx/doc/gen/calendar_ctrl.rb +34 -22
- data/lib/wx/doc/gen/calendar_date_attr.rb +13 -13
- data/lib/wx/doc/gen/calendar_event.rb +4 -10
- data/lib/wx/doc/gen/caret.rb +6 -6
- data/lib/wx/doc/gen/check_box.rb +19 -15
- data/lib/wx/doc/gen/check_list_box.rb +10 -9
- data/lib/wx/doc/gen/choice.rb +10 -9
- data/lib/wx/doc/gen/choicebook.rb +13 -7
- data/lib/wx/doc/gen/client_dc.rb +1 -1
- data/lib/wx/doc/gen/clipboard.rb +10 -10
- data/lib/wx/doc/gen/collapsible_pane.rb +13 -10
- data/lib/wx/doc/gen/collapsible_pane_event.rb +5 -4
- data/lib/wx/doc/gen/colour.rb +42 -32
- data/lib/wx/doc/gen/colour_dialog.rb +12 -12
- data/lib/wx/doc/gen/colour_picker_ctrl.rb +16 -10
- data/lib/wx/doc/gen/colour_picker_event.rb +7 -4
- data/lib/wx/doc/gen/combo_box.rb +29 -20
- data/lib/wx/doc/gen/combo_ctrl.rb +960 -0
- data/lib/wx/doc/gen/command_link_button.rb +110 -0
- data/lib/wx/doc/gen/config_base.rb +10 -0
- data/lib/wx/doc/gen/context_help_button.rb +7 -6
- data/lib/wx/doc/gen/control.rb +12 -9
- data/lib/wx/doc/gen/control_with_items.rb +5 -5
- data/lib/wx/doc/gen/core.rb +8 -5
- data/lib/wx/doc/gen/cursor.rb +18 -18
- data/lib/wx/doc/gen/data_format.rb +5 -5
- data/lib/wx/doc/gen/data_object.rb +32 -25
- data/lib/wx/doc/gen/date_event.rb +3 -3
- data/lib/wx/doc/gen/date_picker_ctrl.rb +16 -11
- data/lib/wx/doc/gen/dc.rb +162 -74
- data/lib/wx/doc/gen/defs.rb +16 -16
- data/lib/wx/doc/gen/dialog.rb +65 -22
- data/lib/wx/doc/gen/dir_dialog.rb +6 -2
- data/lib/wx/doc/gen/dir_filter_list_ctrl.rb +3 -3
- data/lib/wx/doc/gen/dir_picker_ctrl.rb +17 -12
- data/lib/wx/doc/gen/drag_drop.rb +26 -52
- data/lib/wx/doc/gen/drag_image.rb +13 -38
- data/lib/wx/doc/gen/editable_list_box.rb +9 -5
- data/lib/wx/doc/gen/event.rb +55 -32
- data/lib/wx/doc/gen/event_blocker.rb +1 -1
- data/lib/wx/doc/gen/event_filter.rb +5 -2
- data/lib/wx/doc/gen/event_list.rb +117 -19
- data/lib/wx/doc/gen/events.rb +351 -215
- data/lib/wx/doc/gen/evt_handler.rb +8 -8
- data/lib/wx/doc/gen/ext_help_controller.rb +9 -9
- data/lib/wx/doc/gen/file_dialog.rb +20 -9
- data/lib/wx/doc/gen/file_dialog_custom_control.rb +146 -0
- data/lib/wx/doc/gen/file_dialog_customize_hook.rb +159 -0
- data/lib/wx/doc/gen/file_dir_picker_event.rb +5 -3
- data/lib/wx/doc/gen/file_picker_ctrl.rb +19 -11
- data/lib/wx/doc/gen/file_system.rb +250 -0
- data/lib/wx/doc/gen/find_dialog_event.rb +7 -2
- data/lib/wx/doc/gen/find_replace_data.rb +1 -1
- data/lib/wx/doc/gen/find_replace_dialog.rb +2 -2
- data/lib/wx/doc/gen/flex_grid_sizer.rb +16 -10
- data/lib/wx/doc/gen/font.rb +90 -94
- data/lib/wx/doc/gen/font_data.rb +15 -11
- data/lib/wx/doc/gen/font_dialog.rb +5 -5
- data/lib/wx/doc/gen/font_picker_ctrl.rb +11 -7
- data/lib/wx/doc/gen/font_picker_event.rb +2 -1
- data/lib/wx/doc/gen/frame.rb +36 -27
- data/lib/wx/doc/gen/fs_file.rb +65 -38
- data/lib/wx/doc/gen/gauge.rb +14 -10
- data/lib/wx/doc/gen/gb_sizer_item.rb +12 -26
- data/lib/wx/doc/gen/gcdc.rb +5 -1
- data/lib/wx/doc/gen/gdi_common.rb +43 -41
- data/lib/wx/doc/gen/gdi_object.rb +1 -1
- data/lib/wx/doc/gen/generic_dir_ctrl.rb +19 -13
- data/lib/wx/doc/gen/graphics_context.rb +320 -88
- data/lib/wx/doc/gen/graphics_object.rb +48 -102
- data/lib/wx/doc/gen/grid/grid_cell_activatable_editor.rb +4 -2
- data/lib/wx/doc/gen/grid/grid_cell_attr.rb +41 -56
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_editor.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_auto_wrap_string_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_bool_editor.rb +4 -2
- data/lib/wx/doc/gen/grid/grid_cell_bool_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_choice_editor.rb +7 -12
- data/lib/wx/doc/gen/grid/grid_cell_date_editor.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_date_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_date_time_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_editor.rb +19 -14
- data/lib/wx/doc/gen/grid/grid_cell_enum_editor.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_enum_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_float_editor.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_float_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_number_editor.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_number_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_renderer.rb +15 -13
- data/lib/wx/doc/gen/grid/grid_cell_string_renderer.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_cell_text_editor.rb +3 -1
- data/lib/wx/doc/gen/grid/grid_ctrl.rb +446 -189
- data/lib/wx/doc/gen/grid/grid_editor_created_event.rb +5 -3
- data/lib/wx/doc/gen/grid/grid_event.rb +26 -9
- data/lib/wx/doc/gen/grid/grid_range_select_event.rb +15 -11
- data/lib/wx/doc/gen/grid/grid_size_event.rb +13 -7
- data/lib/wx/doc/gen/grid/grid_string_table.rb +8 -8
- data/lib/wx/doc/gen/grid/grid_table_base.rb +21 -21
- data/lib/wx/doc/gen/grid/grid_table_message.rb +5 -5
- data/lib/wx/doc/gen/grid_bag_sizer.rb +15 -15
- data/lib/wx/doc/gen/grid_sizer.rb +4 -4
- data/lib/wx/doc/gen/gui_event_loop.rb +132 -0
- data/lib/wx/doc/gen/header_ctrl.rb +755 -0
- data/lib/wx/doc/gen/header_ctrl_event.rb +131 -0
- data/lib/wx/doc/gen/help_controller.rb +25 -19
- data/lib/wx/doc/gen/help_provider.rb +3 -3
- data/lib/wx/doc/gen/html/html_cell.rb +100 -59
- data/lib/wx/doc/gen/html/html_cell_event.rb +7 -5
- data/lib/wx/doc/gen/html/html_easy_printing.rb +14 -9
- data/lib/wx/doc/gen/html/html_help_controller.rb +60 -46
- data/lib/wx/doc/gen/html/html_help_data.rb +5 -5
- data/lib/wx/doc/gen/html/html_help_window.rb +33 -35
- data/lib/wx/doc/gen/html/html_link_event.rb +4 -3
- data/lib/wx/doc/gen/html/html_list_box.rb +21 -13
- data/lib/wx/doc/gen/html/html_printout.rb +16 -6
- data/lib/wx/doc/gen/html/html_window.rb +54 -39
- data/lib/wx/doc/gen/hyperlink_ctrl.rb +15 -10
- data/lib/wx/doc/gen/hyperlink_event.rb +2 -1
- data/lib/wx/doc/gen/icon.rb +24 -24
- data/lib/wx/doc/gen/icon_location.rb +1 -1
- data/lib/wx/doc/gen/image.rb +164 -114
- data/lib/wx/doc/gen/image_list.rb +24 -30
- data/lib/wx/doc/gen/info_bar.rb +152 -0
- data/lib/wx/doc/gen/keyboard_state.rb +24 -24
- data/lib/wx/doc/gen/list_box.rb +40 -31
- data/lib/wx/doc/gen/list_ctrl.rb +223 -167
- data/lib/wx/doc/gen/list_event.rb +25 -3
- data/lib/wx/doc/gen/listbook.rb +13 -7
- data/lib/wx/doc/gen/locale.rb +22 -71
- data/lib/wx/doc/gen/log.rb +133 -106
- data/lib/wx/doc/gen/mdi_client_window.rb +3 -3
- data/lib/wx/doc/gen/mdi_frame.rb +23 -17
- data/lib/wx/doc/gen/media_ctrl.rb +22 -19
- data/lib/wx/doc/gen/media_event.rb +8 -2
- data/lib/wx/doc/gen/memory_dc.rb +26 -33
- data/lib/wx/doc/gen/menu.rb +24 -25
- data/lib/wx/doc/gen/menu_bar.rb +11 -28
- data/lib/wx/doc/gen/menu_item.rb +127 -46
- data/lib/wx/doc/gen/message_dialog.rb +54 -36
- data/lib/wx/doc/gen/mini_frame.rb +14 -5
- data/lib/wx/doc/gen/mouse_state.rb +51 -11
- data/lib/wx/doc/gen/multi_choice_dialog.rb +4 -2
- data/lib/wx/doc/gen/non_owned_window.rb +8 -9
- data/lib/wx/doc/gen/notebook.rb +27 -22
- data/lib/wx/doc/gen/number_entry_dialog.rb +3 -3
- data/lib/wx/doc/gen/object.rb +3 -14
- data/lib/wx/doc/gen/palette.rb +15 -17
- data/lib/wx/doc/gen/panel.rb +8 -7
- data/lib/wx/doc/gen/pen.rb +50 -37
- data/lib/wx/doc/gen/pg/numeric_property_validator.rb +3 -3
- data/lib/wx/doc/gen/pg/pg_array_editor_dialog.rb +17 -17
- data/lib/wx/doc/gen/pg/pg_cell.rb +13 -16
- data/lib/wx/doc/gen/pg/pg_editor.rb +95 -93
- data/lib/wx/doc/gen/pg/pg_multi_button.rb +64 -89
- data/lib/wx/doc/gen/pg/pg_properties.rb +379 -349
- data/lib/wx/doc/gen/pg/pg_property.rb +260 -307
- data/lib/wx/doc/gen/pg/pg_validation_info.rb +3 -3
- data/lib/wx/doc/gen/pg/property_grid.rb +49 -49
- data/lib/wx/doc/gen/pg/property_grid_event.rb +24 -11
- data/lib/wx/doc/gen/pg/property_grid_interface.rb +75 -69
- data/lib/wx/doc/gen/pg/property_grid_manager.rb +51 -54
- data/lib/wx/doc/gen/pg/property_grid_page.rb +22 -30
- data/lib/wx/doc/gen/pg/property_grid_page_state.rb +17 -26
- data/lib/wx/doc/gen/picker_base.rb +17 -16
- data/lib/wx/doc/gen/platform_info.rb +180 -20
- data/lib/wx/doc/gen/popup_window.rb +8 -8
- data/lib/wx/doc/gen/progress_dialog.rb +3 -3
- data/lib/wx/doc/gen/property_sheet_dialog.rb +20 -18
- data/lib/wx/doc/gen/prt/page_setup_dialog.rb +2 -2
- data/lib/wx/doc/gen/prt/preview_frame.rb +18 -2
- data/lib/wx/doc/gen/prt/print_abort_dialog.rb +1 -1
- data/lib/wx/doc/gen/prt/print_data.rb +68 -62
- data/lib/wx/doc/gen/prt/print_dialog.rb +4 -4
- data/lib/wx/doc/gen/prt/printer.rb +44 -49
- data/lib/wx/doc/gen/query_layout_info_event.rb +6 -5
- data/lib/wx/doc/gen/radio_box.rb +21 -19
- data/lib/wx/doc/gen/radio_button.rb +13 -11
- data/lib/wx/doc/gen/rbn/ribbon_art_provider.rb +67 -67
- data/lib/wx/doc/gen/rbn/ribbon_bar.rb +38 -20
- data/lib/wx/doc/gen/rbn/ribbon_bar_event.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_button_bar.rb +22 -15
- data/lib/wx/doc/gen/rbn/ribbon_button_bar_event.rb +6 -6
- data/lib/wx/doc/gen/rbn/ribbon_control.rb +11 -11
- data/lib/wx/doc/gen/rbn/ribbon_gallery.rb +14 -16
- data/lib/wx/doc/gen/rbn/ribbon_gallery_event.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_page.rb +12 -12
- data/lib/wx/doc/gen/rbn/ribbon_panel.rb +24 -22
- data/lib/wx/doc/gen/rbn/ribbon_panel_event.rb +5 -5
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar.rb +17 -15
- data/lib/wx/doc/gen/rbn/ribbon_tool_bar_event.rb +6 -6
- data/lib/wx/doc/gen/rearrange_ctrl.rb +60 -0
- data/lib/wx/doc/gen/rearrange_list.rb +99 -0
- data/lib/wx/doc/gen/region.rb +35 -43
- data/lib/wx/doc/gen/region_iterator.rb +3 -3
- data/lib/wx/doc/gen/rtc/rich_text_box.rb +423 -0
- data/lib/wx/doc/gen/rtc/rich_text_buffer.rb +626 -1538
- data/lib/wx/doc/gen/rtc/rich_text_buffer_data_object.rb +37 -0
- data/lib/wx/doc/gen/rtc/rich_text_composite_object.rb +525 -0
- data/lib/wx/doc/gen/rtc/rich_text_ctrl.rb +488 -503
- data/lib/wx/doc/gen/rtc/rich_text_event.rb +31 -12
- data/lib/wx/doc/gen/rtc/rich_text_file_handler.rb +18 -18
- data/lib/wx/doc/gen/rtc/rich_text_formatting_dialog.rb +282 -0
- data/lib/wx/doc/gen/rtc/rich_text_header_footer_data.rb +23 -19
- data/lib/wx/doc/gen/rtc/rich_text_html_handler.rb +9 -18
- data/lib/wx/doc/gen/rtc/rich_text_image.rb +328 -0
- data/lib/wx/doc/gen/rtc/rich_text_object.rb +2849 -0
- data/lib/wx/doc/gen/rtc/rich_text_paragraph_layout_box.rb +1174 -0
- data/lib/wx/doc/gen/rtc/rich_text_printing.rb +29 -29
- data/lib/wx/doc/gen/rtc/rich_text_style_list_box.rb +305 -0
- data/lib/wx/doc/gen/rtc/rich_text_style_organiser_dialog.rb +183 -0
- data/lib/wx/doc/gen/rtc/rich_text_xml_handler.rb +3 -3
- data/lib/wx/doc/gen/rtc/symbol_picker_dialog.rb +34 -37
- data/lib/wx/doc/gen/sash_event.rb +8 -6
- data/lib/wx/doc/gen/sash_layout_window.rb +13 -11
- data/lib/wx/doc/gen/sash_window.rb +14 -9
- data/lib/wx/doc/gen/scroll_bar.rb +33 -12
- data/lib/wx/doc/gen/scrolled_canvas.rb +49 -37
- data/lib/wx/doc/gen/scrolled_control.rb +49 -37
- data/lib/wx/doc/gen/scrolled_window.rb +49 -37
- data/lib/wx/doc/gen/search_ctrl.rb +20 -13
- data/lib/wx/doc/gen/simplebook.rb +7 -7
- data/lib/wx/doc/gen/single_choice_dialog.rb +5 -4
- data/lib/wx/doc/gen/sizer.rb +69 -73
- data/lib/wx/doc/gen/sizer_item.rb +5 -5
- data/lib/wx/doc/gen/slider.rb +51 -18
- data/lib/wx/doc/gen/spin_button.rb +17 -11
- data/lib/wx/doc/gen/spin_ctrl.rb +15 -9
- data/lib/wx/doc/gen/spin_ctrl_double.rb +146 -0
- data/lib/wx/doc/gen/spin_double_event.rb +53 -0
- data/lib/wx/doc/gen/spin_event.rb +5 -2
- data/lib/wx/doc/gen/splash_screen.rb +16 -12
- data/lib/wx/doc/gen/splitter_event.rb +6 -2
- data/lib/wx/doc/gen/splitter_window.rb +36 -16
- data/lib/wx/doc/gen/static_bitmap.rb +9 -9
- data/lib/wx/doc/gen/static_box.rb +41 -37
- data/lib/wx/doc/gen/static_box_sizer.rb +13 -10
- data/lib/wx/doc/gen/static_line.rb +8 -7
- data/lib/wx/doc/gen/static_text.rb +15 -9
- data/lib/wx/doc/gen/status_bar.rb +53 -10
- data/lib/wx/doc/gen/stc/styled_text_ctrl.rb +200 -184
- data/lib/wx/doc/gen/stc/styled_text_event.rb +229 -54
- data/lib/wx/doc/gen/std_dialog_button_sizer.rb +11 -2
- data/lib/wx/doc/gen/svg_file_dc.rb +8 -8
- data/lib/wx/doc/gen/system_options.rb +13 -3
- data/lib/wx/doc/gen/system_settings.rb +9 -9
- data/lib/wx/doc/gen/task_bar_icon.rb +17 -9
- data/lib/wx/doc/gen/task_bar_icon_event.rb +3 -3
- data/lib/wx/doc/gen/text_attr.rb +67 -61
- data/lib/wx/doc/gen/text_ctrl.rb +58 -113
- data/lib/wx/doc/gen/text_entry.rb +44 -56
- data/lib/wx/doc/gen/text_entry_dialog.rb +23 -23
- data/lib/wx/doc/gen/text_validator.rb +3 -19
- data/lib/wx/doc/gen/time_picker_ctrl.rb +11 -10
- data/lib/wx/doc/gen/timer.rb +13 -9
- data/lib/wx/doc/gen/timer_event.rb +19 -26
- data/lib/wx/doc/gen/tip_provider.rb +3 -3
- data/lib/wx/doc/gen/toggle_button.rb +10 -9
- data/lib/wx/doc/gen/tool_bar.rb +71 -61
- data/lib/wx/doc/gen/tool_tip.rb +2 -10
- data/lib/wx/doc/gen/toolbook.rb +12 -9
- data/lib/wx/doc/gen/top_level_window.rb +53 -113
- data/lib/wx/doc/gen/tree_ctrl.rb +83 -33
- data/lib/wx/doc/gen/tree_event.rb +24 -3
- data/lib/wx/doc/gen/treebook.rb +20 -16
- data/lib/wx/doc/gen/ui_action_simulator.rb +20 -19
- data/lib/wx/doc/gen/utils.rb +20 -14
- data/lib/wx/doc/gen/v_list_box.rb +11 -11
- data/lib/wx/doc/gen/v_scrolled_window.rb +9 -9
- data/lib/wx/doc/gen/validator.rb +10 -8
- data/lib/wx/doc/gen/variant.rb +56 -119
- data/lib/wx/doc/gen/window.rb +314 -224
- data/lib/wx/doc/gen/window_dc.rb +1 -1
- data/lib/wx/doc/gen/with_images.rb +2 -2
- data/lib/wx/doc/gen/wizard.rb +21 -8
- data/lib/wx/doc/gen/wizard_event.rb +11 -4
- data/lib/wx/doc/gen/wizard_page.rb +3 -3
- data/lib/wx/doc/gen/wizard_page_simple.rb +8 -8
- data/lib/wx/doc/gen/wrap_sizer.rb +65 -0
- data/lib/wx/doc/gen/xml_node.rb +13 -13
- data/lib/wx/doc/gen/xml_resource.rb +24 -21
- data/lib/wx/doc/graphics_context.rb +59 -39
- data/lib/wx/doc/grid/grid.rb +16 -1
- data/lib/wx/doc/hboxsizer.rb +33 -0
- data/lib/wx/doc/help_controller.rb +6 -0
- data/lib/wx/doc/html/html_help_controller.rb +6 -0
- data/lib/wx/doc/icon.rb +13 -5
- data/lib/wx/doc/id_helper.rb +6 -0
- data/lib/wx/doc/image.rb +50 -12
- data/lib/wx/doc/list_ctrl.rb +38 -0
- data/lib/wx/doc/log.rb +45 -0
- data/lib/wx/doc/memory_dc.rb +6 -0
- data/lib/wx/doc/mirror_dc.rb +6 -0
- data/lib/wx/doc/pen.rb +6 -0
- data/lib/wx/doc/pg/events.rb +6 -0
- data/lib/wx/doc/pg/pg_property.rb +17 -0
- data/lib/wx/doc/pg/pgeditor.rb +6 -0
- data/lib/wx/doc/pg/property_grid.rb +6 -0
- data/lib/wx/doc/pg/property_grid_interface.rb +6 -0
- data/lib/wx/doc/progress_dialog.rb +6 -0
- data/lib/wx/doc/prt/page_setup_dialog.rb +6 -0
- data/lib/wx/doc/prt/print_data.rb +6 -0
- data/lib/wx/doc/prt/print_dialog.rb +6 -0
- data/lib/wx/doc/prt/printer.rb +6 -0
- data/lib/wx/doc/prt/printer_dc.rb +8 -2
- data/lib/wx/doc/radio_box.rb +6 -0
- data/lib/wx/doc/rbn/ribbon_bar.rb +6 -0
- data/lib/wx/doc/rbn/ribbon_button_bar.rb +6 -0
- data/lib/wx/doc/rbn/ribbon_gallery.rb +6 -0
- data/lib/wx/doc/rbn/ribbon_tool_bar.rb +6 -0
- data/lib/wx/doc/region_iterator.rb +6 -0
- data/lib/wx/doc/rtc/richtext_buffer.rb +28 -0
- data/lib/wx/doc/rtc/richtext_formatting_dialog.rb +68 -0
- data/lib/wx/doc/rtc/richtext_printing.rb +6 -0
- data/lib/wx/doc/rtc/richtext_style_sheet.rb +20 -0
- data/lib/wx/doc/scaled_dc.rb +7 -1
- data/lib/wx/doc/screen_dc.rb +6 -0
- data/lib/wx/doc/stock_objects.rb +6 -0
- data/lib/wx/doc/stream.rb +6 -0
- data/lib/wx/doc/svg_file_dc.rb +6 -0
- data/lib/wx/doc/system_settings.rb +6 -0
- data/lib/wx/doc/text_validator.rb +18 -0
- data/lib/wx/doc/textctrl.rb +89 -0
- data/lib/wx/doc/tree_event.rb +20 -0
- data/lib/wx/doc/treebook.rb +6 -0
- data/lib/wx/doc/v_list_box.rb +6 -0
- data/lib/wx/doc/variant.rb +6 -0
- data/lib/wx/doc/vboxsizer.rb +33 -0
- data/lib/wx/doc/window.rb +6 -0
- data/lib/wx/doc/window_disabler.rb +6 -0
- data/lib/wx/doc/xml_resource.rb +8 -0
- data/lib/wx/global_const.rb +4 -1
- data/lib/wx/grid/grid.rb +23 -3
- data/lib/wx/grid/keyword_defs.rb +8 -1
- data/lib/wx/grid/require.rb +4 -1
- data/lib/wx/grid.rb +4 -1
- data/lib/wx/helpers.rb +8 -1
- data/lib/wx/html/htmlhelpcontroller.rb +29 -3
- data/lib/wx/html/htmlwindow.rb +23 -12
- data/lib/wx/html/keyword_defs.rb +8 -1
- data/lib/wx/html/require.rb +4 -1
- data/lib/wx/html/simple_html_listbox.rb +3 -0
- data/lib/wx/html.rb +4 -1
- data/lib/wx/keyword_ctors.rb +22 -3
- data/lib/wx/keyword_defs.rb +55 -3
- data/lib/wx/pg/events.rb +4 -1
- data/lib/wx/pg/keyword_defs.rb +8 -1
- data/lib/wx/pg/pg_editor.rb +3 -0
- data/lib/wx/pg/pg_properties.rb +4 -1
- data/lib/wx/pg/pg_property.rb +18 -5
- data/lib/wx/pg/property_grid.rb +4 -1
- data/lib/wx/pg/property_grid_interface.rb +3 -0
- data/lib/wx/pg/require.rb +4 -1
- data/lib/wx/pg.rb +4 -1
- data/lib/wx/prt/keyword_defs.rb +8 -1
- data/lib/wx/prt/page_setup_dialog.rb +3 -0
- data/lib/wx/prt/previewframe.rb +5 -0
- data/lib/wx/prt/require.rb +4 -1
- data/lib/wx/prt.rb +4 -1
- data/lib/wx/rbn/events.rb +4 -1
- data/lib/wx/rbn/keyword_defs.rb +8 -1
- data/lib/wx/rbn/require.rb +5 -1
- data/lib/wx/rbn/ribbon_art_provider.rb +3 -1
- data/lib/wx/rbn/ribbon_bar.rb +3 -0
- data/lib/wx/rbn/ribbon_button_bar.rb +3 -0
- data/lib/wx/rbn/ribbon_control.rb +3 -0
- data/lib/wx/rbn/ribbon_gallery.rb +10 -0
- data/lib/wx/rbn/ribbon_page.rb +3 -0
- data/lib/wx/rbn/ribbon_panel.rb +3 -0
- data/lib/wx/rbn/ribbon_tool_bar.rb +3 -0
- data/lib/wx/rbn.rb +4 -1
- data/lib/wx/rtc/ext.rb +4 -1
- data/lib/wx/rtc/keyword_defs.rb +18 -7
- data/lib/wx/rtc/require.rb +8 -1
- data/lib/wx/rtc/richtext_buffer.rb +36 -0
- data/lib/wx/rtc/richtext_formatting_dialog.rb +88 -0
- data/lib/wx/rtc/richtext_style_organiser_dialog.rb +46 -0
- data/lib/wx/rtc/symbol_picker_dialog.rb +47 -0
- data/lib/wx/rtc.rb +5 -1
- data/lib/wx/stc/keyword_defs.rb +8 -1
- data/lib/wx/stc/require.rb +4 -1
- data/lib/wx/stc.rb +4 -1
- data/lib/wx/version.rb +5 -1
- data/lib/wx/wxruby/base.rb +4 -1
- data/lib/wx/wxruby/cmd/sampler.rb +4 -1
- data/lib/wx/wxruby/cmd/test.rb +4 -1
- data/lib/wx.rb +4 -1
- data/lib/wxruby_aui.so +0 -0
- data/lib/wxruby_core.so +0 -0
- data/lib/wxruby_grid.so +0 -0
- data/lib/wxruby_html.so +0 -0
- data/lib/wxruby_pg.so +0 -0
- data/lib/wxruby_prt.so +0 -0
- data/lib/wxruby_rbn.so +0 -0
- data/lib/wxruby_rtc.so +0 -0
- data/lib/wxruby_stc.so +0 -0
- data/rakelib/install.rb +4 -1
- data/rakelib/lib/config/cygwin.rb +4 -1
- data/rakelib/lib/config/linux.rb +4 -1
- data/rakelib/lib/config/macosx.rb +5 -2
- data/rakelib/lib/config/mingw.rb +4 -1
- data/rakelib/lib/config/netbsd.rb +4 -1
- data/rakelib/lib/config/unixish.rb +10 -7
- data/rakelib/lib/config.rb +7 -2
- data/rakelib/lib/ext/enum_chain.rb +4 -1
- data/rakelib/prepost.rake +4 -1
- data/rakelib/prepost.rb +4 -1
- data/samples/aui/aui.rb +8 -3
- data/samples/bigdemo/bigdemo.rb +9 -2
- data/samples/bigdemo/run.rb +9 -2
- data/samples/bigdemo/utils.rb +9 -1
- data/samples/calendar/calendar.rb +9 -4
- data/samples/caret/caret.rb +8 -3
- data/samples/controls/books.rb +8 -2
- data/samples/controls/controls.rb +33 -77
- data/samples/controls/get_item_sample.rb +8 -2
- data/samples/controls/htlbox.rb +10 -3
- data/samples/dialogs/dialogs.rb +9 -4
- data/samples/dialogs/wizard.rb +8 -3
- data/samples/dragdrop/dragdrop.rb +8 -3
- data/samples/drawing/bitmap.rb +8 -3
- data/samples/drawing/bitmap_image.rb +8 -3
- data/samples/drawing/graphics_drawing.rb +44 -33
- data/samples/drawing/image_prt.rb +8 -2
- data/samples/drawing/maths_images.rb +8 -3
- data/samples/drawing/rmagic_bitmap_image.rb +8 -3
- data/samples/etc/choice.rb +8 -3
- data/samples/etc/miniframe.rb +8 -3
- data/samples/etc/sash.rb +8 -3
- data/samples/etc/scrollwin.rb +8 -3
- data/samples/etc/system_settings.rb +8 -3
- data/samples/event/activation.rb +8 -3
- data/samples/event/event.rb +8 -3
- data/samples/event/threaded.rb +8 -3
- data/samples/event/update_ui_event.rb +8 -3
- data/samples/grid/grid.rb +9 -3
- data/samples/grid/gridtablebase.rb +8 -3
- data/samples/html/html.rb +8 -3
- data/samples/mdi/mdi.rb +8 -3
- data/samples/minimal/minimal.rb +8 -3
- data/samples/minimal/nothing.rb +8 -3
- data/samples/printing/printing.rb +8 -3
- data/samples/printing/printing2.rb +8 -2
- data/samples/propgrid/propgrid.rb +4 -1
- data/samples/propgrid/propgrid_minimal.rb +4 -2
- data/samples/propgrid/sample_props.rb +4 -1
- data/samples/ribbon/ribbon.rb +4 -1
- data/samples/sampler/editor.rb +4 -1
- data/samples/sampler/ext.rb +4 -1
- data/samples/sampler/sample.rb +13 -4
- data/samples/sampler/stc_editor.rb +4 -1
- data/samples/sampler/txt_editor.rb +4 -1
- data/samples/sampler.rb +11 -3
- data/samples/splash/splash.rb +4 -2
- data/samples/text/art/richtext/alignleft.xpm +24 -0
- data/samples/text/art/richtext/alignright.xpm +24 -0
- data/samples/text/art/richtext/bold.xpm +24 -0
- data/samples/text/art/richtext/centre.xpm +24 -0
- data/samples/text/art/richtext/copy.xpm +45 -0
- data/samples/text/art/richtext/cut.xpm +47 -0
- data/samples/text/art/richtext/font.xpm +25 -0
- data/samples/text/art/richtext/idea.xpm +47 -0
- data/samples/text/art/richtext/indentless.xpm +25 -0
- data/samples/text/art/richtext/indentmore.xpm +25 -0
- data/samples/text/art/richtext/italic.xpm +25 -0
- data/samples/text/art/richtext/open.xpm +58 -0
- data/samples/text/art/richtext/paste.xpm +47 -0
- data/samples/text/art/richtext/redo.xpm +59 -0
- data/samples/text/art/richtext/save.xpm +43 -0
- data/samples/text/art/richtext/smiley.xpm +42 -0
- data/samples/text/art/richtext/underline.xpm +25 -0
- data/samples/text/art/richtext/undo.xpm +59 -0
- data/samples/text/art/richtext/zebra.xpm +409 -0
- data/samples/text/rich_textctrl.rb +8 -3
- data/samples/text/richtext.rb +1824 -0
- data/samples/text/scintilla.rb +8 -3
- data/samples/text/textctrl.rb +21 -4
- data/samples/text/tn_richtext.png +0 -0
- data/samples/text/unicode.rb +9 -4
- data/samples/treectrl/treectrl.rb +10 -5
- data/samples/xrc/custom_xrc_sample.rb +8 -3
- data/samples/xrc/xrc_sample.rb +8 -3
- data/tests/art/test_art/bitmap/wxruby-128x128.png +0 -0
- data/tests/art/test_art/bitmap/wxruby-256x256.png +0 -0
- data/tests/art/test_art/bitmap/wxruby-64x64.png +0 -0
- data/tests/lib/item_container_tests.rb +3 -0
- data/tests/lib/text_entry_tests.rb +3 -0
- data/tests/lib/wxapp_runner.rb +3 -0
- data/tests/lib/wxframe_runner.rb +81 -3
- data/tests/test_app_event_filter.rb +3 -0
- data/tests/test_app_traits.rb +33 -0
- data/tests/test_art.rb +31 -0
- data/tests/test_art_provider.rb +3 -0
- data/tests/test_aui.rb +65 -0
- data/tests/test_basic.rb +5 -1
- data/tests/test_box_sizer.rb +164 -0
- data/tests/test_clipboard.rb +3 -0
- data/tests/test_config.rb +150 -0
- data/tests/test_dc.rb +3 -0
- data/tests/test_dialog.rb +3 -0
- data/tests/test_event_handling.rb +3 -0
- data/tests/test_events.rb +3 -0
- data/tests/test_ext_controls.rb +286 -3
- data/tests/test_file_dialog.rb +55 -0
- data/tests/test_font.rb +8 -5
- data/tests/test_gdi_object.rb +3 -0
- data/tests/test_geometry.rb +4 -0
- data/tests/test_grid_sizer.rb +151 -0
- data/tests/test_intl.rb +3 -0
- data/tests/test_item_data.rb +3 -0
- data/tests/test_list_ctrl.rb +56 -0
- data/tests/test_log.rb +226 -0
- data/tests/test_proof_check.rb +52 -0
- data/tests/test_richtext.rb +204 -0
- data/tests/test_std_controls.rb +99 -31
- data/tests/test_timer.rb +98 -0
- data/tests/test_variant.rb +3 -0
- data/tests/test_window.rb +10 -8
- data/tests/testapp.rb +4 -0
- data/tests/testapp_noframe.rb +4 -0
- metadata +87 -3
- data/lib/wx/doc/gen/html/html_help_frame.rb +0 -112
@@ -8,14 +8,16 @@ module Wx::PG
|
|
8
8
|
|
9
9
|
# Basic property with boolean value.
|
10
10
|
# <b>Supported special attributes:</b>
|
11
|
-
#
|
11
|
+
#
|
12
|
+
# - {Wx::PG::PG_BOOL_USE_CHECKBOX}: Set to true to use check box editor instead of combo box.
|
13
|
+
# - {Wx::PG::PG_BOOL_USE_DOUBLE_CLICK_CYCLING}: Set to true to cycle combo box instead showing the list.
|
12
14
|
#
|
13
15
|
class BoolProperty < PGProperty
|
14
16
|
|
15
17
|
# @param label [String]
|
16
18
|
# @param name [String]
|
17
|
-
# @param value [
|
18
|
-
# @return [BoolProperty]
|
19
|
+
# @param value [Boolean]
|
20
|
+
# @return [Wx::PG::BoolProperty]
|
19
21
|
def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=false) end
|
20
22
|
|
21
23
|
# Converts property value into a text representation.
|
@@ -34,17 +36,20 @@ module Wx::PG
|
|
34
36
|
# @param variant [Wx::Variant] On function entry this is the old value (should not be {Wx::NullVariant} in normal cases). Translated value must be assigned back to it.
|
35
37
|
# @param text [String] Text to be translated into variant.
|
36
38
|
# @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one (they may be different). If {Wx::PG::PG_MISC_ARG_FLAGS::PG_COMPOSITE_FRAGMENT} is set, text is interpreted as a part of composite property string value (as generated by {Wx::PG::BoolProperty#value_to_string} called with this same flag).
|
37
|
-
# @return [
|
39
|
+
# @return [Boolean]
|
38
40
|
def string_to_value(variant, text, argFlags=0) end
|
39
41
|
|
40
42
|
# Converts integer (possibly a choice selection) into {Wx::Variant} value appropriate for this property.
|
41
43
|
# Returns true if resulting {Wx::Variant} value was different.
|
42
44
|
#
|
43
|
-
# - If property is not supposed to use choice or spinctrl or other editor with int-based value, it is not necessary to implement this method
|
45
|
+
# - If property is not supposed to use choice or spinctrl or other editor with int-based value, it is not necessary to implement this method.
|
46
|
+
# - Default implementation simply assign given int to m_value.
|
47
|
+
# - If property uses choice control, and displays a dialog on some choice items, then it is preferred to display that dialog in IntToValue instead of OnEvent.
|
48
|
+
# - You might want to take into account that m_value is Mull variant if property value is unspecified (which is usually only case if you explicitly enabled that sort behaviour).
|
44
49
|
# @param variant [Wx::Variant] On function entry this is the old value (should not be {Wx::NullVariant} in normal cases). Translated value must be assigned back to it.
|
45
50
|
# @param number [Integer] Integer to be translated into variant.
|
46
51
|
# @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one.
|
47
|
-
# @return [
|
52
|
+
# @return [Boolean]
|
48
53
|
def int_to_value(variant, number, argFlags=0) end
|
49
54
|
|
50
55
|
# Reimplement this member function to add special handling for attributes of this property.
|
@@ -53,7 +58,7 @@ module Wx::PG
|
|
53
58
|
# To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
|
54
59
|
# @param name [String]
|
55
60
|
# @param value [Wx::Variant]
|
56
|
-
# @return [
|
61
|
+
# @return [Boolean]
|
57
62
|
def do_set_attribute(name, value) end
|
58
63
|
|
59
64
|
#
|
@@ -68,18 +73,22 @@ module Wx::PG
|
|
68
73
|
|
69
74
|
# Property representing {Wx::DateTime}.
|
70
75
|
# <b>Supported special attributes:</b>
|
71
|
-
#
|
76
|
+
#
|
77
|
+
# - {Wx::PG::PG_DATE_FORMAT}: Determines displayed date format.
|
78
|
+
# - {Wx::PG::PG_DATE_PICKER_STYLE}: Determines window style used with {Wx::DatePickerCtrl}. Default is {Wx::DP_DEFAULT} | {Wx::DP_SHOWCENTURY}. Using {Wx::DP_ALLOWNONE} enables additional support for unspecified property value.
|
72
79
|
#
|
73
80
|
class DateProperty < PGProperty
|
74
81
|
|
75
82
|
# @param label [String]
|
76
83
|
# @param name [String]
|
77
84
|
# @param value [Time,Date,DateTime]
|
78
|
-
# @return [DateProperty]
|
85
|
+
# @return [Wx::PG::DateProperty]
|
79
86
|
def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=(Wx::DateTime.new())) end
|
80
87
|
|
81
88
|
# This virtual function is called after m_value has been set.
|
82
|
-
# - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::DateProperty#on_set_value} will not be called
|
89
|
+
# - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::DateProperty#on_set_value} will not be called.
|
90
|
+
# - m_value may be of any variant type. Typically properties internally support only one variant type, and as such {Wx::PG::DateProperty#on_set_value} provides a good opportunity to convert supported values into internal type.
|
91
|
+
# - Default implementation does nothing.
|
83
92
|
# @return [void]
|
84
93
|
def on_set_value; end
|
85
94
|
|
@@ -99,7 +108,7 @@ module Wx::PG
|
|
99
108
|
# @param variant [Wx::Variant] On function entry this is the old value (should not be {Wx::NullVariant} in normal cases). Translated value must be assigned back to it.
|
100
109
|
# @param text [String] Text to be translated into variant.
|
101
110
|
# @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one (they may be different). If {Wx::PG::PG_MISC_ARG_FLAGS::PG_COMPOSITE_FRAGMENT} is set, text is interpreted as a part of composite property string value (as generated by {Wx::PG::DateProperty#value_to_string} called with this same flag).
|
102
|
-
# @return [
|
111
|
+
# @return [Boolean]
|
103
112
|
def string_to_value(variant, text, argFlags=0) end
|
104
113
|
|
105
114
|
# Reimplement this member function to add special handling for attributes of this property.
|
@@ -108,7 +117,7 @@ module Wx::PG
|
|
108
117
|
# To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
|
109
118
|
# @param name [String]
|
110
119
|
# @param value [Wx::Variant]
|
111
|
-
# @return [
|
120
|
+
# @return [Boolean]
|
112
121
|
def do_set_attribute(name, value) end
|
113
122
|
|
114
123
|
# @param format [String]
|
@@ -175,20 +184,22 @@ module Wx::PG
|
|
175
184
|
# @overload initialize(label, name, choices, value=0)
|
176
185
|
# @param label [String]
|
177
186
|
# @param name [String]
|
178
|
-
# @param choices [Wx::PGChoices]
|
187
|
+
# @param choices [Wx::PG::PGChoices]
|
179
188
|
# @param value [Integer]
|
180
|
-
# @return [FlagsProperty]
|
189
|
+
# @return [Wx::PG::FlagsProperty]
|
181
190
|
# @overload initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, labels=(Wx::ArrayString.new()), values=(Wx::ArrayInt.new()), value=0)
|
182
191
|
# @param label [String]
|
183
192
|
# @param name [String]
|
184
193
|
# @param labels [Array<String>]
|
185
194
|
# @param values [Array<Integer>]
|
186
195
|
# @param value [Integer]
|
187
|
-
# @return [FlagsProperty]
|
196
|
+
# @return [Wx::PG::FlagsProperty]
|
188
197
|
def initialize(*args) end
|
189
198
|
|
190
199
|
# This virtual function is called after m_value has been set.
|
191
|
-
# - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::FlagsProperty#on_set_value} will not be called
|
200
|
+
# - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::FlagsProperty#on_set_value} will not be called.
|
201
|
+
# - m_value may be of any variant type. Typically properties internally support only one variant type, and as such {Wx::PG::FlagsProperty#on_set_value} provides a good opportunity to convert supported values into internal type.
|
202
|
+
# - Default implementation does nothing.
|
192
203
|
# @return [void]
|
193
204
|
def on_set_value; end
|
194
205
|
|
@@ -208,7 +219,7 @@ module Wx::PG
|
|
208
219
|
# @param variant [Wx::Variant] On function entry this is the old value (should not be {Wx::NullVariant} in normal cases). Translated value must be assigned back to it.
|
209
220
|
# @param text [String] Text to be translated into variant.
|
210
221
|
# @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one (they may be different). If {Wx::PG::PG_MISC_ARG_FLAGS::PG_COMPOSITE_FRAGMENT} is set, text is interpreted as a part of composite property string value (as generated by {Wx::PG::FlagsProperty#value_to_string} called with this same flag).
|
211
|
-
# @return [
|
222
|
+
# @return [Boolean]
|
212
223
|
def string_to_value(variant, text, argFlags) end
|
213
224
|
|
214
225
|
# Called after value of a child property has been altered.
|
@@ -216,31 +227,24 @@ module Wx::PG
|
|
216
227
|
# Note that this function is usually called at the time that value of this property, or given child property, is still pending for change, and as such, result of {Wx::PG::FlagsProperty#get_value} or m_value should not be relied on.
|
217
228
|
# Sample pseudo-code implementation:
|
218
229
|
#
|
219
|
-
# ```
|
220
|
-
#
|
221
|
-
#
|
222
|
-
#
|
223
|
-
#
|
224
|
-
#
|
225
|
-
#
|
226
|
-
#
|
227
|
-
#
|
228
|
-
#
|
229
|
-
#
|
230
|
-
#
|
231
|
-
#
|
232
|
-
#
|
233
|
-
#
|
234
|
-
#
|
235
|
-
#
|
236
|
-
#
|
237
|
-
# break;
|
238
|
-
# ...
|
239
|
-
# }
|
240
|
-
#
|
241
|
-
# // Return altered data
|
242
|
-
# return data;
|
243
|
-
# }
|
230
|
+
# ```ruby
|
231
|
+
# class MyProperty < Wx::PG::FlagsProperty
|
232
|
+
#
|
233
|
+
# def child_changed(thisValue, childIndex, childValue)
|
234
|
+
# # Acquire reference to actual type of data stored in variant
|
235
|
+
# flags = thisValue.object;
|
236
|
+
# case childIndex
|
237
|
+
# when 0
|
238
|
+
# flags.sub_prop1 = childValue.to_i
|
239
|
+
# when 1
|
240
|
+
# flags.sub_prop2 = childValue.to_s
|
241
|
+
# # ...
|
242
|
+
# end
|
243
|
+
# # return altered data
|
244
|
+
# Wx::Variant.new(flags)
|
245
|
+
# end
|
246
|
+
#
|
247
|
+
# end
|
244
248
|
# ```
|
245
249
|
#
|
246
250
|
# Modified value of the whole property.
|
@@ -261,7 +265,7 @@ module Wx::PG
|
|
261
265
|
# To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
|
262
266
|
# @param name [String]
|
263
267
|
# @param value [Wx::Variant]
|
264
|
-
# @return [
|
268
|
+
# @return [Boolean]
|
265
269
|
def do_set_attribute(name, value) end
|
266
270
|
|
267
271
|
# Returns which choice is currently selected.
|
@@ -292,6 +296,7 @@ module Wx::PG
|
|
292
296
|
|
293
297
|
# Basic property with string value.
|
294
298
|
# <b>Supported special attributes:</b>
|
299
|
+
#
|
295
300
|
# - {Wx::PG::PG_STRING_PASSWORD}: set to true in order to enable {Wx::TE_PASSWORD} on the editor.
|
296
301
|
#
|
297
302
|
# - If value "<composed>" is set, then actual value is formed (or composed) from values of child properties.
|
@@ -301,7 +306,7 @@ module Wx::PG
|
|
301
306
|
# @param label [String]
|
302
307
|
# @param name [String]
|
303
308
|
# @param value [String]
|
304
|
-
# @return [StringProperty]
|
309
|
+
# @return [Wx::PG::StringProperty]
|
305
310
|
def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=('')) end
|
306
311
|
|
307
312
|
# Converts property value into a text representation.
|
@@ -320,7 +325,7 @@ module Wx::PG
|
|
320
325
|
# @param variant [Wx::Variant] On function entry this is the old value (should not be {Wx::NullVariant} in normal cases). Translated value must be assigned back to it.
|
321
326
|
# @param text [String] Text to be translated into variant.
|
322
327
|
# @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one (they may be different). If {Wx::PG::PG_MISC_ARG_FLAGS::PG_COMPOSITE_FRAGMENT} is set, text is interpreted as a part of composite property string value (as generated by {Wx::PG::StringProperty#value_to_string} called with this same flag).
|
323
|
-
# @return [
|
328
|
+
# @return [Boolean]
|
324
329
|
def string_to_value(variant, text, argFlags=0) end
|
325
330
|
|
326
331
|
# Reimplement this member function to add special handling for attributes of this property.
|
@@ -329,7 +334,7 @@ module Wx::PG
|
|
329
334
|
# To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
|
330
335
|
# @param name [String]
|
331
336
|
# @param value [Wx::Variant]
|
332
|
-
# @return [
|
337
|
+
# @return [Boolean]
|
333
338
|
def do_set_attribute(name, value) end
|
334
339
|
|
335
340
|
# This is updated so "<composed>" special value can be handled.
|
@@ -353,11 +358,11 @@ module Wx::PG
|
|
353
358
|
|
354
359
|
# @overload initialize()
|
355
360
|
# Default constructor is only used in special cases.
|
356
|
-
# @return [PropertyCategory]
|
361
|
+
# @return [Wx::PG::PropertyCategory]
|
357
362
|
# @overload initialize(label, name=Wx::PG::PG_LABEL)
|
358
363
|
# @param label [String]
|
359
364
|
# @param name [String]
|
360
|
-
# @return [PropertyCategory]
|
365
|
+
# @return [Wx::PG::PropertyCategory]
|
361
366
|
def initialize(*args) end
|
362
367
|
|
363
368
|
# @param wnd [Wx::Window]
|
@@ -393,13 +398,14 @@ module Wx::PG
|
|
393
398
|
# This is an abstract class which serves as a base class for the properties having a button triggering an editor dialog, like e.g.
|
394
399
|
# {Wx::PG::LongStringProperty}, {Wx::PG::DirProperty}, {Wx::PG::FileProperty}.
|
395
400
|
# <b>Supported special attributes:</b>
|
401
|
+
#
|
396
402
|
# - {Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the editor dialog.
|
397
403
|
#
|
398
404
|
class EditorDialogProperty < PGProperty
|
399
405
|
|
400
406
|
# Returns instance of a new {Wx::PG::PGEditorDialogAdapter} instance, which is used when user presses the (optional) button next to the editor control;.
|
401
407
|
# Default implementation returns NULL (i.e. no action is generated when button is pressed).
|
402
|
-
# @return [Wx::PGEditorDialogAdapter]
|
408
|
+
# @return [Wx::PG::PGEditorDialogAdapter]
|
403
409
|
def get_editor_dialog; end
|
404
410
|
alias_method :editor_dialog, :get_editor_dialog
|
405
411
|
|
@@ -409,7 +415,7 @@ module Wx::PG
|
|
409
415
|
# To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
|
410
416
|
# @param name [String]
|
411
417
|
# @param value [Wx::Variant]
|
412
|
-
# @return [
|
418
|
+
# @return [Boolean]
|
413
419
|
def do_set_attribute(name, value) end
|
414
420
|
|
415
421
|
#
|
@@ -450,23 +456,25 @@ module Wx::PG
|
|
450
456
|
# Constructor is protected because {Wx::PG::EditorDialogProperty} is only the base class for other property classes.
|
451
457
|
# @param label [String]
|
452
458
|
# @param name [String]
|
453
|
-
# @return [EditorDialogProperty]
|
459
|
+
# @return [Wx::PG::EditorDialogProperty]
|
454
460
|
def initialize(label, name) end
|
455
461
|
|
456
462
|
# Shows editor dialog.
|
457
463
|
# Value to be edited should be read from value, and if dialog is not cancelled, it should be stored back and true should be returned.
|
458
464
|
#
|
459
465
|
# Returns true if editor dialog was not cancelled and value was updated.
|
460
|
-
# @param pg [Wx::PropertyGrid] Property grid in which property is displayed.
|
466
|
+
# @param pg [Wx::PG::PropertyGrid] Property grid in which property is displayed.
|
461
467
|
# @param value [Wx::Variant] Value to be edited.
|
462
|
-
# @return [
|
468
|
+
# @return [Boolean]
|
463
469
|
def display_editor_dialog(pg, value) end
|
464
470
|
|
465
471
|
end # EditorDialogProperty
|
466
472
|
|
467
473
|
# Property that manages a list of strings.
|
468
474
|
# <b>Supported special attributes:</b>
|
469
|
-
#
|
475
|
+
#
|
476
|
+
# - {Wx::PG::PG_ARRAY_DELIMITER}: Sets string delimiter character.
|
477
|
+
# - {Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the editor dialog (since 3.1.3).
|
470
478
|
#
|
471
479
|
class ArrayStringProperty < EditorDialogProperty
|
472
480
|
|
@@ -489,11 +497,13 @@ module Wx::PG
|
|
489
497
|
# @param label [String]
|
490
498
|
# @param name [String]
|
491
499
|
# @param value [Array<String>]
|
492
|
-
# @return [ArrayStringProperty]
|
500
|
+
# @return [Wx::PG::ArrayStringProperty]
|
493
501
|
def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=(Wx::ArrayString.new())) end
|
494
502
|
|
495
503
|
# This virtual function is called after m_value has been set.
|
496
|
-
# - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::ArrayStringProperty#on_set_value} will not be called
|
504
|
+
# - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::ArrayStringProperty#on_set_value} will not be called.
|
505
|
+
# - m_value may be of any variant type. Typically properties internally support only one variant type, and as such {Wx::PG::ArrayStringProperty#on_set_value} provides a good opportunity to convert supported values into internal type.
|
506
|
+
# - Default implementation does nothing.
|
497
507
|
# @return [void]
|
498
508
|
def on_set_value; end
|
499
509
|
|
@@ -513,7 +523,7 @@ module Wx::PG
|
|
513
523
|
# @param variant [Wx::Variant] On function entry this is the old value (should not be {Wx::NullVariant} in normal cases). Translated value must be assigned back to it.
|
514
524
|
# @param text [String] Text to be translated into variant.
|
515
525
|
# @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one (they may be different). If {Wx::PG::PG_MISC_ARG_FLAGS::PG_COMPOSITE_FRAGMENT} is set, text is interpreted as a part of composite property string value (as generated by {Wx::PG::ArrayStringProperty#value_to_string} called with this same flag).
|
516
|
-
# @return [
|
526
|
+
# @return [Boolean]
|
517
527
|
def string_to_value(variant, text, argFlags=0) end
|
518
528
|
|
519
529
|
# Reimplement this member function to add special handling for attributes of this property.
|
@@ -522,7 +532,7 @@ module Wx::PG
|
|
522
532
|
# To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
|
523
533
|
# @param name [String]
|
524
534
|
# @param value [Wx::Variant]
|
525
|
-
# @return [
|
535
|
+
# @return [Boolean]
|
526
536
|
def do_set_attribute(name, value) end
|
527
537
|
|
528
538
|
# Implement in derived class for custom array-to-string conversion.
|
@@ -538,7 +548,7 @@ module Wx::PG
|
|
538
548
|
def on_custom_string_edit(parent) end
|
539
549
|
|
540
550
|
# Creates {Wx::PG::PGArrayEditorDialog} for string editing.
|
541
|
-
# @return [Wx::PGArrayEditorDialog]
|
551
|
+
# @return [Wx::PG::PGArrayEditorDialog]
|
542
552
|
def create_editor_dialog; end
|
543
553
|
|
544
554
|
# Generates string based on the contents of {Wx::ArrayString} src.
|
@@ -599,15 +609,16 @@ module Wx::PG
|
|
599
609
|
# Value to be edited should be read from value, and if dialog is not cancelled, it should be stored back and true should be returned.
|
600
610
|
#
|
601
611
|
# Returns true if editor dialog was not cancelled and value was updated.
|
602
|
-
# @param pg [Wx::PropertyGrid] Property grid in which property is displayed.
|
612
|
+
# @param pg [Wx::PG::PropertyGrid] Property grid in which property is displayed.
|
603
613
|
# @param value [Wx::Variant] Value to be edited.
|
604
|
-
# @return [
|
614
|
+
# @return [Boolean]
|
605
615
|
def display_editor_dialog(pg, value) end
|
606
616
|
|
607
617
|
end # ArrayStringProperty
|
608
618
|
|
609
619
|
# Like {Wx::PG::LongStringProperty}, but the button triggers directory selector instead.
|
610
620
|
# <b>Supported special attributes:</b>
|
621
|
+
#
|
611
622
|
# - {Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the file dialog (since 3.1.3).
|
612
623
|
#
|
613
624
|
class DirProperty < EditorDialogProperty
|
@@ -615,7 +626,7 @@ module Wx::PG
|
|
615
626
|
# @param label [String]
|
616
627
|
# @param name [String]
|
617
628
|
# @param value [String]
|
618
|
-
# @return [DirProperty]
|
629
|
+
# @return [Wx::PG::DirProperty]
|
619
630
|
def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=('')) end
|
620
631
|
|
621
632
|
# Converts property value into a text representation.
|
@@ -634,24 +645,31 @@ module Wx::PG
|
|
634
645
|
# @param variant [Wx::Variant] On function entry this is the old value (should not be {Wx::NullVariant} in normal cases). Translated value must be assigned back to it.
|
635
646
|
# @param text [String] Text to be translated into variant.
|
636
647
|
# @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one (they may be different). If {Wx::PG::PG_MISC_ARG_FLAGS::PG_COMPOSITE_FRAGMENT} is set, text is interpreted as a part of composite property string value (as generated by {Wx::PG::DirProperty#value_to_string} called with this same flag).
|
637
|
-
# @return [
|
648
|
+
# @return [Boolean]
|
638
649
|
def string_to_value(variant, text, argFlags=0) end
|
639
650
|
|
640
651
|
# Returns pointer to the {Wx::Validator} that should be used with the editor of this property (NULL for no validator).
|
641
|
-
# Setting validator explicitly via
|
642
|
-
# In most situations, code like this should work well
|
652
|
+
# Setting validator explicitly via #set_property_validator will override this.
|
653
|
+
# In most situations, code like this should work well:
|
643
654
|
#
|
644
|
-
# ```
|
645
|
-
#
|
646
|
-
#
|
647
|
-
#
|
648
|
-
#
|
649
|
-
#
|
650
|
-
#
|
651
|
-
#
|
652
|
-
#
|
653
|
-
#
|
654
|
-
#
|
655
|
+
# ```ruby
|
656
|
+
# class MyPropertyClass < Wx::PG::DirProperty
|
657
|
+
#
|
658
|
+
# class << self
|
659
|
+
# def validator
|
660
|
+
# @validator ||= MyValidator.new(...)
|
661
|
+
# end
|
662
|
+
# end
|
663
|
+
#
|
664
|
+
# # ...
|
665
|
+
#
|
666
|
+
# def do_get_validator
|
667
|
+
# MyPropertyClass.validator
|
668
|
+
# end
|
669
|
+
#
|
670
|
+
# # ...
|
671
|
+
#
|
672
|
+
# end
|
655
673
|
# ```
|
656
674
|
#
|
657
675
|
# You can get common filename validator by returning {Wx::PG::FileProperty.get_class_validator}. {Wx::PG::DirProperty}, for example, uses it.
|
@@ -673,27 +691,35 @@ module Wx::PG
|
|
673
691
|
# Value to be edited should be read from value, and if dialog is not cancelled, it should be stored back and true should be returned.
|
674
692
|
#
|
675
693
|
# Returns true if editor dialog was not cancelled and value was updated.
|
676
|
-
# @param pg [Wx::PropertyGrid] Property grid in which property is displayed.
|
694
|
+
# @param pg [Wx::PG::PropertyGrid] Property grid in which property is displayed.
|
677
695
|
# @param value [Wx::Variant] Value to be edited.
|
678
|
-
# @return [
|
696
|
+
# @return [Boolean]
|
679
697
|
def display_editor_dialog(pg, value) end
|
680
698
|
|
681
699
|
end # DirProperty
|
682
700
|
|
683
701
|
# Like {Wx::PG::LongStringProperty}, but the button triggers file selector instead.
|
684
702
|
# <b>Supported special attributes:</b>
|
685
|
-
#
|
703
|
+
#
|
704
|
+
# - {Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the file dialog (since 3.1.3).
|
705
|
+
# - {Wx::PG::PG_FILE_DIALOG_STYLE}: Sets a specific {Wx::FileDialog} style for the file dialog (since 2.9.4).
|
706
|
+
# - {Wx::PG::PG_FILE_WILDCARD}: Sets wildcard (see {Wx::FileDialog} for format details), "All files..." is default.
|
707
|
+
# - {Wx::PG::PG_FILE_SHOW_FULL_PATH}: Default true. When false, only the file name is shown (i.e. drive and directory are hidden).
|
708
|
+
# - {Wx::PG::PG_FILE_SHOW_RELATIVE_PATH}: If set, then the filename is shown relative to the given path string.
|
709
|
+
# - {Wx::PG::PG_FILE_INITIAL_PATH}: Sets the initial path of where to look for files.
|
686
710
|
#
|
687
711
|
class FileProperty < EditorDialogProperty
|
688
712
|
|
689
713
|
# @param label [String]
|
690
714
|
# @param name [String]
|
691
715
|
# @param value [String]
|
692
|
-
# @return [FileProperty]
|
716
|
+
# @return [Wx::PG::FileProperty]
|
693
717
|
def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=('')) end
|
694
718
|
|
695
719
|
# This virtual function is called after m_value has been set.
|
696
|
-
# - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::FileProperty#on_set_value} will not be called
|
720
|
+
# - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::FileProperty#on_set_value} will not be called.
|
721
|
+
# - m_value may be of any variant type. Typically properties internally support only one variant type, and as such {Wx::PG::FileProperty#on_set_value} provides a good opportunity to convert supported values into internal type.
|
722
|
+
# - Default implementation does nothing.
|
697
723
|
# @return [void]
|
698
724
|
def on_set_value; end
|
699
725
|
|
@@ -713,7 +739,7 @@ module Wx::PG
|
|
713
739
|
# @param variant [Wx::Variant] On function entry this is the old value (should not be {Wx::NullVariant} in normal cases). Translated value must be assigned back to it.
|
714
740
|
# @param text [String] Text to be translated into variant.
|
715
741
|
# @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one (they may be different). If {Wx::PG::PG_MISC_ARG_FLAGS::PG_COMPOSITE_FRAGMENT} is set, text is interpreted as a part of composite property string value (as generated by {Wx::PG::FileProperty#value_to_string} called with this same flag).
|
716
|
-
# @return [
|
742
|
+
# @return [Boolean]
|
717
743
|
def string_to_value(variant, text, argFlags=0) end
|
718
744
|
|
719
745
|
# Reimplement this member function to add special handling for attributes of this property.
|
@@ -722,24 +748,31 @@ module Wx::PG
|
|
722
748
|
# To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
|
723
749
|
# @param name [String]
|
724
750
|
# @param value [Wx::Variant]
|
725
|
-
# @return [
|
751
|
+
# @return [Boolean]
|
726
752
|
def do_set_attribute(name, value) end
|
727
753
|
|
728
754
|
# Returns pointer to the {Wx::Validator} that should be used with the editor of this property (NULL for no validator).
|
729
|
-
# Setting validator explicitly via
|
730
|
-
# In most situations, code like this should work well
|
755
|
+
# Setting validator explicitly via #set_property_validator will override this.
|
756
|
+
# In most situations, code like this should work well:
|
731
757
|
#
|
732
|
-
# ```
|
733
|
-
#
|
734
|
-
#
|
735
|
-
#
|
736
|
-
#
|
737
|
-
#
|
738
|
-
#
|
739
|
-
#
|
740
|
-
#
|
741
|
-
#
|
742
|
-
#
|
758
|
+
# ```ruby
|
759
|
+
# class MyPropertyClass < Wx::PG::FileProperty
|
760
|
+
#
|
761
|
+
# class << self
|
762
|
+
# def validator
|
763
|
+
# @validator ||= MyValidator.new(...)
|
764
|
+
# end
|
765
|
+
# end
|
766
|
+
#
|
767
|
+
# # ...
|
768
|
+
#
|
769
|
+
# def do_get_validator
|
770
|
+
# MyPropertyClass.validator
|
771
|
+
# end
|
772
|
+
#
|
773
|
+
# # ...
|
774
|
+
#
|
775
|
+
# end
|
743
776
|
# ```
|
744
777
|
#
|
745
778
|
# You can get common filename validator by returning {Wx::PG::FileProperty.get_class_validator}. {Wx::PG::DirProperty}, for example, uses it.
|
@@ -747,7 +780,7 @@ module Wx::PG
|
|
747
780
|
def do_get_validator; end
|
748
781
|
|
749
782
|
# Returns filename to file represented by current value.
|
750
|
-
# @return [
|
783
|
+
# @return [String]
|
751
784
|
def get_file_name; end
|
752
785
|
alias_method :file_name, :get_file_name
|
753
786
|
|
@@ -817,35 +850,45 @@ module Wx::PG
|
|
817
850
|
# Value to be edited should be read from value, and if dialog is not cancelled, it should be stored back and true should be returned.
|
818
851
|
#
|
819
852
|
# Returns true if editor dialog was not cancelled and value was updated.
|
820
|
-
# @param pg [Wx::PropertyGrid] Property grid in which property is displayed.
|
853
|
+
# @param pg [Wx::PG::PropertyGrid] Property grid in which property is displayed.
|
821
854
|
# @param value [Wx::Variant] Value to be edited.
|
822
|
-
# @return [
|
855
|
+
# @return [Boolean]
|
823
856
|
def display_editor_dialog(pg, value) end
|
824
857
|
|
825
858
|
end # FileProperty
|
826
859
|
|
827
860
|
# Property representing image file(name).
|
828
861
|
# <b>Supported special attributes:</b>
|
829
|
-
#
|
830
|
-
#
|
862
|
+
#
|
863
|
+
# - {Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the file dialog (since 3.1.3).
|
864
|
+
# - {Wx::PG::PG_FILE_DIALOG_STYLE}: Sets a specific {Wx::FileDialog} style for the file dialog.
|
865
|
+
# - {Wx::PG::PG_FILE_WILDCARD}: Sets wildcard (see {Wx::FileDialog} for format details), "All
|
866
|
+
# files..." is default.
|
867
|
+
# - {Wx::PG::PG_FILE_SHOW_FULL_PATH}: Default true. When false, only the file name is shown (i.e. drive and directory are hidden).
|
868
|
+
# - {Wx::PG::PG_FILE_SHOW_RELATIVE_PATH}: If set, then the filename is shown relative to the given path string.
|
869
|
+
# - {Wx::PG::PG_FILE_INITIAL_PATH}: Sets the initial path of where to look for files.
|
831
870
|
#
|
832
871
|
class ImageFileProperty < FileProperty
|
833
872
|
|
834
873
|
# @param label [String]
|
835
874
|
# @param name [String]
|
836
875
|
# @param value [String]
|
837
|
-
# @return [ImageFileProperty]
|
876
|
+
# @return [Wx::PG::ImageFileProperty]
|
838
877
|
def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=('')) end
|
839
878
|
|
840
879
|
# This virtual function is called after m_value has been set.
|
841
|
-
# - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::ImageFileProperty#on_set_value} will not be called
|
880
|
+
# - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::ImageFileProperty#on_set_value} will not be called.
|
881
|
+
# - m_value may be of any variant type. Typically properties internally support only one variant type, and as such {Wx::PG::ImageFileProperty#on_set_value} provides a good opportunity to convert supported values into internal type.
|
882
|
+
# - Default implementation does nothing.
|
842
883
|
# @return [void]
|
843
884
|
def on_set_value; end
|
844
885
|
|
845
886
|
# Returns size of the custom painted image in front of property.
|
846
887
|
# This method must be overridden to return non-default value if OnCustomPaint is to be called.
|
847
888
|
#
|
848
|
-
# - Default behaviour is to return {size(0,0)}, which means no image
|
889
|
+
# - Default behaviour is to return {size(0,0)}, which means no image.
|
890
|
+
# - Default image width or height is indicated with dimension -1.
|
891
|
+
# - You can also return {Wx::PG::PG_DEFAULT_IMAGE_SIZE} which equals {Wx::DEFAULT_SIZE}.
|
849
892
|
# @param item [Integer] Normally -1, but can be an index to the property's list of items.
|
850
893
|
# @return [Wx::Size]
|
851
894
|
def on_measure_image(item) end
|
@@ -854,27 +897,14 @@ module Wx::PG
|
|
854
897
|
# If property's {Wx::PG::ImageFileProperty#on_measure_image} returns size that has height != 0 but less than row height ( < 0 has special meanings), {Wx::PG::PropertyGrid} calls this method to draw a custom image in a limited area in front of the editor control or value text/graphics, and if control has drop-down list, then the image is drawn there as well (even in the case {Wx::PG::ImageFileProperty#on_measure_image} returned higher height than row height).
|
855
898
|
# NOTE: Following applies when {Wx::PG::ImageFileProperty#on_measure_image} returns a "flexible" height ( using <code>wxPG_FLEXIBLE_SIZE(W,H)</code> macro), which implies variable height items: If (rect.x+rect.width) is < 0, then this is a measure item call, which means that dc is invalid and only thing that should be done is to set paintdata.m_drawnHeight to the height of the image of item at index paintdata.m_choiceItem. This call may be done even as often as once every drop-down popup show.
|
856
899
|
#
|
857
|
-
# - You can actually exceed rect width, but if you do so then paintdata.m_drawnWidth must be set to the full width drawn in pixels
|
900
|
+
# - You can actually exceed rect width, but if you do so then paintdata.m_drawnWidth must be set to the full width drawn in pixels.
|
901
|
+
# - Due to technical reasons, rect's height will be default even if custom height was reported during measure call.
|
902
|
+
# - Brush is guaranteed to be default background colour. It has been already used to clear the background of area being painted. It can be modified.
|
903
|
+
# - Pen is guaranteed to be 1-wide 'black' (or whatever is the proper colour) pen for drawing framing rectangle. It can be changed as well.
|
858
904
|
# @see Wx::PG::ImageFileProperty#value_to_string
|
859
905
|
# @param dc [Wx::DC] {Wx::DC} to paint on.
|
860
906
|
# @param rect [Wx::Rect] Box reserved for custom graphics. Includes surrounding rectangle, if any. If x+width is < 0, then this is a measure item call (see above).
|
861
|
-
# @param paintdata [Wx::PGPaintData] {Wx::PG::PGPaintData} structure with much useful data about painted item.
|
862
|
-
# ```
|
863
|
-
# struct wxPGPaintData
|
864
|
-
# {
|
865
|
-
# // wxPropertyGrid.
|
866
|
-
# const wxPropertyGrid* m_parent;
|
867
|
-
#
|
868
|
-
# // Normally -1, otherwise index to drop-down list item that has to be drawn.
|
869
|
-
# int m_choiceItem;
|
870
|
-
#
|
871
|
-
# // Set to drawn width in OnCustomPaint (optional).
|
872
|
-
# int m_drawnWidth;
|
873
|
-
#
|
874
|
-
# // In a measure item call, set this to the height of item at m_choiceItem index
|
875
|
-
# int m_drawnHeight;
|
876
|
-
# };
|
877
|
-
# ```
|
907
|
+
# @param paintdata [Wx::PG::PGPaintData] {Wx::PG::PGPaintData} structure with much useful data about painted item.
|
878
908
|
# @return [void]
|
879
909
|
def on_custom_paint(dc, rect, paintdata) end
|
880
910
|
|
@@ -890,6 +920,7 @@ module Wx::PG
|
|
890
920
|
|
891
921
|
# Property representing {Wx::Font}.
|
892
922
|
# <b>Supported special attributes:</b>
|
923
|
+
#
|
893
924
|
# - {Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the font dialog (since 3.1.3).
|
894
925
|
#
|
895
926
|
class FontProperty < EditorDialogProperty
|
@@ -897,11 +928,13 @@ module Wx::PG
|
|
897
928
|
# @param label [String]
|
898
929
|
# @param name [String]
|
899
930
|
# @param value [Wx::Font,Wx::FontInfo]
|
900
|
-
# @return [FontProperty]
|
931
|
+
# @return [Wx::PG::FontProperty]
|
901
932
|
def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=(Wx::Font.new())) end
|
902
933
|
|
903
934
|
# This virtual function is called after m_value has been set.
|
904
|
-
# - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::FontProperty#on_set_value} will not be called
|
935
|
+
# - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::FontProperty#on_set_value} will not be called.
|
936
|
+
# - m_value may be of any variant type. Typically properties internally support only one variant type, and as such {Wx::PG::FontProperty#on_set_value} provides a good opportunity to convert supported values into internal type.
|
937
|
+
# - Default implementation does nothing.
|
905
938
|
# @return [void]
|
906
939
|
def on_set_value; end
|
907
940
|
|
@@ -917,31 +950,30 @@ module Wx::PG
|
|
917
950
|
# Note that this function is usually called at the time that value of this property, or given child property, is still pending for change, and as such, result of {Wx::PG::FontProperty#get_value} or m_value should not be relied on.
|
918
951
|
# Sample pseudo-code implementation:
|
919
952
|
#
|
920
|
-
# ```
|
921
|
-
#
|
922
|
-
#
|
923
|
-
#
|
924
|
-
#
|
925
|
-
#
|
926
|
-
#
|
927
|
-
#
|
928
|
-
#
|
929
|
-
#
|
930
|
-
#
|
931
|
-
#
|
932
|
-
#
|
933
|
-
#
|
934
|
-
#
|
935
|
-
#
|
936
|
-
#
|
937
|
-
#
|
938
|
-
#
|
939
|
-
#
|
940
|
-
#
|
941
|
-
#
|
942
|
-
#
|
943
|
-
#
|
944
|
-
# }
|
953
|
+
# ```ruby
|
954
|
+
# class WxFontDataProperty < Wx::PG::FontProperty
|
955
|
+
#
|
956
|
+
# def child_changed(thisValue, childIndex, childValue)
|
957
|
+
# fontData = thisValue.object
|
958
|
+
# fontData.initial_font = fontData.chosen_font
|
959
|
+
#
|
960
|
+
# case childIndex
|
961
|
+
# when 6
|
962
|
+
# col = childValue.colour
|
963
|
+
# fontData.colour = col
|
964
|
+
# else
|
965
|
+
# # Transfer from subset to superset.
|
966
|
+
# font = fontData.chosen_font
|
967
|
+
# variant = Wx::Variant.new(font)
|
968
|
+
# variant = super(variant, childIndex, childValue)
|
969
|
+
# font = variant.font
|
970
|
+
# fontData.chosen_font = font
|
971
|
+
# end
|
972
|
+
#
|
973
|
+
# Wx::Variant.new(fontData)
|
974
|
+
# end
|
975
|
+
#
|
976
|
+
# end
|
945
977
|
# ```
|
946
978
|
#
|
947
979
|
# Modified value of the whole property.
|
@@ -971,15 +1003,16 @@ module Wx::PG
|
|
971
1003
|
# Value to be edited should be read from value, and if dialog is not cancelled, it should be stored back and true should be returned.
|
972
1004
|
#
|
973
1005
|
# Returns true if editor dialog was not cancelled and value was updated.
|
974
|
-
# @param pg [Wx::PropertyGrid] Property grid in which property is displayed.
|
1006
|
+
# @param pg [Wx::PG::PropertyGrid] Property grid in which property is displayed.
|
975
1007
|
# @param value [Wx::Variant] Value to be edited.
|
976
|
-
# @return [
|
1008
|
+
# @return [Boolean]
|
977
1009
|
def display_editor_dialog(pg, value) end
|
978
1010
|
|
979
1011
|
end # FontProperty
|
980
1012
|
|
981
1013
|
# Like {Wx::PG::StringProperty}, but has a button that triggers a small text editor dialog.
|
982
1014
|
# <b>Supported special attributes:</b>
|
1015
|
+
#
|
983
1016
|
# - {Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the text editor dialog (since 3.1.3).
|
984
1017
|
#
|
985
1018
|
class LongStringProperty < EditorDialogProperty
|
@@ -987,7 +1020,7 @@ module Wx::PG
|
|
987
1020
|
# @param label [String]
|
988
1021
|
# @param name [String]
|
989
1022
|
# @param value [String]
|
990
|
-
# @return [LongStringProperty]
|
1023
|
+
# @return [Wx::PG::LongStringProperty]
|
991
1024
|
def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=('')) end
|
992
1025
|
|
993
1026
|
# Converts property value into a text representation.
|
@@ -1006,7 +1039,7 @@ module Wx::PG
|
|
1006
1039
|
# @param variant [Wx::Variant] On function entry this is the old value (should not be {Wx::NullVariant} in normal cases). Translated value must be assigned back to it.
|
1007
1040
|
# @param text [String] Text to be translated into variant.
|
1008
1041
|
# @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one (they may be different). If {Wx::PG::PG_MISC_ARG_FLAGS::PG_COMPOSITE_FRAGMENT} is set, text is interpreted as a part of composite property string value (as generated by {Wx::PG::LongStringProperty#value_to_string} called with this same flag).
|
1009
|
-
# @return [
|
1042
|
+
# @return [Boolean]
|
1010
1043
|
def string_to_value(variant, text, argFlags=0) end
|
1011
1044
|
|
1012
1045
|
#
|
@@ -1024,9 +1057,9 @@ module Wx::PG
|
|
1024
1057
|
# Value to be edited should be read from value, and if dialog is not cancelled, it should be stored back and true should be returned.
|
1025
1058
|
#
|
1026
1059
|
# Returns true if editor dialog was not cancelled and value was updated.
|
1027
|
-
# @param pg [Wx::PropertyGrid] Property grid in which property is displayed.
|
1060
|
+
# @param pg [Wx::PG::PropertyGrid] Property grid in which property is displayed.
|
1028
1061
|
# @param value [Wx::Variant] Value to be edited.
|
1029
|
-
# @return [
|
1062
|
+
# @return [Boolean]
|
1030
1063
|
def display_editor_dialog(pg, value) end
|
1031
1064
|
|
1032
1065
|
end # LongStringProperty
|
@@ -1034,7 +1067,9 @@ module Wx::PG
|
|
1034
1067
|
# Property that manages a value resulting from {Wx::MultiChoiceDialog}.
|
1035
1068
|
# Value is array of strings. You can get value as array of choice values/indices by calling {Wx::PG::MultiChoiceProperty#get_value_as_array_int}.
|
1036
1069
|
# <b>Supported special attributes:</b>
|
1037
|
-
#
|
1070
|
+
#
|
1071
|
+
# - {Wx::PG::PG_ATTR_MULTICHOICE_USERSTRINGMODE}: If > 0, allow user to manually enter strings that are not in the list of choices. If this value is 1, user strings are preferably placed in front of valid choices. If value is 2, then those strings will placed behind valid choices.
|
1072
|
+
# - {Wx::PG::PG_DIALOG_TITLE}: Sets a specific title for the editor dialog (since 3.1.3).
|
1038
1073
|
#
|
1039
1074
|
class MultiChoiceProperty < EditorDialogProperty
|
1040
1075
|
|
@@ -1043,22 +1078,24 @@ module Wx::PG
|
|
1043
1078
|
# @param name [String]
|
1044
1079
|
# @param strings [Array<String>]
|
1045
1080
|
# @param value [Array<String>]
|
1046
|
-
# @return [MultiChoiceProperty]
|
1081
|
+
# @return [Wx::PG::MultiChoiceProperty]
|
1047
1082
|
# @overload initialize(label, name, choices, value=(Wx::ArrayString.new()))
|
1048
1083
|
# @param label [String]
|
1049
1084
|
# @param name [String]
|
1050
|
-
# @param choices [Wx::PGChoices]
|
1085
|
+
# @param choices [Wx::PG::PGChoices]
|
1051
1086
|
# @param value [Array<String>]
|
1052
|
-
# @return [MultiChoiceProperty]
|
1087
|
+
# @return [Wx::PG::MultiChoiceProperty]
|
1053
1088
|
# @overload initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=(Wx::ArrayString.new()))
|
1054
1089
|
# @param label [String]
|
1055
1090
|
# @param name [String]
|
1056
1091
|
# @param value [Array<String>]
|
1057
|
-
# @return [MultiChoiceProperty]
|
1092
|
+
# @return [Wx::PG::MultiChoiceProperty]
|
1058
1093
|
def initialize(*args) end
|
1059
1094
|
|
1060
1095
|
# This virtual function is called after m_value has been set.
|
1061
|
-
# - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::MultiChoiceProperty#on_set_value} will not be called
|
1096
|
+
# - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::MultiChoiceProperty#on_set_value} will not be called.
|
1097
|
+
# - m_value may be of any variant type. Typically properties internally support only one variant type, and as such {Wx::PG::MultiChoiceProperty#on_set_value} provides a good opportunity to convert supported values into internal type.
|
1098
|
+
# - Default implementation does nothing.
|
1062
1099
|
# @return [void]
|
1063
1100
|
def on_set_value; end
|
1064
1101
|
|
@@ -1078,7 +1115,7 @@ module Wx::PG
|
|
1078
1115
|
# @param variant [Wx::Variant] On function entry this is the old value (should not be {Wx::NullVariant} in normal cases). Translated value must be assigned back to it.
|
1079
1116
|
# @param text [String] Text to be translated into variant.
|
1080
1117
|
# @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one (they may be different). If {Wx::PG::PG_MISC_ARG_FLAGS::PG_COMPOSITE_FRAGMENT} is set, text is interpreted as a part of composite property string value (as generated by {Wx::PG::MultiChoiceProperty#value_to_string} called with this same flag).
|
1081
|
-
# @return [
|
1118
|
+
# @return [Boolean]
|
1082
1119
|
def string_to_value(variant, text, argFlags=0) end
|
1083
1120
|
|
1084
1121
|
# @return [Array<Integer>]
|
@@ -1132,16 +1169,20 @@ module Wx::PG
|
|
1132
1169
|
# Value to be edited should be read from value, and if dialog is not cancelled, it should be stored back and true should be returned.
|
1133
1170
|
#
|
1134
1171
|
# Returns true if editor dialog was not cancelled and value was updated.
|
1135
|
-
# @param pg [Wx::PropertyGrid] Property grid in which property is displayed.
|
1172
|
+
# @param pg [Wx::PG::PropertyGrid] Property grid in which property is displayed.
|
1136
1173
|
# @param value [Wx::Variant] Value to be edited.
|
1137
|
-
# @return [
|
1174
|
+
# @return [Boolean]
|
1138
1175
|
def display_editor_dialog(pg, value) end
|
1139
1176
|
|
1140
1177
|
end # MultiChoiceProperty
|
1141
1178
|
|
1142
1179
|
# This is an abstract class which serves as a base class for numeric properties, like {Wx::PG::IntProperty}, {Wx::PG::UIntProperty}, {Wx::PG::FloatProperty}.
|
1143
1180
|
# <b>Supported special attributes:</b>
|
1144
|
-
#
|
1181
|
+
#
|
1182
|
+
# - {Wx::PG::PG_ATTR_MIN}, {Wx::PG::PG_ATTR_MAX}: Specify acceptable value range.
|
1183
|
+
# - {Wx::PG::PG_ATTR_SPINCTRL_STEP}: How much number changes when SpinCtrl editor button is pressed (or up/down on keyboard).
|
1184
|
+
# - {Wx::PG::PG_ATTR_SPINCTRL_WRAP}: Specify if value modified with SpinCtrl editor wraps at Min/Max.
|
1185
|
+
# - {Wx::PG::PG_ATTR_SPINCTRL_MOTION}: Specify if value can also by changed with SpinCtrl editor by moving mouse when left mouse button is being pressed.
|
1145
1186
|
#
|
1146
1187
|
class NumericProperty < PGProperty
|
1147
1188
|
|
@@ -1151,7 +1192,7 @@ module Wx::PG
|
|
1151
1192
|
# To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
|
1152
1193
|
# @param name [String]
|
1153
1194
|
# @param value [Wx::Variant]
|
1154
|
-
# @return [
|
1195
|
+
# @return [Boolean]
|
1155
1196
|
def do_set_attribute(name, value) end
|
1156
1197
|
|
1157
1198
|
# Returns what would be the new value of the property after adding SpinCtrl editor step to the current value.
|
@@ -1165,7 +1206,7 @@ module Wx::PG
|
|
1165
1206
|
def add_spin_step_value(stepScale) end
|
1166
1207
|
|
1167
1208
|
# Return true if value can be changed with SpinCtrl editor by moving the mouse.
|
1168
|
-
# @return [
|
1209
|
+
# @return [Boolean]
|
1169
1210
|
def use_spin_motion; end
|
1170
1211
|
|
1171
1212
|
#
|
@@ -1195,12 +1236,12 @@ module Wx::PG
|
|
1195
1236
|
#
|
1196
1237
|
#
|
1197
1238
|
#
|
1198
|
-
# @return []
|
1239
|
+
# @return [Boolean]
|
1199
1240
|
def spin_motion_; end
|
1200
1241
|
#
|
1201
1242
|
#
|
1202
1243
|
#
|
1203
|
-
# @param val [
|
1244
|
+
# @param val [Boolean]
|
1204
1245
|
# @return [void]
|
1205
1246
|
def spin_motion_=(val); end
|
1206
1247
|
|
@@ -1219,12 +1260,12 @@ module Wx::PG
|
|
1219
1260
|
#
|
1220
1261
|
#
|
1221
1262
|
#
|
1222
|
-
# @return []
|
1263
|
+
# @return [Boolean]
|
1223
1264
|
def spin_wrap_; end
|
1224
1265
|
#
|
1225
1266
|
#
|
1226
1267
|
#
|
1227
|
-
# @param val [
|
1268
|
+
# @param val [Boolean]
|
1228
1269
|
# @return [void]
|
1229
1270
|
def spin_wrap_=(val); end
|
1230
1271
|
|
@@ -1242,43 +1283,12 @@ module Wx::PG
|
|
1242
1283
|
# Constructor is protected because {Wx::PG::NumericProperty} is only a base class for other numeric property classes.
|
1243
1284
|
# @param label [String]
|
1244
1285
|
# @param name [String]
|
1245
|
-
# @return [NumericProperty]
|
1286
|
+
# @return [Wx::PG::NumericProperty]
|
1246
1287
|
def initialize(label, name) end
|
1247
1288
|
|
1248
1289
|
end # NumericProperty
|
1249
1290
|
|
1250
1291
|
# Basic property with integer value.
|
1251
|
-
# Seamlessly supports 64-bit integer ({Wx::LongLong}) on overflow.
|
1252
|
-
# <b>Example how to use seamless 64-bit integer support</b>
|
1253
|
-
# Getting value:
|
1254
|
-
#
|
1255
|
-
# ```
|
1256
|
-
# wxLongLong_t value = pg->GetPropertyValueAsLongLong();
|
1257
|
-
# ```
|
1258
|
-
#
|
1259
|
-
# or
|
1260
|
-
#
|
1261
|
-
# ```
|
1262
|
-
# wxLongLong_t value;
|
1263
|
-
# wxVariant variant = property->GetValue();
|
1264
|
-
# if ( variant.GetType() == "wxLongLong" )
|
1265
|
-
# value = wxLongLongFromVariant(variant);
|
1266
|
-
# else
|
1267
|
-
# value = variant.GetLong();
|
1268
|
-
# ```
|
1269
|
-
#
|
1270
|
-
# Setting value:
|
1271
|
-
#
|
1272
|
-
# ```
|
1273
|
-
# pg->SetPropertyValue(longLongVal);
|
1274
|
-
# ```
|
1275
|
-
#
|
1276
|
-
# or
|
1277
|
-
#
|
1278
|
-
# ```
|
1279
|
-
# property->SetValue(WXVARIANT(longLongVal));
|
1280
|
-
# ```
|
1281
|
-
#
|
1282
1292
|
# <b>Supported special attributes:</b>
|
1283
1293
|
# - {Wx::PG::PG_ATTR_MIN}, {Wx::PG::PG_ATTR_MAX}, {Wx::PG::PG_ATTR_SPINCTRL_STEP}, {Wx::PG::PG_ATTR_SPINCTRL_WRAP}, {Wx::PG::PG_ATTR_SPINCTRL_MOTION}: like in {Wx::PG::NumericProperty}.
|
1284
1294
|
#
|
@@ -1288,12 +1298,12 @@ module Wx::PG
|
|
1288
1298
|
# @param label [String]
|
1289
1299
|
# @param name [String]
|
1290
1300
|
# @param value [Integer]
|
1291
|
-
# @return [IntProperty]
|
1301
|
+
# @return [Wx::PG::IntProperty]
|
1292
1302
|
# @overload initialize(label, name, value)
|
1293
1303
|
# @param label [String]
|
1294
1304
|
# @param name [String]
|
1295
1305
|
# @param value [Integer]
|
1296
|
-
# @return [IntProperty]
|
1306
|
+
# @return [Wx::PG::IntProperty]
|
1297
1307
|
def initialize(*args) end
|
1298
1308
|
|
1299
1309
|
# Converts property value into a text representation.
|
@@ -1312,7 +1322,7 @@ module Wx::PG
|
|
1312
1322
|
# @param variant [Wx::Variant] On function entry this is the old value (should not be {Wx::NullVariant} in normal cases). Translated value must be assigned back to it.
|
1313
1323
|
# @param text [String] Text to be translated into variant.
|
1314
1324
|
# @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one (they may be different). If {Wx::PG::PG_MISC_ARG_FLAGS::PG_COMPOSITE_FRAGMENT} is set, text is interpreted as a part of composite property string value (as generated by {Wx::PG::IntProperty#value_to_string} called with this same flag).
|
1315
|
-
# @return [
|
1325
|
+
# @return [Boolean]
|
1316
1326
|
def string_to_value(variant, text, argFlags=0) end
|
1317
1327
|
|
1318
1328
|
# Implement this function in derived class to check the value.
|
@@ -1320,35 +1330,45 @@ module Wx::PG
|
|
1320
1330
|
#
|
1321
1331
|
# - Default implementation always returns true.
|
1322
1332
|
# @param value [Wx::Variant]
|
1323
|
-
# @param validationInfo [Wx::PGValidationInfo]
|
1324
|
-
# @return [
|
1333
|
+
# @param validationInfo [Wx::PG::PGValidationInfo]
|
1334
|
+
# @return [Boolean]
|
1325
1335
|
def validate_value(value, validationInfo) end
|
1326
1336
|
|
1327
1337
|
# Converts integer (possibly a choice selection) into {Wx::Variant} value appropriate for this property.
|
1328
1338
|
# Returns true if resulting {Wx::Variant} value was different.
|
1329
1339
|
#
|
1330
|
-
# - If property is not supposed to use choice or spinctrl or other editor with int-based value, it is not necessary to implement this method
|
1340
|
+
# - If property is not supposed to use choice or spinctrl or other editor with int-based value, it is not necessary to implement this method.
|
1341
|
+
# - Default implementation simply assign given int to m_value.
|
1342
|
+
# - If property uses choice control, and displays a dialog on some choice items, then it is preferred to display that dialog in IntToValue instead of OnEvent.
|
1343
|
+
# - You might want to take into account that m_value is Mull variant if property value is unspecified (which is usually only case if you explicitly enabled that sort behaviour).
|
1331
1344
|
# @param variant [Wx::Variant] On function entry this is the old value (should not be {Wx::NullVariant} in normal cases). Translated value must be assigned back to it.
|
1332
1345
|
# @param number [Integer] Integer to be translated into variant.
|
1333
1346
|
# @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one.
|
1334
|
-
# @return [
|
1347
|
+
# @return [Boolean]
|
1335
1348
|
def int_to_value(variant, number, argFlags=0) end
|
1336
1349
|
|
1337
1350
|
# Returns pointer to the {Wx::Validator} that should be used with the editor of this property (NULL for no validator).
|
1338
|
-
# Setting validator explicitly via
|
1339
|
-
# In most situations, code like this should work well
|
1351
|
+
# Setting validator explicitly via #set_property_validator will override this.
|
1352
|
+
# In most situations, code like this should work well:
|
1340
1353
|
#
|
1341
|
-
# ```
|
1342
|
-
#
|
1343
|
-
#
|
1344
|
-
#
|
1345
|
-
#
|
1346
|
-
#
|
1347
|
-
#
|
1348
|
-
#
|
1349
|
-
#
|
1350
|
-
#
|
1351
|
-
#
|
1354
|
+
# ```ruby
|
1355
|
+
# class MyPropertyClass < Wx::PG::IntProperty
|
1356
|
+
#
|
1357
|
+
# class << self
|
1358
|
+
# def validator
|
1359
|
+
# @validator ||= MyValidator.new(...)
|
1360
|
+
# end
|
1361
|
+
# end
|
1362
|
+
#
|
1363
|
+
# # ...
|
1364
|
+
#
|
1365
|
+
# def do_get_validator
|
1366
|
+
# MyPropertyClass.validator
|
1367
|
+
# end
|
1368
|
+
#
|
1369
|
+
# # ...
|
1370
|
+
#
|
1371
|
+
# end
|
1352
1372
|
# ```
|
1353
1373
|
#
|
1354
1374
|
# You can get common filename validator by returning {Wx::PG::FileProperty.get_class_validator}. {Wx::PG::DirProperty}, for example, uses it.
|
@@ -1393,10 +1413,10 @@ module Wx::PG
|
|
1393
1413
|
def max_val_=(val); end
|
1394
1414
|
|
1395
1415
|
#
|
1396
|
-
# @return []
|
1416
|
+
# @return [Boolean]
|
1397
1417
|
def spin_motion_; end
|
1398
1418
|
#
|
1399
|
-
# @param val [
|
1419
|
+
# @param val [Boolean]
|
1400
1420
|
# @return [void]
|
1401
1421
|
def spin_motion_=(val); end
|
1402
1422
|
|
@@ -1409,10 +1429,10 @@ module Wx::PG
|
|
1409
1429
|
def spin_step_=(val); end
|
1410
1430
|
|
1411
1431
|
#
|
1412
|
-
# @return []
|
1432
|
+
# @return [Boolean]
|
1413
1433
|
def spin_wrap_; end
|
1414
1434
|
#
|
1415
|
-
# @param val [
|
1435
|
+
# @param val [Boolean]
|
1416
1436
|
# @return [void]
|
1417
1437
|
def spin_wrap_=(val); end
|
1418
1438
|
|
@@ -1420,14 +1440,16 @@ module Wx::PG
|
|
1420
1440
|
|
1421
1441
|
# Basic property with double-precision floating point value.
|
1422
1442
|
# <b>Supported special attributes:</b>
|
1423
|
-
#
|
1443
|
+
#
|
1444
|
+
# - {Wx::PG::PG_FLOAT_PRECISION}: Sets the (max) precision used when floating point value is rendered as text. The default -1 means infinite precision.
|
1445
|
+
# - {Wx::PG::PG_ATTR_MIN}, {Wx::PG::PG_ATTR_MAX}, {Wx::PG::PG_ATTR_SPINCTRL_STEP}, {Wx::PG::PG_ATTR_SPINCTRL_WRAP}, {Wx::PG::PG_ATTR_SPINCTRL_MOTION}: like in {Wx::PG::NumericProperty}.
|
1424
1446
|
#
|
1425
1447
|
class FloatProperty < NumericProperty
|
1426
1448
|
|
1427
1449
|
# @param label [String]
|
1428
1450
|
# @param name [String]
|
1429
1451
|
# @param value [Float]
|
1430
|
-
# @return [FloatProperty]
|
1452
|
+
# @return [Wx::PG::FloatProperty]
|
1431
1453
|
def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=0.0) end
|
1432
1454
|
|
1433
1455
|
# Converts property value into a text representation.
|
@@ -1446,7 +1468,7 @@ module Wx::PG
|
|
1446
1468
|
# @param variant [Wx::Variant] On function entry this is the old value (should not be {Wx::NullVariant} in normal cases). Translated value must be assigned back to it.
|
1447
1469
|
# @param text [String] Text to be translated into variant.
|
1448
1470
|
# @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one (they may be different). If {Wx::PG::PG_MISC_ARG_FLAGS::PG_COMPOSITE_FRAGMENT} is set, text is interpreted as a part of composite property string value (as generated by {Wx::PG::FloatProperty#value_to_string} called with this same flag).
|
1449
|
-
# @return [
|
1471
|
+
# @return [Boolean]
|
1450
1472
|
def string_to_value(variant, text, argFlags=0) end
|
1451
1473
|
|
1452
1474
|
# Reimplement this member function to add special handling for attributes of this property.
|
@@ -1455,7 +1477,7 @@ module Wx::PG
|
|
1455
1477
|
# To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
|
1456
1478
|
# @param name [String]
|
1457
1479
|
# @param value [Wx::Variant]
|
1458
|
-
# @return [
|
1480
|
+
# @return [Boolean]
|
1459
1481
|
def do_set_attribute(name, value) end
|
1460
1482
|
|
1461
1483
|
# Implement this function in derived class to check the value.
|
@@ -1463,25 +1485,32 @@ module Wx::PG
|
|
1463
1485
|
#
|
1464
1486
|
# - Default implementation always returns true.
|
1465
1487
|
# @param value [Wx::Variant]
|
1466
|
-
# @param validationInfo [Wx::PGValidationInfo]
|
1467
|
-
# @return [
|
1488
|
+
# @param validationInfo [Wx::PG::PGValidationInfo]
|
1489
|
+
# @return [Boolean]
|
1468
1490
|
def validate_value(value, validationInfo) end
|
1469
1491
|
|
1470
1492
|
# Returns pointer to the {Wx::Validator} that should be used with the editor of this property (NULL for no validator).
|
1471
|
-
# Setting validator explicitly via
|
1472
|
-
# In most situations, code like this should work well
|
1493
|
+
# Setting validator explicitly via #set_property_validator will override this.
|
1494
|
+
# In most situations, code like this should work well:
|
1473
1495
|
#
|
1474
|
-
# ```
|
1475
|
-
#
|
1476
|
-
#
|
1477
|
-
#
|
1478
|
-
#
|
1479
|
-
#
|
1480
|
-
#
|
1481
|
-
#
|
1482
|
-
#
|
1483
|
-
#
|
1484
|
-
#
|
1496
|
+
# ```ruby
|
1497
|
+
# class MyPropertyClass < Wx::PG::FloatProperty
|
1498
|
+
#
|
1499
|
+
# class << self
|
1500
|
+
# def validator
|
1501
|
+
# @validator ||= MyValidator.new(...)
|
1502
|
+
# end
|
1503
|
+
# end
|
1504
|
+
#
|
1505
|
+
# # ...
|
1506
|
+
#
|
1507
|
+
# def do_get_validator
|
1508
|
+
# MyPropertyClass.validator
|
1509
|
+
# end
|
1510
|
+
#
|
1511
|
+
# # ...
|
1512
|
+
#
|
1513
|
+
# end
|
1485
1514
|
# ```
|
1486
1515
|
#
|
1487
1516
|
# You can get common filename validator by returning {Wx::PG::FileProperty.get_class_validator}. {Wx::PG::DirProperty}, for example, uses it.
|
@@ -1538,10 +1567,10 @@ module Wx::PG
|
|
1538
1567
|
def max_val_=(val); end
|
1539
1568
|
|
1540
1569
|
#
|
1541
|
-
# @return []
|
1570
|
+
# @return [Boolean]
|
1542
1571
|
def spin_motion_; end
|
1543
1572
|
#
|
1544
|
-
# @param val [
|
1573
|
+
# @param val [Boolean]
|
1545
1574
|
# @return [void]
|
1546
1575
|
def spin_motion_=(val); end
|
1547
1576
|
|
@@ -1554,10 +1583,10 @@ module Wx::PG
|
|
1554
1583
|
def spin_step_=(val); end
|
1555
1584
|
|
1556
1585
|
#
|
1557
|
-
# @return []
|
1586
|
+
# @return [Boolean]
|
1558
1587
|
def spin_wrap_; end
|
1559
1588
|
#
|
1560
|
-
# @param val [
|
1589
|
+
# @param val [Boolean]
|
1561
1590
|
# @return [void]
|
1562
1591
|
def spin_wrap_=(val); end
|
1563
1592
|
|
@@ -1566,7 +1595,10 @@ module Wx::PG
|
|
1566
1595
|
# Basic property with unsigned integer value.
|
1567
1596
|
# Seamlessly supports 64-bit integer ({Wx::ULongLong}) on overflow.
|
1568
1597
|
# <b>Supported special attributes:</b>
|
1569
|
-
#
|
1598
|
+
#
|
1599
|
+
# - {Wx::PG::PG_UINT_BASE}: Define base. Valid constants are {Wx::PG::PG_BASE_OCT}, {Wx::PG::PG_BASE_DEC}, {Wx::PG::PG_BASE_HEX} and {Wx::PG::PG_BASE_HEXL} (lowercase characters). Arbitrary bases are <b>not</b> supported.
|
1600
|
+
# - {Wx::PG::PG_UINT_PREFIX}: Possible values are {Wx::PG::PG_PREFIX_NONE}, {Wx::PG::PG_PREFIX_0x}, and {Wx::PG::PG_PREFIX_DOLLAR_SIGN}. Only {Wx::PG::PG_PREFIX_NONE} works with Decimal and Octal numbers.
|
1601
|
+
# - {Wx::PG::PG_ATTR_MIN}, {Wx::PG::PG_ATTR_MAX}, {Wx::PG::PG_ATTR_SPINCTRL_STEP}, {Wx::PG::PG_ATTR_SPINCTRL_WRAP}, {Wx::PG::PG_ATTR_SPINCTRL_MOTION}: like in {Wx::PG::NumericProperty}.
|
1570
1602
|
#
|
1571
1603
|
# - For example how to use seamless 64-bit integer support, see {Wx::PG::IntProperty} documentation (just use {Wx::ULongLong} instead of {Wx::LongLong}).
|
1572
1604
|
#
|
@@ -1576,12 +1608,12 @@ module Wx::PG
|
|
1576
1608
|
# @param label [String]
|
1577
1609
|
# @param name [String]
|
1578
1610
|
# @param value [Integer]
|
1579
|
-
# @return [UIntProperty]
|
1611
|
+
# @return [Wx::PG::UIntProperty]
|
1580
1612
|
# @overload initialize(label, name, value)
|
1581
1613
|
# @param label [String]
|
1582
1614
|
# @param name [String]
|
1583
1615
|
# @param value [Integer]
|
1584
|
-
# @return [UIntProperty]
|
1616
|
+
# @return [Wx::PG::UIntProperty]
|
1585
1617
|
def initialize(*args) end
|
1586
1618
|
|
1587
1619
|
# Converts property value into a text representation.
|
@@ -1600,7 +1632,7 @@ module Wx::PG
|
|
1600
1632
|
# @param variant [Wx::Variant] On function entry this is the old value (should not be {Wx::NullVariant} in normal cases). Translated value must be assigned back to it.
|
1601
1633
|
# @param text [String] Text to be translated into variant.
|
1602
1634
|
# @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one (they may be different). If {Wx::PG::PG_MISC_ARG_FLAGS::PG_COMPOSITE_FRAGMENT} is set, text is interpreted as a part of composite property string value (as generated by {Wx::PG::UIntProperty#value_to_string} called with this same flag).
|
1603
|
-
# @return [
|
1635
|
+
# @return [Boolean]
|
1604
1636
|
def string_to_value(variant, text, argFlags=0) end
|
1605
1637
|
|
1606
1638
|
# Reimplement this member function to add special handling for attributes of this property.
|
@@ -1609,7 +1641,7 @@ module Wx::PG
|
|
1609
1641
|
# To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
|
1610
1642
|
# @param name [String]
|
1611
1643
|
# @param value [Wx::Variant]
|
1612
|
-
# @return [
|
1644
|
+
# @return [Boolean]
|
1613
1645
|
def do_set_attribute(name, value) end
|
1614
1646
|
|
1615
1647
|
# Implement this function in derived class to check the value.
|
@@ -1617,25 +1649,32 @@ module Wx::PG
|
|
1617
1649
|
#
|
1618
1650
|
# - Default implementation always returns true.
|
1619
1651
|
# @param value [Wx::Variant]
|
1620
|
-
# @param validationInfo [Wx::PGValidationInfo]
|
1621
|
-
# @return [
|
1652
|
+
# @param validationInfo [Wx::PG::PGValidationInfo]
|
1653
|
+
# @return [Boolean]
|
1622
1654
|
def validate_value(value, validationInfo) end
|
1623
1655
|
|
1624
1656
|
# Returns pointer to the {Wx::Validator} that should be used with the editor of this property (NULL for no validator).
|
1625
|
-
# Setting validator explicitly via
|
1626
|
-
# In most situations, code like this should work well
|
1657
|
+
# Setting validator explicitly via #set_property_validator will override this.
|
1658
|
+
# In most situations, code like this should work well:
|
1627
1659
|
#
|
1628
|
-
# ```
|
1629
|
-
#
|
1630
|
-
#
|
1631
|
-
#
|
1632
|
-
#
|
1633
|
-
#
|
1634
|
-
#
|
1635
|
-
#
|
1636
|
-
#
|
1637
|
-
#
|
1638
|
-
#
|
1660
|
+
# ```ruby
|
1661
|
+
# class MyPropertyClass < Wx::PG::UIntProperty
|
1662
|
+
#
|
1663
|
+
# class << self
|
1664
|
+
# def validator
|
1665
|
+
# @validator ||= MyValidator.new(...)
|
1666
|
+
# end
|
1667
|
+
# end
|
1668
|
+
#
|
1669
|
+
# # ...
|
1670
|
+
#
|
1671
|
+
# def do_get_validator
|
1672
|
+
# MyPropertyClass.validator
|
1673
|
+
# end
|
1674
|
+
#
|
1675
|
+
# # ...
|
1676
|
+
#
|
1677
|
+
# end
|
1639
1678
|
# ```
|
1640
1679
|
#
|
1641
1680
|
# You can get common filename validator by returning {Wx::PG::FileProperty.get_class_validator}. {Wx::PG::DirProperty}, for example, uses it.
|
@@ -1645,11 +1684,14 @@ module Wx::PG
|
|
1645
1684
|
# Converts integer (possibly a choice selection) into {Wx::Variant} value appropriate for this property.
|
1646
1685
|
# Returns true if resulting {Wx::Variant} value was different.
|
1647
1686
|
#
|
1648
|
-
# - If property is not supposed to use choice or spinctrl or other editor with int-based value, it is not necessary to implement this method
|
1687
|
+
# - If property is not supposed to use choice or spinctrl or other editor with int-based value, it is not necessary to implement this method.
|
1688
|
+
# - Default implementation simply assign given int to m_value.
|
1689
|
+
# - If property uses choice control, and displays a dialog on some choice items, then it is preferred to display that dialog in IntToValue instead of OnEvent.
|
1690
|
+
# - You might want to take into account that m_value is Mull variant if property value is unspecified (which is usually only case if you explicitly enabled that sort behaviour).
|
1649
1691
|
# @param variant [Wx::Variant] On function entry this is the old value (should not be {Wx::NullVariant} in normal cases). Translated value must be assigned back to it.
|
1650
1692
|
# @param number [Integer] Integer to be translated into variant.
|
1651
1693
|
# @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one.
|
1652
|
-
# @return [
|
1694
|
+
# @return [Boolean]
|
1653
1695
|
def int_to_value(variant, number, argFlags=0) end
|
1654
1696
|
|
1655
1697
|
# Returns what would be the new value of the property after adding SpinCtrl editor step to the current value.
|
@@ -1723,10 +1765,10 @@ module Wx::PG
|
|
1723
1765
|
def max_val_=(val); end
|
1724
1766
|
|
1725
1767
|
#
|
1726
|
-
# @return []
|
1768
|
+
# @return [Boolean]
|
1727
1769
|
def spin_motion_; end
|
1728
1770
|
#
|
1729
|
-
# @param val [
|
1771
|
+
# @param val [Boolean]
|
1730
1772
|
# @return [void]
|
1731
1773
|
def spin_motion_=(val); end
|
1732
1774
|
|
@@ -1739,10 +1781,10 @@ module Wx::PG
|
|
1739
1781
|
def spin_step_=(val); end
|
1740
1782
|
|
1741
1783
|
#
|
1742
|
-
# @return []
|
1784
|
+
# @return [Boolean]
|
1743
1785
|
def spin_wrap_; end
|
1744
1786
|
#
|
1745
|
-
# @param val [
|
1787
|
+
# @param val [Boolean]
|
1746
1788
|
# @return [void]
|
1747
1789
|
def spin_wrap_=(val); end
|
1748
1790
|
|
@@ -1758,16 +1800,16 @@ module Wx::PG
|
|
1758
1800
|
# @overload initialize(label, name, choices, value=0)
|
1759
1801
|
# @param label [String]
|
1760
1802
|
# @param name [String]
|
1761
|
-
# @param choices [Wx::PGChoices]
|
1803
|
+
# @param choices [Wx::PG::PGChoices]
|
1762
1804
|
# @param value [Integer]
|
1763
|
-
# @return [EnumProperty]
|
1805
|
+
# @return [Wx::PG::EnumProperty]
|
1764
1806
|
# @overload initialize(label, name, labels, values=(Wx::ArrayInt.new()), value=0)
|
1765
1807
|
# @param label [String]
|
1766
1808
|
# @param name [String]
|
1767
1809
|
# @param labels [Array<String>]
|
1768
1810
|
# @param values [Array<Integer>]
|
1769
1811
|
# @param value [Integer]
|
1770
|
-
# @return [EnumProperty]
|
1812
|
+
# @return [Wx::PG::EnumProperty]
|
1771
1813
|
def initialize(*args) end
|
1772
1814
|
|
1773
1815
|
# @return [Integer]
|
@@ -1775,7 +1817,9 @@ module Wx::PG
|
|
1775
1817
|
alias_method :item_count, :get_item_count
|
1776
1818
|
|
1777
1819
|
# This virtual function is called after m_value has been set.
|
1778
|
-
# - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::EnumProperty#on_set_value} will not be called
|
1820
|
+
# - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::EnumProperty#on_set_value} will not be called.
|
1821
|
+
# - m_value may be of any variant type. Typically properties internally support only one variant type, and as such {Wx::PG::EnumProperty#on_set_value} provides a good opportunity to convert supported values into internal type.
|
1822
|
+
# - Default implementation does nothing.
|
1779
1823
|
# @return [void]
|
1780
1824
|
def on_set_value; end
|
1781
1825
|
|
@@ -1795,7 +1839,7 @@ module Wx::PG
|
|
1795
1839
|
# @param variant [Wx::Variant] On function entry this is the old value (should not be {Wx::NullVariant} in normal cases). Translated value must be assigned back to it.
|
1796
1840
|
# @param text [String] Text to be translated into variant.
|
1797
1841
|
# @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one (they may be different). If {Wx::PG::PG_MISC_ARG_FLAGS::PG_COMPOSITE_FRAGMENT} is set, text is interpreted as a part of composite property string value (as generated by {Wx::PG::EnumProperty#value_to_string} called with this same flag).
|
1798
|
-
# @return [
|
1842
|
+
# @return [Boolean]
|
1799
1843
|
def string_to_value(variant, text, argFlags=0) end
|
1800
1844
|
|
1801
1845
|
# Implement this function in derived class to check the value.
|
@@ -1803,18 +1847,21 @@ module Wx::PG
|
|
1803
1847
|
#
|
1804
1848
|
# - Default implementation always returns true.
|
1805
1849
|
# @param value [Wx::Variant]
|
1806
|
-
# @param validationInfo [Wx::PGValidationInfo]
|
1807
|
-
# @return [
|
1850
|
+
# @param validationInfo [Wx::PG::PGValidationInfo]
|
1851
|
+
# @return [Boolean]
|
1808
1852
|
def validate_value(value, validationInfo) end
|
1809
1853
|
|
1810
1854
|
# Converts integer (possibly a choice selection) into {Wx::Variant} value appropriate for this property.
|
1811
1855
|
# Returns true if resulting {Wx::Variant} value was different.
|
1812
1856
|
#
|
1813
|
-
# - If property is not supposed to use choice or spinctrl or other editor with int-based value, it is not necessary to implement this method
|
1857
|
+
# - If property is not supposed to use choice or spinctrl or other editor with int-based value, it is not necessary to implement this method.
|
1858
|
+
# - Default implementation simply assign given int to m_value.
|
1859
|
+
# - If property uses choice control, and displays a dialog on some choice items, then it is preferred to display that dialog in IntToValue instead of OnEvent.
|
1860
|
+
# - You might want to take into account that m_value is Mull variant if property value is unspecified (which is usually only case if you explicitly enabled that sort behaviour).
|
1814
1861
|
# @param variant [Wx::Variant] On function entry this is the old value (should not be {Wx::NullVariant} in normal cases). Translated value must be assigned back to it.
|
1815
1862
|
# @param number [Integer] Integer to be translated into variant.
|
1816
1863
|
# @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one.
|
1817
|
-
# @return [
|
1864
|
+
# @return [Boolean]
|
1818
1865
|
def int_to_value(variant, number, argFlags=0) end
|
1819
1866
|
|
1820
1867
|
# @param value [Integer]
|
@@ -1841,13 +1888,13 @@ module Wx::PG
|
|
1841
1888
|
# @param value [Wx::Variant]
|
1842
1889
|
# @param text [String]
|
1843
1890
|
# @param argFlags [Integer]
|
1844
|
-
# @return [
|
1891
|
+
# @return [Boolean]
|
1845
1892
|
def value_from_string_(value, text, argFlags) end
|
1846
1893
|
|
1847
1894
|
# @param value [Wx::Variant]
|
1848
1895
|
# @param intVal [Integer]
|
1849
1896
|
# @param argFlags [Integer]
|
1850
|
-
# @return [
|
1897
|
+
# @return [Boolean]
|
1851
1898
|
def value_from_int_(value, intVal, argFlags) end
|
1852
1899
|
|
1853
1900
|
#
|
@@ -1868,13 +1915,15 @@ module Wx::PG
|
|
1868
1915
|
# @param label [String]
|
1869
1916
|
# @param name [String]
|
1870
1917
|
# @param value [Integer]
|
1871
|
-
# @return [CursorProperty]
|
1918
|
+
# @return [Wx::PG::CursorProperty]
|
1872
1919
|
def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=0) end
|
1873
1920
|
|
1874
1921
|
# Returns size of the custom painted image in front of property.
|
1875
1922
|
# This method must be overridden to return non-default value if OnCustomPaint is to be called.
|
1876
1923
|
#
|
1877
|
-
# - Default behaviour is to return {size(0,0)}, which means no image
|
1924
|
+
# - Default behaviour is to return {size(0,0)}, which means no image.
|
1925
|
+
# - Default image width or height is indicated with dimension -1.
|
1926
|
+
# - You can also return {Wx::PG::PG_DEFAULT_IMAGE_SIZE} which equals {Wx::DEFAULT_SIZE}.
|
1878
1927
|
# @param item [Integer] Normally -1, but can be an index to the property's list of items.
|
1879
1928
|
# @return [Wx::Size]
|
1880
1929
|
def on_measure_image(item) end
|
@@ -1883,27 +1932,14 @@ module Wx::PG
|
|
1883
1932
|
# If property's {Wx::PG::CursorProperty#on_measure_image} returns size that has height != 0 but less than row height ( < 0 has special meanings), {Wx::PG::PropertyGrid} calls this method to draw a custom image in a limited area in front of the editor control or value text/graphics, and if control has drop-down list, then the image is drawn there as well (even in the case {Wx::PG::CursorProperty#on_measure_image} returned higher height than row height).
|
1884
1933
|
# NOTE: Following applies when {Wx::PG::CursorProperty#on_measure_image} returns a "flexible" height ( using <code>wxPG_FLEXIBLE_SIZE(W,H)</code> macro), which implies variable height items: If (rect.x+rect.width) is < 0, then this is a measure item call, which means that dc is invalid and only thing that should be done is to set paintdata.m_drawnHeight to the height of the image of item at index paintdata.m_choiceItem. This call may be done even as often as once every drop-down popup show.
|
1885
1934
|
#
|
1886
|
-
# - You can actually exceed rect width, but if you do so then paintdata.m_drawnWidth must be set to the full width drawn in pixels
|
1935
|
+
# - You can actually exceed rect width, but if you do so then paintdata.m_drawnWidth must be set to the full width drawn in pixels.
|
1936
|
+
# - Due to technical reasons, rect's height will be default even if custom height was reported during measure call.
|
1937
|
+
# - Brush is guaranteed to be default background colour. It has been already used to clear the background of area being painted. It can be modified.
|
1938
|
+
# - Pen is guaranteed to be 1-wide 'black' (or whatever is the proper colour) pen for drawing framing rectangle. It can be changed as well.
|
1887
1939
|
# @see Wx::PG::CursorProperty#value_to_string
|
1888
1940
|
# @param dc [Wx::DC] {Wx::DC} to paint on.
|
1889
1941
|
# @param rect [Wx::Rect] Box reserved for custom graphics. Includes surrounding rectangle, if any. If x+width is < 0, then this is a measure item call (see above).
|
1890
|
-
# @param paintdata [Wx::PGPaintData] {Wx::PG::PGPaintData} structure with much useful data about painted item.
|
1891
|
-
# ```
|
1892
|
-
# struct wxPGPaintData
|
1893
|
-
# {
|
1894
|
-
# // wxPropertyGrid.
|
1895
|
-
# const wxPropertyGrid* m_parent;
|
1896
|
-
#
|
1897
|
-
# // Normally -1, otherwise index to drop-down list item that has to be drawn.
|
1898
|
-
# int m_choiceItem;
|
1899
|
-
#
|
1900
|
-
# // Set to drawn width in OnCustomPaint (optional).
|
1901
|
-
# int m_drawnWidth;
|
1902
|
-
#
|
1903
|
-
# // In a measure item call, set this to the height of item at m_choiceItem index
|
1904
|
-
# int m_drawnHeight;
|
1905
|
-
# };
|
1906
|
-
# ```
|
1942
|
+
# @param paintdata [Wx::PG::PGPaintData] {Wx::PG::PGPaintData} structure with much useful data about painted item.
|
1907
1943
|
# @return [void]
|
1908
1944
|
def on_custom_paint(dc, rect, paintdata) end
|
1909
1945
|
|
@@ -1928,13 +1964,13 @@ module Wx::PG
|
|
1928
1964
|
# @param labels [Array<String>]
|
1929
1965
|
# @param values [Array<Integer>]
|
1930
1966
|
# @param value [String]
|
1931
|
-
# @return [EditEnumProperty]
|
1967
|
+
# @return [Wx::PG::EditEnumProperty]
|
1932
1968
|
# @overload initialize(label, name, choices, value=(''))
|
1933
1969
|
# @param label [String]
|
1934
1970
|
# @param name [String]
|
1935
|
-
# @param choices [Wx::PGChoices]
|
1971
|
+
# @param choices [Wx::PG::PGChoices]
|
1936
1972
|
# @param value [String]
|
1937
|
-
# @return [EditEnumProperty]
|
1973
|
+
# @return [Wx::PG::EditEnumProperty]
|
1938
1974
|
def initialize(*args) end
|
1939
1975
|
|
1940
1976
|
#
|
@@ -1955,23 +1991,28 @@ module Wx::PG
|
|
1955
1991
|
|
1956
1992
|
# @param label [String]
|
1957
1993
|
# @param name [String]
|
1958
|
-
# @param value [Wx::ColourPropertyValue]
|
1959
|
-
# @return [SystemColourProperty]
|
1994
|
+
# @param value [Wx::PG::ColourPropertyValue]
|
1995
|
+
# @return [Wx::PG::SystemColourProperty]
|
1960
1996
|
def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=(Wx::ColourPropertyValue.new())) end
|
1961
1997
|
|
1962
1998
|
# This virtual function is called after m_value has been set.
|
1963
|
-
# - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::SystemColourProperty#on_set_value} will not be called
|
1999
|
+
# - If m_value was set to Null variant (i.e. unspecified value), {Wx::PG::SystemColourProperty#on_set_value} will not be called.
|
2000
|
+
# - m_value may be of any variant type. Typically properties internally support only one variant type, and as such {Wx::PG::SystemColourProperty#on_set_value} provides a good opportunity to convert supported values into internal type.
|
2001
|
+
# - Default implementation does nothing.
|
1964
2002
|
# @return [void]
|
1965
2003
|
def on_set_value; end
|
1966
2004
|
|
1967
2005
|
# Converts integer (possibly a choice selection) into {Wx::Variant} value appropriate for this property.
|
1968
2006
|
# Returns true if resulting {Wx::Variant} value was different.
|
1969
2007
|
#
|
1970
|
-
# - If property is not supposed to use choice or spinctrl or other editor with int-based value, it is not necessary to implement this method
|
2008
|
+
# - If property is not supposed to use choice or spinctrl or other editor with int-based value, it is not necessary to implement this method.
|
2009
|
+
# - Default implementation simply assign given int to m_value.
|
2010
|
+
# - If property uses choice control, and displays a dialog on some choice items, then it is preferred to display that dialog in IntToValue instead of OnEvent.
|
2011
|
+
# - You might want to take into account that m_value is Mull variant if property value is unspecified (which is usually only case if you explicitly enabled that sort behaviour).
|
1971
2012
|
# @param variant [Wx::Variant] On function entry this is the old value (should not be {Wx::NullVariant} in normal cases). Translated value must be assigned back to it.
|
1972
2013
|
# @param number [Integer] Integer to be translated into variant.
|
1973
2014
|
# @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one.
|
1974
|
-
# @return [
|
2015
|
+
# @return [Boolean]
|
1975
2016
|
def int_to_value(variant, number, argFlags=0) end
|
1976
2017
|
|
1977
2018
|
# Override in derived class to customize how colours are printed as strings.
|
@@ -2002,7 +2043,7 @@ module Wx::PG
|
|
2002
2043
|
# @param variant [Wx::Variant] On function entry this is the old value (should not be {Wx::NullVariant} in normal cases). Translated value must be assigned back to it.
|
2003
2044
|
# @param text [String] Text to be translated into variant.
|
2004
2045
|
# @param argFlags [Integer] If {Wx::PG::PG_MISC_ARG_FLAGS::PG_FULL_VALUE} is set, returns complete, storable value instead of displayable one (they may be different). If {Wx::PG::PG_MISC_ARG_FLAGS::PG_COMPOSITE_FRAGMENT} is set, text is interpreted as a part of composite property string value (as generated by {Wx::PG::SystemColourProperty#value_to_string} called with this same flag).
|
2005
|
-
# @return [
|
2046
|
+
# @return [Boolean]
|
2006
2047
|
def string_to_value(variant, text, argFlags=0) end
|
2007
2048
|
|
2008
2049
|
# Events received by editor widgets are processed here.
|
@@ -2015,10 +2056,10 @@ module Wx::PG
|
|
2015
2056
|
# return true if any changes in value should be reported.
|
2016
2057
|
#
|
2017
2058
|
# - If property uses choice control, and displays a dialog on some choice items, then it is preferred to display that dialog in IntToValue instead of OnEvent.
|
2018
|
-
# @param propgrid [Wx::PropertyGrid]
|
2059
|
+
# @param propgrid [Wx::PG::PropertyGrid]
|
2019
2060
|
# @param wnd_primary [Wx::Window]
|
2020
2061
|
# @param event [Wx::Event]
|
2021
|
-
# @return [
|
2062
|
+
# @return [Boolean]
|
2022
2063
|
def on_event(propgrid, wnd_primary, event) end
|
2023
2064
|
|
2024
2065
|
# Reimplement this member function to add special handling for attributes of this property.
|
@@ -2027,13 +2068,15 @@ module Wx::PG
|
|
2027
2068
|
# To actually set property attribute values from the application, use {Wx::PG::PGProperty#set_attribute} instead.
|
2028
2069
|
# @param name [String]
|
2029
2070
|
# @param value [Wx::Variant]
|
2030
|
-
# @return [
|
2071
|
+
# @return [Boolean]
|
2031
2072
|
def do_set_attribute(name, value) end
|
2032
2073
|
|
2033
2074
|
# Returns size of the custom painted image in front of property.
|
2034
2075
|
# This method must be overridden to return non-default value if OnCustomPaint is to be called.
|
2035
2076
|
#
|
2036
|
-
# - Default behaviour is to return {size(0,0)}, which means no image
|
2077
|
+
# - Default behaviour is to return {size(0,0)}, which means no image.
|
2078
|
+
# - Default image width or height is indicated with dimension -1.
|
2079
|
+
# - You can also return {Wx::PG::PG_DEFAULT_IMAGE_SIZE} which equals {Wx::DEFAULT_SIZE}.
|
2037
2080
|
# @param item [Integer] Normally -1, but can be an index to the property's list of items.
|
2038
2081
|
# @return [Wx::Size]
|
2039
2082
|
def on_measure_image(item) end
|
@@ -2042,32 +2085,19 @@ module Wx::PG
|
|
2042
2085
|
# If property's {Wx::PG::SystemColourProperty#on_measure_image} returns size that has height != 0 but less than row height ( < 0 has special meanings), {Wx::PG::PropertyGrid} calls this method to draw a custom image in a limited area in front of the editor control or value text/graphics, and if control has drop-down list, then the image is drawn there as well (even in the case {Wx::PG::SystemColourProperty#on_measure_image} returned higher height than row height).
|
2043
2086
|
# NOTE: Following applies when {Wx::PG::SystemColourProperty#on_measure_image} returns a "flexible" height ( using <code>wxPG_FLEXIBLE_SIZE(W,H)</code> macro), which implies variable height items: If (rect.x+rect.width) is < 0, then this is a measure item call, which means that dc is invalid and only thing that should be done is to set paintdata.m_drawnHeight to the height of the image of item at index paintdata.m_choiceItem. This call may be done even as often as once every drop-down popup show.
|
2044
2087
|
#
|
2045
|
-
# - You can actually exceed rect width, but if you do so then paintdata.m_drawnWidth must be set to the full width drawn in pixels
|
2088
|
+
# - You can actually exceed rect width, but if you do so then paintdata.m_drawnWidth must be set to the full width drawn in pixels.
|
2089
|
+
# - Due to technical reasons, rect's height will be default even if custom height was reported during measure call.
|
2090
|
+
# - Brush is guaranteed to be default background colour. It has been already used to clear the background of area being painted. It can be modified.
|
2091
|
+
# - Pen is guaranteed to be 1-wide 'black' (or whatever is the proper colour) pen for drawing framing rectangle. It can be changed as well.
|
2046
2092
|
# @see Wx::PG::SystemColourProperty#value_to_string
|
2047
2093
|
# @param dc [Wx::DC] {Wx::DC} to paint on.
|
2048
2094
|
# @param rect [Wx::Rect] Box reserved for custom graphics. Includes surrounding rectangle, if any. If x+width is < 0, then this is a measure item call (see above).
|
2049
|
-
# @param paintdata [Wx::PGPaintData] {Wx::PG::PGPaintData} structure with much useful data about painted item.
|
2050
|
-
# ```
|
2051
|
-
# struct wxPGPaintData
|
2052
|
-
# {
|
2053
|
-
# // wxPropertyGrid.
|
2054
|
-
# const wxPropertyGrid* m_parent;
|
2055
|
-
#
|
2056
|
-
# // Normally -1, otherwise index to drop-down list item that has to be drawn.
|
2057
|
-
# int m_choiceItem;
|
2058
|
-
#
|
2059
|
-
# // Set to drawn width in OnCustomPaint (optional).
|
2060
|
-
# int m_drawnWidth;
|
2061
|
-
#
|
2062
|
-
# // In a measure item call, set this to the height of item at m_choiceItem index
|
2063
|
-
# int m_drawnHeight;
|
2064
|
-
# };
|
2065
|
-
# ```
|
2095
|
+
# @param paintdata [Wx::PG::PGPaintData] {Wx::PG::PGPaintData} structure with much useful data about painted item.
|
2066
2096
|
# @return [void]
|
2067
2097
|
def on_custom_paint(dc, rect, paintdata) end
|
2068
2098
|
|
2069
2099
|
# @param variant [Wx::Variant]
|
2070
|
-
# @return [
|
2100
|
+
# @return [Boolean]
|
2071
2101
|
def query_colour_from_user(variant) end
|
2072
2102
|
|
2073
2103
|
# Default is to use {Wx::SystemSettings.get_colour(index)}.
|
@@ -2078,7 +2108,7 @@ module Wx::PG
|
|
2078
2108
|
alias_method :colour, :get_colour
|
2079
2109
|
|
2080
2110
|
# @param pVariant [Wx::Variant]
|
2081
|
-
# @return [Wx::ColourPropertyValue]
|
2111
|
+
# @return [Wx::PG::ColourPropertyValue]
|
2082
2112
|
def get_val(pVariant=nil) end
|
2083
2113
|
alias_method :val, :get_val
|
2084
2114
|
|
@@ -2102,7 +2132,7 @@ module Wx::PG
|
|
2102
2132
|
|
2103
2133
|
protected
|
2104
2134
|
|
2105
|
-
# @param v [Wx::ColourPropertyValue]
|
2135
|
+
# @param v [Wx::PG::ColourPropertyValue]
|
2106
2136
|
# @return [Wx::Variant]
|
2107
2137
|
def do_translate_val(v) end
|
2108
2138
|
|
@@ -2117,7 +2147,7 @@ module Wx::PG
|
|
2117
2147
|
# @param label [String]
|
2118
2148
|
# @param name [String]
|
2119
2149
|
# @param value [Wx::Colour,String,Symbol]
|
2120
|
-
# @return [ColourProperty]
|
2150
|
+
# @return [Wx::PG::ColourProperty]
|
2121
2151
|
def initialize(label=Wx::PG::PG_LABEL, name=Wx::PG::PG_LABEL, value=Wx::WHITE) end
|
2122
2152
|
|
2123
2153
|
# Converts property value into a text representation.
|
@@ -2145,7 +2175,7 @@ module Wx::PG
|
|
2145
2175
|
|
2146
2176
|
protected
|
2147
2177
|
|
2148
|
-
# @param v [Wx::ColourPropertyValue]
|
2178
|
+
# @param v [Wx::PG::ColourPropertyValue]
|
2149
2179
|
# @return [Wx::Variant]
|
2150
2180
|
def do_translate_val(v) end
|
2151
2181
|
|
@@ -2193,20 +2223,20 @@ module Wx::PG
|
|
2193
2223
|
def colour_=(val); end
|
2194
2224
|
|
2195
2225
|
# @overload initialize()
|
2196
|
-
# @return [ColourPropertyValue]
|
2226
|
+
# @return [Wx::PG::ColourPropertyValue]
|
2197
2227
|
# @overload initialize(v)
|
2198
|
-
# @param v [Wx::ColourPropertyValue]
|
2199
|
-
# @return [ColourPropertyValue]
|
2228
|
+
# @param v [Wx::PG::ColourPropertyValue]
|
2229
|
+
# @return [Wx::PG::ColourPropertyValue]
|
2200
2230
|
# @overload initialize(colour)
|
2201
2231
|
# @param colour [Wx::Colour,String,Symbol]
|
2202
|
-
# @return [ColourPropertyValue]
|
2232
|
+
# @return [Wx::PG::ColourPropertyValue]
|
2203
2233
|
# @overload initialize(type)
|
2204
2234
|
# @param type [Integer]
|
2205
|
-
# @return [ColourPropertyValue]
|
2235
|
+
# @return [Wx::PG::ColourPropertyValue]
|
2206
2236
|
# @overload initialize(type, colour)
|
2207
2237
|
# @param type [Integer]
|
2208
2238
|
# @param colour [Wx::Colour,String,Symbol]
|
2209
|
-
# @return [ColourPropertyValue]
|
2239
|
+
# @return [Wx::PG::ColourPropertyValue]
|
2210
2240
|
def initialize(*args) end
|
2211
2241
|
|
2212
2242
|
# @param type [Integer]
|