]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/slider.h
added support for saving grey and grey-red PNG images (patch 985447)
[wxWidgets.git] / include / wx / slider.h
index 257e8bde8fd21f48c62832072cd5ad2d1d0fe58b..2f62950addc34040ddb9c3475845988113830934 100644 (file)
@@ -80,10 +80,19 @@ public:
     virtual int GetSelStart() const { return GetMax(); }
     virtual void SetSelection(int WXUNUSED(min), int WXUNUSED(max)) { }
 
-
     virtual void ApplyParentThemeBackground(const wxColour& bg)
         { SetBackgroundColour(bg); }
 
+protected:
+
+    // adjust value according to wxSL_INVERSE style
+    virtual int ValueInvertOrNot(int value) const
+    {
+        if (HasFlag(wxSL_INVERSE))
+            return (GetMax() + GetMin()) - value;
+        else
+            return value;
+    }
 
 private:
     DECLARE_NO_COPY_CLASS(wxSliderBase)
@@ -108,6 +117,8 @@ private:
     #include "wx/cocoa/slider.h"
 #elif defined(__WXPM__)
     #include "wx/os2/slider.h"
+#elif defined(__WXPALMOS__)
+    #include "wx/palmos/slider.h"
 #endif
 
 #endif // wxUSE_SLIDER