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 1125 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 1128 of file ShuttleGui.cpp.

◆ ~InvisiblePanel()

InvisiblePanel::~InvisiblePanel ( )
inline

Definition at line 1137 of file ShuttleGui.cpp.

1137{;};

Member Function Documentation

◆ OnErase()

void InvisiblePanel::OnErase ( wxEraseEvent &  )
inline

Definition at line 1139 of file ShuttleGui.cpp.

1139{;};

◆ OnPaint()

void InvisiblePanel::OnPaint ( wxPaintEvent &  event)

Definition at line 1149 of file ShuttleGui.cpp.

1150{
1151 // Don't repaint my background.
1152 wxPaintDC dc(this);
1153 // event.Skip(); // swallow the paint event.
1154}

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