Next: , Previous: Clearing Paths, Up: Path Reference


26.8 Modifying

— Virtual function: bool set_on_free_store ([bool b = true])

Sets on_free_store to b. This is used in the template function create_new(). See Path Reference; Constructors and Setting Functions.

— Virtual function: void set_fill_draw_value (const signed short s)

Sets fill_draw_value to s, which should be one of Shape::DRAW, Shape::FILL, Shape::FILLDRAW, Shape::UNDRAW, Shape::UNFILL, or Shape::UNFILLDRAW.

— Virtual function: void set_draw_color (const Color& c)
— Virtual function: void set_draw_color (const Color * c)

Sets draw_color (a pointer to a const Color) to &c or c, depending on whether the version with a reference argument or the version with a pointer argument is used.

set_draw_color() is used in the Solid drawing and filling functions, because Path::draw_color is protected, and the Solid cannot access it directly. See Solid Reference; Drawing and Filling.

— Virtual function: void set_fill_color (const Color& c)
— Virtual function: void set_fill_color (const Color* c)

Sets fill_color (a pointer to a const Color) to &c or c, depending on whether the version with a reference argument or the version with a pointer argument is used.

set_fill_color() is used in the Solid drawing and filling functions, because Path::fill_color is protected, and the Solid cannot access it directly. See Solid Reference; Drawing and Filling.

— Virtual function: void set_dash_pattern ([const string s = ""])

Sets dashed to s.

— Virtual function: void set_pen ([const string s = ""])

Sets pen to s.

— Virtual function: void set_connectors ([const string s = ".."])

Clears connectors and then pushes s onto it, making s the only connector. Additional connectors can be added by using Path::operator+=(const string). See Path Reference; Operators.

I plan to add a version of this function taking a vector of strings as its argument, to make it possible to set several connectors at one time.