7#include <gtkmm/image.h>
9#include <gtkmm/eventbox.h>
11#include <gtkmm/drawingarea.h>
13#include <gtkmm/eventcontrollermotion.h>
41 void draw(
const Cairo::RefPtr<Cairo::Context>&
cr,
int width,
int height);
43 virtual bool on_draw(
const Cairo::RefPtr<Cairo::Context>&
cr)
override;
66 ImageView(
double display_scale,
int logical_width);
Compatibility helpers that let the gtkmm frontend build against both gtkmm-3 and gtkmm-4 from a singl...
Widget which behaves as Gtk::Image, but instead uses the full device resolution (so images come out s...
Definition ImageView.hh:23
void set_image_from_svg(const std::string &svg)
Definition ImageView.cc:157
friend ImageView
Definition ImageView.hh:36
void draw(const Cairo::RefPtr< Cairo::Context > &cr, int width, int height)
The actual painting.
Definition ImageView.cc:213
void set_image_from_base64(const std::string &b64)
Definition ImageView.cc:140
double display_scale
Definition ImageView.hh:51
void rerender(int width)
Definition ImageView.cc:164
int logical_width
Definition ImageView.hh:52
bool is_raster
Definition ImageView.hh:50
virtual bool on_draw(const Cairo::RefPtr< Cairo::Context > &cr) override
Definition ImageView.cc:221
std::string decoded
Definition ImageView.hh:49
Glib::RefPtr< Gdk::Pixbuf > pixbuf
Definition ImageView.hh:47
An image viewing widget.
Definition ImageView.hh:63
void set_image_from_svg(const std::string &svg)
Definition ImageView.cc:152
void on_button_released(int n_press, double x, double y)
Definition ImageView.cc:129
cdb::ContextMenu context_menu
Definition ImageView.hh:93
ImageArea area
Definition ImageView.hh:87
void set_image_from_base64(const std::string &b64)
Definition ImageView.cc:135
int height_at_press
Definition ImageView.hh:91
virtual bool on_motion_notify_event(GdkEventMotion *event) override
Definition ImageView.cc:101
int width_at_press
Definition ImageView.hh:91
virtual ~ImageView()
Definition ImageView.cc:64
bool sizing
Definition ImageView.hh:89
void on_button_pressed(int n_press, double x, double y)
Button handling goes through a gesture controller rather than the on_button_{press,...
Definition ImageView.cc:108
double prev_x
Definition ImageView.hh:90
void on_save_as() const
Definition ImageView.cc:68
double prev_y
Definition ImageView.hh:90
Glib::RefPtr< cdb::ClickGesture > click_gesture
Definition ImageView.hh:95
void on_pointer_motion(double x, double y)
Drag-to-resize, shared between the toolkits.
Definition ImageView.cc:92
Functions to handle the exchange properties of two or more symbols in a product.
Definition Adjform.cc:83
void set(rset_t::iterator &num, multiplier_t fac)
Definition Storage.cc:1180