Add tests for XShape extension API in configure,
and implements wxTLW::SetShape for wxMotif and wxX11 using the aforementioned extension. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20102 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -60,6 +60,8 @@ public:
|
||||
int maxW = -1, int maxH = -1,
|
||||
int incW = -1, int incH = -1 );
|
||||
|
||||
virtual bool SetShape( const wxRegion& region );
|
||||
|
||||
WXWidget GetShellWidget() const;
|
||||
protected:
|
||||
// common part of all constructors
|
||||
|
@@ -23,6 +23,7 @@
|
||||
class wxMouseEvent;
|
||||
class wxKeyEvent;
|
||||
class wxWindow;
|
||||
class wxRegion;
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// key events related functions
|
||||
@@ -135,6 +136,12 @@ bool wxWindowIsVisible(Window win);
|
||||
#define XFontStructGetAscent(f) f->ascent
|
||||
#endif
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// Misc functions
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
bool wxDoSetShape( Display* xdisplay, Window xwindow, const wxRegion& region );
|
||||
|
||||
class WXDLLEXPORT wxXVisualInfo
|
||||
{
|
||||
public:
|
||||
|
@@ -79,6 +79,8 @@ protected:
|
||||
// set the icon for the window
|
||||
void DoSetIcon( const wxIcon& icon );
|
||||
|
||||
virtual bool SetShape(const wxRegion& region);
|
||||
|
||||
// For implementation purposes - sometimes decorations make the
|
||||
// client area smaller
|
||||
virtual wxPoint GetClientAreaOrigin() const;
|
||||
|
Reference in New Issue
Block a user