Little changes to match recent changes in wxWindows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24783 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -30,11 +30,13 @@ public:
|
||||
unsigned char Blue();
|
||||
bool Ok();
|
||||
void Set(unsigned char red, unsigned char green, unsigned char blue);
|
||||
%name(SetRBG) void Set(unsigned long colRGB);
|
||||
%name(SetRGB) void Set(unsigned long colRGB);
|
||||
|
||||
bool operator==(const wxColour& colour) const;
|
||||
bool operator != (const wxColour& colour) const;
|
||||
|
||||
void InitFromName(const wxString& colourName);
|
||||
|
||||
%extend {
|
||||
PyObject* Get() {
|
||||
PyObject* rv = PyTuple_New(3);
|
||||
|
@@ -403,6 +403,16 @@ public:
|
||||
wxSize GetSize() const;
|
||||
void SetSize( const wxSize &s );
|
||||
|
||||
wxPoint GetTopLeft() const;
|
||||
void SetTopLeft(const wxPoint &p);
|
||||
wxPoint GetBottomRight() const;
|
||||
void SetBottomRight(const wxPoint &p);
|
||||
|
||||
// wxPoint GetLeftTop() const;
|
||||
// void SetLeftTop(const wxPoint &p);
|
||||
// wxPoint GetRightBottom() const;
|
||||
// void SetRightBottom(const wxPoint &p);
|
||||
|
||||
int GetLeft() const;
|
||||
int GetTop() const;
|
||||
int GetBottom() const;
|
||||
|
@@ -63,6 +63,9 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
// wxDash* GetDash() const { return (M_PENDATA ? (wxDash*)M_PENDATA->m_dash : (wxDash*)NULL); };
|
||||
int GetDashCount() const;
|
||||
|
||||
#ifdef __WXMSW__
|
||||
wxBitmap* GetStipple();
|
||||
void SetStipple(wxBitmap& stipple);
|
||||
|
@@ -196,7 +196,7 @@ public:
|
||||
%constant wxEventType wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK;
|
||||
%constant wxEventType wxEVT_COMMAND_TREE_END_DRAG;
|
||||
%constant wxEventType wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK;
|
||||
|
||||
%constant wxEventType wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP;
|
||||
|
||||
|
||||
%pythoncode {
|
||||
@@ -220,7 +220,7 @@ EVT_TREE_ITEM_RIGHT_CLICK = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLIC
|
||||
EVT_TREE_ITEM_MIDDLE_CLICK = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK, 1)
|
||||
EVT_TREE_END_DRAG = wx.PyEventBinder(wxEVT_COMMAND_TREE_END_DRAG , 1)
|
||||
EVT_TREE_STATE_IMAGE_CLICK = wx.PyEventBinder(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK, 1)
|
||||
|
||||
EVT_TREE_ITEM_GETTOOLTIP = wx.PyEventBinder(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP, 1)
|
||||
}
|
||||
|
||||
|
||||
@@ -261,6 +261,8 @@ public:
|
||||
bool IsEditCancelled() const;
|
||||
void SetEditCanceled(bool editCancelled);
|
||||
|
||||
// Set the tooltip for the item (for EVT_TREE_ITEM_GETTOOLTIP events)
|
||||
void SetToolTip(const wxString& toolTip);
|
||||
};
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
@@ -109,6 +109,8 @@ public:
|
||||
wxCalendarEvent(wxCalendarCtrl *cal, wxEventType type);
|
||||
|
||||
const wxDateTime& GetDate() const;
|
||||
void SetDate(const wxDateTime &date);
|
||||
void SetWeekDay(const wxDateTime::WeekDay wd);
|
||||
wxDateTime::WeekDay GetWeekDay() const;
|
||||
|
||||
};
|
||||
@@ -241,6 +243,9 @@ public:
|
||||
bool Enable(bool enable = True);
|
||||
bool Show(bool show = True);
|
||||
|
||||
// get the currently shown control for month/year
|
||||
wxControl *GetMonthControl() const;
|
||||
wxControl *GetYearControl() const;
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user