Inkscape
Vector Graphics Editor
|
Create a grid. More...
#include <grid.h>
Public Member Functions | |
bool | load (Inkscape::Extension::Extension *module) override |
A function to allocated anything – just an example here. | |
void | effect (Inkscape::Extension::Effect *module, ExecutionEnv *executionEnv, SPDesktop *desktop, Inkscape::Extension::Implementation::ImplementationDocumentCache *docCache) override |
This actually draws the grid. | |
Gtk::Widget * | prefs_effect (Inkscape::Extension::Effect *module, SPDesktop *desktop, sigc::signal< void()> *changeSignal, Inkscape::Extension::Implementation::ImplementationDocumentCache *docCache) override |
A function to get the preferences for the grid. | |
bool | load (Inkscape::Extension::Extension *module) override |
void | effect (Inkscape::Extension::Effect *module, SPDesktop *desktop, Inkscape::Extension::Implementation::ImplementationDocumentCache *docCache) override |
This actually draws the grid. | |
Gtk::Widget * | prefs_effect (Inkscape::Extension::Effect *module, SPDesktop *desktop, sigc::signal< void()> *changeSignal, Inkscape::Extension::Implementation::ImplementationDocumentCache *docCache) override |
Find out information about the file. | |
![]() | |
Implementation ()=default | |
virtual | ~Implementation ()=default |
virtual void | unload (Inkscape::Extension::Extension *) |
virtual ImplementationDocumentCache * | newDocCache (Inkscape::Extension::Extension *, SPDesktop *) |
Create a new document cache object. | |
virtual bool | check (Inkscape::Extension::Extension *) |
Verify any dependencies. | |
virtual bool | cancelProcessing () |
virtual void | commitDocument () |
virtual std::unique_ptr< SPDocument > | new_from_template (Inkscape::Extension::Template *) |
virtual void | get_template_presets (const Template *tmod, TemplatePresets &presets) const |
virtual void | resize_to_template (Inkscape::Extension::Template *tmod, SPDocument *doc, SPPage *page) |
virtual bool | match_template_size (Inkscape::Extension::Template *tmod, double width, double height) |
virtual std::unique_ptr< SPDocument > | open (Inkscape::Extension::Input *module, char const *filename, bool is_importing) |
Open a file. | |
virtual void | save (Inkscape::Extension::Output *, SPDocument *, gchar const *) |
Find out information about the file. | |
virtual void | export_raster (Inkscape::Extension::Output *module, const SPDocument *doc, std::string const &png_file, gchar const *filename) |
Convert from PNG to raster format. | |
virtual void | effect (Inkscape::Extension::Effect *, ExecutionEnv *, SPDocument *document) |
virtual bool | apply_filter (Inkscape::Extension::Effect *module, SPItem *item) |
virtual unsigned | setup (Inkscape::Extension::Print *) |
virtual unsigned | set_preview (Inkscape::Extension::Print *) |
virtual unsigned | begin (Inkscape::Extension::Print *, SPDocument *) |
virtual unsigned | finish (Inkscape::Extension::Print *) |
virtual bool | textToPath (Inkscape::Extension::Print *) |
Tell the printing engine whether text should be text or path. | |
virtual bool | fontEmbedded (Inkscape::Extension::Print *) |
Get "fontEmbedded" param, i.e. | |
virtual unsigned | bind (Inkscape::Extension::Print *, Geom::Affine const &, float) |
virtual unsigned | release (Inkscape::Extension::Print *) |
virtual unsigned | fill (Inkscape::Extension::Print *, Geom::PathVector const &, Geom::Affine const &, SPStyle const *, Geom::OptRect const &, Geom::OptRect const &, Geom::OptRect const &) |
virtual unsigned | stroke (Inkscape::Extension::Print *, Geom::PathVector const &, Geom::Affine const &, SPStyle const *, Geom::OptRect const &, Geom::OptRect const &, Geom::OptRect const &) |
virtual unsigned | image (Inkscape::Extension::Print *, unsigned char *, unsigned int, unsigned int, unsigned int, Geom::Affine const &, SPStyle const *) |
virtual unsigned | text (Inkscape::Extension::Print *, char const *, Geom::Point const &, SPStyle const *) |
virtual void | processPath (Inkscape::XML::Node *) |
virtual void | setDetachBase (bool detach) |
If detach = true, when saving to a file, don't store URIs relative to the filename. | |
Static Public Member Functions | |
static void | init () |
Create a grid.
Implementation class of the GIMP gradient plugin.
This mostly just creates a namespace for the GIMP gradient plugin today.
|
overridevirtual |
This actually draws the grid.
module | The effect that was called (unused) |
document | What should be edited. |
Reimplemented from Inkscape::Extension::Implementation::Implementation.
Definition at line 85 of file grid.cpp.
References Inkscape::XML::Node::appendChild(), bounds, Inkscape::XML::Document::createElement(), Inkscape::LayerManager::currentLayer(), desktop, SPDesktop::doc(), SPDesktop::doc2dt(), Inkscape::Extension::Extension::get_param_float(), SPDocument::getDocumentScale(), SPObject::getRepr(), SPDocument::getReprDoc(), SPDesktop::getSelection(), Geom::Scale::inverse(), Inkscape::ObjectSet::isEmpty(), SPDesktop::layerManager(), SPDocument::preferredBounds(), Inkscape::GC::release(), scale, Inkscape::XML::Node::setAttribute(), Inkscape::ObjectSet::visualBounds(), and Geom::X.
|
override |
This actually draws the grid.
module | The effect that was called (unused) |
document | What should be edited. |
Definition at line 90 of file grid.cpp.
References Inkscape::XML::Node::appendChild(), bounds, Inkscape::XML::Document::createElement(), Inkscape::LayerManager::currentLayer(), desktop, SPDesktop::doc(), Inkscape::Extension::Extension::get_param_float(), SPDocument::getDocumentScale(), SPObject::getRepr(), SPDocument::getReprDoc(), SPDesktop::getSelection(), Geom::Scale::inverse(), Inkscape::ObjectSet::isEmpty(), SPDesktop::layerManager(), Geom::GenericRect< C >::max(), Geom::GenericRect< C >::min(), SPDocument::preferredBounds(), Inkscape::GC::release(), scale, Inkscape::XML::Node::setAttribute(), Inkscape::ObjectSet::visualBounds(), Geom::X, and Geom::Y.
|
static |
Definition at line 189 of file grid.cpp.
References Inkscape::Extension::build_from_mem().
Referenced by Inkscape::Extension::init().
|
overridevirtual |
A function to allocated anything – just an example here.
module | Unused |
Reimplemented from Inkscape::Extension::Implementation::Implementation.
|
overridevirtual |
Reimplemented from Inkscape::Extension::Implementation::Implementation.
|
overridevirtual |
A function to get the preferences for the grid.
module | Module which holds the params |
desktop | The desktop containing the document. |
Uses AutoGUI for creating the GUI.
module | Module which holds the params |
desktop |
Uses AutoGUI for creating the GUI.
Reimplemented from Inkscape::Extension::Implementation::Implementation.
Definition at line 173 of file grid.cpp.
References desktop, SPDesktop::doc(), SPDesktop::getSelection(), and Inkscape::ObjectSet::items().
|
overridevirtual |
Find out information about the file.
Reimplemented from Inkscape::Extension::Implementation::Implementation.