%newgroup
+#ifndef __WXX11__
+
+MustHaveApp(wxToolTip);
+
class wxToolTip : public wxObject {
public:
wxToolTip(const wxString &tip);
static void Enable(bool flag);
static void SetDelay(long milliseconds);
};
+#endif
//---------------------------------------------------------------------------
+MustHaveApp(wxCaret);
+
class wxCaret {
public:
wxCaret(wxWindow* window, const wxSize& size);
bool IsOk();
bool IsVisible();
- %name(GetPositionTuple)void GetPosition(int *OUTPUT, int *OUTPUT);
+
wxPoint GetPosition();
- %name(GetSizeTuple)void GetSize(int *OUTPUT, int *OUTPUT);
+ DocDeclAName(
+ void, GetPosition(int *OUTPUT, int *OUTPUT),
+ "GetPositionTuple() -> (x,y)",
+ GetPositionTuple);
+
wxSize GetSize();
+ DocDeclAName(
+ void, GetSize( int *OUTPUT, int *OUTPUT ),
+ "GetSizeTuple() -> (width, height)",
+ GetSizeTuple);
+
+
wxWindow *GetWindow();
%name(MoveXY)void Move(int x, int y);
void Move(const wxPoint& pt);
void Show(int show = True);
void Hide();
- %pragma(python) addtoclass = "def __nonzero__(self): return self.IsOk()"
+ %pythoncode { def __nonzero__(self): return self.IsOk() }
};
%inline %{
//---------------------------------------------------------------------------
+MustHaveApp(wxBusyCursor);
+
class wxBusyCursor {
public:
wxBusyCursor(wxCursor* cursor = wxHOURGLASS_CURSOR);
//---------------------------------------------------------------------------
+MustHaveApp(wxWindowDisabler);
+
class wxWindowDisabler {
public:
wxWindowDisabler(wxWindow *winToSkip = NULL);
//---------------------------------------------------------------------------
+MustHaveApp(wxBusyInfo);
+
class wxBusyInfo : public wxObject {
public:
wxBusyInfo(const wxString& message);
wxString GetHistoryFile(int i) const;
int GetCount() const;
- %pragma(python) addtoclass = "GetNoHistoryFiles = GetCount"
+ %pythoncode { GetNoHistoryFiles = GetCount }
};