#include <wx/grid.h>
Allows to specify the behaviour when the cell contents doesn't fit into its allotted space.
Objects of this class are used with wxGridCellAttr::SetFitMode() and wxGrid::SetDefaultCellFitMode() and wxGrid::SetCellFitMode() functions and allow to specify what should happen if the cell contents doesn't fit into the available space. The possibilities are:
...), putting the ellipsis at the end by default, but possibly at the beginning or in the middle.The default behaviour is to overflow, use wxGrid::SetDefaultCellFitMode() to change this, for example:
Objects of this class are created using static functions instead of constructors for better readability and can't be changed after creating them except by using the assignment operator.
<>< =''>:</>&;&;< =''>\ </></>
Public Member Functions | |
wxGridFitMode () | |
Default constructor creates an object not specifying any behaviour. More... | |
bool | IsSpecified () const |
Return true if the object specifies some particular behaviour. More... | |
bool | IsClip () const |
Return true if the object specifies clipping behaviour. More... | |
bool | IsOverflow () const |
Return true if the object specifies overflow behaviour. More... | |
wxEllipsizeMode | GetEllipsizeMode () const |
Return ellipsize mode, possibly wxELLIPSIZE_NONE . More... | |
Static Public Member Functions | |
static wxGridFitMode | Clip () |
Pseudo-constructor for object specifying clipping behaviour. More... | |
static wxGridFitMode | Overflow () |
Pseudo-constructor for object specifying overflow behaviour. More... | |
static wxGridFitMode | Ellipsize (wxEllipsizeMode ellipsize=wxELLIPSIZE_END) |
Pseudo-constructor for object specifying ellipsize behaviour. More... | |
wxGridFitMode::wxGridFitMode | ( | ) |
Default constructor creates an object not specifying any behaviour.
This constructor is not very useful, use static methods Clip() and Overflow() below to create objects of this class instead.
|
static |
Pseudo-constructor for object specifying clipping behaviour.
|
static |
Pseudo-constructor for object specifying ellipsize behaviour.
wxEllipsizeMode wxGridFitMode::GetEllipsizeMode | ( | ) | const |
Return ellipsize mode, possibly wxELLIPSIZE_NONE
.
For the objects constructed using Ellipsize(), the same ellipsization mode as was passed to it is returned. For all the other objects, wxELLIPSIZE_NONE is.
bool wxGridFitMode::IsClip | ( | ) | const |
Return true if the object specifies clipping behaviour.
This method returns true only for the objects returned by Clip().
bool wxGridFitMode::IsOverflow | ( | ) | const |
Return true if the object specifies overflow behaviour.
This method returns true only for the objects returned by Overflow().
bool wxGridFitMode::IsSpecified | ( | ) | const |
Return true if the object specifies some particular behaviour.
This method returns false for default-constructed objects of this type only.
|
static |
Pseudo-constructor for object specifying overflow behaviour.