mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-13 19:49:36 +00:00
Expose certain methods to be used for Mac menu items
This commit is contained in:
@@ -6,5 +6,5 @@
|
|||||||
|
|
||||||
|
|
||||||
void DoAbout (void);
|
void DoAbout (void);
|
||||||
|
void DoAboutFramework (void);
|
||||||
|
|
||||||
|
|||||||
@@ -186,6 +186,7 @@ namespace PortabilityLayer
|
|||||||
void SetWindowTitle(Window *window, const PLPasStr &title) override;
|
void SetWindowTitle(Window *window, const PLPasStr &title) override;
|
||||||
Rect2i GetWindowFullRect(Window *window) const override;
|
Rect2i GetWindowFullRect(Window *window) const override;
|
||||||
bool GetWindowChromeInteractionZone(Window *window, const Vec2i &point, RegionID_t &outRegion) const override;
|
bool GetWindowChromeInteractionZone(Window *window, const Vec2i &point, RegionID_t &outRegion) const override;
|
||||||
|
bool IsExclusiveWindowVisible() override;
|
||||||
void SwapExclusiveWindow(Window *& windowRef) override;
|
void SwapExclusiveWindow(Window *& windowRef) override;
|
||||||
|
|
||||||
void FlickerWindowIn(Window *window, int32_t velocity) GP_ASYNCIFY_PARANOID_OVERRIDE;
|
void FlickerWindowIn(Window *window, int32_t velocity) GP_ASYNCIFY_PARANOID_OVERRIDE;
|
||||||
@@ -1322,6 +1323,10 @@ namespace PortabilityLayer
|
|||||||
return static_cast<WindowImpl*>(window)->GetChromeInteractionZone(point, outRegion);
|
return static_cast<WindowImpl*>(window)->GetChromeInteractionZone(point, outRegion);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool WindowManagerImpl::IsExclusiveWindowVisible() {
|
||||||
|
return m_exclusiveWindow != nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
void WindowManagerImpl::SwapExclusiveWindow(Window *& windowRef)
|
void WindowManagerImpl::SwapExclusiveWindow(Window *& windowRef)
|
||||||
{
|
{
|
||||||
const bool hadExclusiveWindow = (m_exclusiveWindow != nullptr);
|
const bool hadExclusiveWindow = (m_exclusiveWindow != nullptr);
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ namespace PortabilityLayer
|
|||||||
virtual void SetWindowTitle(Window *window, const PLPasStr &title) = 0;
|
virtual void SetWindowTitle(Window *window, const PLPasStr &title) = 0;
|
||||||
virtual Rect2i GetWindowFullRect(Window *window) const = 0;
|
virtual Rect2i GetWindowFullRect(Window *window) const = 0;
|
||||||
virtual bool GetWindowChromeInteractionZone(Window *window, const Vec2i &point, RegionID_t &outRegion) const = 0;
|
virtual bool GetWindowChromeInteractionZone(Window *window, const Vec2i &point, RegionID_t &outRegion) const = 0;
|
||||||
|
virtual bool IsExclusiveWindowVisible() = 0;
|
||||||
virtual void SwapExclusiveWindow(Window *& windowRef) = 0;
|
virtual void SwapExclusiveWindow(Window *& windowRef) = 0;
|
||||||
|
|
||||||
GP_ASYNCIFY_PARANOID_VIRTUAL void FlickerWindowIn(Window *window, int32_t velocity) GP_ASYNCIFY_PARANOID_PURE;
|
GP_ASYNCIFY_PARANOID_VIRTUAL void FlickerWindowIn(Window *window, int32_t velocity) GP_ASYNCIFY_PARANOID_PURE;
|
||||||
|
|||||||
Reference in New Issue
Block a user