# :stopdoc: # This file is automatically generated by the WXRuby3 documentation # generator. Do not alter this file. # :startdoc: module Wx::GRID # This event class contains information about a row/column resize event. # ### Events using this class # # The following event-handler methods redirect the events to member method or handler blocks for {Wx::GRID::GridSizeEvent} events. # Event handler methods: # # - {Wx::EvtHandler#evt_grid_cmd_col_size}(id, meth = nil, &block): The user resized a column, corresponds to {Wx::GRID::EVT_GRID_COL_SIZE} event type. # # - {Wx::EvtHandler#evt_grid_cmd_row_size}(id, meth = nil, &block): The user resized a row, corresponds to {Wx::GRID::EVT_GRID_ROW_SIZE} event type. # # - {Wx::EvtHandler#evt_grid_row_auto_size}(meth = nil, &block): This event is sent when a row must be resized to its best size, e.g. when the user double clicks the row divider. The default implementation simply resizes the row to fit the row label (but not its contents as this could be too slow for big grids). This macro corresponds to {Wx::GRID::EVT_GRID_ROW_AUTO_SIZE} event type and is new since wxWidgets 3.1.7. # # - {Wx::EvtHandler#evt_grid_col_size}(meth = nil, &block): Same as EVT_GRID_CMD_COL_SIZE() but uses {Wx::StandardID::ID_ANY} id. # # - {Wx::EvtHandler#evt_grid_col_auto_size}(meth = nil, &block): This event is sent when a column must be resized to its best size, e.g. when the user double clicks the column divider. The default implementation simply resizes the column to fit the column label (but not its contents as this could be too slow for big grids). This macro corresponds to {Wx::GRID::EVT_GRID_COL_AUTO_SIZE} event type and is new since wxWidgets 2.9.5. # # - {Wx::EvtHandler#evt_grid_row_size}(meth = nil, &block): Same as EVT_GRID_CMD_ROW_SIZE() but uses {Wx::StandardID::ID_ANY} id. # # Category: Grid Related Classes, {Wx::Events} # # @wxrb_require USE_GRID class GridSizeEvent < NotifyEvent # @overload initialize() # Default constructor. # @return [Wx::GRID::GridSizeEvent] # @overload initialize(id, type, obj, rowOrCol=-1, x=-1, y=-1, kbd=(Wx::KeyboardState.new())) # Constructor for initializing all event attributes. # @param id [Integer] # @param type [Wx::Slider::EventType] # @param obj [Wx::Object] # @param rowOrCol [Integer] # @param x [Integer] # @param y [Integer] # @param kbd [Wx::KeyboardState] # @return [Wx::GRID::GridSizeEvent] def initialize(*args) end # Returns true if the Alt key was down at the time of the event. # @return [Boolean] def alt_down; end # Returns true if the Control key was down at the time of the event. # @return [Boolean] def control_down; end # Position in pixels at which the event occurred. # @return [Wx::Point] def get_position; end alias_method :position, :get_position # Row or column at that was resized. # @return [Integer] def get_row_or_col; end alias_method :row_or_col, :get_row_or_col # Returns true if the Meta key was down at the time of the event. # @return [Boolean] def meta_down; end # Returns true if the Shift key was down at the time of the event. # @return [Boolean] def shift_down; end end # GridSizeEvent end