A brush list is a list containing all brushes which have been created. There is only one instance of this class: wxTheBrushList. Use this object to search for a previously created brush of the desired type and create it if not already found. In some windowing systems, the brush may be a scarce resource, so it is best to reuse old resources if possible. When an application finishes, all brushes will be deleted and their resources freed, eliminating the possibility of 'memory leaks'. See wxBrush.
wxBrushList::wxBrushList
wxBrushList::AddBrush
wxBrushList::FindOrCreateBrush
wxBrushList::RemoveBrush
void wxBrushList(void)
Constructor. The application should not construct its own brush list: use the object pointer wxTheBrushList.
void AddBrush(wxBrush *brush)
Used by wxWindows to add a brush to the list, called in the brush constructor.
wxBrush * FindOrCreateBrush(wxColour *colour, int style)
wxBrush * FindOrCreateBrush(char *colour_name, int style)
Finds a brush of the given specification, or creates one and adds it to the list. See wxBrush::SetStyle for a list of styles.
void RemoveBrush(wxBrush *brush)
Used by wxWindows to remove a brush from the list.