set wxListItem mask automatically to the correct value when a SetXXX() method is called
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18511 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -214,18 +214,29 @@ public:
|
|||||||
void ClearAttributes() { if ( m_attr ) { delete m_attr; m_attr = NULL; } }
|
void ClearAttributes() { if ( m_attr ) { delete m_attr; m_attr = NULL; } }
|
||||||
|
|
||||||
// setters
|
// setters
|
||||||
void SetMask(long mask) { m_mask = mask; }
|
void SetMask(long mask)
|
||||||
void SetId(long id) { m_itemId = id; }
|
{ m_mask = mask; }
|
||||||
void SetColumn(int col) { m_col = col; }
|
void SetId(long id)
|
||||||
void SetState(long state) { m_state = state; m_stateMask |= state; }
|
{ m_itemId = id; }
|
||||||
void SetStateMask(long stateMask) { m_stateMask = stateMask; }
|
void SetColumn(int col)
|
||||||
void SetText(const wxString& text) { m_text = text; }
|
{ m_col = col; }
|
||||||
void SetImage(int image) { m_image = image; }
|
void SetState(long state)
|
||||||
void SetData(long data) { m_data = data; }
|
{ m_mask |= wxLIST_MASK_STATE; m_state = state; m_stateMask |= state; }
|
||||||
void SetData(void *data) { m_data = (long)data; }
|
void SetStateMask(long stateMask)
|
||||||
|
{ m_stateMask = stateMask; }
|
||||||
|
void SetText(const wxString& text)
|
||||||
|
{ m_mask |= wxLIST_MASK_TEXT; m_text = text; }
|
||||||
|
void SetImage(int image)
|
||||||
|
{ m_mask |= wxLIST_MASK_IMAGE; m_image = image; }
|
||||||
|
void SetData(long data)
|
||||||
|
{ m_mask |= wxLIST_MASK_DATA; m_data = data; }
|
||||||
|
void SetData(void *data)
|
||||||
|
{ m_mask |= wxLIST_MASK_DATA; m_data = (long)data; }
|
||||||
|
|
||||||
void SetWidth(int width) { m_width = width; }
|
void SetWidth(int width)
|
||||||
void SetAlign(wxListColumnFormat align) { m_format = align; }
|
{ m_mask |= wxLIST_MASK_WIDTH; m_width = width; }
|
||||||
|
void SetAlign(wxListColumnFormat align)
|
||||||
|
{ m_mask |= wxLIST_MASK_FORMAT; m_format = align; }
|
||||||
|
|
||||||
void SetTextColour(const wxColour& colText)
|
void SetTextColour(const wxColour& colText)
|
||||||
{ Attributes().SetTextColour(colText); }
|
{ Attributes().SetTextColour(colText); }
|
||||||
|
Reference in New Issue
Block a user