25#include <wx/dcclient.h> 
   26#include <wx/settings.h> 
   29                    long style, 
const wxString& 
name ) :
 
   30        wxPanel( parent, id, pos, size, style, 
name ),
 
 
   49    wxRect    rect( wxPoint( 0, 0 ), GetClientSize() );
 
   56        KIGFX::COLOR4D bg = wxSystemSettings::GetColour( wxSYS_COLOUR_FRAMEBK );
 
   57        KIGFX::COLOR4D fg = wxSystemSettings::GetColour( wxSYS_COLOUR_ACTIVEBORDER );
 
   58        border = fg.
Mix( bg, 0.18 );
 
   61    dc.SetPen( wxPen( border.
ToColour(), 1 ) );
 
   64        dc.DrawLine( rect.GetLeft(), rect.GetTop(), rect.GetLeft(), rect.GetBottom() );
 
   67        dc.DrawLine( rect.GetRight(), rect.GetTop(), rect.GetRight(), rect.GetBottom() );
 
   70        dc.DrawLine( rect.GetLeft(), rect.GetTop(), rect.GetRight(), rect.GetTop() );
 
   73        dc.DrawLine( rect.GetLeft(), rect.GetBottom(), rect.GetRight(), rect.GetBottom() );
 
 
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.