Implement wxWindow::ShowWithEffect() for wxOSX/Cocoa.
This version animates the window asynchronously and is being checked in just to preserve it in svn if we later decide to return to this semantics. It will be replaced by synchronous animation in the next commit. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62304 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
ff6893d2c2
commit
ab9a0b84de
10 changed files with 376 additions and 29 deletions
|
|
@ -63,6 +63,16 @@ public:
|
|||
virtual void Lower();
|
||||
|
||||
virtual bool Show( bool show = true );
|
||||
virtual bool ShowWithEffect(wxShowEffect effect,
|
||||
unsigned timeout = 0)
|
||||
{
|
||||
return OSXShowWithEffect(true, effect, timeout);
|
||||
}
|
||||
virtual bool HideWithEffect(wxShowEffect effect,
|
||||
unsigned timeout = 0)
|
||||
{
|
||||
return OSXShowWithEffect(false, effect, timeout);
|
||||
}
|
||||
|
||||
virtual bool IsShownOnScreen() const;
|
||||
|
||||
|
|
@ -341,6 +351,11 @@ protected:
|
|||
virtual void DoSetToolTip( wxToolTip *tip );
|
||||
#endif
|
||||
|
||||
// common part of Show/HideWithEffect()
|
||||
virtual bool OSXShowWithEffect(bool show,
|
||||
wxShowEffect effect,
|
||||
unsigned timeout);
|
||||
|
||||
private:
|
||||
// common part of all ctors
|
||||
void Init();
|
||||
|
|
@ -349,7 +364,6 @@ private:
|
|||
// AlwaysShowScrollbars()
|
||||
void DoUpdateScrollbarVisibility();
|
||||
|
||||
|
||||
wxDECLARE_NO_COPY_CLASS(wxWindowMac);
|
||||
DECLARE_EVENT_TABLE()
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue