SECGridBagConstraints Class
class SECGridBagConstraints
GridBag configuration constraints
Defined in: GRIDBAG.H
See Also
Class Members
Attributes
enum AnchorType
AnchorType - controls alignment of node inside a gridbag cell
enum FillType
FillType - controls node stretching inside a gridbag cell
int m_nGridX
Cell x position, or use 'GB_RELATIVE' for relative to last
int m_nGridY
Cell y position, or use 'GB_RELATIVE' for relative to last
int m_nGridWidth
Cell width, or use 'GB_REMAINDER' for remainder of row
int m_nGridHeight
Cell height, or use 'GB_REMAINDER' for remainder of column
float m_fWeightX
Horizontal weight to be applied to this cell, controls rate of column width change
float m_fWeightY
Vertical weight to be applied to this cell, controls rate of row height change
AnchorType m_Anchor
Anchor type for this cell, determines any special alignment considerations within the cell
FillType m_Fill
Fill type for this cell, determines any special stretching of the node to fit the cell
int m_nIPADx
Internal padding to width of node. Internal padding adds to the configured minimum width of the node. Like Java, this pads both sides, so actual pad is twice this value.
int m_nIPADy
Internal padding to height of node. Internal padding adds to the configured minimum height of the node. Like Java, this pads both sides, so actual pad is twice this value.
int m_nInsetL
Left inset of node within cell. This is just like a left margin within the cell.
int m_nInsetR
Right inset of node within cell. This is just like a right margin within the cell.
int m_nInsetT
Top inset of node within cell. This is just like a top margin within the cell.
int m_nInsetB
Bottom inset of node within cell. This is just like a bottom margin within the cell.
Operations
void RestoreDefaults()
Reset all attributes to default values
void ClearInsets()
Reset all the inset values to zero.
void StartNextRow()
Increment m_nGridX and m_nGridY to start next row
void StartNextCol()
Increment m_nGridX and m_nGridY to start next col