-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
38cbbe2
commit b4f5025
Showing
12 changed files
with
651 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,156 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/layout/qgslayoutitemshape.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
class QgsLayoutItemShape : QgsLayoutItem | ||
{ | ||
%Docstring | ||
Base class for layout items which are basic shapes (e.g. rectangles, ellipses). | ||
.. versionadded:: 3.0 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgslayoutitemshape.h" | ||
%End | ||
public: | ||
|
||
void setSymbol( QgsFillSymbol *symbol ); | ||
%Docstring | ||
Sets the fill ``symbol`` used to draw the shape. Ownership is not transferred | ||
and a clone of the symbol is made. | ||
.. seealso:: symbol() | ||
%End | ||
|
||
QgsFillSymbol *symbol(); | ||
%Docstring | ||
Returns the fill symbol used to draw the shape. | ||
.. seealso:: setSymbol() | ||
:rtype: QgsFillSymbol | ||
%End | ||
|
||
protected: | ||
|
||
explicit QgsLayoutItemShape( QgsLayout *layout ); | ||
%Docstring | ||
Constructor for QgsLayoutItemShape, with the specified parent ``layout``. | ||
%End | ||
|
||
}; | ||
|
||
|
||
class QgsLayoutItemRectangularShape : QgsLayoutItemShape | ||
{ | ||
%Docstring | ||
A rectangular shape item for layouts. | ||
.. versionadded:: 3.0 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgslayoutitemshape.h" | ||
%End | ||
public: | ||
|
||
explicit QgsLayoutItemRectangularShape( QgsLayout *layout ); | ||
%Docstring | ||
Constructor for QgsLayoutItemRectangularShape, with the specified parent ``layout``. | ||
%End | ||
virtual int type() const; | ||
|
||
static QgsLayoutItemRectangularShape *create( QgsLayout *layout, const QVariantMap &settings ) /Factory/; | ||
%Docstring | ||
:rtype: QgsLayoutItemRectangularShape | ||
%End | ||
|
||
void setCornerRadius( QgsLayoutMeasurement radius ); | ||
%Docstring | ||
Sets the corner ``radius`` for rounded rectangle corners. | ||
.. seealso:: cornerRadius() | ||
%End | ||
|
||
QgsLayoutMeasurement cornerRadius() const; | ||
%Docstring | ||
Returns the corner radius for rounded rectangle corners. | ||
.. seealso:: setCornerRadius() | ||
:rtype: QgsLayoutMeasurement | ||
%End | ||
|
||
protected: | ||
|
||
virtual void draw( QgsRenderContext &context, const QStyleOptionGraphicsItem *itemStyle = 0 ); | ||
|
||
|
||
}; | ||
|
||
class QgsLayoutItemEllipseShape : QgsLayoutItemShape | ||
{ | ||
%Docstring | ||
A ellipse shape item for layouts. | ||
.. versionadded:: 3.0 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgslayoutitemshape.h" | ||
%End | ||
public: | ||
|
||
explicit QgsLayoutItemEllipseShape( QgsLayout *layout ); | ||
%Docstring | ||
Constructor for QgsLayoutItemEllipseShape, with the specified parent ``layout``. | ||
%End | ||
virtual int type() const; | ||
|
||
static QgsLayoutItemEllipseShape *create( QgsLayout *layout, const QVariantMap &settings ) /Factory/; | ||
%Docstring | ||
:rtype: QgsLayoutItemEllipseShape | ||
%End | ||
|
||
protected: | ||
|
||
virtual void draw( QgsRenderContext &context, const QStyleOptionGraphicsItem *itemStyle = 0 ); | ||
|
||
|
||
}; | ||
|
||
class QgsLayoutItemTriangleShape : QgsLayoutItemShape | ||
{ | ||
%Docstring | ||
A triangle shape item for layouts. | ||
.. versionadded:: 3.0 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgslayoutitemshape.h" | ||
%End | ||
public: | ||
|
||
explicit QgsLayoutItemTriangleShape( QgsLayout *layout ); | ||
%Docstring | ||
Constructor for QgsLayoutItemTriangleShape, with the specified parent ``layout``. | ||
%End | ||
virtual int type() const; | ||
|
||
static QgsLayoutItemTriangleShape *create( QgsLayout *layout, const QVariantMap &settings ) /Factory/; | ||
%Docstring | ||
:rtype: QgsLayoutItemTriangleShape | ||
%End | ||
|
||
protected: | ||
|
||
virtual void draw( QgsRenderContext &context, const QStyleOptionGraphicsItem *itemStyle = 0 ); | ||
|
||
|
||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/layout/qgslayoutitemshape.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.