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

#include "text-engine.h"

Inheritance diagram for octave::text_element_color:
Collaboration diagram for octave::text_element_color:

Public Member Functions

 text_element_color (const std::string &cname)
 
 text_element_color (double r, double g, double b)
 
 ~text_element_color (void)=default
 
void accept (text_processor &p)
 
Matrix get_color (void)
 

Private Attributes

Matrix rgb
 

Detailed Description

Definition at line 279 of file text-engine.h.

Constructor & Destructor Documentation

◆ text_element_color() [1/2]

octave::text_element_color::text_element_color ( double  r,
double  g,
double  b 
)
inline

Definition at line 284 of file text-engine.h.

References r.

◆ text_element_color() [2/2]

octave::text_element_color::text_element_color ( const std::string &  cname)
inline

Definition at line 292 of file text-engine.h.

References ASSIGN_COLOR.

◆ ~text_element_color()

octave::text_element_color::~text_element_color ( void  )
default

Member Function Documentation

◆ accept()

void octave::text_element_color::accept ( text_processor p)
inlinevirtual

Implements octave::text_element.

Definition at line 377 of file text-engine.h.

◆ get_color()

Matrix octave::text_element_color::get_color ( void  )
inline

Definition at line 312 of file text-engine.h.

Referenced by octave::ft_text_renderer::visit().

Member Data Documentation

◆ rgb

Matrix octave::text_element_color::rgb
private

Definition at line 317 of file text-engine.h.


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