24 #ifndef NUMBER_BADGE_H_ 25 #define NUMBER_BADGE_H_ 28 #include <wx/dcclient.h> 44 NUMBER_BADGE( wxWindow* aParent, wxWindowID aId,
const wxPoint& aPos,
45 const wxSize& aSize,
int aStyles );
86 void onPaint( wxPaintEvent& aEvt );
void computeSize()
Helper function to compute the size of the badge.
void onPaint(wxPaintEvent &aEvt)
Handler that actually paints the badge and the text.
void UpdateNumber(int aNumber, SEVERITY aSeverity)
Update the number displayed on the badge.
A simple UI element that puts a number on top of a colored rounded rectangle with a fill color that s...
NUMBER_BADGE(wxWindow *aParent, wxWindowID aId, const wxPoint &aPos, const wxSize &aSize, int aStyles)
Create a number badge with 10pt font and a maximum number of 1000.
Functions to provide common constants and other functions to assist in making a consistent UI.
void SetTextSize(int aSize)
Set the text size to use on the badge.
void SetMaximumNumber(int aMax)
Set the maximum number to be shown on the badge.