37 lines
706 B
C++
37 lines
706 B
C++
#ifndef slic3r_GUI_StaticLine_hpp_
|
|
#define slic3r_GUI_StaticLine_hpp_
|
|
|
|
#include "../wxExtensions.hpp"
|
|
#include "wx/window.h"
|
|
|
|
class StaticLine : public wxWindow
|
|
{
|
|
public:
|
|
StaticLine(wxWindow *parent, bool vertical = false, const wxString &label = {}, const wxString &icon = {});
|
|
|
|
public:
|
|
void SetLabel(const wxString& label) override;
|
|
|
|
void SetIcon(const wxString& icon);
|
|
|
|
void SetLineColour(wxColour color);
|
|
|
|
void Rescale();
|
|
|
|
private:
|
|
wxColour lineColor;
|
|
bool vertical;
|
|
ScalableBitmap icon;
|
|
|
|
private:
|
|
void paintEvent(wxPaintEvent& evt);
|
|
|
|
void messureSize();
|
|
|
|
void render(wxDC &dc);
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
};
|
|
|
|
#endif // !slic3r_GUI_StaticLine_hpp_
|