![]() |
Cadabra
Computer algebra system for field theory problems
|
#include <TeXView.hh>
Public Member Functions | |
| TeXArea (bool use_microtex, TeXView *owner_) | |
| ~TeXArea () | |
| 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. | |
| void | set_latex (const std::string &latex) |
| MicroTeX: set the LaTeX string and replace/substitute so that MicroTeX can render it (but do not actually render). | |
| void | layout_latex () const |
| MicroTeX: just run the LaTeX layout algorithms, do not draw. | |
| int | need_height (int width) const |
Public Attributes | |
| Glib::RefPtr< Gdk::Pixbuf > | pixbuf |
| The actual image is stored in the image referenced by pixbuf. | |
| double | scale_ |
| float | _text_size |
| bool | use_microtex |
Protected Member Functions | |
| Gtk::SizeRequestMode | get_request_mode_vfunc () const override |
| void | get_preferred_height_for_width_vfunc (int width, int &minimum_height, int &natural_height) const override |
| void | get_preferred_width_for_height_vfunc (int height, int &minimum_width, int &natural_width) const override |
| void | on_size_allocate (Gtk::Allocation &allocation) override |
Private Member Functions | |
| std::string | verbatimise (const std::string &) const |
Private Attributes | |
| TeXView * | owner |
| int | rendering_width |
| int | padding_x |
| int | padding_y |
| microtex::Render * | _render |
| std::string | unfixed |
| std::string | fixed |
| TeXView::TeXArea::TeXArea | ( | bool | use_microtex, |
| TeXView * | owner_ ) |
| TeXView::TeXArea::~TeXArea | ( | ) |
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
| void TeXView::TeXArea::layout_latex | ( | ) | const |
MicroTeX: just run the LaTeX layout algorithms, do not draw.
| int TeXView::TeXArea::need_height | ( | int | width | ) | const |
|
overridevirtual |
|
overrideprotected |
| void TeXView::TeXArea::set_latex | ( | const std::string & | latex | ) |
MicroTeX: set the LaTeX string and replace/substitute so that MicroTeX can render it (but do not actually render).
| 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.
|
private |
|
mutableprivate |
| float cadabra::TeXView::TeXArea::_text_size |
|
private |
|
private |
|
private |
|
private |
| 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.
|
mutableprivate |
| double cadabra::TeXView::TeXArea::scale_ |
|
private |
| bool cadabra::TeXView::TeXArea::use_microtex |