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 than 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.
2739 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2739 def initialize(*args) end |
Instance Method Details
#==(other) ⇒ Boolean
Equality operator.
2838 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2838 def ==(other) end |
#canonicalize ⇒ Wx::GRID::GridBlockCoords
Return the canonicalized block where top left coordinates is less than bottom right coordinates.
2797 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2797 def canonicalize; end |
#contains(cell) ⇒ Boolean #contains(other) ⇒ Boolean
2818 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2818 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.
2826 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2826 def difference(other, splitOrientation) end |
#get_bottom_right ⇒ Array(Integer, Integer) Also known as: bottom_right
Return the coordinates of the bottom right corner.
2792 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2792 def get_bottom_right; end |
#get_bottom_row ⇒ Integer Also known as: bottom_row
Return the row of the bottom right corner.
2765 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2765 def get_bottom_row; end |
#get_left_col ⇒ Integer Also known as: left_col
Return the column of the left top corner.
2754 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2754 def get_left_col; end |
#get_right_col ⇒ Integer Also known as: right_col
Return the column of the bottom right corner.
2776 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2776 def get_right_col; end |
#get_top_left ⇒ Array(Integer, Integer) Also known as: top_left
Return the coordinates of the top left corner.
2787 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2787 def get_top_left; end |
#get_top_row ⇒ Integer Also known as: top_row
Return the row of the left top corner.
2743 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2743 def get_top_row; end |
#intersects(other) ⇒ Boolean
Whether the blocks intersect.
true, if the block intersects with the other, false, otherwise.
2804 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2804 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.
2771 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2771 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.
2760 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2760 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.
2782 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2782 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.
2749 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2749 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.
2833 |
# File 'lib/wx/doc/gen/grid/grid_ctrl.rb', line 2833 def sym_difference(other) end |