13 int _hoverRating = _savedRating;
14 BOOL _isHovering = FALSE;
32 void DrawHalfStar(
Graphics* g,
Bounds rect, BOOL selected = FALSE);
HWND WinHandle
Definition Common.h:16
Component()
Constructs a new Component instance.
Definition Graphics.h:161
void setRating(int rating, BOOL includesHalf)
Sets the current rating and whether half-star ratings are allowed.
BOOL getCreateWindowOptions(wstring &title, UINT &widownStyles, wstring &wndClassName, BOOL &isCustomWndProc)
Gets options for creating the window.
void onPaint(Graphics *g)
Paints the rating control.
virtual ~Rating()
Destructor for the Rating component.
void onMouseMoved(WinHandle hWnd, int x, int y, BOOL shiftPressed, BOOL ctrlPressed)
Handles mouse move events over the control.
int getPreferredHeight()
Returns the preferred height.
Rating()
Constructs a new Rating component.
void onMousePressed(WinHandle hWnd, int x, int y, int clickCount, BOOL shiftPressed, BOOL ctrlPressed)
Handles mouse press events on the control.
void getRating(int &rating, BOOL &includesHalf)
Gets the current rating and half-star status.
void windowCreated()
Called when the window is created.