diff options
Diffstat (limited to 'src/gui/widgets/checkbox.h')
-rw-r--r-- | src/gui/widgets/checkbox.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/gui/widgets/checkbox.h b/src/gui/widgets/checkbox.h index 654c48d62..0ca579d3b 100644 --- a/src/gui/widgets/checkbox.h +++ b/src/gui/widgets/checkbox.h @@ -28,6 +28,7 @@ #include "localconsts.h" class Image; +class Skin; /** * Check box widget. Same as the Guichan check box but with custom look. @@ -78,16 +79,18 @@ class CheckBox final : public gcn::CheckBox void keyPressed(gcn::KeyEvent& keyEvent) override; + void adjustSize(); + private: + bool mHasMouse; + int mPadding; + int mImagePadding; + int mImageSize; + int mSpacing; + static int instances; + static Skin *mSkin; static float mAlpha; - bool mHasMouse; - static Image *checkBoxNormal; - static Image *checkBoxChecked; - static Image *checkBoxDisabled; - static Image *checkBoxDisabledChecked; - static Image *checkBoxNormalHi; - static Image *checkBoxCheckedHi; }; #endif |