![]() | InDesign SDK 20.5 |
#include <TableTypes.h>
Public Types | |
| typedef base_type | data_type |
Public Member Functions | |
| GridArea () | |
| GridArea (GridCoord topRow, GridCoord leftCol, GridCoord bottomRow, GridCoord right) | |
| GridArea (const GridAddress &topLeftElement, const GridAddress &bottomRightElement) | |
| GridArea (const GridAddress &anchor, const GridSpan &span) | |
| GridArea (const RowRange &rows, const ColRange &cols) | |
| void | Set (GridCoord topRow, GridCoord leftCol, GridCoord bottomRow, GridCoord right) |
| GridAddress | GetTopLeft () const |
| GridAddress | GetBottomRight () const |
| GridAddress | GetTopLeftElem () const |
| GridAddress | GetTopRightElem () const |
| GridAddress | GetBottomLeftElem () const |
| GridAddress | GetBottomRightElem () const |
| void | SetTopLeft (const GridAddress &tl) |
| void | SetBottomRight (const GridAddress &br) |
| RowRange | GetRows () const |
| ColRange | GetCols () const |
| GridSpan | GetSpan () const |
| int32 | Width () const |
| int32 | Height () const |
| bool16 | IsEmpty () const |
| GridArea | operator& (const GridArea &rhs) const |
| GridArea | operator| (const GridArea &rhs) const |
| GridArea & | operator&= (const GridArea &rhs) |
| GridArea & | operator|= (const GridArea &rhs) |
| bool16 | operator== (const GridArea &rhs) const |
| bool16 | operator!= (const GridArea &rhs) const |
| bool16 | Normalize () |
| bool16 | IsNormalized () const |
| bool16 | Contains (const GridAddress &element) const |
| bool16 | Contains (const GridArea &area) const |
| bool16 | Intersects (const GridArea &area) const |
| void | ReadWrite (IPMStream *stream) |
Public Attributes | |
| GridCoord | topRow |
| GridCoord | leftCol |
| GridCoord | bottomRow |
| GridCoord | rightCol |
Represents a rectangle of grid elements in the table model. The bottom and right elements are not included to allow for an empty GridArea.
The best way to think of this is that the GridCoord's refer to the vertices instead of cells. The cells are the area inside the vertices. For example, the first cell's topLeft is (0, 0) and the bottom right is (1, 1).
| typedef base_type GridArea::data_type |
For K2Vector, specifying that this is a data class that does not have specialised copy semantics. A shallow field-wise copy is sufficient to clone an instance of this class.
| inline |
No-args constructor
| inline |
| topRow | |
| leftCol | |
| bottomRow | |
| right |
| inline |
Constructor.
| topLeftElement | specifies a top left element in the underlying grid for this area |
| bottomRightElement | specifies the bottom right element in the underlying grid that is in the row just below and just right of the area to cover in the underlying grid. |
| inline |
Constructor.
| anchor | specifies location of the top-left of the new area |
| span | specifies the height and width of the new area |
| inline |
Query to see if a particular location is within the area covered by this element.
| element | location of another element |
| inline |
Query whether this area is able to wholly contain the specified area
| area | specifies area for the query |
| inline |
Location of the bottom left element in the underlying grid that is contained within this area.
| inline |
This query can be thought of as either; returning the location of the element in the underlying grid that is just below and right of the area covered in the grid, or as the location of the lower right vertex of this area.
| inline |
Location of the bottom right element contained in this area this area in the underlying grid.
| inline |
Query for the columns covered by this area.
| inline |
Query for the rows covered by this area.
| inline |
| inline |
Location of the top-left element of this area in the underlying grid.
| inline |
Location of the top-right element of this area in the underlying grid.
| inline |
| inline |
Query whether this area has an intersection with the specified area
| inline |
| inline |
Query whether this object conforms to rule that the top row is indeed above the bottom row, and the left column is indeed to the left of the rightmost column.
| bool16 GridArea::Normalize | ( | ) |
Ensures that topRow <= bottomRow and leftCol <= right. Returns true if 'this' was changed. $$$ does this really make sense?
| inline |
Overload of equality relational operator. Semantics: two GridAreas are 'not-equal' if any vertex locations differ.
| rhs | specifies another area to be compared with this |
Overload of operator bitwise-and, to mean 'intersect'.
| rhs | area to take intersection with |
Overload of operator bitwise-and assignment. Semantics; perform an intersection of this area with rhs, followed by assignment to the result.
| inline |
Overload of equality relational operator. Semantics: two GridAreas are equal if and only if they have identical vertex locations.
| rhs | specifies another area to be compared with this |
Overload of operator bitwise-or, to mean 'union'.
| rhs | area to take union with |
Overload of operator bitwise-or assignment. Semantics; perform union of this area with rhs, followed by assignment to result.
| inline |
Persistence-related method for instance to save or read instance data from given stream.
| stream | stream to read from or write to depending on stream's state |
| inline |
Mutator for the bottom right vertex of this region.
| br | specifies the location of the new bottom right vertex for this region. |
| inline |
Mutator for the top vertex of this region.
| tl | specifies location for new top left vertex for this area |
| inline |
| GridCoord GridArea::bottomRow |
Represents the row co-ordinate for the bottom two vertices of this area
| GridCoord GridArea::leftCol |
Represents the column co-ordinate for the two lefthand vertices of this area.
| GridCoord GridArea::rightCol |
Represents the column co-ordinate for the righmost two vertices of this area
| GridCoord GridArea::topRow |
Represents the row co-ordinate for the top two vertices of this area.