git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20537
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
- enum wxAttrOverflowMode
- {
- Unset = -1,
- Overflow,
- SingleCell
- };
-
// ctors
wxGridCellAttr(wxGridCellAttr *attrDefault = NULL)
{
// ctors
wxGridCellAttr(wxGridCellAttr *attrDefault = NULL)
{
bool HasRenderer() const { return m_renderer != NULL; }
bool HasEditor() const { return m_editor != NULL; }
bool HasReadWriteMode() const { return m_isReadOnly != Unset; }
bool HasRenderer() const { return m_renderer != NULL; }
bool HasEditor() const { return m_editor != NULL; }
bool HasReadWriteMode() const { return m_isReadOnly != Unset; }
- bool HasOverflowMode() const { return m_overflow != Unset; }
+ bool HasOverflowMode() const { return m_overflow != UnsetOverflow; }
const wxColour& GetTextColour() const;
const wxColour& GetBackgroundColour() const;
const wxColour& GetTextColour() const;
const wxColour& GetBackgroundColour() const;
void GetAlignment(int *hAlign, int *vAlign) const;
void GetSize(int *num_rows, int *num_cols) const;
bool GetOverflow() const
void GetAlignment(int *hAlign, int *vAlign) const;
void GetSize(int *num_rows, int *num_cols) const;
bool GetOverflow() const
- { return m_overflow != wxGridCellAttr::SingleCell; }
+ { return m_overflow != SingleCell; }
wxGridCellRenderer *GetRenderer(wxGrid* grid, int row, int col) const;
wxGridCellEditor *GetEditor(wxGrid* grid, int row, int col) const;
wxGridCellRenderer *GetRenderer(wxGrid* grid, int row, int col) const;
wxGridCellEditor *GetEditor(wxGrid* grid, int row, int col) const;
+ enum wxAttrOverflowMode
+ {
+ UnsetOverflow = -1,
+ Overflow,
+ SingleCell
+ };
+
// the common part of all ctors
void Init(wxGridCellAttr *attrDefault = NULL);
// the common part of all ctors
void Init(wxGridCellAttr *attrDefault = NULL);
m_attrkind = wxGridCellAttr::Cell;
m_sizeRows = m_sizeCols = 1;
m_attrkind = wxGridCellAttr::Cell;
m_sizeRows = m_sizeCols = 1;
+ m_overflow = UnsetOverflow;
SetDefAttr(attrDefault);
}
SetDefAttr(attrDefault);
}