X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1a1ed5268269bb2ed46992cb8624b03597de7ba3..30e24d9dd5a5abf1c9a375ea259eb239b122b7f7:/wxPython/src/_button.i?ds=sidebyside diff --git a/wxPython/src/_button.i b/wxPython/src/_button.i index 365bc2423b..d29dd2c2a3 100644 --- a/wxPython/src/_button.i +++ b/wxPython/src/_button.i @@ -24,6 +24,8 @@ enum { wxBU_RIGHT, wxBU_BOTTOM, + wxBU_ALIGN_MASK, + wxBU_EXACTFIT, wxBU_AUTODRAW, }; @@ -85,7 +87,7 @@ under GTK+ 2.", " The stock IDs and coresponding labels are - ================== ==================== + ===================== ====================== wx.ID_ADD 'Add' wx.ID_APPLY '\&Apply' wx.ID_BOLD '\&Bold' @@ -136,7 +138,7 @@ The stock IDs and coresponding labels are wx.ID_ZOOM_FIT 'Zoom to \&Fit' wx.ID_ZOOM_IN 'Zoom \&In' wx.ID_ZOOM_OUT 'Zoom \&Out' - ================== ==================== + ===================== ====================== "); DocCtorStrName( @@ -269,6 +271,10 @@ public: wxBitmap , GetBitmapSelected(), "Returns the bitmap for the selected state.", ""); + DocDeclStr( + wxBitmap , GetBitmapHover(), + "Returns the bitmap used when the mouse is over the button, may be invalid.", ""); + DocDeclStr( void , SetBitmapDisabled(const wxBitmap& bitmap), @@ -289,11 +295,25 @@ public: void , SetBitmapLabel(const wxBitmap& bitmap), "Sets the bitmap label for the button. This is the bitmap used for the unselected state, and for all other states if no other bitmaps are provided.", ""); - + + DocDeclStr( + void , SetBitmapHover(const wxBitmap& hover), + "Sets the bitmap to be shown when the mouse is over the button. This function +is new since wxWidgets version 2.7.0 and the hover bitmap is currently only +supported in wxMSW.", ""); + void SetMargins(int x, int y); int GetMarginX() const; int GetMarginY() const; + + %property(BitmapDisabled, GetBitmapDisabled, SetBitmapDisabled, doc="See `GetBitmapDisabled` and `SetBitmapDisabled`"); + %property(BitmapFocus, GetBitmapFocus, SetBitmapFocus, doc="See `GetBitmapFocus` and `SetBitmapFocus`"); + %property(BitmapHover, GetBitmapHover, SetBitmapHover, doc="See `GetBitmapHover` and `SetBitmapHover`"); + %property(BitmapLabel, GetBitmapLabel, SetBitmapLabel, doc="See `GetBitmapLabel` and `SetBitmapLabel`"); + %property(BitmapSelected, GetBitmapSelected, SetBitmapSelected, doc="See `GetBitmapSelected` and `SetBitmapSelected`"); + %property(MarginX, GetMarginX, doc="See `GetMarginX`"); + %property(MarginY, GetMarginY, doc="See `GetMarginY`"); };