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 \latexignore{\rtfignore{\wxheading{Members
}}}
23 \membersection{wxPropertyValue::wxPropertyValue
}
25 \func{void
}{wxPropertyValue
}{\void}
29 \func{void
}{wxPropertyValue
}{\param{const wxPropertyValue\&
}{copyFrom
}}
33 \func{void
}{wxPropertyValue
}{\param{char *
}{val
}}
35 Construction from a string value.
37 \func{void
}{wxPropertyValue
}{\param{long
}{ val
}}
39 Construction from an integer value. You may need to cast to (long) to
40 avoid confusion with other constructors (such as the bool constructor).
42 \func{void
}{wxPropertyValue
}{\param{bool
}{ val
}}
44 Construction from a boolean value.
46 \func{void
}{wxPropertyValue
}{\param{float
}{ val
}}
48 Construction from a floating point value.
50 \func{void
}{wxPropertyValue
}{\param{double
}{ val
}}
52 Construction from a floating point value.
54 \func{void
}{wxPropertyValue
}{\param{wxList *
}{ val
}}
56 Construction from a list of wxPropertyValue objects. The
57 list, but not each contained wxPropertyValue, will be deleted
58 by the constructor. The wxPropertyValues will be assigned to
59 this wxPropertyValue list. In other words, so do not delete wxList or
60 its data after calling this constructor.
62 \func{void
}{wxPropertyValue
}{\param{wxStringList *
}{ val
}}
64 Construction from a list of strings. The list (including the strings
65 contained in it) will be deleted by the constructor, so do not
66 destroy
{\it val
} explicitly.
68 \func{void
}{wxPropertyValue
}{\param{char **
}{val
}}
70 Construction from a string pointer.
72 \func{void
}{wxPropertyValue
}{\param{long *
}{val
}}
74 Construction from an integer pointer.
76 \func{void
}{wxPropertyValue
}{\param{bool *
}{val
}}
78 Construction from an boolean pointer.
80 \func{void
}{wxPropertyValue
}{\param{float *
}{val
}}
82 Construction from a floating point pointer.
84 The last four constructors use pointers to various C++ types, and do not
85 store the types themselves; this allows the values to stand in for actual
86 data values defined elsewhere.
88 \membersection{wxPropertyValue::
\destruct{wxPropertyValue
}}
90 \func{void
}{\destruct{wxPropertyValue
}}{\void}
94 \membersection{wxPropertyValue::Append
}
96 \func{void
}{Append
}{\param{wxPropertyValue *
}{expr
}}
98 Appends a property value to the list.
100 \membersection{wxPropertyValue::BoolValue
}
102 \func{bool
}{BoolValue
}{\void}
104 Returns the boolean value.
106 \membersection{wxPropertyValue::BoolValuePtr
}
108 \func{bool *
}{BoolValuePtr
}{\void}
110 Returns the pointer to the boolean value.
112 \membersection{wxPropertyValue::ClearList
}
114 \func{void
}{ClearList
}{\void}
116 Deletes the contents of the list.
118 \membersection{wxPropertyValue::Delete
}
120 \func{void
}{Delete
}{\param{wxPropertyValue *
}{expr
}}
122 Deletes
{\it expr
} from this list.
124 \membersection{wxPropertyValue::GetFirst
}
126 \func{wxPropertyValue *
}{GetFirst
}{\void}
128 Gets the first value in the list.
130 \membersection{wxPropertyValue::GetLast
}
132 \func{wxPropertyValue *
}{GetFirst
}{\void}
134 Gets the last value in the list.
136 \membersection{wxPropertyValue::GetModified
}
138 \func{bool
}{GetModified
}{\void}
140 Returns TRUE if the value was modified since being created
141 (or since SetModified was called).
143 \membersection{wxPropertyValue::GetNext
}
145 \func{wxPropertyValue *
}{GetNext
}{\void}
147 Gets the next value in the list (the one after `this').
149 \membersection{wxPropertyValue::GetStringRepresentation
}
151 \func{wxString
}{GetStringRepresentation
}{\void}
153 Gets a string representation of the value.
155 \membersection{wxPropertyValue::IntegerValue
}
157 \func{long
}{IntegerValue
}{\void}
159 Returns the integer value.
161 \membersection{wxPropertyValue::Insert
}
163 \func{void
}{Insert
}{\param{wxPropertyValue *
}{expr
}}
165 Inserts a property value at the front of a list.
167 \membersection{wxPropertyValue::IntegerValuePtr
}
169 \func{long *
}{IntegerValuePtr
}{\void}
171 Returns the pointer to the integer value.
173 \membersection{wxPropertyValue::Nth
}
175 \func{wxPropertyValue *
}{Nth
}{\param{int
}{ n
}}
177 Returns the nth value of a list expression (starting from zero).
179 \membersection{wxPropertyValue::Number
}
181 \func{int
}{Number
}{\void}
183 Returns the number of elements in a list expression.
185 \membersection{wxPropertyValue::RealValue
}
187 \func{float
}{RealValue
}{\void}
189 Returns the floating point value.
191 \membersection{wxPropertyValue::RealValuePtr
}
193 \func{float *
}{RealValuePtr
}{\void}
195 Returns the pointer to the floating point value.
197 \membersection{wxPropertyValue::SetModified
}
199 \func{void
}{SetModified
}{\param{bool
}{ flag
}}
201 Sets the `modified' flag.
203 \membersection{wxPropertyValue::StringValue
}
205 \func{char *
}{StringValue
}{\void}
207 Returns the string value.
209 \membersection{wxPropertyValue::StringValuePtr
}
211 \func{char **
}{StringValuePtr
}{\void}
213 Returns the pointer to the string value.
215 \membersection{wxPropertyValue::Type
}
217 \func{wxPropertyValueType
}{Type
}{\void}
219 Returns the value type.
221 \membersection{wxPropertyValue::operator $=$
}
223 \func{void
}{operator $=$
}{\param{const wxPropertyValue\&
}{val
}}
225 \func{void
}{operator $=$
}{\param{const char *
}{val
}}
227 \func{void
}{operator $=$
}{\param{const long
}{val
}}
229 \func{void
}{operator $=$
}{\param{const bool
}{val
}}
231 \func{void
}{operator $=$
}{\param{const float
}{val
}}
233 \func{void
}{operator $=$
}{\param{const char **
}{val
}}
235 \func{void
}{operator $=$
}{\param{const long *
}{val
}}
237 \func{void
}{operator $=$
}{\param{const bool *
}{val
}}
239 \func{void
}{operator $=$
}{\param{const float *
}{val
}}
241 Assignment operators.