Documentation ¶
Index ¶
- func DeleteQGraphicsSvgItem(this *QGraphicsSvgItem)
- func DeleteQSvgGenerator(this *QSvgGenerator)
- func DeleteQSvgRenderer(this *QSvgRenderer)
- func DeleteQSvgWidget(this *QSvgWidget)
- func QGraphicsSvgItem_ItemName(val int) string
- type QGraphicsSvgItem
- func NewQGraphicsSvgItem(parentItem qtwidgets.QGraphicsItem_ITF) *QGraphicsSvgItem
- func NewQGraphicsSvgItem1(fileName string, parentItem qtwidgets.QGraphicsItem_ITF) *QGraphicsSvgItem
- func NewQGraphicsSvgItem1p(fileName string) *QGraphicsSvgItem
- func NewQGraphicsSvgItemFromPointer(cthis unsafe.Pointer) *QGraphicsSvgItem
- func NewQGraphicsSvgItemp() *QGraphicsSvgItem
- func (this *QGraphicsSvgItem) BoundingRect() *qtcore.QRectF
- func (this *QGraphicsSvgItem) ElementId() string
- func (this *QGraphicsSvgItem) GetCthis() unsafe.Pointer
- func (this *QGraphicsSvgItem) IsCachingEnabled() bool
- func (this *QGraphicsSvgItem) ItemName(val int) string
- func (this *QGraphicsSvgItem) MaximumCacheSize() *qtcore.QSize
- func (this *QGraphicsSvgItem) MetaObject() *qtcore.QMetaObject
- func (*QGraphicsSvgItem) NewForInherit(parentItem qtwidgets.QGraphicsItem_ITF) *QGraphicsSvgItem
- func (*QGraphicsSvgItem) NewForInherit1(fileName string, parentItem qtwidgets.QGraphicsItem_ITF) *QGraphicsSvgItem
- func (*QGraphicsSvgItem) NewForInherit1p(fileName string) *QGraphicsSvgItem
- func (*QGraphicsSvgItem) NewForInheritp() *QGraphicsSvgItem
- func (*QGraphicsSvgItem) NewFromPointer(cthis unsafe.Pointer) *QGraphicsSvgItem
- func (this *QGraphicsSvgItem) Paint(painter qtgui.QPainter_ITF, option qtwidgets.QStyleOptionGraphicsItem_ITF, ...)
- func (this *QGraphicsSvgItem) Paintp(painter qtgui.QPainter_ITF, option qtwidgets.QStyleOptionGraphicsItem_ITF)
- func (ptr *QGraphicsSvgItem) QGraphicsSvgItem_PTR() *QGraphicsSvgItem
- func (this *QGraphicsSvgItem) Renderer() *QSvgRenderer
- func (this *QGraphicsSvgItem) SetCachingEnabled(arg0 bool)
- func (this *QGraphicsSvgItem) SetCthis(cthis unsafe.Pointer)
- func (this *QGraphicsSvgItem) SetElementId(id string)
- func (this *QGraphicsSvgItem) SetMaximumCacheSize(size qtcore.QSize_ITF)
- func (this *QGraphicsSvgItem) SetSharedRenderer(renderer QSvgRenderer_ITF)
- func (this *QGraphicsSvgItem) Type() int
- type QGraphicsSvgItem_ITF
- type QGraphicsSvgItem__
- type QSvgGenerator
- func (this *QSvgGenerator) Description() string
- func (this *QSvgGenerator) FileName() string
- func (this *QSvgGenerator) GetCthis() unsafe.Pointer
- func (this *QSvgGenerator) InheritMetric(f func(metric int) int)
- func (this *QSvgGenerator) InheritPaintEngine(f func() unsafe.Pointer)
- func (this *QSvgGenerator) Metric(metric int) int
- func (*QSvgGenerator) NewForInherit() *QSvgGenerator
- func (*QSvgGenerator) NewFromPointer(cthis unsafe.Pointer) *QSvgGenerator
- func (this *QSvgGenerator) OutputDevice() *qtcore.QIODevice
- func (this *QSvgGenerator) PaintEngine() *qtgui.QPaintEngine
- func (ptr *QSvgGenerator) QSvgGenerator_PTR() *QSvgGenerator
- func (this *QSvgGenerator) Resolution() int
- func (this *QSvgGenerator) SetCthis(cthis unsafe.Pointer)
- func (this *QSvgGenerator) SetDescription(description string)
- func (this *QSvgGenerator) SetFileName(fileName string)
- func (this *QSvgGenerator) SetOutputDevice(outputDevice qtcore.QIODevice_ITF)
- func (this *QSvgGenerator) SetResolution(dpi int)
- func (this *QSvgGenerator) SetSize(size qtcore.QSize_ITF)
- func (this *QSvgGenerator) SetTitle(title string)
- func (this *QSvgGenerator) SetViewBox(viewBox qtcore.QRect_ITF)
- func (this *QSvgGenerator) SetViewBox1(viewBox qtcore.QRectF_ITF)
- func (this *QSvgGenerator) Size() *qtcore.QSize
- func (this *QSvgGenerator) Title() string
- func (this *QSvgGenerator) ViewBox() *qtcore.QRect
- func (this *QSvgGenerator) ViewBoxF() *qtcore.QRectF
- type QSvgGenerator_ITF
- type QSvgRenderer
- func NewQSvgRenderer(parent qtcore.QObject_ITF) *QSvgRenderer
- func NewQSvgRenderer1(filename string, parent qtcore.QObject_ITF) *QSvgRenderer
- func NewQSvgRenderer1p(filename string) *QSvgRenderer
- func NewQSvgRenderer2(contents qtcore.QByteArray_ITF, parent qtcore.QObject_ITF) *QSvgRenderer
- func NewQSvgRenderer2p(contents qtcore.QByteArray_ITF) *QSvgRenderer
- func NewQSvgRenderer3(contents qtcore.QXmlStreamReader_ITF, parent qtcore.QObject_ITF) *QSvgRenderer
- func NewQSvgRenderer3p(contents qtcore.QXmlStreamReader_ITF) *QSvgRenderer
- func NewQSvgRendererFromPointer(cthis unsafe.Pointer) *QSvgRenderer
- func NewQSvgRendererp() *QSvgRenderer
- func (this *QSvgRenderer) Animated() bool
- func (this *QSvgRenderer) AnimationDuration() int
- func (this *QSvgRenderer) BoundsOnElement(id string) *qtcore.QRectF
- func (this *QSvgRenderer) CurrentFrame() int
- func (this *QSvgRenderer) DefaultSize() *qtcore.QSize
- func (this *QSvgRenderer) ElementExists(id string) bool
- func (this *QSvgRenderer) FramesPerSecond() int
- func (this *QSvgRenderer) GetCthis() unsafe.Pointer
- func (this *QSvgRenderer) IsValid() bool
- func (this *QSvgRenderer) Load(filename string) bool
- func (this *QSvgRenderer) Load1(contents qtcore.QByteArray_ITF) bool
- func (this *QSvgRenderer) Load2(contents qtcore.QXmlStreamReader_ITF) bool
- func (this *QSvgRenderer) MatrixForElement(id string) *qtgui.QMatrix
- func (this *QSvgRenderer) MetaObject() *qtcore.QMetaObject
- func (*QSvgRenderer) NewForInherit(parent qtcore.QObject_ITF) *QSvgRenderer
- func (*QSvgRenderer) NewForInherit1(filename string, parent qtcore.QObject_ITF) *QSvgRenderer
- func (*QSvgRenderer) NewForInherit1p(filename string) *QSvgRenderer
- func (*QSvgRenderer) NewForInherit2(contents qtcore.QByteArray_ITF, parent qtcore.QObject_ITF) *QSvgRenderer
- func (*QSvgRenderer) NewForInherit2p(contents qtcore.QByteArray_ITF) *QSvgRenderer
- func (*QSvgRenderer) NewForInherit3(contents qtcore.QXmlStreamReader_ITF, parent qtcore.QObject_ITF) *QSvgRenderer
- func (*QSvgRenderer) NewForInherit3p(contents qtcore.QXmlStreamReader_ITF) *QSvgRenderer
- func (*QSvgRenderer) NewForInheritp() *QSvgRenderer
- func (*QSvgRenderer) NewFromPointer(cthis unsafe.Pointer) *QSvgRenderer
- func (ptr *QSvgRenderer) QSvgRenderer_PTR() *QSvgRenderer
- func (this *QSvgRenderer) Render(p qtgui.QPainter_ITF)
- func (this *QSvgRenderer) Render1(p qtgui.QPainter_ITF, bounds qtcore.QRectF_ITF)
- func (this *QSvgRenderer) Render2(p qtgui.QPainter_ITF, elementId string, bounds qtcore.QRectF_ITF)
- func (this *QSvgRenderer) Render2p(p qtgui.QPainter_ITF, elementId string)
- func (this *QSvgRenderer) RepaintNeeded()
- func (this *QSvgRenderer) SetCthis(cthis unsafe.Pointer)
- func (this *QSvgRenderer) SetCurrentFrame(arg0 int)
- func (this *QSvgRenderer) SetFramesPerSecond(num int)
- func (this *QSvgRenderer) SetViewBox(viewbox qtcore.QRect_ITF)
- func (this *QSvgRenderer) SetViewBox1(viewbox qtcore.QRectF_ITF)
- func (this *QSvgRenderer) ViewBox() *qtcore.QRect
- func (this *QSvgRenderer) ViewBoxF() *qtcore.QRectF
- type QSvgRenderer_ITF
- type QSvgWidget
- func (this *QSvgWidget) GetCthis() unsafe.Pointer
- func (this *QSvgWidget) InheritPaintEvent(f func(event *qtgui.QPaintEvent))
- func (this *QSvgWidget) Load(file string)
- func (this *QSvgWidget) Load1(contents qtcore.QByteArray_ITF)
- func (this *QSvgWidget) MetaObject() *qtcore.QMetaObject
- func (*QSvgWidget) NewForInherit(parent qtwidgets.QWidget_ITF) *QSvgWidget
- func (*QSvgWidget) NewForInherit1(file string, parent qtwidgets.QWidget_ITF) *QSvgWidget
- func (*QSvgWidget) NewForInherit1p(file string) *QSvgWidget
- func (*QSvgWidget) NewForInheritp() *QSvgWidget
- func (*QSvgWidget) NewFromPointer(cthis unsafe.Pointer) *QSvgWidget
- func (this *QSvgWidget) PaintEvent(event qtgui.QPaintEvent_ITF)
- func (ptr *QSvgWidget) QSvgWidget_PTR() *QSvgWidget
- func (this *QSvgWidget) Renderer() *QSvgRenderer
- func (this *QSvgWidget) SetCthis(cthis unsafe.Pointer)
- func (this *QSvgWidget) SizeHint() *qtcore.QSize
- type QSvgWidget_ITF
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteQGraphicsSvgItem ¶
func DeleteQGraphicsSvgItem(this *QGraphicsSvgItem)
func DeleteQSvgGenerator ¶
func DeleteQSvgGenerator(this *QSvgGenerator)
func DeleteQSvgRenderer ¶
func DeleteQSvgRenderer(this *QSvgRenderer)
func DeleteQSvgWidget ¶
func DeleteQSvgWidget(this *QSvgWidget)
Types ¶
type QGraphicsSvgItem ¶
func NewQGraphicsSvgItem ¶
func NewQGraphicsSvgItem(parentItem qtwidgets.QGraphicsItem_ITF) *QGraphicsSvgItem
func NewQGraphicsSvgItem1 ¶
func NewQGraphicsSvgItem1(fileName string, parentItem qtwidgets.QGraphicsItem_ITF) *QGraphicsSvgItem
func NewQGraphicsSvgItem1p ¶
func NewQGraphicsSvgItem1p(fileName string) *QGraphicsSvgItem
func NewQGraphicsSvgItemFromPointer ¶
func NewQGraphicsSvgItemFromPointer(cthis unsafe.Pointer) *QGraphicsSvgItem
func NewQGraphicsSvgItemp ¶
func NewQGraphicsSvgItemp() *QGraphicsSvgItem
func (*QGraphicsSvgItem) BoundingRect ¶
func (this *QGraphicsSvgItem) BoundingRect() *qtcore.QRectF
Reimplemented from QGraphicsItem::boundingRect().
Returns the bounding rectangle of this item.
func (*QGraphicsSvgItem) ElementId ¶
func (this *QGraphicsSvgItem) ElementId() string
Returns the XML ID the element that is currently being rendered. Returns an empty string if the whole file is being rendered.
Note: Getter function for property elementId.
See also setElementId().
func (*QGraphicsSvgItem) GetCthis ¶
func (this *QGraphicsSvgItem) GetCthis() unsafe.Pointer
func (*QGraphicsSvgItem) IsCachingEnabled ¶
func (this *QGraphicsSvgItem) IsCachingEnabled() bool
func (*QGraphicsSvgItem) ItemName ¶
func (this *QGraphicsSvgItem) ItemName(val int) string
func (*QGraphicsSvgItem) MaximumCacheSize ¶
func (this *QGraphicsSvgItem) MaximumCacheSize() *qtcore.QSize
Returns the current maximum size of the device coordinate cache for this item. If the item is cached using QGraphicsItem::DeviceCoordinateCache mode, caching is bypassed if the extension of the item in device coordinates is larger than the maximum size.
The default maximum cache size is 1024x768. QPixmapCache::cacheLimit() gives the cumulative bounds of the whole cache, whereas maximumCacheSize() refers to a maximum cache size for this particular item.
Note: Getter function for property maximumCacheSize.
See also setMaximumCacheSize() and QGraphicsItem::cacheMode().
func (*QGraphicsSvgItem) MetaObject ¶
func (this *QGraphicsSvgItem) MetaObject() *qtcore.QMetaObject
func (*QGraphicsSvgItem) NewForInherit ¶
func (*QGraphicsSvgItem) NewForInherit(parentItem qtwidgets.QGraphicsItem_ITF) *QGraphicsSvgItem
Constructs a new SVG item with the given parent.
func (*QGraphicsSvgItem) NewForInherit1 ¶
func (*QGraphicsSvgItem) NewForInherit1(fileName string, parentItem qtwidgets.QGraphicsItem_ITF) *QGraphicsSvgItem
Constructs a new SVG item with the given parent.
func (*QGraphicsSvgItem) NewForInherit1p ¶
func (*QGraphicsSvgItem) NewForInherit1p(fileName string) *QGraphicsSvgItem
Constructs a new SVG item with the given parent.
func (*QGraphicsSvgItem) NewForInheritp ¶
func (*QGraphicsSvgItem) NewForInheritp() *QGraphicsSvgItem
Constructs a new SVG item with the given parent.
func (*QGraphicsSvgItem) NewFromPointer ¶
func (*QGraphicsSvgItem) NewFromPointer(cthis unsafe.Pointer) *QGraphicsSvgItem
func (*QGraphicsSvgItem) Paint ¶
func (this *QGraphicsSvgItem) Paint(painter qtgui.QPainter_ITF, option qtwidgets.QStyleOptionGraphicsItem_ITF, widget qtwidgets.QWidget_ITF)
Reimplemented from QGraphicsItem::paint().
func (*QGraphicsSvgItem) Paintp ¶
func (this *QGraphicsSvgItem) Paintp(painter qtgui.QPainter_ITF, option qtwidgets.QStyleOptionGraphicsItem_ITF)
Reimplemented from QGraphicsItem::paint().
func (*QGraphicsSvgItem) QGraphicsSvgItem_PTR ¶
func (ptr *QGraphicsSvgItem) QGraphicsSvgItem_PTR() *QGraphicsSvgItem
func (*QGraphicsSvgItem) Renderer ¶
func (this *QGraphicsSvgItem) Renderer() *QSvgRenderer
Returns the currently use QSvgRenderer.
func (*QGraphicsSvgItem) SetCachingEnabled ¶
func (this *QGraphicsSvgItem) SetCachingEnabled(arg0 bool)
func (*QGraphicsSvgItem) SetCthis ¶
func (this *QGraphicsSvgItem) SetCthis(cthis unsafe.Pointer)
func (*QGraphicsSvgItem) SetElementId ¶
func (this *QGraphicsSvgItem) SetElementId(id string)
Sets the XML ID of the element to id.
Note: Setter function for property elementId.
See also elementId().
func (*QGraphicsSvgItem) SetMaximumCacheSize ¶
func (this *QGraphicsSvgItem) SetMaximumCacheSize(size qtcore.QSize_ITF)
Sets the maximum device coordinate cache size of the item to size. If the item is cached using QGraphicsItem::DeviceCoordinateCache mode, caching is bypassed if the extension of the item in device coordinates is larger than size.
The cache corresponds to the QPixmap which is used to cache the results of the rendering. Use QPixmapCache::setCacheLimit() to set limitations on the whole cache and use setMaximumCacheSize() when setting cache size for individual items.
Note: Setter function for property maximumCacheSize.
See also maximumCacheSize() and QGraphicsItem::cacheMode().
func (*QGraphicsSvgItem) SetSharedRenderer ¶
func (this *QGraphicsSvgItem) SetSharedRenderer(renderer QSvgRenderer_ITF)
Sets renderer to be a shared QSvgRenderer on the item. By using this method one can share the same QSvgRenderer on a number of items. This means that the SVG file will be parsed only once. QSvgRenderer passed to this method has to exist for as long as this item is used.
func (*QGraphicsSvgItem) Type ¶
func (this *QGraphicsSvgItem) Type() int
Reimplemented from QGraphicsItem::type().
type QGraphicsSvgItem_ITF ¶
type QGraphicsSvgItem_ITF interface {
QGraphicsSvgItem_PTR() *QGraphicsSvgItem
}
type QGraphicsSvgItem__ ¶
type QGraphicsSvgItem__ = int
const QGraphicsSvgItem__Type QGraphicsSvgItem__ = 13
type QSvgGenerator ¶
type QSvgGenerator struct {
*qtgui.QPaintDevice
}
func NewQSvgGenerator ¶
func NewQSvgGenerator() *QSvgGenerator
func NewQSvgGeneratorFromPointer ¶
func NewQSvgGeneratorFromPointer(cthis unsafe.Pointer) *QSvgGenerator
func (*QSvgGenerator) Description ¶
func (this *QSvgGenerator) Description() string
func (*QSvgGenerator) FileName ¶
func (this *QSvgGenerator) FileName() string
func (*QSvgGenerator) GetCthis ¶
func (this *QSvgGenerator) GetCthis() unsafe.Pointer
func (*QSvgGenerator) InheritMetric ¶
func (this *QSvgGenerator) InheritMetric(f func(metric int) int)
int metric(QPaintDevice::PaintDeviceMetric)
func (*QSvgGenerator) InheritPaintEngine ¶
func (this *QSvgGenerator) InheritPaintEngine(f func() unsafe.Pointer)
QPaintEngine * paintEngine()
func (*QSvgGenerator) Metric ¶
func (this *QSvgGenerator) Metric(metric int) int
Reimplemented from QPaintDevice::metric().
func (*QSvgGenerator) NewForInherit ¶
func (*QSvgGenerator) NewForInherit() *QSvgGenerator
Constructs a new generator.
func (*QSvgGenerator) NewFromPointer ¶
func (*QSvgGenerator) NewFromPointer(cthis unsafe.Pointer) *QSvgGenerator
func (*QSvgGenerator) OutputDevice ¶
func (this *QSvgGenerator) OutputDevice() *qtcore.QIODevice
func (*QSvgGenerator) PaintEngine ¶
func (this *QSvgGenerator) PaintEngine() *qtgui.QPaintEngine
Reimplemented from QPaintDevice::paintEngine().
Returns the paint engine used to render graphics to be converted to SVG format information.
func (*QSvgGenerator) QSvgGenerator_PTR ¶
func (ptr *QSvgGenerator) QSvgGenerator_PTR() *QSvgGenerator
func (*QSvgGenerator) Resolution ¶
func (this *QSvgGenerator) Resolution() int
func (*QSvgGenerator) SetCthis ¶
func (this *QSvgGenerator) SetCthis(cthis unsafe.Pointer)
func (*QSvgGenerator) SetDescription ¶
func (this *QSvgGenerator) SetDescription(description string)
func (*QSvgGenerator) SetFileName ¶
func (this *QSvgGenerator) SetFileName(fileName string)
func (*QSvgGenerator) SetOutputDevice ¶
func (this *QSvgGenerator) SetOutputDevice(outputDevice qtcore.QIODevice_ITF)
func (*QSvgGenerator) SetResolution ¶
func (this *QSvgGenerator) SetResolution(dpi int)
func (*QSvgGenerator) SetSize ¶
func (this *QSvgGenerator) SetSize(size qtcore.QSize_ITF)
func (*QSvgGenerator) SetTitle ¶
func (this *QSvgGenerator) SetTitle(title string)
func (*QSvgGenerator) SetViewBox ¶
func (this *QSvgGenerator) SetViewBox(viewBox qtcore.QRect_ITF)
func (*QSvgGenerator) SetViewBox1 ¶
func (this *QSvgGenerator) SetViewBox1(viewBox qtcore.QRectF_ITF)
func (*QSvgGenerator) Size ¶
func (this *QSvgGenerator) Size() *qtcore.QSize
func (*QSvgGenerator) Title ¶
func (this *QSvgGenerator) Title() string
func (*QSvgGenerator) ViewBox ¶
func (this *QSvgGenerator) ViewBox() *qtcore.QRect
Returns viewBoxF().toRect().
This function was introduced in Qt 4.5.
See also setViewBox() and viewBoxF().
func (*QSvgGenerator) ViewBoxF ¶
func (this *QSvgGenerator) ViewBoxF() *qtcore.QRectF
type QSvgGenerator_ITF ¶
type QSvgGenerator_ITF interface { qtgui.QPaintDevice_ITF QSvgGenerator_PTR() *QSvgGenerator }
type QSvgRenderer ¶
func NewQSvgRenderer ¶
func NewQSvgRenderer(parent qtcore.QObject_ITF) *QSvgRenderer
func NewQSvgRenderer1 ¶
func NewQSvgRenderer1(filename string, parent qtcore.QObject_ITF) *QSvgRenderer
func NewQSvgRenderer1p ¶
func NewQSvgRenderer1p(filename string) *QSvgRenderer
func NewQSvgRenderer2 ¶
func NewQSvgRenderer2(contents qtcore.QByteArray_ITF, parent qtcore.QObject_ITF) *QSvgRenderer
func NewQSvgRenderer2p ¶
func NewQSvgRenderer2p(contents qtcore.QByteArray_ITF) *QSvgRenderer
func NewQSvgRenderer3 ¶
func NewQSvgRenderer3(contents qtcore.QXmlStreamReader_ITF, parent qtcore.QObject_ITF) *QSvgRenderer
func NewQSvgRenderer3p ¶
func NewQSvgRenderer3p(contents qtcore.QXmlStreamReader_ITF) *QSvgRenderer
func NewQSvgRendererFromPointer ¶
func NewQSvgRendererFromPointer(cthis unsafe.Pointer) *QSvgRenderer
func NewQSvgRendererp ¶
func NewQSvgRendererp() *QSvgRenderer
func (*QSvgRenderer) Animated ¶
func (this *QSvgRenderer) Animated() bool
Returns true if the current document contains animated elements; otherwise returns false.
See also framesPerSecond().
func (*QSvgRenderer) AnimationDuration ¶
func (this *QSvgRenderer) AnimationDuration() int
func (*QSvgRenderer) BoundsOnElement ¶
func (this *QSvgRenderer) BoundsOnElement(id string) *qtcore.QRectF
Returns bounding rectangle of the item with the given id. The transformation matrix of parent elements is not affecting the bounds of the element.
This function was introduced in Qt 4.2.
See also matrixForElement().
func (*QSvgRenderer) CurrentFrame ¶
func (this *QSvgRenderer) CurrentFrame() int
func (*QSvgRenderer) DefaultSize ¶
func (this *QSvgRenderer) DefaultSize() *qtcore.QSize
Returns the default size of the document contents.
func (*QSvgRenderer) ElementExists ¶
func (this *QSvgRenderer) ElementExists(id string) bool
Returns true if the element with the given id exists in the currently parsed SVG file and is a renderable element.
Note: this method returns true only for elements that can be rendered. Which implies that elements that are considered part of the fill/stroke style properties, e.g. radialGradients even tough marked with "id" attributes will not be found by this method.
This function was introduced in Qt 4.2.
func (*QSvgRenderer) FramesPerSecond ¶
func (this *QSvgRenderer) FramesPerSecond() int
func (*QSvgRenderer) GetCthis ¶
func (this *QSvgRenderer) GetCthis() unsafe.Pointer
func (*QSvgRenderer) IsValid ¶
func (this *QSvgRenderer) IsValid() bool
Returns true if there is a valid current document; otherwise returns false.
func (*QSvgRenderer) Load ¶
func (this *QSvgRenderer) Load(filename string) bool
Loads the SVG file specified by filename, returning true if the content was successfully parsed; otherwise returns false.
func (*QSvgRenderer) Load1 ¶
func (this *QSvgRenderer) Load1(contents qtcore.QByteArray_ITF) bool
Loads the SVG file specified by filename, returning true if the content was successfully parsed; otherwise returns false.
func (*QSvgRenderer) Load2 ¶
func (this *QSvgRenderer) Load2(contents qtcore.QXmlStreamReader_ITF) bool
Loads the SVG file specified by filename, returning true if the content was successfully parsed; otherwise returns false.
func (*QSvgRenderer) MatrixForElement ¶
func (this *QSvgRenderer) MatrixForElement(id string) *qtgui.QMatrix
Returns the transformation matrix for the element with the given id. The matrix is a product of the transformation of the element's parents. The transformation of the element itself is not included.
To find the bounding rectangle of the element in logical coordinates, you can apply the matrix on the rectangle returned from boundsOnElement().
This function was introduced in Qt 4.2.
See also boundsOnElement().
func (*QSvgRenderer) MetaObject ¶
func (this *QSvgRenderer) MetaObject() *qtcore.QMetaObject
func (*QSvgRenderer) NewForInherit ¶
func (*QSvgRenderer) NewForInherit(parent qtcore.QObject_ITF) *QSvgRenderer
Constructs a new renderer with the given parent.
func (*QSvgRenderer) NewForInherit1 ¶
func (*QSvgRenderer) NewForInherit1(filename string, parent qtcore.QObject_ITF) *QSvgRenderer
Constructs a new renderer with the given parent.
func (*QSvgRenderer) NewForInherit1p ¶
func (*QSvgRenderer) NewForInherit1p(filename string) *QSvgRenderer
Constructs a new renderer with the given parent.
func (*QSvgRenderer) NewForInherit2 ¶
func (*QSvgRenderer) NewForInherit2(contents qtcore.QByteArray_ITF, parent qtcore.QObject_ITF) *QSvgRenderer
Constructs a new renderer with the given parent.
func (*QSvgRenderer) NewForInherit2p ¶
func (*QSvgRenderer) NewForInherit2p(contents qtcore.QByteArray_ITF) *QSvgRenderer
Constructs a new renderer with the given parent.
func (*QSvgRenderer) NewForInherit3 ¶
func (*QSvgRenderer) NewForInherit3(contents qtcore.QXmlStreamReader_ITF, parent qtcore.QObject_ITF) *QSvgRenderer
Constructs a new renderer with the given parent.
func (*QSvgRenderer) NewForInherit3p ¶
func (*QSvgRenderer) NewForInherit3p(contents qtcore.QXmlStreamReader_ITF) *QSvgRenderer
Constructs a new renderer with the given parent.
func (*QSvgRenderer) NewForInheritp ¶
func (*QSvgRenderer) NewForInheritp() *QSvgRenderer
Constructs a new renderer with the given parent.
func (*QSvgRenderer) NewFromPointer ¶
func (*QSvgRenderer) NewFromPointer(cthis unsafe.Pointer) *QSvgRenderer
func (*QSvgRenderer) QSvgRenderer_PTR ¶
func (ptr *QSvgRenderer) QSvgRenderer_PTR() *QSvgRenderer
func (*QSvgRenderer) Render ¶
func (this *QSvgRenderer) Render(p qtgui.QPainter_ITF)
Renders the current document, or the current frame of an animated document, using the given painter.
func (*QSvgRenderer) Render1 ¶
func (this *QSvgRenderer) Render1(p qtgui.QPainter_ITF, bounds qtcore.QRectF_ITF)
Renders the current document, or the current frame of an animated document, using the given painter.
func (*QSvgRenderer) Render2 ¶
func (this *QSvgRenderer) Render2(p qtgui.QPainter_ITF, elementId string, bounds qtcore.QRectF_ITF)
Renders the current document, or the current frame of an animated document, using the given painter.
func (*QSvgRenderer) Render2p ¶
func (this *QSvgRenderer) Render2p(p qtgui.QPainter_ITF, elementId string)
Renders the current document, or the current frame of an animated document, using the given painter.
func (*QSvgRenderer) RepaintNeeded ¶
func (this *QSvgRenderer) RepaintNeeded()
This signal is emitted whenever the rendering of the document needs to be updated, usually for the purposes of animation.
func (*QSvgRenderer) SetCthis ¶
func (this *QSvgRenderer) SetCthis(cthis unsafe.Pointer)
func (*QSvgRenderer) SetCurrentFrame ¶
func (this *QSvgRenderer) SetCurrentFrame(arg0 int)
func (*QSvgRenderer) SetFramesPerSecond ¶
func (this *QSvgRenderer) SetFramesPerSecond(num int)
func (*QSvgRenderer) SetViewBox ¶
func (this *QSvgRenderer) SetViewBox(viewbox qtcore.QRect_ITF)
func (*QSvgRenderer) SetViewBox1 ¶
func (this *QSvgRenderer) SetViewBox1(viewbox qtcore.QRectF_ITF)
func (*QSvgRenderer) ViewBox ¶
func (this *QSvgRenderer) ViewBox() *qtcore.QRect
Returns viewBoxF().toRect().
See also setViewBox() and viewBoxF().
func (*QSvgRenderer) ViewBoxF ¶
func (this *QSvgRenderer) ViewBoxF() *qtcore.QRectF
type QSvgRenderer_ITF ¶
type QSvgRenderer_ITF interface { qtcore.QObject_ITF QSvgRenderer_PTR() *QSvgRenderer }
type QSvgWidget ¶
func NewQSvgWidget ¶
func NewQSvgWidget(parent qtwidgets.QWidget_ITF) *QSvgWidget
func NewQSvgWidget1 ¶
func NewQSvgWidget1(file string, parent qtwidgets.QWidget_ITF) *QSvgWidget
func NewQSvgWidget1p ¶
func NewQSvgWidget1p(file string) *QSvgWidget
func NewQSvgWidgetFromPointer ¶
func NewQSvgWidgetFromPointer(cthis unsafe.Pointer) *QSvgWidget
func NewQSvgWidgetp ¶
func NewQSvgWidgetp() *QSvgWidget
func (*QSvgWidget) GetCthis ¶
func (this *QSvgWidget) GetCthis() unsafe.Pointer
func (*QSvgWidget) InheritPaintEvent ¶
func (this *QSvgWidget) InheritPaintEvent(f func(event *qtgui.QPaintEvent))
void paintEvent(QPaintEvent *)
func (*QSvgWidget) Load ¶
func (this *QSvgWidget) Load(file string)
Loads the contents of the specified SVG file and updates the widget.
func (*QSvgWidget) Load1 ¶
func (this *QSvgWidget) Load1(contents qtcore.QByteArray_ITF)
Loads the contents of the specified SVG file and updates the widget.
func (*QSvgWidget) MetaObject ¶
func (this *QSvgWidget) MetaObject() *qtcore.QMetaObject
func (*QSvgWidget) NewForInherit ¶
func (*QSvgWidget) NewForInherit(parent qtwidgets.QWidget_ITF) *QSvgWidget
Constructs a new SVG display widget with the given parent.
func (*QSvgWidget) NewForInherit1 ¶
func (*QSvgWidget) NewForInherit1(file string, parent qtwidgets.QWidget_ITF) *QSvgWidget
Constructs a new SVG display widget with the given parent.
func (*QSvgWidget) NewForInherit1p ¶
func (*QSvgWidget) NewForInherit1p(file string) *QSvgWidget
Constructs a new SVG display widget with the given parent.
func (*QSvgWidget) NewForInheritp ¶
func (*QSvgWidget) NewForInheritp() *QSvgWidget
Constructs a new SVG display widget with the given parent.
func (*QSvgWidget) NewFromPointer ¶
func (*QSvgWidget) NewFromPointer(cthis unsafe.Pointer) *QSvgWidget
func (*QSvgWidget) PaintEvent ¶
func (this *QSvgWidget) PaintEvent(event qtgui.QPaintEvent_ITF)
Reimplemented from QWidget::paintEvent().
func (*QSvgWidget) QSvgWidget_PTR ¶
func (ptr *QSvgWidget) QSvgWidget_PTR() *QSvgWidget
func (*QSvgWidget) Renderer ¶
func (this *QSvgWidget) Renderer() *QSvgRenderer
Returns the renderer used to display the contents of the widget.
func (*QSvgWidget) SetCthis ¶
func (this *QSvgWidget) SetCthis(cthis unsafe.Pointer)
func (*QSvgWidget) SizeHint ¶
func (this *QSvgWidget) SizeHint() *qtcore.QSize
Reimplemented from QWidget::sizeHint().
type QSvgWidget_ITF ¶
type QSvgWidget_ITF interface { qtwidgets.QWidget_ITF QSvgWidget_PTR() *QSvgWidget }