GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::text_renderer Class Reference

#include "text-renderer.h"

Collaboration diagram for octave::text_renderer:

Classes

class  font
 
class  string
 

Public Member Functions

 text_renderer (const text_renderer &)=delete
 
 text_renderer (void)
 
 ~text_renderer (void)
 
Matrix get_extent (const std::string &txt, double rotation=0.0, const caseless_str &interpreter="tex")
 
Matrix get_extent (text_element *elt, double rotation=0.0)
 
octave_map get_system_fonts (void)
 
bool ok (void) const
 
text_rendereroperator= (const text_renderer &)=delete
 
void set_anti_aliasing (bool val)
 
void set_color (const Matrix &c)
 
void set_font (const std::string &name, const std::string &weight, const std::string &angle, double size)
 
void text_to_pixels (const std::string &txt, uint8NDArray &pxls, Matrix &bbox, int halign, int valign, double rotation=0.0, const caseless_str &interpreter="tex", bool handle_rotation=true)
 
void text_to_strlist (const std::string &txt, std::list< string > &lst, Matrix &box, int halign, int valign, double rotation=0.0, const caseless_str &interpreter="tex")
 

Private Attributes

base_text_rendererrep
 

Detailed Description

Definition at line 44 of file text-renderer.h.

Constructor & Destructor Documentation

◆ text_renderer() [1/2]

octave::text_renderer::text_renderer ( void  )

Definition at line 46 of file text-renderer.cc.

◆ text_renderer() [2/2]

octave::text_renderer::text_renderer ( const text_renderer )
delete

◆ ~text_renderer()

octave::text_renderer::~text_renderer ( void  )

Definition at line 50 of file text-renderer.cc.

References rep.

Member Function Documentation

◆ get_extent() [1/2]

Matrix octave::text_renderer::get_extent ( const std::string &  txt,
double  rotation = 0.0,
const caseless_str interpreter = "tex" 
)

Definition at line 83 of file text-renderer.cc.

References octave::base_text_renderer::get_extent(), ok(), and rep.

◆ get_extent() [2/2]

Matrix octave::text_renderer::get_extent ( text_element elt,
double  rotation = 0.0 
)

Definition at line 75 of file text-renderer.cc.

References octave::base_text_renderer::get_extent(), ok(), and rep.

◆ get_system_fonts()

octave_map octave::text_renderer::get_system_fonts ( void  )

Definition at line 99 of file text-renderer.cc.

References octave::base_text_renderer::get_system_fonts(), ok(), rep, and retval.

Referenced by F__get_system_fonts__().

◆ ok()

bool octave::text_renderer::ok ( void  ) const

◆ operator=()

text_renderer& octave::text_renderer::operator= ( const text_renderer )
delete

◆ set_anti_aliasing()

void octave::text_renderer::set_anti_aliasing ( bool  val)

◆ set_color()

void octave::text_renderer::set_color ( const Matrix c)

Definition at line 118 of file text-renderer.cc.

References ok(), rep, and octave::base_text_renderer::set_color().

Referenced by octave::opengl_renderer::set_color().

◆ set_font()

void octave::text_renderer::set_font ( const std::string &  name,
const std::string &  weight,
const std::string &  angle,
double  size 
)

Definition at line 110 of file text-renderer.cc.

References name, ok(), rep, and octave::base_text_renderer::set_font().

Referenced by octave::opengl_renderer::set_font().

◆ text_to_pixels()

void octave::text_renderer::text_to_pixels ( const std::string &  txt,
uint8NDArray pxls,
Matrix bbox,
int  halign,
int  valign,
double  rotation = 0.0,
const caseless_str interpreter = "tex",
bool  handle_rotation = true 
)

◆ text_to_strlist()

void octave::text_renderer::text_to_strlist ( const std::string &  txt,
std::list< string > &  lst,
Matrix box,
int  halign,
int  valign,
double  rotation = 0.0,
const caseless_str interpreter = "tex" 
)

Member Data Documentation

◆ rep


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