3rdparty
qwt
src
qwt_axis.h
Go to the documentation of this file.
1
/******************************************************************************
2
* Qwt Widget Library
3
* Copyright (C) 1997 Josef Wilgen
4
* Copyright (C) 2002 Uwe Rathmann
5
*
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the Qwt License, Version 1.0
8
*****************************************************************************/
9
10
#ifndef QWT_AXIS_H
11
#define QWT_AXIS_H
12
13
#include "
qwt_global.h
"
14
18
namespace
QwtAxis
19
{
21
enum
Position
22
{
24
YLeft
,
25
27
YRight
,
28
30
XBottom
,
31
33
XTop
34
};
35
37
enum
{
AxisPositions
=
XTop
+ 1 };
38
39
bool
isValid
(
int
axisPos );
40
bool
isYAxis
(
int
axisPos );
41
bool
isXAxis
(
int
axisPos );
42
}
43
45
inline
bool
QwtAxis::isValid
(
int
axisPos )
46
{
47
return
( axisPos >= 0 && axisPos <
AxisPositions
);
48
}
49
51
inline
bool
QwtAxis::isXAxis
(
int
axisPos )
52
{
53
return
( axisPos ==
XBottom
) || ( axisPos ==
XTop
);
54
}
55
57
inline
bool
QwtAxis::isYAxis
(
int
axisPos )
58
{
59
return
( axisPos ==
YLeft
) || ( axisPos ==
YRight
);
60
}
61
62
#endif
QwtAxis::isYAxis
bool isYAxis(int axisPos)
Definition:
qwt_axis.h:57
QwtAxis::Position
Position
Axis position.
Definition:
qwt_axis.h:28
qwt_global.h
QwtAxis::YLeft
@ YLeft
Y axis left of the canvas.
Definition:
qwt_axis.h:38
QwtAxis::isXAxis
bool isXAxis(int axisPos)
Definition:
qwt_axis.h:51
QwtAxis::AxisPositions
@ AxisPositions
Definition:
qwt_axis.h:44
QwtAxis
Definition:
qwt_axis.h:18
QwtAxis::XTop
@ XTop
X axis above the canvas.
Definition:
qwt_axis.h:47
QwtAxis::isValid
bool isValid(int axisPos)
Definition:
qwt_axis.h:45
QwtAxis::YRight
@ YRight
Y axis right of the canvas.
Definition:
qwt_axis.h:41
QwtAxis::XBottom
@ XBottom
X axis below the canvas.
Definition:
qwt_axis.h:44
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:45