Example #1
0
 public void BuildTextRuns(string text, InlineCollection inlines, FontFamily fontFamily, FontWeight fontWeight, FontStretch fontStretch, FontStyle fontStyle, float fontSize, float strokeThickness, Brush background, Brush foreground, Brush stroke, TextDecorations textDecorations, int charSpacing)
 {
     NoesisGUI_PINVOKE.FormattedText_BuildTextRuns(swigCPtr, text != null ? text : string.Empty, InlineCollection.getCPtr(inlines), FontFamily.getCPtr(fontFamily), (int)fontWeight, (int)fontStretch, (int)fontStyle, fontSize, strokeThickness, Brush.getCPtr(background), Brush.getCPtr(foreground), Brush.getCPtr(stroke), (int)textDecorations, charSpacing);
 }
Example #2
0
 public static void SetStroke(DependencyObject element, Brush stroke)
 {
     if (element == null)
     {
         throw new ArgumentNullException("element");
     }
     {
         NoesisGUI_PINVOKE.TextElement_SetStroke(DependencyObject.getCPtr(element), Brush.getCPtr(stroke));
     }
 }
Example #3
0
 public static void SetBackground(DependencyObject element, Brush background)
 {
     if (element == null)
     {
         throw new ArgumentNullException("element");
     }
     {
         NoesisGUI_PINVOKE.TextElement_SetBackground(DependencyObject.getCPtr(element), Brush.getCPtr(background));
     }
 }
 public static void SetStroke(DependencyObject element, Brush stroke)
 {
     NoesisGUI_PINVOKE.TextElement_SetStroke(DependencyObject.getCPtr(element), Brush.getCPtr(stroke));
 }
 public static void SetBackground(DependencyObject element, Brush background)
 {
     NoesisGUI_PINVOKE.TextElement_SetBackground(DependencyObject.getCPtr(element), Brush.getCPtr(background));
 }
Example #6
0
 public void DrawGeometry(Brush brush, Pen pen, Geometry geometry)
 {
     NoesisGUI_PINVOKE.DrawingContext_DrawGeometry(swigCPtr, Brush.getCPtr(brush), Pen.getCPtr(pen), Geometry.getCPtr(geometry));
 }
     public static void SetBackground(DependencyObject element, Brush background)
     {
         NoesisGUI_PINVOKE.TextElement_SetBackground(DependencyObject.getCPtr(element), Brush.getCPtr(background));
 #if UNITY_EDITOR || NOESIS_API
         if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
         {
             throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
         }
 #endif
     }
Example #8
0
 public void DrawEllipse(Brush brush, Pen pen, Point center, float rX, float rY)
 {
     NoesisGUI_PINVOKE.DrawingContext_DrawEllipse(swigCPtr, Brush.getCPtr(brush), Pen.getCPtr(pen), ref center, rX, rY);
 }
Example #9
0
 public void DrawRoundedRectangle(Brush brush, Pen pen, Rect rect, float rX, float rY)
 {
     NoesisGUI_PINVOKE.DrawingContext_DrawRoundedRectangle(swigCPtr, Brush.getCPtr(brush), Pen.getCPtr(pen), ref rect, rX, rY);
 }
Example #10
0
 public void DrawRectangle(Brush brush, Pen pen, Rect rect)
 {
     NoesisGUI_PINVOKE.DrawingContext_DrawRectangle(swigCPtr, Brush.getCPtr(brush), Pen.getCPtr(pen), ref rect);
 }
Example #11
0
 public static void SetStroke(DependencyObject element, Brush stroke)
 {
     NoesisGUI_PINVOKE.TextElement_SetStroke(DependencyObject.getCPtr(element), Brush.getCPtr(stroke));
     if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
     {
         throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #12
0
 public static void SetForeground(DependencyObject element, Brush foreground)
 {
     NoesisGUI_PINVOKE.TextElement_SetForeground(DependencyObject.getCPtr(element), Brush.getCPtr(foreground));
     if (NoesisGUI_PINVOKE.SWIGPendingException.Pending)
     {
         throw NoesisGUI_PINVOKE.SWIGPendingException.Retrieve();
     }
 }