// qsizepolicy.sip generated by MetaSIP on Fri Sep 28 17:07:47 2007 // // This file is part of the QtGui Python extension module. // // Copyright (c) 2007 // Phil Thompson // // This file is part of PyQt. // // This copy of PyQt is free software; you can redistribute it and/or modify it // under the terms of the GNU General Public License version 2 as published by // the Free Software Foundation and appearing in the file LICENSE included in the // packaging of this file. // // PyQt is supplied in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS // FOR A PARTICULAR PURPOSE. See the GNU General Public License for more // details. // // You should have received a copy of the GNU General Public License along with // PyQt; see the file LICENSE. If not, write to the Free Software Foundation, // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. %ModuleCode #include %End class QSizePolicy { %TypeHeaderCode #include %End public: enum PolicyFlag { GrowFlag, ExpandFlag, ShrinkFlag, IgnoreFlag, }; enum Policy { Fixed, Minimum, Maximum, Preferred, MinimumExpanding, Expanding, Ignored, }; QSizePolicy(); QSizePolicy(QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical); QSizePolicy(const QVariant &variant) /NoDerived/; %MethodCode sipCpp = new QSizePolicy(qVariantValue(*a0)); %End QSizePolicy::Policy horizontalPolicy() const; QSizePolicy::Policy verticalPolicy() const; void setHorizontalPolicy(QSizePolicy::Policy d); void setVerticalPolicy(QSizePolicy::Policy d); Qt::Orientations expandingDirections() const; void setHeightForWidth(bool b); bool hasHeightForWidth() const; bool operator==(const QSizePolicy &s) const; bool operator!=(const QSizePolicy &s) const; operator QVariant() const; int horizontalStretch() const; int verticalStretch() const; void setHorizontalStretch(uint stretchFactor); void setVerticalStretch(uint stretchFactor); void transpose(); %If (Qt_4_3_0 -) enum ControlType { DefaultType, ButtonBox, CheckBox, ComboBox, Frame, GroupBox, Label, Line, LineEdit, PushButton, RadioButton, Slider, SpinBox, TabWidget, ToolButton, }; %End %If (Qt_4_3_0 -) typedef QFlags ControlTypes; %End %If (Qt_4_3_0 -) QSizePolicy(QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical, QSizePolicy::ControlType type); %End %If (Qt_4_3_0 -) QSizePolicy::ControlType controlType() const; %End %If (Qt_4_3_0 -) void setControlType(QSizePolicy::ControlType type); %End }; %If (Qt_4_2_0 -) QDataStream &operator<<(QDataStream &, const QSizePolicy & /Constrained/); %End %If (Qt_4_2_0 -) QDataStream &operator>>(QDataStream &, QSizePolicy & /Constrained/); %End %If (Qt_4_3_0 -) QFlags operator|(QSizePolicy::ControlType f1, QFlags f2); %End %If (Qt_4_3_0 -) QFlags operator|(QSizePolicy::ControlType f1, QSizePolicy::ControlType f2); %End