Public Member Functions | Public Attributes
bsvg_document Class Reference

#include <bsvg_document.h>

Inheritance diagram for bsvg_document:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 bsvg_document (float w, float h)
 bsvg_document (float w, float h, float viewBox_x, float viewBox_y, float viewBox_w, float viewBox_h)
bool add_description (const vcl_string &d)
bool add_element (const bxml_data_sptr &element)
bxml_data_sptr root_element () const
 Return the root element.
vcl_string version () const
 Return the version string.
vcl_string encoding () const
 Return the encoding string.
bool standalone () const
 Return the standalone bit.
void set_root_element (const bxml_data_sptr &root)
 set the root element.
void set_version (const vcl_string &version)
 Set the version string.
void set_encoding (const vcl_string &encoding)
 Set the encoding string.
void set_standalone (bool standalone)
 Set the standalone bit.
void ref ()
void unref ()
int get_references () const
bool is_referenced () const

Public Attributes

float w_
float h_

Detailed Description

Definition at line 20 of file bsvg_document.h.


Constructor & Destructor Documentation

bsvg_document::bsvg_document ( float  w,
float  h 
)

viewBox is by default, the same size as width and height.

Definition at line 10 of file bsvg_document.cxx.

bsvg_document::bsvg_document ( float  w,
float  h,
float  viewBox_x,
float  viewBox_y,
float  viewBox_w,
float  viewBox_h 
)

Definition at line 29 of file bsvg_document.cxx.


Member Function Documentation

bool bsvg_document::add_description ( const vcl_string &  d)

Definition at line 52 of file bsvg_document.cxx.

bool bsvg_document::add_element ( const bxml_data_sptr element)

Definition at line 69 of file bsvg_document.cxx.

vcl_string bxml_document::encoding ( ) const [inline, inherited]

Return the encoding string.

Definition at line 217 of file bxml_document.h.

bxml_data_sptr bxml_document::root_element ( ) const [inline, inherited]

Return the root element.

Definition at line 211 of file bxml_document.h.

void bxml_document::set_encoding ( const vcl_string &  encoding) [inline, inherited]

Set the encoding string.

Definition at line 230 of file bxml_document.h.

void bxml_document::set_root_element ( const bxml_data_sptr root) [inline, inherited]

set the root element.

Definition at line 223 of file bxml_document.h.

void bxml_document::set_standalone ( bool  standalone) [inline, inherited]

Set the standalone bit.

Definition at line 233 of file bxml_document.h.

void bxml_document::set_version ( const vcl_string &  version) [inline, inherited]

Set the version string.

Definition at line 227 of file bxml_document.h.

bool bxml_document::standalone ( ) const [inline, inherited]

Return the standalone bit.

Definition at line 220 of file bxml_document.h.

vcl_string bxml_document::version ( ) const [inline, inherited]

Return the version string.

Definition at line 214 of file bxml_document.h.


Member Data Documentation

Definition at line 30 of file bsvg_document.h.

Definition at line 29 of file bsvg_document.h.


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