Audacity  3.0.3
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:
[legend]
Collaboration diagram for InvisiblePanel:
[legend]

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 TranslatableString &name=XO("Panel"))
 
bool Create (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const TranslatableString &name=XO("Panel"))
 
void SetLabel (const TranslatableString &label)
 
void SetName (const TranslatableString &name)
 
void SetToolTip (const TranslatableString &toolTip)
 
void SetName ()
 
- Public Member Functions inherited from wxTabTraversalWrapper< wxPanel >
 wxTabTraversalWrapper (Args &&... args)
 
 wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete
 
 wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete
 
wxTabTraversalWrapperoperator= (const wxTabTraversalWrapper &)=delete
 
wxTabTraversalWrapperoperator= (wxTabTraversalWrapper &&)=delete
 

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 background is never repainted.

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

Definition at line 1101 of file ShuttleGui.cpp.

Constructor & Destructor Documentation

◆ InvisiblePanel()

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

Definition at line 1104 of file ShuttleGui.cpp.

1109  :
1110  wxPanelWrapper( parent, id, pos, size, style )
1111  {
1112  };

◆ ~InvisiblePanel()

InvisiblePanel::~InvisiblePanel ( )
inline

Definition at line 1113 of file ShuttleGui.cpp.

1113 {;};

Member Function Documentation

◆ OnErase()

void InvisiblePanel::OnErase ( wxEraseEvent &  )
inline

Definition at line 1115 of file ShuttleGui.cpp.

1115 {;};

◆ OnPaint()

void InvisiblePanel::OnPaint ( wxPaintEvent &  event)

Definition at line 1125 of file ShuttleGui.cpp.

1126 {
1127  // Don't repaint my background.
1128  wxPaintDC dc(this);
1129  // event.Skip(); // swallow the paint event.
1130 }

The documentation for this class was generated from the following file:
wxPanelWrapper::wxPanelWrapper
wxPanelWrapper()
Definition: wxPanelWrapper.h:44