3f66f6a5b3
This keyword is not expanded by Git which means it's not replaced with the correct revision value in the releases made using git-based scripts and it's confusing to have lines with unexpanded "$Id$" in the released files. As expanding them with Git is not that simple (it could be done with git archive and export-subst attribute) and there are not many benefits in having them in the first place, just remove all these lines. If nothing else, this will make an eventual transition to Git simpler. Closes #14487. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
103 lines
2.9 KiB
C++
103 lines
2.9 KiB
C++
///////////////////////////////////////////////////////////////////////////////
|
|
// Name: wx/univ/colschem.h
|
|
// Purpose: wxColourScheme class provides the colours to use for drawing
|
|
// Author: Vadim Zeitlin
|
|
// Modified by:
|
|
// Created: 19.08.00
|
|
// Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com)
|
|
// Licence: wxWindows licence
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef _WX_UNIV_COLSCHEM_H_
|
|
#define _WX_UNIV_COLSCHEM_H_
|
|
|
|
class WXDLLIMPEXP_FWD_CORE wxWindow;
|
|
|
|
#include "wx/colour.h"
|
|
#include "wx/checkbox.h"
|
|
|
|
// ----------------------------------------------------------------------------
|
|
// wxColourScheme
|
|
// ----------------------------------------------------------------------------
|
|
|
|
class WXDLLIMPEXP_CORE wxColourScheme
|
|
{
|
|
public:
|
|
// the standard colours
|
|
enum StdColour
|
|
{
|
|
// the background colour for a window
|
|
WINDOW,
|
|
|
|
// the different background and text colours for the control
|
|
CONTROL,
|
|
CONTROL_PRESSED,
|
|
CONTROL_CURRENT,
|
|
|
|
// the label text for the normal and the disabled state
|
|
CONTROL_TEXT,
|
|
CONTROL_TEXT_DISABLED,
|
|
CONTROL_TEXT_DISABLED_SHADOW,
|
|
|
|
// the scrollbar background colour for the normal and pressed states
|
|
SCROLLBAR,
|
|
SCROLLBAR_PRESSED,
|
|
|
|
// the background and text colour for the highlighted item
|
|
HIGHLIGHT,
|
|
HIGHLIGHT_TEXT,
|
|
|
|
// these colours are used for drawing the shadows of 3D objects
|
|
SHADOW_DARK,
|
|
SHADOW_HIGHLIGHT,
|
|
SHADOW_IN,
|
|
SHADOW_OUT,
|
|
|
|
// the titlebar background colours for the normal and focused states
|
|
TITLEBAR,
|
|
TITLEBAR_ACTIVE,
|
|
|
|
// the titlebar text colours
|
|
TITLEBAR_TEXT,
|
|
TITLEBAR_ACTIVE_TEXT,
|
|
|
|
// the default gauge fill colour
|
|
GAUGE,
|
|
|
|
// desktop background colour (only used by framebuffer ports)
|
|
DESKTOP,
|
|
|
|
// wxFrame's background colour
|
|
FRAME,
|
|
|
|
MAX
|
|
};
|
|
|
|
// get a standard colour
|
|
virtual wxColour Get(StdColour col) const = 0;
|
|
|
|
// get the background colour for the given window
|
|
virtual wxColour GetBackground(wxWindow *win) const = 0;
|
|
|
|
// virtual dtor for any base class
|
|
virtual ~wxColourScheme() {}
|
|
};
|
|
|
|
// some people just can't spell it correctly :-)
|
|
typedef wxColourScheme wxColorScheme;
|
|
|
|
// ----------------------------------------------------------------------------
|
|
// macros
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// retrieve the default colour from the theme or the given scheme
|
|
#define wxSCHEME_COLOUR(scheme, what) scheme->Get(wxColorScheme::what)
|
|
#define wxTHEME_COLOUR(what) \
|
|
wxSCHEME_COLOUR(wxTheme::Get()->GetColourScheme(), what)
|
|
|
|
// get the background colour for the window in the current theme
|
|
#define wxTHEME_BG_COLOUR(win) \
|
|
wxTheme::Get()->GetColourScheme()->GetBackground(win)
|
|
|
|
#endif // _WX_UNIV_COLSCHEM_H_
|