Inkscape
Vector Graphics Editor
|
Go to the source code of this file.
Functions | |
double | uniform () |
void | cairo_set_source_rgba (cairo_t *cr, colour c) |
void | draw_text (cairo_t *cr, Geom::Point loc, const char *txt, bool bottom, const char *fontdesc) |
void | draw_text (cairo_t *cr, Geom::Point loc, const std::string &txt, bool bottom, const std::string &fontdesc) |
void | draw_number (cairo_t *cr, Geom::Point pos, int num, std::string name, bool bottom) |
void | draw_number (cairo_t *cr, Geom::Point pos, unsigned num, std::string name, bool bottom) |
void | draw_number (cairo_t *cr, Geom::Point pos, double num, std::string name, bool bottom) |
void | redraw () |
void | show_about_dialog (GSimpleAction *, GVariant *, gpointer) |
void | quit (GSimpleAction *, GVariant *, gpointer) |
Geom::Point | read_point (FILE *f) |
void | get_clipboard_text (std::function< void(char const *)> &&on_completion) |
Geom::Interval | read_interval (FILE *f) |
void | open_handles_cb (GObject *source_object, GAsyncResult *res, gpointer data) |
void | open_handles (GSimpleAction *, GVariant *, gpointer) |
void | save_handles_cb (GObject *source_object, GAsyncResult *res, gpointer data) |
void | save_handles (GSimpleAction *, GVariant *, gpointer) |
void | write_image (char const *filename) |
void | save_cairo_cb (GObject *source_object, GAsyncResult *res, gpointer data) |
void | save_cairo (GSimpleAction *, GVariant *, gpointer) |
static void | toggle_action (GSimpleAction *action, GVariant *, gpointer) |
static void | set_show_timings (GSimpleAction *action, GVariant *variant, gpointer) |
static void | draw_callback (GtkDrawingArea *drawing_area, cairo_t *cr, int width, int height, gpointer user_data) |
static void | mouse_motion_event (GtkEventControllerMotion *self, double x, double y, gpointer user_data) |
static void | mouse_press_event (GtkGestureClick *self, int n_press, double x, double y, gpointer user_data) |
static gboolean | scroll_event (GtkEventControllerScroll *self, double dx, double dy, gpointer user_data) |
static void | mouse_release_event (GtkGestureClick *self, int n_press, double x, double y, gpointer user_data) |
static gboolean | key_press_event (GtkEventControllerKey *self, unsigned keyval, unsigned keycode, GdkModifierType state, gpointer user_data) |
static void | activate (GApplication *app, gpointer) |
static void | startup (GApplication *app, gpointer) |
void | init (int argc, char **argv, Toy *t, int width, int height) |
void | toggle_events (std::vector< Toggle > &ts, Geom::Point const &pos, unsigned button) |
void | draw_toggles (cairo_t *cr, std::vector< Toggle > &ts) |
Variables | |
GtkApplicationWindow * | the_window = nullptr |
static GtkWidget * | the_canvas = nullptr |
Toy * | the_toy = nullptr |
int | the_requested_height = 0 |
int | the_requested_width = 0 |
gchar ** | the_emulated_argv = nullptr |
gchar * | arg_spool_filename = nullptr |
gchar * | arg_handles_filename = nullptr |
gchar * | arg_screenshot_filename = nullptr |
gchar ** | arg_extra_files = nullptr |
const char * | the_builder_xml |
static GActionEntry | the_actions [] |
static GOptionEntry const | the_options [] |
|
static |
Definition at line 634 of file toy-framework-2.cpp.
References arg_extra_files, arg_handles_filename, arg_screenshot_filename, arg_spool_filename, draw_callback(), Toy::first_time(), key, key_press_event(), Toy::load(), mouse_motion_event(), mouse_press_event(), mouse_release_event(), Toy::name, scroll_event(), Toy::spool_file, the_canvas, the_requested_height, the_requested_width, the_toy, the_window, and write_image().
Referenced by SPDesktop::activate_guides(), SPDrawAnchor::anchorTest(), init(), and SPDesktop::quick_preview().
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().
|
static |
Definition at line 460 of file toy-framework-2.cpp.
References cairo_rectangle(), cairo_set_source_rgba(), Toy::draw(), height, Toy::resize_canvas(), Toy::save(), size, Toy::spool_file, the_toy, and width.
Referenced by activate().
void draw_number | ( | cairo_t * | cr, |
Geom::Point | pos, | ||
double | num, | ||
std::string | name, | ||
bool | bottom | ||
) |
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, | ||
bool | bottom | ||
) |
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, | ||
bool | bottom | ||
) |
Definition at line 147 of file toy-framework-2.cpp.
References draw_text(), name, and num.
void draw_text | ( | cairo_t * | cr, |
Geom::Point | loc, | ||
const char * | txt, | ||
bool | bottom, | ||
const char * | fontdesc | ||
) |
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 | loc, | ||
const std::string & | txt, | ||
bool | bottom, | ||
const std::string & | fontdesc | ||
) |
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, | ||
int | height | ||
) |
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().
|
static |
Definition at line 523 of file toy-framework-2.cpp.
References Toy::key_hit(), and the_toy.
Referenced by activate().
|
static |
Definition at line 487 of file toy-framework-2.cpp.
References Toy::mouse_moved(), and the_toy.
Referenced by activate().
|
static |
Definition at line 495 of file toy-framework-2.cpp.
References Toy::mouse_pressed(), and the_toy.
Referenced by activate().
|
static |
Definition at line 514 of file toy-framework-2.cpp.
References Toy::mouse_released(), and the_toy.
Referenced by activate().
void open_handles | ( | GSimpleAction * | , |
GVariant * | , | ||
gpointer | |||
) |
Definition at line 346 of file toy-framework-2.cpp.
References open_handles_cb(), the_toy, and the_window.
void open_handles_cb | ( | GObject * | source_object, |
GAsyncResult * | res, | ||
gpointer | data | ||
) |
Definition at line 327 of file toy-framework-2.cpp.
References Toy::load(), redraw(), and the_toy.
Referenced by open_handles().
void quit | ( | GSimpleAction * | , |
GVariant * | , | ||
gpointer | |||
) |
Definition at line 292 of file toy-framework-2.cpp.
Geom::Interval read_interval | ( | FILE * | f | ) |
Definition at line 318 of file toy-framework-2.cpp.
References Geom::GenericInterval< C >::setEnds().
Referenced by RectHandle::load().
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 save_cairo | ( | GSimpleAction * | , |
GVariant * | , | ||
gpointer | |||
) |
Definition at line 442 of file toy-framework-2.cpp.
References save_cairo_cb(), and the_window.
void save_cairo_cb | ( | GObject * | source_object, |
GAsyncResult * | res, | ||
gpointer | data | ||
) |
Definition at line 428 of file toy-framework-2.cpp.
References write_image().
Referenced by save_cairo().
void save_handles | ( | GSimpleAction * | , |
GVariant * | , | ||
gpointer | |||
) |
Definition at line 371 of file toy-framework-2.cpp.
References save_handles_cb(), the_toy, and the_window.
void save_handles_cb | ( | GObject * | source_object, |
GAsyncResult * | res, | ||
gpointer | data | ||
) |
Definition at line 354 of file toy-framework-2.cpp.
References Toy::save(), and the_toy.
Referenced by save_handles().
|
static |
Definition at line 504 of file toy-framework-2.cpp.
References Toy::scroll(), and the_toy.
Referenced by activate(), and Inkscape::UI::Tools::SelectTool::sp_select_context_cycle_through_items().
|
static |
Definition at line 455 of file toy-framework-2.cpp.
References Toy::show_timings, and the_toy.
void show_about_dialog | ( | GSimpleAction * | , |
GVariant * | , | ||
gpointer | |||
) |
Definition at line 278 of file toy-framework-2.cpp.
References buf.
|
static |
Definition at line 627 of file toy-framework-2.cpp.
References builder, and the_builder_xml.
Referenced by init().
|
static |
Definition at line 449 of file toy-framework-2.cpp.
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.
void write_image | ( | char const * | filename | ) |
Definition at line 379 of file toy-framework-2.cpp.
References Toy::draw(), height, the_canvas, the_toy, and width.
Referenced by activate(), and save_cairo_cb().
gchar** arg_extra_files = nullptr |
Definition at line 26 of file toy-framework-2.cpp.
Referenced by activate().
gchar* arg_handles_filename = nullptr |
Definition at line 24 of file toy-framework-2.cpp.
Referenced by activate().
gchar* arg_screenshot_filename = nullptr |
Definition at line 25 of file toy-framework-2.cpp.
Referenced by activate().
gchar* arg_spool_filename = nullptr |
Definition at line 23 of file toy-framework-2.cpp.
Referenced by activate().
|
static |
Definition at line 575 of file toy-framework-2.cpp.
Referenced by init().
const char* the_builder_xml |
Definition at line 531 of file toy-framework-2.cpp.
Referenced by startup().
|
static |
Definition at line 17 of file toy-framework-2.cpp.
Referenced by activate(), get_clipboard_text(), redraw(), and write_image().
gchar** the_emulated_argv = nullptr |
Definition at line 21 of file toy-framework-2.cpp.
|
static |
Definition at line 585 of file toy-framework-2.cpp.
Referenced by init().
int the_requested_height = 0 |
Definition at line 19 of file toy-framework-2.cpp.
Referenced by activate(), and init().
int the_requested_width = 0 |
Definition at line 20 of file toy-framework-2.cpp.
Referenced by activate(), and init().
Toy* the_toy = nullptr |
Definition at line 18 of file toy-framework-2.cpp.
Referenced by activate(), draw_callback(), init(), key_press_event(), mouse_motion_event(), mouse_press_event(), mouse_release_event(), open_handles(), open_handles_cb(), save_handles(), save_handles_cb(), scroll_event(), set_show_timings(), and write_image().
GtkApplicationWindow* the_window = nullptr |
Definition at line 16 of file toy-framework-2.cpp.
Referenced by activate(), open_handles(), save_cairo(), and save_handles().