libwolfram20
WAImage Class Reference

Wolfram API image. More...

#include <WAImage.h>

Public Member Functions

 WAImage (const WAImage &old)=default
 Copy constructor. More...
 
 WAImage (xml_node<> *imgNode)
 It extracts the data from imgNode and save it into the object's arguments. More...
 
std::string getSrc ()
 Returning a 'src' attribute of image. More...
 
std::string getAlt ()
 Returning a 'alt' attribute of image. More...
 
std::string getTitle ()
 Returning a 'title' attribute of image. More...
 
size_t getWidth ()
 Returning a 'width' attribute of image. More...
 
size_t getHeight ()
 Returning a 'height' attribute of image. More...
 

Private Member Functions

void parse (xml_node<> *imgNode)
 Parsing a input 'img' xml node. More...
 

Private Attributes

std::string _src
 The exact URL of the image being displayed.
 
std::string _alt
 Alternate text to display in case the image does not render correctly.
 
std::string _title
 Descriptive title for internal identification of an image.
 
size_t _width
 The width of the image in pixels.
 
size_t _height
 The height of the image in pixels. Scales depending on width setting.
 

Detailed Description

Wolfram API image.

For more information see the Wolfram documentation.


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