Class: Wx::GRID::GridRangeSelectEvent
- Inherits:
-
NotifyEvent
- Object
- Object
- Event
- CommandEvent
- NotifyEvent
- Wx::GRID::GridRangeSelectEvent
- Defined in:
- lib/wx/doc/gen/grid/grid_range_select_event.rb
Overview
Events of this class notify about a range of cells being selected.
When the user uses the mouse for selection, one or more SELECTING events are generated first, with SELECTED event generated at the end, when selection is final. This allows the application to handle either the SELECTING events if it needs to update its state in real-time, as the selection changes, or just the final SELECTED event, if updating its state on every selection change would be too time-consuming. Note that if the user performs the selection from keyboard, SELECTING events are not generated at all, so SELECTED event still must be handled. Finally, contrary to most of the other events with the name ending in “ing”, SELECTING event can not be vetoed.
Events using this class
The following event-handler methods redirect the events to member method or handler blocks for GridRangeSelectEvent events. Event handler methods:
-
EvtHandler#evt_grid_range_selecting(meth = nil, &block): The user is selecting a group of contiguous cells. Processes a EVT_GRID_RANGE_SELECTING event type. This event is available in wxWidgets 3.1.5 and later only.
-
EvtHandler#evt_grid_cmd_range_selecting(id, meth = nil, &block): The user is selecting a group of contiguous cells; variant taking a window identifier. Processes a EVT_GRID_RANGE_SELECTING event type. This event is available in wxWidgets 3.1.5 and later only.
-
EvtHandler#evt_grid_range_selected(meth = nil, &block): The user selected a group of contiguous cells. Processes a EVT_GRID_RANGE_SELECTED event type. This event is available in wxWidgets 3.1.5 and later only and was called EVT_GRID_RANGE_SELECT in the previous versions.
-
EvtHandler#evt_grid_cmd_range_selected(id, meth = nil, &block): The user selected a group of contiguous cells; variant taking a window identifier. Processes a EVT_GRID_RANGE_SELECTED event type. This event is available in wxWidgets 3.1.5 and later only and was called EVT_GRID_CMD_RANGE_SELECT in the previous versions.
Category: Grid Related Classes, Events
Instance Method Summary collapse
-
#alt_down ⇒ Boolean
Returns true if the Alt key was down at the time of the event.
-
#control_down ⇒ Boolean
Returns true if the Control key was down at the time of the event.
-
#get_bottom_right_coords ⇒ Array(Integer, Integer)
(also: #bottom_right_coords)
Top left corner of the rectangular area that was (de)selected.
-
#get_bottom_row ⇒ Integer
(also: #bottom_row)
Bottom row of the rectangular area that was (de)selected.
-
#get_left_col ⇒ Integer
(also: #left_col)
Left column of the rectangular area that was (de)selected.
-
#get_right_col ⇒ Integer
(also: #right_col)
Right column of the rectangular area that was (de)selected.
-
#get_top_left_coords ⇒ Array(Integer, Integer)
(also: #top_left_coords)
Top left corner of the rectangular area that was (de)selected.
-
#get_top_row ⇒ Integer
(also: #top_row)
Top row of the rectangular area that was (de)selected.
-
#initialize(*args) ⇒ GridRangeSelectEvent
constructor
A new instance of GridRangeSelectEvent.
-
#meta_down ⇒ Boolean
Returns true if the Meta key was down at the time of the event.
-
#selecting ⇒ Boolean
Returns true if the area was selected, false otherwise.
-
#shift_down ⇒ Boolean
Returns true if the Shift key was down at the time of the event.
Methods inherited from NotifyEvent
Methods inherited from CommandEvent
#client_data, #client_data=, #get_client_data, #get_client_object, #get_int, #get_selection, #get_string, #is_checked, #is_selection, #set_client_data, #set_client_object, #set_extra_long, #set_int, #set_string
Methods inherited from Event
#clone, #get_event_category, #get_event_object, #get_event_type, #get_id, #get_skipped, #get_timestamp, #is_command_event, #resume_propagation, #set_event_object, #set_event_type, #set_id, #set_timestamp, #should_propagate, #skip, #stop_propagation
Methods inherited from Object
#clone, #dup, #is_same_as, #un_share
Constructor Details
#initialize ⇒ Wx::GRID::GridRangeSelectEvent #initialize(id, type, obj, topLeft, bottomRight, sel = true, kbd = (Wx::KeyboardState.new())) ⇒ Wx::GRID::GridRangeSelectEvent
Returns a new instance of GridRangeSelectEvent.
47 |
# File 'lib/wx/doc/gen/grid/grid_range_select_event.rb', line 47 def initialize(*args) end |
Instance Method Details
#alt_down ⇒ Boolean
Returns true if the Alt key was down at the time of the event.
51 |
# File 'lib/wx/doc/gen/grid/grid_range_select_event.rb', line 51 def alt_down; end |
#control_down ⇒ Boolean
Returns true if the Control key was down at the time of the event.
55 |
# File 'lib/wx/doc/gen/grid/grid_range_select_event.rb', line 55 def control_down; end |
#get_bottom_right_coords ⇒ Array(Integer, Integer) Also known as: bottom_right_coords
Top left corner of the rectangular area that was (de)selected.
59 |
# File 'lib/wx/doc/gen/grid/grid_range_select_event.rb', line 59 def get_bottom_right_coords; end |
#get_bottom_row ⇒ Integer Also known as: bottom_row
Bottom row of the rectangular area that was (de)selected.
64 |
# File 'lib/wx/doc/gen/grid/grid_range_select_event.rb', line 64 def get_bottom_row; end |
#get_left_col ⇒ Integer Also known as: left_col
Left column of the rectangular area that was (de)selected.
69 |
# File 'lib/wx/doc/gen/grid/grid_range_select_event.rb', line 69 def get_left_col; end |
#get_right_col ⇒ Integer Also known as: right_col
Right column of the rectangular area that was (de)selected.
74 |
# File 'lib/wx/doc/gen/grid/grid_range_select_event.rb', line 74 def get_right_col; end |
#get_top_left_coords ⇒ Array(Integer, Integer) Also known as: top_left_coords
Top left corner of the rectangular area that was (de)selected.
79 |
# File 'lib/wx/doc/gen/grid/grid_range_select_event.rb', line 79 def get_top_left_coords; end |
#get_top_row ⇒ Integer Also known as: top_row
Top row of the rectangular area that was (de)selected.
84 |
# File 'lib/wx/doc/gen/grid/grid_range_select_event.rb', line 84 def get_top_row; end |
#meta_down ⇒ Boolean
Returns true if the Meta key was down at the time of the event.
89 |
# File 'lib/wx/doc/gen/grid/grid_range_select_event.rb', line 89 def ; end |
#selecting ⇒ Boolean
Returns true if the area was selected, false otherwise.
93 |
# File 'lib/wx/doc/gen/grid/grid_range_select_event.rb', line 93 def selecting; end |
#shift_down ⇒ Boolean
Returns true if the Shift key was down at the time of the event.
97 |
# File 'lib/wx/doc/gen/grid/grid_range_select_event.rb', line 97 def shift_down; end |