Inkscape
Vector Graphics Editor
|
Go to the source code of this file.
Classes | |
struct | colour |
class | Handle |
class | Toggle |
class | VectorHandle< T > |
class | PointHandle |
class | PointSetHandle |
class | RectHandle |
class | Slider |
class | Toy |
class | Timer |
class | Timer::Time |
Functions | |
double | uniform () |
void | draw_text (cairo_t *cr, Geom::Point pos, const char *txt, bool bottom=false, const char *fontdesc="Sans") |
void | draw_text (cairo_t *cr, Geom::Point pos, const std::string &txt, bool bottom=false, const std::string &fontdesc="Sans") |
void | draw_number (cairo_t *cr, Geom::Point pos, int num, std::string name=std::string(), bool bottom=true) |
void | draw_number (cairo_t *cr, Geom::Point pos, unsigned num, std::string name=std::string(), bool bottom=true) |
void | draw_number (cairo_t *cr, Geom::Point pos, double num, std::string name=std::string(), bool bottom=true) |
void | cairo_set_source_rgba (cairo_t *cr, colour c) |
std::string | default_formatter (double x) |
void | redraw () |
void | take_screenshot (const char *file) |
void | init (int argc, char **argv, Toy *t, int width=600, int height=600) |
void | toggle_events (std::vector< Toggle > &ts, Geom::Point const &pos, unsigned button) |
void | draw_toggles (cairo_t *cr, std::vector< Toggle > &ts) |
Geom::Point | read_point (FILE *f) |
void | get_clipboard_text (std::function< void(char const *)> &&on_completion) |
std::ostream & | operator<< (std::ostream &o, Timer::Time const &t) |
Variables | |
const long long | NS_PER_SECOND = 1000000000LL |
const long long | NS_PER_NS = 1 |
Definition at line 119 of file toy-framework-2.cpp.
References c, and cairo_set_source_rgba().
Referenced by Inkscape::Extension::Internal::CairoRenderContext::_setFillStyle(), Inkscape::Extension::Internal::PdfImportDialog::_setPreviewPage(), cairo_set_source_rgba(), Geom::CLIPPER_CLASS::clip(), Inkscape::UI::Widget::create_separator(), Slider::draw(), Toggle::draw(), Toy::draw(), LPEToy::draw(), draw_bounds(), draw_callback(), draw_cell(), Inkscape::UI::Widget::draw_circle(), draw_slider_lines(), ink_cairo_set_source_rgba32(), Geom::CLIPPER_CLASS::pairing(), plot(), Inkscape::Extension::Internal::CairoRenderContext::popLayer(), recursive_curvature_fitter(), Inkscape::Filters::FilterDiffuseLighting::render_cairo(), Inkscape::Filters::FilterFlood::render_cairo(), Inkscape::Filters::FilterSpecularLighting::render_cairo(), sequential_curvature_fitter(), set_cairo_rgb(), Inkscape::DrawingContext::setSource(), and smash_intersect().
|
inline |
Definition at line 212 of file toy-framework-2.h.
Referenced by angle_formatter(), and exp_formatter().
void draw_number | ( | cairo_t * | cr, |
Geom::Point | pos, | ||
double | num, | ||
std::string | name = std::string() , |
||
bool | bottom = true |
||
) |
Definition at line 155 of file toy-framework-2.cpp.
References draw_text(), name, and num.
void draw_number | ( | cairo_t * | cr, |
Geom::Point | pos, | ||
int | num, | ||
std::string | name = std::string() , |
||
bool | bottom = true |
||
) |
Definition at line 139 of file toy-framework-2.cpp.
References draw_text(), name, and num.
Referenced by PointSetHandle::draw().
void draw_number | ( | cairo_t * | cr, |
Geom::Point | pos, | ||
unsigned | num, | ||
std::string | name = std::string() , |
||
bool | bottom = true |
||
) |
Definition at line 147 of file toy-framework-2.cpp.
References draw_text(), name, and num.
void draw_text | ( | cairo_t * | cr, |
Geom::Point | pos, | ||
const char * | txt, | ||
bool | bottom = false , |
||
const char * | fontdesc = "Sans" |
||
) |
Definition at line 123 of file toy-framework-2.cpp.
References cairo_move_to().
Referenced by cairo_path_stitches(), Slider::draw(), Toggle::draw(), RectHandle::draw(), Toy::draw(), draw_number(), draw_number(), draw_number(), and draw_text().
void draw_text | ( | cairo_t * | cr, |
Geom::Point | pos, | ||
const std::string & | txt, | ||
bool | bottom = false , |
||
const std::string & | fontdesc = "Sans" |
||
) |
Definition at line 135 of file toy-framework-2.cpp.
References draw_text().
Definition at line 739 of file toy-framework-2.cpp.
void get_clipboard_text | ( | std::function< void(char const *)> && | on_completion | ) |
Definition at line 303 of file toy-framework-2.cpp.
References data, and the_canvas.
void init | ( | int | argc, |
char ** | argv, | ||
Toy * | t, | ||
int | width = 600 , |
||
int | height = 600 |
||
) |
Definition at line 600 of file toy-framework-2.cpp.
References activate(), height, Toy::name, startup(), the_actions, the_options, the_requested_height, the_requested_width, the_toy, and width.
Referenced by Inkscape::LivePathEffect::LPECloneOriginal::cloneAttributes(), Inkscape::LivePathEffect::LPECloneOriginal::doBeforeEffect(), Inkscape::FontTags::get(), main(), Inkscape::Pref< bool >::Pref(), Inkscape::Pref< double >::Pref(), Inkscape::Pref< Glib::ustring >::Pref(), Inkscape::Pref< int >::Pref(), SPIPaint::reset(), InkscapeApplication::shell(), cola::sum_over(), and wrap_pw().
|
inline |
Definition at line 428 of file toy-framework-2.h.
References Timer::Time::value.
Geom::Point read_point | ( | FILE * | f | ) |
Definition at line 296 of file toy-framework-2.cpp.
Referenced by PointHandle::load(), and PointSetHandle::load().
void redraw | ( | ) |
Definition at line 164 of file toy-framework-2.cpp.
References the_canvas.
Referenced by Toy::mouse_moved(), Toy::mouse_pressed(), Toy::mouse_released(), and open_handles_cb().
void take_screenshot | ( | const char * | file | ) |
void toggle_events | ( | std::vector< Toggle > & | ts, |
Geom::Point const & | pos, | ||
unsigned | button | ||
) |
Definition at line 732 of file toy-framework-2.cpp.
double uniform | ( | ) |
Definition at line 30 of file toy-framework-2.cpp.
Referenced by Inkscape::UI::Tools::PenTool::_bsplineSpiroBuild(), draw_bounds(), draw_cell(), LPEToy::LPEToy(), main(), Inkscape::PureStretchConstrained::PureStretchConstrained(), random_d2(), Inkscape::LivePathEffect::sp_bspline_do_effect(), sp_marker_set_uniform_scale(), sp_pattern_set_uniform_scale(), Inkscape::UI::Dialog::DocumentProperties::update_scale_ui(), Inkscape::UI::Widget::FillNStroke::updateFromPaint(), and zaggy().
const long long NS_PER_NS = 1 |
Definition at line 367 of file toy-framework-2.h.
Referenced by Timer::nsec().
const long long NS_PER_SECOND = 1000000000LL |
Definition at line 366 of file toy-framework-2.h.
Referenced by Timer::nsec().