21#include <wx/dcclient.h>
22#include <wx/settings.h>
25 long style,
const wxString&
name ) :
26 wxPanel( parent, id, pos, size, style,
name ),
45 wxRect
rect( wxPoint( 0, 0 ), GetClientSize() );
52 KIGFX::COLOR4D bg = wxSystemSettings::GetColour( wxSYS_COLOUR_FRAMEBK );
53 KIGFX::COLOR4D fg = wxSystemSettings::GetColour( wxSYS_COLOUR_ACTIVEBORDER );
54 border = fg.
Mix( bg, 0.18 );
A color representation with 4 components: red, green, blue, alpha.
A color representation with 4 components: red, green, blue, alpha.
wxColour ToColour() const
static const COLOR4D UNSPECIFIED
For legacy support; used as a value to indicate color hasn't been set yet.
COLOR4D Mix(const COLOR4D &aColor, double aFactor) const
Return a color that is mixed with the input by a factor.
WX_PANEL(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
void OnPaint(wxPaintEvent &event)
KIGFX::COLOR4D m_borderColor
The Cairo implementation of the graphics abstraction layer.
DATABASE_CONNECTION dc(odbcBackend(cs))
static PIECE rect(double aLeft, double aTop, double aRight, double aBottom, bool aMixed=false)