Implement wxBG_STYLE_TRANSPARENT support for wxGTK.
Use composited windows if supported by GTK+ for wxWindows with this background style. Also add wxWindow::IsTransparentBackgroundSupported() and show how to use it in the sample. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1029,8 +1029,7 @@ public:
|
||||
wxColour GetForegroundColour() const;
|
||||
|
||||
// Set/get the background style.
|
||||
virtual bool SetBackgroundStyle(wxBackgroundStyle style)
|
||||
{ m_backgroundStyle = style; return true; }
|
||||
virtual bool SetBackgroundStyle(wxBackgroundStyle style);
|
||||
wxBackgroundStyle GetBackgroundStyle() const
|
||||
{ return m_backgroundStyle; }
|
||||
|
||||
@@ -1039,6 +1038,13 @@ public:
|
||||
// from a parent window
|
||||
virtual bool HasTransparentBackground() { return false; }
|
||||
|
||||
// Returns true if background transparency is supported for this
|
||||
// window, i.e. if calling SetBackgroundStyle(wxBG_STYLE_TRANSPARENT)
|
||||
// has a chance of succeeding. If reason argument is non-NULL, returns a
|
||||
// user-readable explanation of why it isn't supported if the return
|
||||
// value is false.
|
||||
virtual bool IsTransparentBackgroundSupported(wxString* reason = NULL) const;
|
||||
|
||||
// set/retrieve the font for the window (SetFont() returns true if the
|
||||
// font really changed)
|
||||
virtual bool SetFont(const wxFont& font) = 0;
|
||||
|
Reference in New Issue
Block a user