qabstractaxis.sip 7.58 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291
// qabstractaxis.sip generated by MetaSIP
//
// This file is part of the QtChart Python extension module.
//
// Copyright (c) 2018 Riverbank Computing Limited <info@riverbankcomputing.com>
// 
// This file is part of PyQtChart.
// 
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file.  Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
// 
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license.  For more information contact
// info@riverbankcomputing.com.
// 
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.


namespace QtCharts
{
%TypeHeaderCode
#include <qabstractaxis.h>
%End

    class QAbstractAxis : QObject /NoDefaultCtors/
    {
%TypeHeaderCode
#include <qabstractaxis.h>
%End

    public:
        enum AxisType
        {
            AxisTypeNoAxis,
%If (- QtChart_1_1_0)
            AxisTypeValues,
%End
%If (- QtChart_1_1_0)
            AxisTypeCategories,
%End
%If (QtChart_1_1_0 -)
            AxisTypeValue,
%End
%If (QtChart_1_1_0 -)
            AxisTypeBarCategory,
%End
%If (QtChart_1_1_0 -)
            AxisTypeCategory,
%End
%If (QtChart_1_1_0 -)
            AxisTypeDateTime,
%End
%If (QtChart_1_2_0 -)
            AxisTypeLogValue,
%End
        };

        typedef QFlags<QtCharts::QAbstractAxis::AxisType> AxisTypes;
        virtual ~QAbstractAxis();
        virtual QtCharts::QAbstractAxis::AxisType type() const = 0;
        bool isVisible() const;
        void setVisible(bool visible = true);
%If (QtChart_1_1_0 -)
        bool isLineVisible() const;
%End
%If (- QtChart_1_1_0)
        bool isArrowVisible() const;
%End
%If (QtChart_1_1_0 -)
        void setLineVisible(bool visible = true);
%End
%If (- QtChart_1_1_0)
        void setArrowVisible(bool visible = true);
%End
%If (QtChart_1_1_0 -)
        void setLinePen(const QPen &pen);
%End
%If (- QtChart_1_1_0)
        void setAxisPen(const QPen &pen);
%End
%If (QtChart_1_1_0 -)
        QPen linePen() const;
%End
%If (- QtChart_1_1_0)
        QPen axisPen() const;
%End
%If (QtChart_1_1_0 -)
        void setLinePenColor(QColor color);
%End
%If (- QtChart_1_1_0)
        void setAxisPenColor(QColor color);
%End
%If (QtChart_1_1_0 -)
        QColor linePenColor() const;
%End
%If (- QtChart_1_1_0)
        QColor axisPenColor() const;
%End
        bool isGridLineVisible() const;
        void setGridLineVisible(bool visible = true);
        void setGridLinePen(const QPen &pen);
        QPen gridLinePen() const;
        bool labelsVisible() const;
        void setLabelsVisible(bool visible = true);
%If (- QtChart_2_0_0)
        void setLabelsPen(const QPen &pen);
%End
%If (- QtChart_2_0_0)
        QPen labelsPen() const;
%End
        void setLabelsBrush(const QBrush &brush);
        QBrush labelsBrush() const;
        void setLabelsFont(const QFont &font);
        QFont labelsFont() const;
        void setLabelsAngle(int angle);
        int labelsAngle() const;
        void setLabelsColor(QColor color);
        QColor labelsColor() const;
        bool shadesVisible() const;
        void setShadesVisible(bool visible = true);
        void setShadesPen(const QPen &pen);
        QPen shadesPen() const;
        void setShadesBrush(const QBrush &brush);
        QBrush shadesBrush() const;
        void setShadesColor(QColor color);
        QColor shadesColor() const;
        void setShadesBorderColor(QColor color);
        QColor shadesBorderColor() const;
        void setMin(const QVariant &min);
        void setMax(const QVariant &max);
        void setRange(const QVariant &min, const QVariant &max);
        void show();
        void hide();
%If (QtChart_2_0_0 -)
        Qt::Orientation orientation() const;
%End
%If (QtChart_1_1_0 - QtChart_2_0_0)
        Qt::Orientation orientation();
%End

