1 /**************************************************************************** 2 ** 3 ** DQt - D bindings for the Qt Toolkit 4 ** 5 ** GNU Lesser General Public License Usage 6 ** This file may be used under the terms of the GNU Lesser 7 ** General Public License version 3 as published by the Free Software 8 ** Foundation and appearing in the file LICENSE.LGPL3 included in the 9 ** packaging of this file. Please review the following information to 10 ** ensure the GNU Lesser General Public License version 3 requirements 11 ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. 12 ** 13 ****************************************************************************/ 14 module qt.widgets.radiobutton; 15 extern(C++): 16 17 import qt.config; 18 import qt.core.coreevent; 19 import qt.core.point; 20 import qt.core.size; 21 import qt.core.string; 22 import qt.gui.event; 23 import qt.helpers; 24 import qt.widgets.abstractbutton; 25 import qt.widgets.styleoption; 26 import qt.widgets.widget; 27 28 /+ QT_REQUIRE_CONFIG(radiobutton); +/ 29 30 31 32 extern(C++, class) struct QRadioButtonPrivate; 33 /+ class QStyleOptionButton; +/ 34 35 class /+ Q_WIDGETS_EXPORT +/ QRadioButton : QAbstractButton 36 { 37 mixin(Q_OBJECT); 38 39 public: 40 /+ explicit +/this(QWidget parent = null); 41 /+ explicit +/this(ref const(QString) text, QWidget parent = null); 42 ~this(); 43 44 override QSize sizeHint() const; 45 override QSize minimumSizeHint() const; 46 47 protected: 48 override bool event(QEvent e); 49 override bool hitButton(ref const(QPoint) ) const; 50 override void paintEvent(QPaintEvent ); 51 override void mouseMoveEvent(QMouseEvent ); 52 final void initStyleOption(QStyleOptionButton* button) const; 53 54 55 private: 56 /+ Q_DECLARE_PRIVATE(QRadioButton) +/ 57 /+ Q_DISABLE_COPY(QRadioButton) +/ 58 /+ friend class QAccessibleButton; +/ 59 } 60