20#ifndef INCLUDED_VCL_INC_OSX_SALFRAME_H
21#define INCLUDED_VCL_INC_OSX_SALFRAME_H
24#include <IOKit/pwr_mgt/IOPMLib.h>
114 virtual bool PostEvent(std::unique_ptr<ImplSVEvent> pData)
override;
115 virtual void SetTitle(
const OUString& rTitle )
override;
116 virtual void SetIcon( sal_uInt16 nIcon )
override;
119 virtual void Show(
bool bVisible,
bool bNoActivate =
false )
override;
137 virtual void Flush(
void )
override;
188 void VCLToCocoa( NSRect& io_rRect,
bool bRelativeToScreen =
true );
189 void CocoaToVCL( NSRect& io_rRect,
bool bRelativeToScreen =
true );
191 void VCLToCocoa( NSPoint& io_rPoint,
bool bRelativeToScreen =
true );
192 void CocoaToVCL( NSPoint& io_Point,
bool bRelativeToScreen =
true );
virtual void SetTitle(const OUString &rTitle) override
virtual void GetClientSize(tools::Long &rWidth, tools::Long &rHeight) override
virtual void SetPluginParent(SystemParentData *pNewParent) override
std::vector< CGRect > maClippingRects
virtual ~AquaSalFrame() override
virtual void SimulateKeyPress(sal_uInt16 nKeyCode) override
void CocoaToVCL(NSRect &io_rRect, bool bRelativeToScreen=true)
virtual void ResetClipRegion() override
virtual void SetScreenNumber(unsigned int) override
virtual const SystemEnvData * GetSystemData() const override
void SendPaintEvent(const tools::Rectangle *pRect=nullptr)
virtual void GetWorkArea(tools::Rectangle &rRect) override
virtual void SetIcon(sal_uInt16 nIcon) override
virtual void Flush(void) override
virtual SalFrame * GetParent() const override
virtual void EndSetClipRegion() override
virtual void CaptureMouse(bool bMouse) override
void screenParametersChanged()
virtual void ReleaseGraphics(SalGraphics *pGraphics) override
virtual void Beep() override
virtual void SetParent(SalFrame *pNewParent) override
virtual bool GetUseReducedAnimation() const override
void VCLToCocoa(NSPoint &io_rPoint, bool bRelativeToScreen=true)
virtual void SetMenu(SalMenu *pSalMenu) override
virtual SalGraphics * AcquireGraphics() override
static AquaSalFrame * GetCaptureFrame()
virtual void UpdateDarkMode() override
virtual bool PostEvent(std::unique_ptr< ImplSVEvent > pData) override
virtual void SetAlwaysOnTop(bool bOnTop) override
AquaSalFrame(SalFrame *pParent, SalFrameStyleFlags salFrameStyle)
Constructor.
virtual void SetInputContext(SalInputContext *pContext) override
NSMenuItem * mpDockMenuEntry
tools::Rectangle maInvalidRect
sal_uInt64 mnLastEventTime
SalFrameStyleFlags mnStyle
PointerStyle mePointerStyle
virtual void SetPosSize(tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, sal_uInt16 nFlags) override
virtual void Flush(const tools::Rectangle &) override
virtual bool GetUseDarkMode() const override
virtual void SetPointer(PointerStyle ePointerStyle) override
virtual void SetRepresentedURL(const OUString &) override
void getResolution(sal_Int32 &o_rDPIX, sal_Int32 &o_rDPIY)
void UpdateFrameGeometry()
void CocoaToVCL(NSPoint &io_Point, bool bRelativeToScreen=true)
virtual bool MapUnicodeToKeyCode(sal_Unicode aUnicode, LanguageType aLangType, vcl::KeyCode &rKeyCode) override
NSCursor * getCurrentCursor()
void doShowFullScreen(bool bFullScreen, sal_Int32 nDisplay)
CGMutablePathRef mrClippingPath
NSView * getNSView() const
static bool isAlive(const AquaSalFrame *pFrame)
virtual KeyIndicatorState GetIndicatorState() override
virtual void Show(bool bVisible, bool bNoActivate=false) override
virtual void SetExtendedFrameStyle(SalExtStyle) override
virtual void UnionClipRegion(tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight) override
NSWindow * getNSWindow() const
virtual bool GetWindowState(vcl::WindowData *) override
IOPMAssertionID mnAssertionID
virtual void EndExtTextInput(EndExtTextInputFlags nFlags) override
AquaSalGraphics * mpGraphics
virtual void ShowFullScreen(bool bFullScreen, sal_Int32 nDisplay) override
virtual SalPointerState GetPointerState() override
virtual void UpdateSettings(AllSettings &rSettings) override
static AquaSalFrame * s_pCaptureFrame
virtual void SetPointerPos(tools::Long nX, tools::Long nY) override
virtual OUString GetKeyName(sal_uInt16 nKeyCode) override
virtual void SetApplicationID(const OUString &rApplicationID) override
NSTrackingRectTag mnTrackingRectTag
void VCLToCocoa(NSRect &io_rRect, bool bRelativeToScreen=true)
virtual LanguageType GetInputLanguage() override
AquaSalFrame & operator=(const AquaSalFrame &)=delete
virtual void StartPresentation(bool bStart) override
InputContextFlags mnICOptions
virtual void SetMaxClientSize(tools::Long nWidth, tools::Long nHeight) override
unsigned int getStyleMask() const
AquaSalFrame(const AquaSalFrame &)=delete
CGMutablePathRef getClipPath() const
virtual void SetWindowState(const vcl::WindowData *) override
unsigned int mnLastModifierFlags
virtual void ToTop(SalFrameToTop nFlags) override
SalEvent PreparePosSize(tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, sal_uInt16 nFlags)
virtual void SetMinClientSize(tools::Long nWidth, tools::Long nHeight) override
virtual void BeginSetClipRegion(sal_uInt32 nRects) override
void initShow()
do things on initial show (like centering on parent or on screen)
AquaSalInstance * mpInstance
A SalFrame is a system window (e.g. an X11 window).
bool isFrameAlive(const SalFrame *pFrame) const