Added Ellipse Outline code, fixed doc.

This commit is contained in:
Matthias Koefferlein 2019-09-03 20:26:22 +02:00
parent 25e2151e28
commit 50573edad0
2 changed files with 9 additions and 1 deletions

View File

@ -47,6 +47,7 @@ static int outline_diag_xy () { return int (ant::Object::OL_diag_xy); }
static int outline_yx () { return int (ant::Object::OL_yx); } static int outline_yx () { return int (ant::Object::OL_yx); }
static int outline_diag_yx () { return int (ant::Object::OL_diag_yx); } static int outline_diag_yx () { return int (ant::Object::OL_diag_yx); }
static int outline_box () { return int (ant::Object::OL_box); } static int outline_box () { return int (ant::Object::OL_box); }
static int outline_ellipse () { return int (ant::Object::OL_ellipse); }
static int angle_any () { return int (lay::AC_Any); } static int angle_any () { return int (lay::AC_Any); }
static int angle_diagonal () { return int (lay::AC_Diagonal); } static int angle_diagonal () { return int (lay::AC_Diagonal); }
@ -552,6 +553,13 @@ gsi::Class<AnnotationRef> decl_Annotation (decl_BasicAnnotation, "lay", "Annotat
"start and end point. All box edges are drawn in the style specified with the \\style " "start and end point. All box edges are drawn in the style specified with the \\style "
"attribute." "attribute."
) + ) +
gsi::method ("OutlineEllipse|#outline_ellipse", &gsi::outline_ellipse,
"@brief Gets the ellipse outline code for use with the \\outline method\n"
"When this outline style is specified, an ellipse is drawn with the extensions specified by the "
"start and end point. The contour drawn as a line.\n"
"\n"
"This constant has been introduced in version 0.26."
) +
gsi::method ("AngleAny|#angle_any", &gsi::angle_any, gsi::method ("AngleAny|#angle_any", &gsi::angle_any,
"@brief Gets the any angle code for use with the \\angle_constraint method\n" "@brief Gets the any angle code for use with the \\angle_constraint method\n"
"If this value is specified for the angle constraint, all angles will be allowed." "If this value is specified for the angle constraint, all angles will be allowed."

View File

@ -915,7 +915,7 @@ begin
view.transaction("Restyle annotations") view.transaction("Restyle annotations")
view.each_annotation do |a| view.each_annotation do |a|
adup.style = RBA::Annotation::StyleArrowBoth a.style = RBA::Annotation::StyleArrowBoth
end end
ensure ensure