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.
171 lines
4.0 KiB
171 lines
4.0 KiB
13 years ago
|
// This is the SIP interface definition for TQPaintDevice.
|
||
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>TQPaintDevice</Title>
|
||
13 years ago
|
<FuncSynopsis>
|
||
|
<FuncDef>virtual bool <Function>cmd</Function></FuncDef>
|
||
|
<ParamDef>int</ParamDef>
|
||
13 years ago
|
<ParamDef>TQPainter *</ParamDef>
|
||
|
<ParamDef>TQPDevCmdParam *</ParamDef>
|
||
13 years ago
|
</FuncSynopsis>
|
||
|
<Para>
|
||
|
Not implemented.
|
||
|
</Para>
|
||
|
</Sect2>
|
||
|
%End
|
||
|
|
||
|
|
||
|
%ModuleHeaderCode
|
||
13 years ago
|
#include <tqpaintdevice.h>
|
||
13 years ago
|
%End
|
||
|
|
||
|
|
||
13 years ago
|
void bitBlt(TQPaintDevice *,int,int,const TQPaintDevice *,int = 0,int = 0,
|
||
|
int = -1,int = -1,TQt::RasterOp = TQt::CopyROP,bool = 0);
|
||
|
void bitBlt(TQPaintDevice *,int,int,const TQImage *,int = 0,int = 0,int = -1,
|
||
13 years ago
|
int = -1,int = 0);
|
||
13 years ago
|
void bitBlt(TQPaintDevice *,const TQPoint &,const TQPaintDevice *,
|
||
|
const TQRect & = TQRect(0,0,-1,-1),TQt::RasterOp = TQt::CopyROP,
|
||
13 years ago
|
bool = 0);
|
||
|
|
||
|
|
||
13 years ago
|
class TQPaintDevice
|
||
13 years ago
|
{
|
||
|
%TypeHeaderCode
|
||
13 years ago
|
#include <tqpaintdevice.h>
|
||
13 years ago
|
%End
|
||
|
|
||
|
public:
|
||
|
int devType() const;
|
||
|
bool isExtDev() const;
|
||
|
bool paintingActive() const;
|
||
|
|
||
|
virtual void setResolution(int);
|
||
|
virtual int resolution() const;
|
||
|
|
||
|
%If (WS_X11)
|
||
13 years ago
|
TQt::HANDLE handle() const;
|
||
|
TQt::HANDLE x11RenderHandle() const;
|
||
13 years ago
|
Display *x11Display() const;
|
||
|
int x11Screen() const;
|
||
|
int x11Depth() const;
|
||
|
int x11Cells() const;
|
||
13 years ago
|
TQt::HANDLE x11Colormap() const;
|
||
13 years ago
|
bool x11DefaultColormap() const;
|
||
|
void *x11Visual() const;
|
||
|
bool x11DefaultVisual() const;
|
||
|
|
||
|
static Display *x11AppDisplay();
|
||
|
static int x11AppScreen();
|
||
|
|
||
|
static int x11AppDpiX();
|
||
|
static int x11AppDpiY();
|
||
|
static void x11SetAppDpiX(int);
|
||
|
static void x11SetAppDpiY(int);
|
||
|
static int x11AppDepth();
|
||
|
static int x11AppCells();
|
||
13 years ago
|
static TQt::HANDLE x11AppRootWindow();
|
||
|
static TQt::HANDLE x11AppColormap();
|
||
13 years ago
|
static bool x11AppDefaultColormap();
|
||
|
static void *x11AppVisual();
|
||
|
static bool x11AppDefaultVisual();
|
||
|
|
||
|
static int x11AppDepth(int);
|
||
|
static int x11AppCells(int);
|
||
13 years ago
|
static TQt::HANDLE x11AppRootWindow(int);
|
||
|
static TQt::HANDLE x11AppColormap(int);
|
||
13 years ago
|
static void *x11AppVisual(int);
|
||
|
static bool x11AppDefaultColormap(int);
|
||
|
static bool x11AppDefaultVisual(int);
|
||
|
static int x11AppDpiX(int);
|
||
|
static int x11AppDpiY(int);
|
||
|
static void x11SetAppDpiX(int,int);
|
||
|
static void x11SetAppDpiY(int,int);
|
||
|
%End
|
||
|
|
||
|
enum PDevCmd
|
||
|
{
|
||
|
PdcNOP,
|
||
|
PdcDrawPoint,
|
||
|
PdcDrawFirst,
|
||
|
PdcMoveTo,
|
||
|
PdcLineTo,
|
||
|
PdcDrawLine,
|
||
|
PdcDrawRect,
|
||
|
PdcDrawRoundRect,
|
||
|
PdcDrawEllipse,
|
||
|
PdcDrawArc,
|
||
|
PdcDrawPie,
|
||
|
PdcDrawChord,
|
||
|
PdcDrawLineSegments,
|
||
|
PdcDrawPolyline,
|
||
|
PdcDrawPolygon,
|
||
|
PdcDrawCubicBezier,
|
||
|
PdcDrawText,
|
||
|
PdcDrawTextFormatted,
|
||
|
PdcDrawPixmap,
|
||
|
PdcDrawImage,
|
||
|
PdcDrawText2,
|
||
|
PdcDrawText2Formatted,
|
||
|
PdcDrawTextItem,
|
||
|
PdcDrawLast,
|
||
|
|
||
|
PdcBegin,
|
||
|
PdcEnd,
|
||
|
PdcSave,
|
||
|
PdcRestore,
|
||
|
PdcSetdev,
|
||
|
PdcSetBkColor,
|
||
|
PdcSetBkMode,
|
||
|
PdcSetROP,
|
||
|
PdcSetBrushOrigin,
|
||
|
PdcSetFont,
|
||
|
PdcSetPen,
|
||
|
PdcSetBrush,
|
||
|
PdcSetTabStops,
|
||
|
PdcSetTabArray,
|
||
|
PdcSetUnit,
|
||
|
PdcSetVXform,
|
||
|
PdcSetWindow,
|
||
|
PdcSetViewport,
|
||
|
PdcSetWXform,
|
||
|
PdcSetWMatrix,
|
||
|
PdcSaveWMatrix,
|
||
|
PdcRestoreWMatrix,
|
||
|
PdcSetClip,
|
||
|
PdcSetClipRegion,
|
||
|
PdcReservedStart,
|
||
|
PdcReservedStop
|
||
|
};
|
||
|
|
||
|
protected:
|
||
13 years ago
|
TQPaintDevice(uint);
|
||
|
// virtual bool cmd(int,TQPainter *,TQPDevCmdParam *);
|
||
13 years ago
|
// virtual int metric(int) const;
|
||
13 years ago
|
// virtual int fontMet(TQFont *,int,const char *,int = 0) const;
|
||
|
// virtual int fontInf(TQFont *,int) const;
|
||
13 years ago
|
|
||
|
private:
|
||
13 years ago
|
TQPaintDevice(const TQPaintDevice &);
|
||
13 years ago
|
};
|