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.
2618 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2618 def initialize(*args) end |
Instance Method Details
#==(other) ⇒ Boolean
Equality operator.
2717 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2717 def ==(other) end |
#canonicalize ⇒ Wx::GRID::GridBlockCoords
Return the canonicalized block where top left coordinates is less then bottom right coordinates.
2676 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2676 def canonicalize; end |
#contains(cell) ⇒ Boolean #contains(other) ⇒ Boolean
2697 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2697 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.
2705 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2705 def difference(other, splitOrientation) end |
#get_bottom_right ⇒ Array(Integer, Integer) Also known as: bottom_right
Return the coordinates of the bottom right corner.
2671 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2671 def get_bottom_right; end |
#get_bottom_row ⇒ Integer Also known as: bottom_row
Return the row of the bottom right corner.
2644 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2644 def get_bottom_row; end |
#get_left_col ⇒ Integer Also known as: left_col
Return the column of the left top corner.
2633 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2633 def get_left_col; end |
#get_right_col ⇒ Integer Also known as: right_col
Return the column of the bottom right corner.
2655 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2655 def get_right_col; end |
#get_top_left ⇒ Array(Integer, Integer) Also known as: top_left
Return the coordinates of the top left corner.
2666 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2666 def get_top_left; end |
#get_top_row ⇒ Integer Also known as: top_row
Return the row of the left top corner.
2622 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2622 def get_top_row; end |
#intersects(other) ⇒ Boolean
Whether the blocks intersect.
true, if the block intersects with the other, false, otherwise.
2683 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2683 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.
2650 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2650 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.
2639 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2639 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.
2661 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2661 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.
2628 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2628 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.
2712 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2712 def sym_difference(other) end |