X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/af49c4b8a2d3553e733e71c7dd3911881f4c1a2a..52c71b808f1c7fd161bb0bc5082683320f15dbb2:/include/wx/listbase.h diff --git a/include/wx/listbase.h b/include/wx/listbase.h index a1d85937ff..d7399039a0 100644 --- a/include/wx/listbase.h +++ b/include/wx/listbase.h @@ -214,18 +214,29 @@ public: void ClearAttributes() { if ( m_attr ) { delete m_attr; m_attr = NULL; } } // setters - void SetMask(long mask) { m_mask = mask; } - void SetId(long id) { m_itemId = id; } - void SetColumn(int col) { m_col = col; } - void SetState(long state) { m_state = state; m_stateMask |= state; } - void SetStateMask(long stateMask) { m_stateMask = stateMask; } - void SetText(const wxString& text) { m_text = text; } - void SetImage(int image) { m_image = image; } - void SetData(long data) { m_data = data; } - void SetData(void *data) { m_data = (long)data; } - - void SetWidth(int width) { m_width = width; } - void SetAlign(wxListColumnFormat align) { m_format = align; } + void SetMask(long mask) + { m_mask = mask; } + void SetId(long id) + { m_itemId = id; } + void SetColumn(int col) + { m_col = col; } + void SetState(long state) + { m_mask |= wxLIST_MASK_STATE; m_state = state; m_stateMask |= state; } + 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_mask |= wxLIST_MASK_WIDTH; m_width = width; } + void SetAlign(wxListColumnFormat align) + { m_mask |= wxLIST_MASK_FORMAT; m_format = align; } void SetTextColour(const wxColour& colText) { Attributes().SetTextColour(colText); }