wxGridCellAttr
Methods
wxGridCellAttr
Default constructor.
Clone
Creates a new copy of this object.
DecRef
This class is reference counted: it is created with ref count of 1, so calling DecRef() once will delete it.
GetAlignment
Get the alignment to use for the cell with the given attribute.
GetBackgroundColour
Returns the background colour.
GetEditor
Returns the cell editor.
GetFont
Returns the font.
GetNonDefaultAlignment
Get the alignment defined by this attribute.
GetRenderer
Returns the cell renderer.
GetTextColour
Returns the text colour.
HasAlignment
Returns true if this attribute has a valid alignment set.
HasBackgroundColour
Returns true if this attribute has a valid background colour set.
HasEditor
Returns true if this attribute has a valid cell editor set.
HasFont
Returns true if this attribute has a valid font set.
HasRenderer
Returns true if this attribute has a valid cell renderer set.
HasTextColour
Returns true if this attribute has a valid text colour set.
IncRef
This class is reference counted: it is created with ref count of 1, so calling DecRef() once will delete it.
IsReadOnly
Returns true if this cell is set as read-only.
SetAlignment
Sets the alignment.
SetBackgroundColour
Sets the background colour.
SetDefAttr
SetEditor
Sets the editor to be used with the cells with this attribute.
SetFont
Sets the font.
SetReadOnly
Sets the cell as read-only.
SetRenderer
Sets the renderer to be used for cells with this attribute.
SetTextColour
Sets the text colour.
wxGridCellAttr
wxGridCellAttr
(
wxGridCellAttr
&
$attrDefault
=
NULL
)
Default constructor.
wxGridCellAttr
(
wxColour
$colText
,
wxColour
$colBack
,
wxFont
$font
,
integer
$hAlign
,
integer
$vAlign
)
Constructor specifying some of the often used attributes.
Clone
wxGridCellAttr
&
Clone
( )
Creates a new copy of this object.
DecRef
DecRef
( )
This class is reference counted: it is created with ref count of 1, so calling DecRef() once will delete it.
GetAlignment
GetAlignment
(
integer &
$hAlign
,
integer &
$vAlign
)
Get the alignment to use for the cell with the given attribute.
GetBackgroundColour
wxColour
GetBackgroundColour
( )
Returns the background colour.
GetEditor
wxGridCellEditor
&
GetEditor
(
wxGrid
$grid
,
integer
$row
,
integer
$col
)
Returns the cell editor.
GetFont
wxFont
GetFont
( )
Returns the font.
GetNonDefaultAlignment
GetNonDefaultAlignment
(
integer &
$hAlign
,
integer &
$vAlign
)
Get the alignment defined by this attribute.
GetRenderer
wxGridCellRenderer
&
GetRenderer
(
wxGrid
$grid
,
integer
$row
,
integer
$col
)
Returns the cell renderer.
GetTextColour
wxColour
GetTextColour
( )
Returns the text colour.
HasAlignment
bool
HasAlignment
( )
Returns true if this attribute has a valid alignment set.
HasBackgroundColour
bool
HasBackgroundColour
( )
Returns true if this attribute has a valid background colour set.
HasEditor
bool
HasEditor
( )
Returns true if this attribute has a valid cell editor set.
HasFont
bool
HasFont
( )
Returns true if this attribute has a valid font set.
HasRenderer
bool
HasRenderer
( )
Returns true if this attribute has a valid cell renderer set.
HasTextColour
bool
HasTextColour
( )
Returns true if this attribute has a valid text colour set.
IncRef
IncRef
( )
This class is reference counted: it is created with ref count of 1, so calling DecRef() once will delete it.
IsReadOnly
bool
IsReadOnly
( )
Returns true if this cell is set as read-only.
SetAlignment
SetAlignment
(
integer
$hAlign
,
integer
$vAlign
)
Sets the alignment.
SetBackgroundColour
SetBackgroundColour
(
wxColour
$colBack
)
Sets the background colour.
SetDefAttr
SetDefAttr
(
wxGridCellAttr
&
$defAttr
)
SetEditor
SetEditor
(
wxGridCellEditor
&
$editor
)
Sets the editor to be used with the cells with this attribute.
SetFont
SetFont
(
wxFont
$font
)
Sets the font.
SetReadOnly
SetReadOnly
(
bool
$isReadOnly
=
true
)
Sets the cell as read-only.
SetRenderer
SetRenderer
(
wxGridCellRenderer
&
$renderer
)
Sets the renderer to be used for cells with this attribute.
SetTextColour
SetTextColour
(
wxColour
$colText
)
Sets the text colour.