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 1126 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 1129 of file ShuttleGui.cpp.

◆ ~InvisiblePanel()

InvisiblePanel::~InvisiblePanel ( )
inline

Definition at line 1138 of file ShuttleGui.cpp.

1138{;};

Member Function Documentation

◆ OnErase()

void InvisiblePanel::OnErase ( wxEraseEvent &  )
inline

Definition at line 1140 of file ShuttleGui.cpp.

1140{;};

◆ OnPaint()

void InvisiblePanel::OnPaint ( wxPaintEvent &  event)

Definition at line 1150 of file ShuttleGui.cpp.

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

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