    signals:
        void visibleChanged(bool visible);
%If (QtChart_1_1_0 -)
        void lineVisibleChanged(bool visible);
%End
%If (- QtChart_1_1_0)
        void arrowVisibleChanged(bool visible);
%End
        void labelsVisibleChanged(bool visible);
        void gridVisibleChanged(bool visible);
        void colorChanged(QColor color);
        void labelsColorChanged(QColor color);
        void shadesVisibleChanged(bool visible);
        void shadesColorChanged(QColor color);
        void shadesBorderColorChanged(QColor color);

    public:
%If (QtChart_1_2_0 -)
        bool isTitleVisible() const;
%End
%If (QtChart_1_2_0 -)
        void setTitleVisible(bool visible = true);
%End
%If (QtChart_1_2_0 - QtChart_2_0_0)
        void setTitlePen(const QPen &pen);
%End
%If (QtChart_1_2_0 - QtChart_2_0_0)
        QPen titlePen() const;
%End
%If (QtChart_1_2_0 -)
        void setTitleBrush(const QBrush &brush);
%End
%If (QtChart_1_2_0 -)
        QBrush titleBrush() const;
%End
%If (QtChart_1_2_0 -)
        void setTitleFont(const QFont &font);
%End
%If (QtChart_1_2_0 -)
        QFont titleFont() const;
%End
%If (QtChart_1_2_0 -)
        void setTitleText(const QString &title);
%End
%If (QtChart_1_2_0 -)
        QString titleText() const;
%End
%If (QtChart_1_2_0 -)
        Qt::Alignment alignment() const;
%End

    signals:
%If (QtChart_1_2_0 -)
        void linePenChanged(const QPen &pen);
%End
%If (QtChart_1_2_0 - QtChart_2_0_0)
        void labelsPenChanged(const QPen &pen);
%End
%If (QtChart_1_2_0 -)
        void labelsBrushChanged(const QBrush &brush);
%End
%If (QtChart_1_2_0 -)
        void labelsFontChanged(const QFont &pen);
%End
%If (QtChart_1_2_0 -)
        void labelsAngleChanged(int angle);
%End
%If (QtChart_1_2_0 -)
        void gridLinePenChanged(const QPen &pen);
%End
%If (QtChart_1_2_0 -)
        void titleTextChanged(const QString &title);
%End
%If (QtChart_1_2_0 - QtChart_2_0_0)
        void titlePenChanged(const QPen &pen);
%End
%If (QtChart_1_2_0 -)
        void titleBrushChanged(const QBrush &brush);
%End
%If (QtChart_1_2_0 -)
        void titleVisibleChanged(bool visible);
%End
%If (QtChart_1_2_0 -)
        void titleFontChanged(const QFont &font);
%End
%If (QtChart_1_2_0 -)
        void shadesPenChanged(const QPen &pen);
%End
%If (QtChart_1_2_0 -)
        void shadesBrushChanged(const QBrush &brush);
%End

    public:
%If (QtChart_2_1_0 -)
        bool isMinorGridLineVisible() const;
%End
%If (QtChart_2_1_0 -)
        void setMinorGridLineVisible(bool visible = true);
%End
%If (QtChart_2_1_0 -)
        void setMinorGridLinePen(const QPen &pen);
%End
%If (QtChart_2_1_0 -)
        QPen minorGridLinePen() const;
%End
%If (QtChart_2_1_0 -)
        void setGridLineColor(const QColor &color);
%End
%If (QtChart_2_1_0 -)
        QColor gridLineColor();
%End
%If (QtChart_2_1_0 -)
        void setMinorGridLineColor(const QColor &color);
%End
%If (QtChart_2_1_0 -)
        QColor minorGridLineColor();
%End
%If (QtChart_2_1_0 -)
        void setReverse(bool reverse = true);
%End
%If (QtChart_2_1_0 -)
        bool isReverse() const;
%End

    signals:
%If (QtChart_2_1_0 -)
        void minorGridVisibleChanged(bool visible);
%End
%If (QtChart_2_1_0 -)
        void minorGridLinePenChanged(const QPen &pen);
%End
%If (QtChart_2_1_0 -)
        void gridLineColorChanged(const QColor &color);
%End
%If (QtChart_2_1_0 -)
        void minorGridLineColorChanged(const QColor &color);
%End
%If (QtChart_2_1_0 -)
        void reverseChanged(bool reverse);
%End

    private:
%If (QtChart_2_0_0 -)
        QAbstractAxis(const QtCharts::QAbstractAxis &);
%End
    };
};