45
45
std::string GetFilterType();
48
virtual long ComputeContentSize();
49
48
virtual void Draw(nux::GraphicsEngine& GfxContext, bool force_draw);
52
void RedrawTheme(nux::Geometry const& geom, cairo_t* cr, int type, nux::ButtonVisualState faked_state);
51
virtual bool AcceptKeyNavFocus();
52
virtual bool InspectKeyEvent(unsigned int eventType, unsigned int keysym, const char* character);
55
void OnKeyDown(unsigned long event_type, unsigned long event_keysym,
56
unsigned long event_state, const TCHAR* character,
57
unsigned short key_repeat_count);
54
59
void RecvMouseUp(int x, int y, unsigned long button_flags, unsigned long key_flags);
55
60
void RecvMouseDrag(int x, int y, int dx, int dy, unsigned long button_flags, unsigned long key_flags);
61
void RecvMouseMove(int x, int y, int dx, int dy, unsigned long button_flags, unsigned long key_flags);
56
62
void OnRatingsChanged(int rating);
58
typedef std::unique_ptr<nux::CairoWrapper> NuxCairoPtr;
60
NuxCairoPtr active_empty_;
61
NuxCairoPtr normal_empty_;
62
NuxCairoPtr prelight_empty_;
63
NuxCairoPtr active_half_;
64
NuxCairoPtr normal_half_;
65
NuxCairoPtr prelight_half_;
66
NuxCairoPtr active_full_;
67
NuxCairoPtr normal_full_;
68
NuxCairoPtr prelight_full_;
69
nux::Geometry cached_geometry_;
71
64
dash::RatingsFilter::Ptr filter_;