Class: Wx::GRID::GridBlockCoords
- Inherits:
-
Object
- Object
- Wx::GRID::GridBlockCoords
- Defined in:
- lib/wx/doc/gen/grid/grid_ctrl.rb
Overview
This class is untracked and should not be derived from nor instances extended!
Represents coordinates of a block of cells in the grid.
An object of this class contains coordinates of the left top and the bottom right corners of a block.
Instance Method Summary collapse
-
#==(other) ⇒ Boolean
Equality operator.
-
#canonicalize ⇒ Wx::GRID::GridBlockCoords
Return the canonicalized block where top left coordinates is less then bottom right coordinates.
- #contains(*args) ⇒ Object
-
#difference(other, splitOrientation) ⇒ Wx::GRID::GridBlockDiffResult
Calculates the result blocks by subtracting the other block from this block.
-
#get_bottom_right ⇒ Array(Integer, Integer)
(also: #bottom_right)
Return the coordinates of the bottom right corner.
-
#get_bottom_row ⇒ Integer
(also: #bottom_row)
Return the row of the bottom right corner.
-
#get_left_col ⇒ Integer
(also: #left_col)
Return the column of the left top corner.
-
#get_right_col ⇒ Integer
(also: #right_col)
Return the column of the bottom right corner.
-
#get_top_left ⇒ Array(Integer, Integer)
(also: #top_left)
Return the coordinates of the top left corner.
-
#get_top_row ⇒ Integer
(also: #top_row)
Return the row of the left top corner.
-
#initialize(*args) ⇒ GridBlockCoords
constructor
A new instance of GridBlockCoords.
-
#intersects(other) ⇒ Boolean
Whether the blocks intersect.
-
#set_bottom_row(row) ⇒ void
(also: #bottom_row=)
Set the row of the bottom right corner.
-
#set_left_col(col) ⇒ void
(also: #left_col=)
Set the column of the left top corner.
-
#set_right_col(col) ⇒ void
(also: #right_col=)
Set the column of the bottom right corner.
-
#set_top_row(row) ⇒ void
(also: #top_row=)
Set the row of the left top corner.
-
#sym_difference(other) ⇒ Wx::GRID::GridBlockDiffResult
Calculates the symmetric difference of the blocks.
Constructor Details
#initialize ⇒ Wx::GRID::GridBlockCoords #initialize(topRow, leftCol, bottomRow, rightCol) ⇒ Wx::GRID::GridBlockCoords
Returns a new instance of GridBlockCoords.
2633 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2633 def initialize(*args) end |
Instance Method Details
#==(other) ⇒ Boolean
Equality operator.
2732 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2732 def ==(other) end |
#canonicalize ⇒ Wx::GRID::GridBlockCoords
Return the canonicalized block where top left coordinates is less then bottom right coordinates.
2691 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2691 def canonicalize; end |
#contains(cell) ⇒ Boolean #contains(other) ⇒ Boolean
2712 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2712 def contains(*args) end |
#difference(other, splitOrientation) ⇒ Wx::GRID::GridBlockDiffResult
Calculates the result blocks by subtracting the other block from this block.
Up to 4 blocks. If block doesn’t exist in the result, it has value of Wx::GridNoBlockCoords.
2720 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2720 def difference(other, splitOrientation) end |
#get_bottom_right ⇒ Array(Integer, Integer) Also known as: bottom_right
Return the coordinates of the bottom right corner.
2686 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2686 def get_bottom_right; end |
#get_bottom_row ⇒ Integer Also known as: bottom_row
Return the row of the bottom right corner.
2659 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2659 def get_bottom_row; end |
#get_left_col ⇒ Integer Also known as: left_col
Return the column of the left top corner.
2648 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2648 def get_left_col; end |
#get_right_col ⇒ Integer Also known as: right_col
Return the column of the bottom right corner.
2670 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2670 def get_right_col; end |
#get_top_left ⇒ Array(Integer, Integer) Also known as: top_left
Return the coordinates of the top left corner.
2681 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2681 def get_top_left; end |
#get_top_row ⇒ Integer Also known as: top_row
Return the row of the left top corner.
2637 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2637 def get_top_row; end |
#intersects(other) ⇒ Boolean
Whether the blocks intersect.
true, if the block intersects with the other, false, otherwise.
2698 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2698 def intersects(other) end |
#set_bottom_row(row) ⇒ void Also known as: bottom_row=
This method returns an undefined value.
Set the row of the bottom right corner.
2665 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2665 def set_bottom_row(row) end |
#set_left_col(col) ⇒ void Also known as: left_col=
This method returns an undefined value.
Set the column of the left top corner.
2654 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2654 def set_left_col(col) end |
#set_right_col(col) ⇒ void Also known as: right_col=
This method returns an undefined value.
Set the column of the bottom right corner.
2676 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2676 def set_right_col(col) end |
#set_top_row(row) ⇒ void Also known as: top_row=
This method returns an undefined value.
Set the row of the left top corner.
2643 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2643 def set_top_row(row) end |
#sym_difference(other) ⇒ Wx::GRID::GridBlockDiffResult
Calculates the symmetric difference of the blocks.
Up to 4 blocks. If block doesn’t exist in the result, it has value of Wx::GridNoBlockCoords.
2727 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2727 def sym_difference(other) end |