// Purpose: interface of wxCaret
// Author: wxWidgets team
// RCS-ID: $Id$
-// Licence: wxWindows license
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
/**
//@{
/**
Get the caret position (in pixels).
+
+ @beginWxPerlOnly
+ In wxPerl there are two methods instead of a single overloaded
+ method:
+ - GetPosition(): returns a Wx::Point object.
+ - GetPositionXY(): returns a 2-element list (x, y).
+ @endWxPerlOnly
*/
void GetPosition(int* x, int* y) const;
- const wxPoint GetPosition() const;
+ wxPoint GetPosition() const;
//@}
//@{
/**
Get the caret size.
+
+ @beginWxPerlOnly
+ In wxPerl there are two methods instead of a single overloaded
+ method:
+ - GetSize(): returns a Wx::Size object.
+ - GetSizeWH(): returns a 2-element list (width, height).
+ @endWxPerlOnly
*/
void GetSize(int* width, int* height) const;
- const wxSize GetSize() const;
+ wxSize GetSize() const;
//@}
/**
/**
Hides the caret, same as Show(@false).
*/
- void Hide();
+ virtual void Hide();
/**
Returns @true if the caret was created successfully.
/**
Returns @true if the caret is visible and @false if it is permanently
- hidden (if it is is blinking and not shown currently but will be after
+ hidden (if it is blinking and not shown currently but will be after
the next blink, this method still returns @true).
*/
bool IsVisible() const;
Shows or hides the caret. Notice that if the caret was hidden N times,
it must be shown N times as well to reappear on the screen.
*/
- void Show(bool show = true);
+ virtual void Show(bool show = true);
};