1 //$ class Upp::Ctrl { 2 private: 3 friend struct MMCtrl; 4 friend struct MMImp; 5 6 static int WndCaretTime; 7 static bool WndCaretVisible; 8 static bool local_dnd_copy; 9 static void AnimateCaret(); 10 static Ptr<Ctrl> lastActive; 11 12 friend void CocoInit(int argc, const char **argv, const char **envptr); 13 14 protected: MMClose()15 virtual void MMClose() {} 16 17 void Create(Ctrl *owner, dword style, bool active); 18 static void SetNSAppImage(const Image& img); 19 static void SyncAppIcon(); 20 static void ResetCocoaMouse(); 21 22 public: EndSession()23 static void EndSession() {} IsEndSession()24 static bool IsEndSession() { return false; } 25 26 void *GetNSWindow() const; 27 void *GetNSView() const; 28 bool IsCocoActive() const; 29 30 void RegisterCocoaDropFormats(); 31 32 static Rect GetScreenArea(Point pt); 33 //$ }; 34