@param method The method to call.
@param x1 The (optional) first parameter to pass to the method.
- @param x2 The (optional) second parameter to pass to the method.
-
- Note that currently only up to 2 arguments can be passed. For more
- complicated needs, you can use the CallAfter<T>(const T& fn) overload
- that can call any functor.
+ Currently, 0, 1 or 2 parameters can be passed. If you need to pass
+ more than 2 arguments, you can use the CallAfter<T>(const T& fn)
+ overload that can call any functor.
@note This method is not available with Visual C++ before version 8
(Visual Studio 2005) as earlier versions of the compiler don't
*/
virtual bool GetStyle(long position, wxTextAttr& style);
- //@{
/**
- This function finds the character at the specified position expressed
- in pixels.
+ Finds the position of the character at the specified point.
+
+ If the return code is not @c wxTE_HT_UNKNOWN the row and column of the
+ character closest to this position are returned, otherwise the output
+ parameters are not modified.
+
+ Please note that this function is currently only implemented in wxUniv,
+ wxMSW and wxGTK2 ports and always returns @c wxTE_HT_UNKNOWN in the
+ other ports.
+
+ @beginWxPerlOnly
+ In wxPerl this function takes only the @a pt argument and
+ returns a 3-element list (result, col, row).
+ @endWxPerlOnly
+
+ @param pt
+ The position of the point to check, in window device coordinates.
+ @param pos
+ Receives the position of the character at the given position. May
+ be @NULL.
- The two overloads of this method allow to find either the position of
- the character, as an index into the text control contents, or its row
- and column.
+ @see PositionToXY(), XYToPosition()
+ */
+ wxTextCtrlHitTestResult HitTest(const wxPoint& pt, long *pos) const;
+
+ /**
+ Finds the row and column of the character at the specified point.
If the return code is not @c wxTE_HT_UNKNOWN the row and column of the
character closest to this position are returned, otherwise the output
@param row
Receives the row of the character at the given position. May be
@NULL.
- @param pos
- Receives the position of the character at the given position. May
- be @NULL.
@see PositionToXY(), XYToPosition()
*/
- wxTextCtrlHitTestResult HitTest(const wxPoint& pt, long *pos) const;
wxTextCtrlHitTestResult HitTest(const wxPoint& pt,
wxTextCoord *col,
wxTextCoord *row) const;
- //@}
/**
Returns @true if the text has been modified by user.
typedef T ValueType;
/**
- Validator constructor.
+ Constructor for validator using the default precision.
+
+ @param value
+ A pointer to the variable associated with the validator. If non
+ @NULL, this variable should have a lifetime equal to or longer than
+ the validator lifetime (which is usually determined by the lifetime
+ of the window).
+ @param style
+ A combination of wxNumValidatorStyle enum values.
+ */
+ wxFloatingPointValidator(ValueType *value = NULL,
+ int style = wxNUM_VAL_DEFAULT);
+
+ /**
+ Constructor for validator specifying the precision.
@param value
A pointer to the variable associated with the validator. If non
The number of decimal digits after the decimal separator to show
and accept.
*/
- //@{
- wxFloatingPointValidator(ValueType *value = NULL,
- int style = wxNUM_VAL_DEFAULT);
wxFloatingPointValidator(int precision,
ValueType *value = NULL,
int style = wxNUM_VAL_DEFAULT);
- //@}
/**