ultimatepp/uppsrc/CtrlCore/CocoCtrl.h
2023-03-12 11:46:14 +01:00

30 lines
824 B
C

private:
friend struct MMCtrl;
friend struct MMImp;
static bool local_dnd_copy;
static Ptr<Ctrl> lastActive;
friend void CocoInit(int argc, const char **argv, const char **envptr);
protected:
virtual void MMClose() {}
void Create(Ctrl *owner, dword style, bool active);
static void SetNSAppImage(const Image& img);
static void SyncAppIcon();
static void ResetCocoaMouse();
static void DoCancelPreedit();
static int GetCaretBlinkTime() { return 500; }
public:
static void EndSession() {}
static bool IsEndSession() { return false; }
void *GetNSWindow() const;
void *GetNSView() const;
bool IsCocoActive() const;
void RegisterCocoaDropFormats();
static Rect GetScreenArea(Point pt);