Move CanSetTransparent and SetTransparent up to wxWindowBase since
wxMac can handle transparency at that level. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40730 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -196,10 +196,6 @@ public:
|
|||||||
void CentreOnScreen(int dir = wxBOTH) { DoCentre(dir | wxCENTRE_ON_SCREEN); }
|
void CentreOnScreen(int dir = wxBOTH) { DoCentre(dir | wxCENTRE_ON_SCREEN); }
|
||||||
void CenterOnScreen(int dir = wxBOTH) { CentreOnScreen(dir); }
|
void CenterOnScreen(int dir = wxBOTH) { CentreOnScreen(dir); }
|
||||||
|
|
||||||
// Set window transparency if the platform supports it
|
|
||||||
virtual bool SetTransparent(wxByte WXUNUSED(alpha)) { return false; }
|
|
||||||
virtual bool CanSetTransparent() { return false; }
|
|
||||||
|
|
||||||
|
|
||||||
// default item access: we have a permanent default item which is the one
|
// default item access: we have a permanent default item which is the one
|
||||||
// set by the user code but we may also have a temporary default item which
|
// set by the user code but we may also have a temporary default item which
|
||||||
|
@@ -1027,6 +1027,12 @@ public:
|
|||||||
wxAccessible* GetOrCreateAccessible() ;
|
wxAccessible* GetOrCreateAccessible() ;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
// Set window transparency if the platform supports it
|
||||||
|
virtual bool SetTransparent(wxByte WXUNUSED(alpha)) { return false; }
|
||||||
|
virtual bool CanSetTransparent() { return false; }
|
||||||
|
|
||||||
|
|
||||||
// implementation
|
// implementation
|
||||||
// --------------
|
// --------------
|
||||||
|
|
||||||
|
@@ -176,9 +176,6 @@ public:
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
virtual bool SetTransparent(byte alpha);
|
|
||||||
virtual bool CanSetTransparent();
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
DocDeclStr(
|
DocDeclStr(
|
||||||
@@ -366,11 +363,15 @@ public:
|
|||||||
void SetReturnCode(int returnCode);
|
void SetReturnCode(int returnCode);
|
||||||
int GetReturnCode() const;
|
int GetReturnCode() const;
|
||||||
|
|
||||||
// The identifier for the affirmative button
|
// Set the identifier for the affirmative button: this button will close
|
||||||
|
// the dialog after validating data and calling TransferDataFromWindow()
|
||||||
void SetAffirmativeId(int affirmativeId);
|
void SetAffirmativeId(int affirmativeId);
|
||||||
int GetAffirmativeId() const;
|
int GetAffirmativeId() const;
|
||||||
|
|
||||||
// Identifier for Esc key translation
|
// Set identifier for Esc key translation: the button with this id will
|
||||||
|
// close the dialog without doing anything else; special value wxID_NONE
|
||||||
|
// means to not handle Esc at all while wxID_ANY means to map Esc to
|
||||||
|
// wxID_CANCEL if present and GetAffirmativeId() otherwise
|
||||||
void SetEscapeId(int escapeId);
|
void SetEscapeId(int escapeId);
|
||||||
int GetEscapeId() const;
|
int GetEscapeId() const;
|
||||||
|
|
||||||
|
@@ -1983,6 +1983,26 @@ wxControl where it returns true.", "");
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
DocDeclStr(
|
||||||
|
virtual bool , CanSetTransparent(),
|
||||||
|
"Returns ``True`` if the platform supports setting the transparency for
|
||||||
|
this window. Note that this method will err on the side of caution,
|
||||||
|
so it is possible that this will return ``False`` when it is in fact
|
||||||
|
possible to set the transparency.
|
||||||
|
|
||||||
|
NOTE: On X-windows systems the X server must have the composite
|
||||||
|
extension loaded, and there must be a composite manager program (such
|
||||||
|
as xcompmgr) running.", "");
|
||||||
|
|
||||||
|
DocDeclStr(
|
||||||
|
virtual bool , SetTransparent(byte alpha),
|
||||||
|
"Attempt to set the transparency of this window to the ``alpha`` value,
|
||||||
|
returns True on success. The ``alpha`` value is an integer in the
|
||||||
|
range of 0 to 255, where 0 is fully transparent and 255 is fully
|
||||||
|
opaque.", "");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%pythoncode {
|
%pythoncode {
|
||||||
def PostCreate(self, pre):
|
def PostCreate(self, pre):
|
||||||
"""
|
"""
|
||||||
|
Reference in New Issue
Block a user