1 \section{\class{wxPropertyValue
}}\label{wxpropertyvalue
}
3 The
{\bf wxPropertyValue
} class represents the value of a property,
4 and is normally associated with a wxProperty object.
6 A wxPropertyValue has one of the following types:
8 \begin{itemize
}\itemsep=
0pt
9 \item wxPropertyValueNull
10 \item wxPropertyValueInteger
11 \item wxPropertyValueReal
12 \item wxPropertyValueBool
13 \item wxPropertyValueString
14 \item wxPropertyValueList
15 \item wxPropertyValueIntegerPtr
16 \item wxPropertyValueRealPtr
17 \item wxPropertyValueBoolPtr
18 \item wxPropertyValueStringPtr
21 \membersection{wxPropertyValue::wxPropertyValue
}
23 \func{void
}{wxPropertyValue
}{\void}
27 \func{void
}{wxPropertyValue
}{\param{const wxPropertyValue\&
}{copyFrom
}}
31 \func{void
}{wxPropertyValue
}{\param{char *
}{val
}}
33 Construction from a string value.
35 \func{void
}{wxPropertyValue
}{\param{long
}{ val
}}
37 Construction from an integer value. You may need to cast to (long) to
38 avoid confusion with other constructors (such as the Bool constructor).
40 \func{void
}{wxPropertyValue
}{\param{Bool
}{ val
}}
42 Construction from a boolean value.
44 \func{void
}{wxPropertyValue
}{\param{float
}{ val
}}
46 Construction from a floating point value.
48 \func{void
}{wxPropertyValue
}{\param{double
}{ val
}}
50 Construction from a floating point value.
52 \func{void
}{wxPropertyValue
}{\param{wxList *
}{ val
}}
54 Construction from a list of wxPropertyValue objects. The
55 list, but not each contained wxPropertyValue, will be deleted
56 by the constructor. The wxPropertyValues will be assigned to
57 this wxPropertyValue list. In other words, so do not delete wxList or
58 its data after calling this constructor.
60 \func{void
}{wxPropertyValue
}{\param{wxStringList *
}{ val
}}
62 Construction from a list of strings. The list (including the strings
63 contained in it) will be deleted by the constructor, so do not
64 destroy
{\it val
} explicitly.
66 \func{void
}{wxPropertyValue
}{\param{char **
}{val
}}
68 Construction from a string pointer.
70 \func{void
}{wxPropertyValue
}{\param{long *
}{val
}}
72 Construction from an integer pointer.
74 \func{void
}{wxPropertyValue
}{\param{Bool *
}{val
}}
76 Construction from an boolean pointer.
78 \func{void
}{wxPropertyValue
}{\param{float *
}{val
}}
80 Construction from a floating point pointer.
82 The last four constructors use pointers to various C++ types, and do not
83 store the types themselves; this allows the values to stand in for actual
84 data values defined elsewhere.
86 \membersection{wxPropertyValue::
\destruct{wxPropertyValue
}}
88 \func{void
}{\destruct{wxPropertyValue
}}{\void}
92 \membersection{wxPropertyValue::Append
}
94 \func{void
}{Append
}{\param{wxPropertyValue *
}{expr
}}
96 Appends a property value to the list.
98 \membersection{wxPropertyValue::BoolValue
}
100 \func{Bool
}{BoolValue
}{\void}
102 Returns the boolean value.
104 \membersection{wxPropertyValue::BoolValuePtr
}
106 \func{Bool *
}{BoolValuePtr
}{\void}
108 Returns the pointer to the boolean value.
110 \membersection{wxPropertyValue::ClearList
}
112 \func{void
}{ClearList
}{\void}
114 Deletes the contents of the list.
116 \membersection{wxPropertyValue::Delete
}
118 \func{void
}{Delete
}{\param{wxPropertyValue *
}{expr
}}
120 Deletes
{\it expr
} from this list.
122 \membersection{wxPropertyValue::GetFirst
}
124 \func{wxPropertyValue *
}{GetFirst
}{\void}
126 Gets the first value in the list.
128 \membersection{wxPropertyValue::GetLast
}
130 \func{wxPropertyValue *
}{GetFirst
}{\void}
132 Gets the last value in the list.
134 \membersection{wxPropertyValue::GetModified
}
136 \func{Bool
}{GetModified
}{\void}
138 Returns TRUE if the value was modified since being created
139 (or since SetModified was called).
141 \membersection{wxPropertyValue::GetNext
}
143 \func{wxPropertyValue *
}{GetNext
}{\void}
145 Gets the next value in the list (the one after `this').
147 \membersection{wxPropertyValue::GetStringRepresentation
}
149 \func{wxString
}{GetStringRepresentation
}{\void}
151 Gets a string representation of the value.
153 \membersection{wxPropertyValue::IntegerValue
}
155 \func{long
}{IntegerValue
}{\void}
157 Returns the integer value.
159 \membersection{wxPropertyValue::Insert
}
161 \func{void
}{Insert
}{\param{wxPropertyValue *
}{expr
}}
163 Inserts a property value at the front of a list.
165 \membersection{wxPropertyValue::IntegerValuePtr
}
167 \func{long *
}{IntegerValuePtr
}{\void}
169 Returns the pointer to the integer value.
171 \membersection{wxPropertyValue::Nth
}
173 \func{wxPropertyValue *
}{Nth
}{\param{int
}{ n
}}
175 Returns the nth value of a list expression (starting from zero).
177 \membersection{wxPropertyValue::Number
}
179 \func{int
}{Number
}{\void}
181 Returns the number of elements in a list expression.
183 \membersection{wxPropertyValue::RealValue
}
185 \func{float
}{RealValue
}{\void}
187 Returns the floating point value.
189 \membersection{wxPropertyValue::RealValuePtr
}
191 \func{float *
}{RealValuePtr
}{\void}
193 Returns the pointer to the floating point value.
195 \membersection{wxPropertyValue::SetModified
}
197 \func{void
}{SetModified
}{\param{Bool
}{ flag
}}
199 Sets the `modified' flag.
201 \membersection{wxPropertyValue::StringValue
}
203 \func{char *
}{StringValue
}{\void}
205 Returns the string value.
207 \membersection{wxPropertyValue::StringValuePtr
}
209 \func{char **
}{StringValuePtr
}{\void}
211 Returns the pointer to the string value.
213 \membersection{wxPropertyValue::Type
}
215 \func{wxPropertyValueType
}{Type
}{\void}
217 Returns the value type.
219 \membersection{wxPropertyValue::operator $=$
}
221 \func{void
}{operator $=$
}{\param{const wxPropertyValue\&
}{val
}}
223 \func{void
}{operator $=$
}{\param{const char *
}{val
}}
225 \func{void
}{operator $=$
}{\param{const long
}{val
}}
227 \func{void
}{operator $=$
}{\param{const Bool
}{val
}}
229 \func{void
}{operator $=$
}{\param{const float
}{val
}}
231 \func{void
}{operator $=$
}{\param{const char **
}{val
}}
233 \func{void
}{operator $=$
}{\param{const long *
}{val
}}
235 \func{void
}{operator $=$
}{\param{const Bool *
}{val
}}
237 \func{void
}{operator $=$
}{\param{const float *
}{val
}}
239 Assignment operators.