Cadabra
Computer algebra system for field theory problems
Public Member Functions | Private Member Functions | Private Attributes | List of all members
cadabra::ImageView Class Reference

Description

An image viewing widget.

#include <ImageView.hh>

Inheritance diagram for cadabra::ImageView:

Public Member Functions

 ImageView (double scale)
 
virtual ~ImageView ()
 
void set_image_from_base64 (const std::string &b64)
 
void set_image_from_svg (const std::string &svg)
 
virtual bool on_motion_notify_event (GdkEventMotion *event) override
 
virtual bool on_button_press_event (GdkEventButton *event) override
 
virtual bool on_button_release_event (GdkEventButton *event) override
 

Private Member Functions

void rerender (int override_width=0)
 

Private Attributes

std::string decoded
 
bool is_raster
 
Gtk::VBox vbox
 
Gtk::Image image
 
Glib::RefPtr< Gdk::Pixbuf > pixbuf
 
bool sizing
 
double prev_x
 
double prev_y
 
int height_at_press
 
int width_at_press
 
double scale
 

Constructor & Destructor Documentation

◆ ImageView()

ImageView::ImageView ( double  scale)

◆ ~ImageView()

ImageView::~ImageView ( )
virtual

Member Function Documentation

◆ on_button_press_event()

bool ImageView::on_button_press_event ( GdkEventButton *  event)
overridevirtual

◆ on_button_release_event()

bool ImageView::on_button_release_event ( GdkEventButton *  event)
overridevirtual

◆ on_motion_notify_event()

bool ImageView::on_motion_notify_event ( GdkEventMotion *  event)
overridevirtual

◆ rerender()

void ImageView::rerender ( int  override_width = 0)
private

◆ set_image_from_base64()

void ImageView::set_image_from_base64 ( const std::string &  b64)

◆ set_image_from_svg()

void ImageView::set_image_from_svg ( const std::string &  svg)

Member Data Documentation

◆ decoded

std::string cadabra::ImageView::decoded
private

◆ height_at_press

int cadabra::ImageView::height_at_press
private

◆ image

Gtk::Image cadabra::ImageView::image
private

◆ is_raster

bool cadabra::ImageView::is_raster
private

◆ pixbuf

Glib::RefPtr<Gdk::Pixbuf> cadabra::ImageView::pixbuf
private

◆ prev_x

double cadabra::ImageView::prev_x
private

◆ prev_y

double cadabra::ImageView::prev_y
private

◆ scale

double cadabra::ImageView::scale
private

◆ sizing

bool cadabra::ImageView::sizing
private

◆ vbox

Gtk::VBox cadabra::ImageView::vbox
private

◆ width_at_press

int cadabra::ImageView::width_at_press
private

The documentation for this class was generated from the following files: