scenepic 1.1.0
3D Visualization Made Easy
|
Represents the margin along the edges of a graph. More...
#include <graph.h>
Public Member Functions | |
Margin () | |
Default constructor. More... | |
Margin (double size) | |
Constructor. More... | |
Margin (double top, double right, double bottom, double left) | |
Constructor. More... | |
std::string | to_string () const |
Returns a string representation of the margin. More... | |
JsonValue | to_json () const |
Convert this object into ScenePic json. More... | |
Public Attributes | |
double | top |
The top margin in pixels. More... | |
double | right |
The right margin in pixels. More... | |
double | bottom |
The bottom margin in pixels. More... | |
double | left |
The left margin in pixels. More... | |
Represents the margin along the edges of a graph.
scenepic::Graph::Margin::Margin | ( | ) |
Default constructor.
Sets all margins to 10 pixels.
scenepic::Graph::Margin::Margin | ( | double | size | ) |
Constructor.
size | space in pixels to use for all margins |
scenepic::Graph::Margin::Margin | ( | double | top, |
double | right, | ||
double | bottom, | ||
double | left | ||
) |
Constructor.
top | the top margin value in pixels |
right | the right margin value in pixels |
bottom | the bottom margin value in pixels |
left | the left margin value in pixels |
JsonValue scenepic::Graph::Margin::to_json | ( | ) | const |
Convert this object into ScenePic json.
std::string scenepic::Graph::Margin::to_string | ( | ) | const |
Returns a string representation of the margin.
double scenepic::Graph::Margin::bottom |
The bottom margin in pixels.
double scenepic::Graph::Margin::left |
The left margin in pixels.
double scenepic::Graph::Margin::right |
The right margin in pixels.
double scenepic::Graph::Margin::top |
The top margin in pixels.