Audacity  2.2.2
Public Member Functions | List of all members
InvisiblePanel Class Referencefinal

An InvisiblePanel is a panel which does not repaint its own background. More...

Inheritance diagram for InvisiblePanel:
wxPanelWrapper wxTabTraversalWrapper< wxPanel >

Public Member Functions

 InvisiblePanel (wxWindow *parent, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
 
 ~InvisiblePanel ()
 
void OnPaint (wxPaintEvent &event)
 
void OnErase (wxEraseEvent &)
 
- Public Member Functions inherited from wxPanelWrapper
 wxPanelWrapper ()
 
 wxPanelWrapper (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const wxString &name=_("Panel"))
 
bool Create (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const wxString &name=_("Panel"))
 
- Public Member Functions inherited from wxTabTraversalWrapper< wxPanel >
 wxTabTraversalWrapper (Args &&...args)
 

Detailed Description

An InvisiblePanel is a panel which does not repaint its own background.

It is used (a) To group together widgets which need to be refreshed together. A single refresh of the panel causes all the subwindows to refresh. (b) as a base class for some flicker-free classes for which the backgorund is never repainted.

JKC: InvisiblePanel will probably be replaced in time by a mechanism for registering for changes.

Definition at line 958 of file ShuttleGui.cpp.

Constructor & Destructor Documentation

InvisiblePanel::InvisiblePanel ( wxWindow *  parent,
wxWindowID  id = -1,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxTAB_TRAVERSAL 
)
inline

Definition at line 961 of file ShuttleGui.cpp.

966  :
967  wxPanelWrapper( parent, id, pos, size, style )
968  {
969  };
InvisiblePanel::~InvisiblePanel ( )
inline

Definition at line 970 of file ShuttleGui.cpp.

970 {;};

Member Function Documentation

void InvisiblePanel::OnErase ( wxEraseEvent &  )
inline

Definition at line 972 of file ShuttleGui.cpp.

972 {;};
void InvisiblePanel::OnPaint ( wxPaintEvent &  event)

Definition at line 982 of file ShuttleGui.cpp.

983 {
984  // Don't repaint my background.
985  wxPaintDC dc(this);
986  // event.Skip(); // swallow the paint event.
987 }

The documentation for this class was generated from the following file: