From 50573edad0bf0802c0a2350b13e7ebbc2258dff9 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Tue, 3 Sep 2019 20:26:22 +0200 Subject: [PATCH] Added Ellipse Outline code, fixed doc. --- src/ant/ant/gsiDeclAnt.cc | 8 ++++++++ src/lay/lay/doc/programming/application_api.xml | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/ant/ant/gsiDeclAnt.cc b/src/ant/ant/gsiDeclAnt.cc index ee891d633..68cb6f6c1 100644 --- a/src/ant/ant/gsiDeclAnt.cc +++ b/src/ant/ant/gsiDeclAnt.cc @@ -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_diag_yx () { return int (ant::Object::OL_diag_yx); } 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_diagonal () { return int (lay::AC_Diagonal); } @@ -552,6 +553,13 @@ gsi::Class decl_Annotation (decl_BasicAnnotation, "lay", "Annotat "start and end point. All box edges are drawn in the style specified with the \\style " "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, "@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." diff --git a/src/lay/lay/doc/programming/application_api.xml b/src/lay/lay/doc/programming/application_api.xml index f88751b9f..1fb7914fe 100644 --- a/src/lay/lay/doc/programming/application_api.xml +++ b/src/lay/lay/doc/programming/application_api.xml @@ -915,7 +915,7 @@ begin view.transaction("Restyle annotations") view.each_annotation do |a| - adup.style = RBA::Annotation::StyleArrowBoth + a.style = RBA::Annotation::StyleArrowBoth end ensure