the window takes ownership of the caret
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31756 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -163,8 +163,6 @@
|
|||||||
%rename(Thread_IsMain) wxThread_IsMain;
|
%rename(Thread_IsMain) wxThread_IsMain;
|
||||||
%rename(ToolTip) wxToolTip;
|
%rename(ToolTip) wxToolTip;
|
||||||
%rename(Caret) wxCaret;
|
%rename(Caret) wxCaret;
|
||||||
%rename(Caret_GetBlinkTime) wxCaret_GetBlinkTime;
|
|
||||||
%rename(Caret_SetBlinkTime) wxCaret_SetBlinkTime;
|
|
||||||
%rename(BusyCursor) wxBusyCursor;
|
%rename(BusyCursor) wxBusyCursor;
|
||||||
%rename(WindowDisabler) wxWindowDisabler;
|
%rename(WindowDisabler) wxWindowDisabler;
|
||||||
%rename(BusyInfo) wxBusyInfo;
|
%rename(BusyInfo) wxBusyInfo;
|
||||||
|
@@ -43,8 +43,16 @@ MustHaveApp(wxCaret);
|
|||||||
class wxCaret {
|
class wxCaret {
|
||||||
public:
|
public:
|
||||||
wxCaret(wxWindow* window, const wxSize& size);
|
wxCaret(wxWindow* window, const wxSize& size);
|
||||||
~wxCaret();
|
// ~wxCaret(); Window takes ownership
|
||||||
|
|
||||||
|
%extend {
|
||||||
|
DocStr(Destroy,
|
||||||
|
"Deletes the C++ object this Python object is a proxy for.", "");
|
||||||
|
void Destroy() {
|
||||||
|
delete self;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
bool IsOk();
|
bool IsOk();
|
||||||
bool IsVisible();
|
bool IsVisible();
|
||||||
|
|
||||||
@@ -70,17 +78,11 @@ public:
|
|||||||
void Hide();
|
void Hide();
|
||||||
|
|
||||||
%pythoncode { def __nonzero__(self): return self.IsOk() }
|
%pythoncode { def __nonzero__(self): return self.IsOk() }
|
||||||
|
|
||||||
|
static int GetBlinkTime();
|
||||||
|
static void SetBlinkTime(int milliseconds);
|
||||||
};
|
};
|
||||||
|
|
||||||
%inline %{
|
|
||||||
int wxCaret_GetBlinkTime() {
|
|
||||||
return wxCaret::GetBlinkTime();
|
|
||||||
}
|
|
||||||
|
|
||||||
void wxCaret_SetBlinkTime(int milliseconds) {
|
|
||||||
wxCaret::SetBlinkTime(milliseconds);
|
|
||||||
}
|
|
||||||
%}
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user