Use wxOverlay to show docking hint instead of transparent wxFrame
The main advantage of using wxOverlay over wxFrame, besides reduced code complexity, is that the docking hint now works correctly under Wayland which it didn't work before. wxAUI_MGR_RECTANGLE_HINT now works everywhere (including wxGTK and wxOSX) We simply use a bitmap to draw the venetian blinds hint instead of the exotic and esoteric code using wxRegion. wxGTK2 now uses graphics context for transparency. If not available, the hint will be drawn using wxINVERT raster operation mode.
This commit is contained in:
parent
7491ac5b7a
commit
29c8bfc249
2 changed files with 135 additions and 419 deletions
|
|
@ -497,8 +497,6 @@ public:
|
|||
|
||||
protected:
|
||||
|
||||
void UpdateHintWindowConfig();
|
||||
|
||||
void DoFrameLayout();
|
||||
|
||||
void LayoutAddPane(wxSizer* container,
|
||||
|
|
@ -611,7 +609,6 @@ protected:
|
|||
double m_dockConstraintX; // 0.0 .. 1.0; max pct of window width a dock can consume
|
||||
double m_dockConstraintY; // 0.0 .. 1.0; max pct of window height a dock can consume
|
||||
|
||||
wxFrame* m_hintWnd; // transparent hint window, if supported by platform
|
||||
wxTimer m_hintFadeTimer; // transparent fade timer
|
||||
wxByte m_hintFadeAmt; // transparent fade amount
|
||||
wxByte m_hintFadeMax; // maximum value of hint fade
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue