qwt_plot_printfilter.h
来自「This a framework to test new ideas in tr」· C头文件 代码 · 共 90 行
H
90 行
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- ***************************** * Qwt Widget Library * Copyright (C) 1997 Josef Wilgen * Copyright (C) 2002 Uwe Rathmann * * This library is free software; you can redistribute it and/or * modify it under the terms of the Qwt License, Version 1.0 *****************************************************************************/#ifndef QWT_PLOT_PRINTFILTER_H#define QWT_PLOT_PRINTFILTER_H#include <qcolor.h>#include <qfont.h>#include <qintdict.h>#include <qvaluelist.h>#include "qwt_global.h"class QwtPlot;class QwtPlotPrintFilterCache;/*! \brief A base class for plot print filters QwtPlotPrintFilter can be used to customize QwtPlot::print.*/class QWT_EXPORT QwtPlotPrintFilter{public: //! Print options enum Options { PrintMargin = 1, PrintTitle = 2, PrintLegend = 4, PrintGrid = 8, PrintBackground = 16, PrintAll = ~0 }; //! Print items enum Item { Title, Legend, Curve, CurveSymbol, Marker, MarkerSymbol, MajorGrid, MinorGrid, CanvasBackground, AxisScale, AxisTitle }; QwtPlotPrintFilter(); virtual ~QwtPlotPrintFilter(); virtual QColor color(const QColor &, Item item, int id = -1) const; virtual QFont font(const QFont &, Item item, int id = -1) const;/*! \brief Set plot print options \param options Or'd QwtPlotPrintFilter::Options values \sa QwtPlotPrintFilter::options()*/ void setOptions(int options) { d_options = options; }/*! \brief Get plot print options \sa QwtPlotPrintFilter::setOptions()*/ int options() const { return d_options; } virtual void apply(QwtPlot *) const; virtual void reset(QwtPlot *) const;private: int d_options; QwtPlotPrintFilterCache *d_cache;};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?