libart-paperback 0.1.0-a.1.20260122225059.e5fea306241a
PDF (1.4) library for C++
Art::Paperback::Graphics::Canvas::Set_font Class Reference

Public Member Functions

 Set_font (Canvas &, Font &, double)
 
 Set_font (Set_font const &)=delete
 
 Set_font (Set_font &&)=delete
 
 ~Set_font () noexcept
 The current font will be resent during deconstruction.
 
Canvascanvas ()
 
Canvas const & canvas () const
 
Set_fontoperator= (Set_font const &)=delete
 
Set_fontoperator= (Set_font &&)=delete
 

Private Attributes

Canvas_canvas
 

Constructor & Destructor Documentation

◆ Set_font()

Art::Paperback::Graphics::Canvas::Set_font::Set_font ( Canvas & canvas,
Font & f,
double size )
Parameters
canvasThe parent canvas.
fThe new font.
sizeThe font size.
Exceptions
Invalid_operationThrown if a font is already set.

◆ ~Set_font()

Art::Paperback::Graphics::Canvas::Set_font::~Set_font ( )
noexcept

The current font will be resent during deconstruction.