Cadabra
Computer algebra system for field theory problems
Loading...
Searching...
No Matches
Public 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 display_scale, int logical_width)
 
virtual ~ImageView ()
 
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
 
void on_save_as () const
 
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
 
Gtk::Menu context_menu
 
Gtk::MenuItem item_save_as
 

Constructor & Destructor Documentation

◆ ImageView()

ImageView::ImageView ( double  display_scale,
int  logical_width 
)

◆ ~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

◆ on_save_as()

void ImageView::on_save_as ( ) const

◆ 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

◆ area

ImageArea cadabra::ImageView::area
private

◆ context_menu

Gtk::Menu cadabra::ImageView::context_menu
private

◆ height_at_press

int cadabra::ImageView::height_at_press
private

◆ item_save_as

Gtk::MenuItem cadabra::ImageView::item_save_as
private

◆ prev_x

double cadabra::ImageView::prev_x
private

◆ prev_y

double cadabra::ImageView::prev_y
private

◆ sizing

bool cadabra::ImageView::sizing
private

◆ width_at_press

int cadabra::ImageView::width_at_press
private

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