ultimatepp/uppsrc/CtrlCore/CocoCtrl.h
cxl 174a032126 CtrlCore: Fixed mouse event handling popup related issues in MacOS
git-svn-id: svn://ultimatepp.org/upp/trunk@15019 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-09-12 08:14:41 +00:00

33 lines
876 B
C

//$ class Upp::Ctrl {
private:
friend struct MMCtrl;
friend struct MMImp;
static int WndCaretTime;
static bool WndCaretVisible;
static bool local_dnd_copy;
static void AnimateCaret();
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();
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);
//$ };