Vuo  2.4.0
VuoComment.cc
Go to the documentation of this file.
1
10#include "VuoComment.hh"
11
13const string VuoComment::commentTypeName = "vuo.comment";
14
18VuoComment::VuoComment(string content, int x, int y, int width, int height, VuoNode::TintColor tintColor)
20{
21 this->content = content;
22 this->x = x;
23 this->y = y;
24 this->width = width;
25 this->height = height;
26 this->tintColor = tintColor;
27}
28
33{
34 return content;
35}
36
40void VuoComment::setContent(string content)
41{
42 this->content = content;
43}
44
49{
50 return x;
51}
52
57{
58 this->x = x;
59}
60
65{
66 return y;
67}
68
73{
74 this->y = y;
75}
76
81{
82 return width;
83}
84
88void VuoComment::setWidth(int width)
89{
90 this->width = width;
91}
92
97{
98 return height;
99}
100
104void VuoComment::setHeight(int height)
105{
106 this->height = height;
107}
108
113{
114 return tintColor;
115}
116
121{
122 return VuoNode::getGraphvizNameForTint(tintColor);
123}
124
129{
130 this->tintColor = tintColor;
131}