From 8bb1fce2d480546678634ccec6e677bd72e4db13 Mon Sep 17 00:00:00 2001 From: Eleni Maria Stea Date: Mon, 16 Jun 2014 12:16:53 +0300 Subject: scaled application preview and its components (bzr r3823.4.2) --- unity-shared/RatingsButton.cpp | 4 ++-- unity-shared/RatingsButton.h | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'unity-shared') diff --git a/unity-shared/RatingsButton.cpp b/unity-shared/RatingsButton.cpp index ac3865db6..f4954c782 100644 --- a/unity-shared/RatingsButton.cpp +++ b/unity-shared/RatingsButton.cpp @@ -36,11 +36,11 @@ namespace unity { RatingsButton::RatingsButton(int star_size, int star_gap, NUX_FILE_LINE_DECL) : nux::ToggleButton(NUX_FILE_LINE_PARAM) + , star_size_(star_size) + , star_gap_(star_gap) , editable_(true) , rating_(0.0) , focused_star_(-1) - , star_size_(star_size) - , star_gap_(star_gap) { SetAcceptKeyNavFocusOnMouseDown(false); SetAcceptKeyNavFocusOnMouseEnter(true); diff --git a/unity-shared/RatingsButton.h b/unity-shared/RatingsButton.h index 0a07bdee7..9fef67f7e 100644 --- a/unity-shared/RatingsButton.h +++ b/unity-shared/RatingsButton.h @@ -41,6 +41,9 @@ public: virtual void SetRating(float rating); virtual float GetRating() const; + int star_size_; + int star_gap_; + protected: virtual void Draw(nux::GraphicsEngine& GfxContext, bool force_draw); @@ -67,8 +70,6 @@ protected: bool editable_; float rating_; int focused_star_; - int star_size_; - int star_gap_; }; } // namespace unity -- cgit v1.2.3