X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/882678ebb43804d34d20ba8781647fe136ae67d9..36a0190ebd5bd9a7302f60f6dcd608b80574e21c:/interface/wx/caret.h?ds=sidebyside diff --git a/interface/wx/caret.h b/interface/wx/caret.h index b5d870635e..7b02f2c890 100644 --- a/interface/wx/caret.h +++ b/interface/wx/caret.h @@ -2,8 +2,7 @@ // Name: caret.h // Purpose: interface of wxCaret // Author: wxWidgets team -// RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** @@ -38,7 +37,7 @@ public: the @a window. */ wxCaret(wxWindow* window, int width, int height); - wxCaret(wxWindowBase* window, const wxSize& size); + wxCaret(wxWindow* window, const wxSize& size); //@} //@{ @@ -46,8 +45,8 @@ public: Creates a caret with the given size (in pixels) and associates it with the @a window (same as the equivalent constructors). */ - bool Create(wxWindowBase* window, int width, int height); - bool Create(wxWindowBase* window, const wxSize& size); + bool Create(wxWindow* window, int width, int height); + bool Create(wxWindow* window, const wxSize& size); //@} /** @@ -60,6 +59,13 @@ public: //@{ /** 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; wxPoint GetPosition() const; @@ -68,6 +74,13 @@ public: //@{ /** 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; wxSize GetSize() const; @@ -90,7 +103,7 @@ public: /** 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;