- wxPlatform(long defValue) { m_longValue = defValue; m_doubleValue = 0.0; }
- wxPlatform(const wxString& defValue) { m_stringValue = defValue; m_longValue = 0; m_doubleValue = 0.0; }
- wxPlatform(double defValue) { m_longValue = 0; m_doubleValue = defValue; }
-
- wxPlatform& Is(int platform, long value);
- wxPlatform& IsNot(int platform, long value);
-
- wxPlatform& Is(int platform, int value) { return Is(platform, (long) value); }
- wxPlatform& IsNot(int platform, int value) { return IsNot(platform, (long) value); }
-
- wxPlatform& Is(int platform, const wxString& value);
- wxPlatform& IsNot(int platform, const wxString& value);
-
- wxPlatform& Is(int platform, double value);
- wxPlatform& IsNot(int platform, double value);
-
- // This should be specified first to set the default value, or simply
- // pass the value to the constructor
- wxPlatform& Default(long value);
- wxPlatform& Default(const wxString& value);
- wxPlatform& Default(double value);
+ wxPlatform(int defValue) { Init(); m_longValue = (long)defValue; }
+ wxPlatform(long defValue) { Init(); m_longValue = defValue; }
+ wxPlatform(const wxString& defValue) { Init(); m_stringValue = defValue; }
+ wxPlatform(double defValue) { Init(); m_doubleValue = defValue; }
+
+ static wxPlatform If(int platform, long value);
+ static wxPlatform IfNot(int platform, long value);
+ wxPlatform& ElseIf(int platform, long value);
+ wxPlatform& ElseIfNot(int platform, long value);
+ wxPlatform& Else(long value);
+
+ static wxPlatform If(int platform, int value) { return If(platform, (long)value); }
+ static wxPlatform IfNot(int platform, int value) { return IfNot(platform, (long)value); }
+ wxPlatform& ElseIf(int platform, int value) { return ElseIf(platform, (long) value); }
+ wxPlatform& ElseIfNot(int platform, int value) { return ElseIfNot(platform, (long) value); }
+ wxPlatform& Else(int value) { return Else((long) value); }
+
+ static wxPlatform If(int platform, double value);
+ static wxPlatform IfNot(int platform, double value);
+ wxPlatform& ElseIf(int platform, double value);
+ wxPlatform& ElseIfNot(int platform, double value);
+ wxPlatform& Else(double value);
+
+ static wxPlatform If(int platform, const wxString& value);
+ static wxPlatform IfNot(int platform, const wxString& value);
+ wxPlatform& ElseIf(int platform, const wxString& value);
+ wxPlatform& ElseIfNot(int platform, const wxString& value);
+ wxPlatform& Else(const wxString& value);