![]() |
Cadabra
Computer algebra system for field theory problems
|
An image viewing widget.
#include <ImageView.hh>
Public Member Functions | |
| ImageView (double display_scale, int logical_width) | |
| virtual | ~ImageView () |
| void | on_save_as () const |
| void | on_pointer_motion (double x, double y) |
| Drag-to-resize, shared between the toolkits. | |
| virtual bool | on_motion_notify_event (GdkEventMotion *event) override |
| void | on_button_pressed (int n_press, double x, double y) |
| Button handling goes through a gesture controller rather than the on_button_{press,release}_event vfuncs, which are removed in GTK4. | |
| void | on_button_released (int n_press, double x, double y) |
| void | set_image_from_base64 (const std::string &b64) |
| void | set_image_from_svg (const std::string &svg) |
Private Attributes | |
| ImageArea | area |
| bool | sizing |
| double | prev_x |
| double | prev_y |
| int | height_at_press |
| int | width_at_press |
| cdb::ContextMenu | context_menu |
| Glib::RefPtr< cdb::ClickGesture > | click_gesture |
| ImageView::ImageView | ( | double | display_scale, |
| int | logical_width ) |
|
virtual |
| void ImageView::on_button_pressed | ( | int | n_press, |
| double | x, | ||
| double | y ) |
Button handling goes through a gesture controller rather than the on_button_{press,release}_event vfuncs, which are removed in GTK4.
Motion is still a vfunc: gtkmm-3 has no EventControllerMotion.
| void ImageView::on_button_released | ( | int | n_press, |
| double | x, | ||
| double | y ) |
|
overridevirtual |
| void ImageView::on_pointer_motion | ( | double | x, |
| double | y ) |
Drag-to-resize, shared between the toolkits.
Drag-to-resize.
Shared between gtkmm-3's on_motion_notify_event vfunc and GTK4's Gtk::EventControllerMotion, which gtkmm-3 does not wrap.
| void ImageView::on_save_as | ( | ) | const |
| void ImageView::set_image_from_base64 | ( | const std::string & | b64 | ) |
| void ImageView::set_image_from_svg | ( | const std::string & | svg | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |