head 1.1; access; symbols pkgsrc-2026Q1:1.1.0.16 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.14 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.12 pkgsrc-2025Q3-base:1.1 pkgsrc-2025Q2:1.1.0.10 pkgsrc-2025Q2-base:1.1 pkgsrc-2025Q1:1.1.0.8 pkgsrc-2025Q1-base:1.1 pkgsrc-2024Q4:1.1.0.6 pkgsrc-2024Q4-base:1.1 pkgsrc-2024Q3:1.1.0.4 pkgsrc-2024Q3-base:1.1 pkgsrc-2024Q2:1.1.0.2 pkgsrc-2024Q2-base:1.1; locks; strict; comment @# @; 1.1 date 2024.05.11.20.54.12; author adam; state Exp; branches; next ; commitid oRGyGyzvgzneLC9F; desc @@ 1.1 log @py-qwt-qt5: fix builds against qwt-qt5 6.1.6 and newer @ text @$NetBSD$ Builds against qwt-qt5 6.1.6 https://github.com/GauiStori/PyQt-Qwt/pull/22 --- sip/qwt_axis.sip.orig 2024-05-11 19:35:25.211625345 +0000 +++ sip/qwt_axis.sip @@@@ -0,0 +1,62 @@@@ +/****************************************************************************** + * 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 + *****************************************************************************/ + +/*! + Enums and methods for axes + */ +namespace QwtAxis +{ +%TypeHeaderCode +#include "qwt_global.h" +%End + + //! \brief Axis position + enum Position + { + //! Y axis left of the canvas + YLeft, + + //! Y axis right of the canvas + YRight, + + //! X axis below the canvas + XBottom, + + //! X axis above the canvas + XTop + }; + + //! \brief Number of axis positions + enum { AxisPositions = XTop + 1 }; + + bool isValid( int axisPos ); + bool isYAxis( int axisPos ); + bool isXAxis( int axisPos ); +} + +/* +//! \return true, when axisPos is in the valid range [ YLeft, XTop ] +inline bool QwtAxis::isValid( int axisPos ) +{ + return ( axisPos >= 0 && axisPos < AxisPositions ); +} + +//! \return true, when axisPos is XBottom or XTop +inline bool QwtAxis::isXAxis( int axisPos ) +{ + return ( axisPos == XBottom ) || ( axisPos == XTop ); +} + +//! \return true, when axisPos is YLeft or YRight +inline bool QwtAxis::isYAxis( int axisPos ) +{ + return ( axisPos == YLeft ) || ( axisPos == YRight ); +} + +*/ @