Audacity 3.2.0
UserImage.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*!********************************************************************
3
4 Audacity: A Digital Audio Editor
5
6 UserImage.h
7
8 Dmitry Vedenko
9
10**********************************************************************/
11#pragma once
12
13#include "wxPanelWrapper.h"
14
15#include <wx/bitmap.h>
16
18{
19class UserImage final : public wxPanelWrapper
20{
21public:
22 UserImage(wxWindow* parent, const wxSize& size);
23
24 void SetBitmap(const wxBitmap& bitmap);
25 void SetBitmap(const wxString& path);
26
27private:
28 void OnPaint();
29
30 wxBitmap mBitmap;
31}; // class UserImage
32} // namespace audacity::cloud::audiocom
UserImage(wxWindow *parent, const wxSize &size)
Definition: UserImage.cpp:21
void SetBitmap(const wxBitmap &bitmap)
Definition: UserImage.cpp:32