Audacity 3.2.0
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 1102 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 1105 of file ShuttleGui.cpp.

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

◆ ~InvisiblePanel()

InvisiblePanel::~InvisiblePanel ( )
inline

Definition at line 1114 of file ShuttleGui.cpp.

1114{;};

Member Function Documentation

◆ OnErase()

void InvisiblePanel::OnErase ( wxEraseEvent &  )
inline

Definition at line 1116 of file ShuttleGui.cpp.

1116{;};

◆ OnPaint()

void InvisiblePanel::OnPaint ( wxPaintEvent &  event)

Definition at line 1126 of file ShuttleGui.cpp.

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

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