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  {
25 
28 
31 
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
Position
Axis position.
Definition: qwt_axis.h:21
bool isValid(int axisPos)
Definition: qwt_axis.h:45
bool isYAxis(int axisPos)
Definition: qwt_axis.h:57
Y axis right of the canvas.
Definition: qwt_axis.h:27
bool isXAxis(int axisPos)
Definition: qwt_axis.h:51
Y axis left of the canvas.
Definition: qwt_axis.h:24
X axis above the canvas.
Definition: qwt_axis.h:33
X axis below the canvas.
Definition: qwt_axis.h:30


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Jun 19 2023 03:01:38