Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
SPViewBox Class Reference

#include <viewbox.h>

Inheritance diagram for SPViewBox:
SPImage SPMarker SPPattern SPRoot SPSymbol

Public Member Functions

 SPViewBox ()
 
void set_viewBox (const gchar *value)
 
void set_preserveAspectRatio (const gchar *value)
 
void write_viewBox (Inkscape::XML::Node *repr) const
 Write viewBox attribute to XML, if set.
 
void write_preserveAspectRatio (Inkscape::XML::Node *repr) const
 Write preserveAspectRatio attribute to XML, if set.
 
void apply_viewbox (const Geom::Rect &in, double scale_none=1.0)
 
SPItemCtx get_rctx (const SPItemCtx *ictx, double scale_none=1.0)
 
Geom::OptRect get_paintbox (double width, double height, Geom::OptRect const &size) const
 

Public Attributes

bool viewBox_set
 
Geom::Rect viewBox
 
bool aspect_set
 
unsigned int aspect_align
 
unsigned int aspect_clip
 
Geom::Affine c2p
 

Detailed Description

Definition at line 28 of file viewbox.h.

Constructor & Destructor Documentation

◆ SPViewBox()

SPViewBox::SPViewBox ( )

Definition at line 40 of file viewbox.cpp.

Member Function Documentation

◆ apply_viewbox()

◆ get_paintbox()

◆ get_rctx()

SPItemCtx SPViewBox::get_rctx ( const SPItemCtx ictx,
double  scale_none = 1.0 
)

◆ set_preserveAspectRatio()

◆ set_viewBox()

void SPViewBox::set_viewBox ( const gchar *  value)

◆ write_preserveAspectRatio()

void SPViewBox::write_preserveAspectRatio ( Inkscape::XML::Node repr) const

Write preserveAspectRatio attribute to XML, if set.

Definition at line 305 of file viewbox.cpp.

References aspect_align, aspect_clip, aspect_set, Inkscape::XML::Node::setAttribute(), and SP_ASPECT_SLICE.

Referenced by SPMarker::write(), SPImage::write(), SPRoot::write(), and SPSymbol::write().

◆ write_viewBox()

Member Data Documentation

◆ aspect_align

◆ aspect_clip

unsigned int SPViewBox::aspect_clip

◆ aspect_set

bool SPViewBox::aspect_set

◆ c2p

◆ viewBox

◆ viewBox_set


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