![]() |
Cadabra
Computer algebra system for field theory problems
|
Widget which behaves as Gtk::Image, but instead uses the full device resolution (so images come out sharp).
#include <ImageView.hh>
Public Member Functions | |
ImageArea (int logical_width, double display_scale) | |
ImageArea (int logical_width, double display_scale, const std::string &filename, bool raster) | |
void | set_image_from_base64 (const std::string &b64) |
void | set_image_from_svg (const std::string &svg) |
void | rerender (int width) |
Public Attributes | |
friend | ImageView |
Protected Member Functions | |
virtual bool | on_draw (const Cairo::RefPtr< Cairo::Context > &cr) override |
Private Attributes | |
Glib::RefPtr< Gdk::Pixbuf > | pixbuf |
std::string | decoded |
bool | is_raster |
double | display_scale |
int | logical_width |
ImageArea::ImageArea | ( | int | logical_width, |
double | display_scale, | ||
const std::string & | filename, | ||
bool | raster | ||
) |
|
private |
|
private |
friend cadabra::ImageArea::ImageView |
|
private |
|
private |
|
private |