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

#include <TeXView.hh>

Inheritance diagram for cadabra::TeXView::TeXArea:

Public Member Functions

virtual bool on_draw (const Cairo::RefPtr< Cairo::Context > &cr) override
 
void update_image (std::shared_ptr< TeXEngine::TeXRequest >, double scale)
 Update the visible image from the pixbuf. More...
 

Public Attributes

Glib::RefPtr< Gdk::Pixbuf > pixbuf
 The actual image is stored in the image referenced by pixbuf. More...
 
double scale_
 

Member Function Documentation

◆ on_draw()

bool TeXView::TeXArea::on_draw ( const Cairo::RefPtr< Cairo::Context > &  cr)
overridevirtual

◆ update_image()

void TeXView::TeXArea::update_image ( std::shared_ptr< TeXEngine::TeXRequest content,
double  scale 
)

Update the visible image from the pixbuf.

Call this in order to propagate changes to the pixbuf (e.g. from re-running the TeXRequest) to the visible widget itself.

Member Data Documentation

◆ pixbuf

Glib::RefPtr<Gdk::Pixbuf> cadabra::TeXView::TeXArea::pixbuf

The actual image is stored in the image referenced by pixbuf.

FIXME: This pointer is not yet shared among instances which show the same content.

◆ scale_

double cadabra::TeXView::TeXArea::scale_

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