//-------------------------------------------------------------------------------------------------- protected void SetAspects(AIS_InteractiveObject obj, HintStyle style) { Debug.Assert(obj != null); var drawer = obj.Attributes(); switch (style & HintStyle.Styles) { case HintStyle.ThinDashed: drawer.SetLineAspect(new Prs3d_LineAspect(Quantity_NameOfColor.Quantity_NOC_GRAY.ToColor(), Aspect_TypeOfLine.Aspect_TOL_DASH, 0.5)); obj.SetTransparency(0.5); break; case HintStyle.WorkingAxis: drawer.SetLineAspect(new Prs3d_LineAspect(Quantity_NameOfColor.Quantity_NOC_YELLOW.ToColor(), Aspect_TypeOfLine.Aspect_TOL_DASH, 2.0)); break; case HintStyle.Dashed: drawer.SetLineAspect(new Prs3d_LineAspect(Quantity_NameOfColor.Quantity_NOC_GRAY.ToColor(), Aspect_TypeOfLine.Aspect_TOL_DASH, 2.0)); obj.SetTransparency(0.5); break; case HintStyle.Solid: drawer.SetLineAspect(new Prs3d_LineAspect(Quantity_NameOfColor.Quantity_NOC_GRAY.ToColor(), Aspect_TypeOfLine.Aspect_TOL_SOLID, 2.0)); obj.SetTransparency(0.5); break; } if ((style & HintStyle.Topmost) > 0) { obj.SetZLayer(-3); // TOPMOST } }
//-------------------------------------------------------------------------------------------------- public HintCircle(WorkspaceController workspaceController, HintStyle style) : base(workspaceController) { _Style = style; _StartParam = 0; _EndParam = Maths.DoublePI; }
public static TextStyleInfo GetStyleIndex(HintStyle style, out bool subtle) { if (style == HintStyle.Default) { style = HintStyle.Caption; } return(GetStyleIndex(style.ToString(), out subtle)); }
internal static extern void cairo_font_options_set_hint_style(IntPtr options, HintStyle style);
internal static extern void cairo_font_options_set_hint_style (IntPtr options, HintStyle style);
//-------------------------------------------------------------------------------------------------- public HintLine(WorkspaceController workspaceController, HintStyle style) : base(workspaceController) { _Style = style; }