26
26
* KoChild is an abstract base class that represents the geometry
27
* associtated with an embedded document. In general handles its position
27
* associated with an embedded document. In general it handles its position
28
28
* relative to the embedded documents parent.
30
30
* In detail it handles size, matrix operations and can give you
47
47
* Sets a new geometry for this child document.
48
* Use noEmit = true if you do not want the 'changed'-signal to be emitted
49
virtual void setGeometry( const QRect &rect );
50
virtual void setGeometry( const QRect &rect, bool noEmit = false );
52
53
* @return the rectangle that would be used to display this
75
76
virtual QPointArray pointArray( const QWMatrix &matrix = QWMatrix() ) const;
78
* Tests wether the part contains a certain point. The point is
79
* in tghe corrdinate system of the parent.
79
* Tests whether the part contains a certain point. The point is
80
* in the coordinate system of the parent.
81
82
virtual bool contains( const QPoint& ) const;
94
95
virtual void setScaling( double x, double y );
98
* @return the x axis scaling of the child part
96
100
virtual double xScaling() const;
103
* @return the y axis scaling of the child part
98
105
virtual double yScaling() const;
100
virtual void setShearing( double, double );
108
* Shears the content of the child part.
110
virtual void setShearing( double x, double y );
113
* @return the x axis shearing of the child part
102
115
virtual double xShearing() const;
118
* @return the y axis shearing of the child part
104
120
virtual double yShearing() const;
123
* Sets the angle of rotation.
106
125
virtual void setRotation( double );
128
* @return the angle of rotation
108
130
virtual double rotation() const;
133
* Sets the center of the rotation to the point @p pos.
110
135
virtual void setRotationPoint( const QPoint& pos );
138
* @return the center of the rotation
112
140
virtual QPoint rotationPoint() const;
115
143
* @return true if the child part is an orthogonal rectangle relative
116
* to its parents corrdinate system.
144
* to its parents coordinate system.
118
146
virtual bool isRectangle() const;
121
149
* Sets the clip region of the painter, so that only pixels of the
122
150
* child part can be drawn.
124
* @param combine tells wether the new clip region is an intersection
125
* of the current region with the childs region or wether only
152
* @param combine tells whether the new clip region is an intersection
153
* of the current region with the childs region or whether only
126
154
* the childs region is set.
128
156
virtual void setClipRegion( QPainter& painter, bool combine = true );
131
159
* Transforms the painter (its worldmatrix and the clipping)
132
* in such a way, that the painter can be passed to the child part
160
* in such a way that the painter can be passed to the child part
135
163
virtual void transform( QPainter& painter );
166
void setContentsPos( int x, int y );
138
169
* @return the contents rectangle that is visible.
139
170
* This value depends on the scaling and the
142
* @see scaling geomtry
173
* @see #xScaling #geometry
144
175
virtual QRect contentRect() const;