12 #ifndef __SBNW_LAYOUT_CANVAS_H_ 13 #define __SBNW_LAYOUT_CANVAS_H_ 18 #include "autolayoutSBML.h" 24 namespace LibsbmlDraw {
30 Canvas() : _w(0), _h(0) {}
32 Canvas(
Real width,
Real height) : _w(width), _h(height) {}
35 Real getWidth()
const;
38 Real getHeight()
const;
41 void setWidth(
Real w);
44 void setHeight(
Real h);
47 Box getBox()
const {
return Box(Point(0,0), Point(getWidth(),getHeight())); }
SAGITTARIUS_REAL Real
Make Real visible to C. Consider letting Real lie in top namespace.
Definition: SagittariusCommon.h:112