You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
121 lines
4.5 KiB
121 lines
4.5 KiB
13 years ago
|
// This is the SIP interface definition for TQWindowsStyle.
|
||
13 years ago
|
//
|
||
|
// Copyright (c) 2007
|
||
|
// Riverbank Computing Limited <info@riverbankcomputing.co.uk>
|
||
|
//
|
||
13 years ago
|
// This file is part of PyTQt.
|
||
13 years ago
|
//
|
||
13 years ago
|
// This copy of PyTQt is free software; you can redistribute it and/or modify it
|
||
13 years ago
|
// under the terms of the GNU General Public License as published by the Free
|
||
|
// Software Foundation; either version 2, or (at your option) any later
|
||
|
// version.
|
||
|
//
|
||
13 years ago
|
// PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY
|
||
13 years ago
|
// 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
|
||
13 years ago
|
// PyTQt; see the file LICENSE. If not, write to the Free Software Foundation,
|
||
13 years ago
|
// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||
|
|
||
|
|
||
|
%ExportedDoc
|
||
13 years ago
|
<Sect2><Title>TQWindowsStyle (TQt v2+)</Title>
|
||
13 years ago
|
<FuncSynopsis>
|
||
|
<FuncDef>void <Function>getButtonShift</Function></FuncDef>
|
||
|
<ParamDef>int &<Parameter>x</Parameter></ParamDef>
|
||
|
<ParamDef>int &<Parameter>y</Parameter></ParamDef>
|
||
|
</FuncSynopsis>
|
||
|
<Para>
|
||
|
This takes no parameters and returns a tuple of the <Literal>x</Literal> and
|
||
13 years ago
|
<Literal>y</Literal> values. (TQt v2)
|
||
13 years ago
|
</Para>
|
||
|
|
||
|
<FuncSynopsis>
|
||
|
<FuncDef>void <Function>scrollBarMetrics</Function></FuncDef>
|
||
13 years ago
|
<ParamDef>const TQTabBar *<Parameter>sb</Parameter></ParamDef>
|
||
13 years ago
|
<ParamDef>int &<Parameter>sliderMin</Parameter></ParamDef>
|
||
|
<ParamDef>int &<Parameter>sliderMax</Parameter></ParamDef>
|
||
|
<ParamDef>int &<Parameter>sliderLength</Parameter></ParamDef>
|
||
|
<ParamDef>int &<Parameter>buttonDim</Parameter></ParamDef>
|
||
|
</FuncSynopsis>
|
||
|
<Para>
|
||
|
This takes only the <Literal>sb</Literal> parameter and returns a tuple of the
|
||
|
<Literal>sliderMin</Literal>, <Literal>sliderMax</Literal>,
|
||
|
<Literal>sliderLength</Literal> and <Literal>buttonDim</Literal> values.
|
||
13 years ago
|
(TQt v2)
|
||
13 years ago
|
</Para>
|
||
|
|
||
|
<FuncSynopsis>
|
||
|
<FuncDef>void <Function>tabbarMetrics</Function></FuncDef>
|
||
13 years ago
|
<ParamDef>const TQTabBar *<Parameter>t</Parameter></ParamDef>
|
||
13 years ago
|
<ParamDef>int &<Parameter>hframe</Parameter></ParamDef>
|
||
|
<ParamDef>int &<Parameter>vframe</Parameter></ParamDef>
|
||
|
<ParamDef>int &<Parameter>overlap</Parameter></ParamDef>
|
||
|
</FuncSynopsis>
|
||
|
<Para>
|
||
|
This takes only the <Literal>t</Literal> parameter and returns a tuple of the
|
||
|
<Literal>hframe</Literal>, <Literal>vframe</Literal> and
|
||
13 years ago
|
<Literal>overlap</Literal> values. (TQt v2)
|
||
13 years ago
|
</Para>
|
||
|
</Sect2>
|
||
|
%End
|
||
|
|
||
|
|
||
13 years ago
|
%If (TQt_STYLE_WINDOWS)
|
||
13 years ago
|
|
||
13 years ago
|
class TQWindowsStyle : TQCommonStyle
|
||
13 years ago
|
{
|
||
|
%TypeHeaderCode
|
||
13 years ago
|
#include <tqwindowsstyle.h>
|
||
13 years ago
|
%End
|
||
|
|
||
|
public:
|
||
13 years ago
|
TQWindowsStyle();
|
||
13 years ago
|
|
||
12 years ago
|
void applicationPolish(const TQStyleControlElementData&, ControlElementFlags, void *);
|
||
|
void applicationUnPolish(const TQStyleControlElementData&, ControlElementFlags, void *);
|
||
13 years ago
|
|
||
12 years ago
|
void polish(const TQStyleControlElementData&, ControlElementFlags, void *);
|
||
|
void unPolish(const TQStyleControlElementData&, ControlElementFlags, void *);
|
||
13 years ago
|
|
||
12 years ago
|
void polish( TQPalette & );
|
||
|
|
||
12 years ago
|
virtual void polishPopupMenu( const TQStyleControlElementData&, ControlElementFlags, void * );
|
||
13 years ago
|
|
||
12 years ago
|
void drawPrimitive(PrimitiveElement,TQPainter *,const TQStyleControlElementData&,ControlElementFlags,const TQRect &,
|
||
13 years ago
|
const TQColorGroup &,SFlags = Style_Default,
|
||
|
const TQStyleOption & = TQStyleOption()) const;
|
||
13 years ago
|
|
||
12 years ago
|
void drawControl(ControlElement,TQPainter *,const TQStyleControlElementData&,ControlElementFlags,
|
||
13 years ago
|
const TQRect &,const TQColorGroup &,
|
||
13 years ago
|
SFlags = Style_Default,
|
||
12 years ago
|
const TQStyleOption & = TQStyleOption(), const TQWidget *=0) const;
|
||
13 years ago
|
|
||
12 years ago
|
void drawComplexControl(ComplexControl,TQPainter *,const TQStyleControlElementData&,ControlElementFlags,
|
||
13 years ago
|
const TQRect &,const TQColorGroup &,
|
||
13 years ago
|
SFlags = Style_Default,SCFlags = SC_All,
|
||
|
SCFlags = SC_None,
|
||
12 years ago
|
const TQStyleOption & = TQStyleOption(),const TQWidget *=0) const;
|
||
13 years ago
|
|
||
12 years ago
|
int pixelMetric(PixelMetric,const TQStyleControlElementData&,ControlElementFlags,const TQWidget * = 0) const;
|
||
13 years ago
|
|
||
12 years ago
|
TQSize sizeFromContents(ContentsType,const TQStyleControlElementData&,ControlElementFlags,const TQSize &,
|
||
12 years ago
|
const TQStyleOption & = TQStyleOption(),const TQWidget *=0) const;
|
||
13 years ago
|
|
||
12 years ago
|
int styleHint(StyleHint,const TQStyleControlElementData&,ControlElementFlags,
|
||
13 years ago
|
const TQStyleOption & = TQStyleOption(),
|
||
12 years ago
|
TQStyleHintReturn * = 0, const TQWidget * = 0) const;
|
||
13 years ago
|
|
||
12 years ago
|
TQPixmap stylePixmap(StylePixmap,const TQStyleControlElementData&,ControlElementFlags,
|
||
12 years ago
|
const TQStyleOption & = TQStyleOption(), const TQWidget * = 0) const;
|
||
13 years ago
|
|
||
12 years ago
|
TQRect subRect(SubRect,const TQStyleControlElementData&, const ControlElementFlags,const TQWidget *) const;
|
||
13 years ago
|
|
||
|
private:
|
||
13 years ago
|
TQWindowsStyle(const TQWindowsStyle &);
|
||
13 years ago
|
};
|
||
|
|
||
|
%End
|