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 );
A simple UI element that puts a number on top of a colored rounded rectangle with a fill color that s...
void SetMaximumNumber(int aMax)
Set the maximum number to be shown on the badge.
void UpdateNumber(int aNumber, SEVERITY aSeverity)
Update the number displayed on the badge.
void computeSize()
Helper function to compute the size of the badge.
void SetTextSize(int aSize)
Set the text size to use on the badge.
void onPaint(wxPaintEvent &aEvt)
Handler that actually paints the badge and the text.
Functions to provide common constants and other functions to assist in making a consistent UI.