MCPcopy Create free account
hub / github.com/cpmech/plotpy / options_bbox

Method options_bbox

src/text.rs:251–264  ·  view source on GitHub ↗

Returns options for bounding box

(&self)

Source from the content-addressed store, hash-verified

249
250 /// Returns options for bounding box
251 fn options_bbox(&self) -> String {
252 let mut opt = String::new();
253 if self.bbox_facecolor != "" {
254 write!(&mut opt, "facecolor='{}',", self.bbox_facecolor).unwrap();
255 }
256 if self.bbox_edgecolor != "" {
257 write!(&mut opt, "edgecolor='{}',", self.bbox_edgecolor).unwrap();
258 }
259 write!(&mut opt, "alpha={},", self.bbox_alpha).unwrap();
260 if self.bbox_style != "" {
261 write!(&mut opt, "boxstyle='{}',", self.bbox_style).unwrap();
262 }
263 opt
264 }
265}
266
267impl GraphMaker for Text {

Callers 3

drawMethod · 0.80
draw_3dMethod · 0.80
options_box_worksFunction · 0.80

Calls

no outgoing calls

Tested by 1

options_box_worksFunction · 0.64