Ejemplo n.º 1
0
    private INativeInstance CreateNativeInstance()
    {
      NativeMontageSettings instance = new NativeMontageSettings();
      instance.SetBackgroundColor(BackgroundColor);
      instance.SetBorderColor(BorderColor);
      instance.SetBorderWidth(BorderWidth);
      instance.SetFillColor(FillColor);
      instance.SetFont(Font);
      instance.SetFontPointsize(FontPointsize);
      instance.SetFrameGeometry(Convert(FrameGeometry));
      instance.SetGeometry(Convert(Geometry));
      instance.SetGravity(Gravity);
      instance.SetShadow(Shadow);
      instance.SetStrokeColor(StrokeColor);
      instance.SetTextureFileName(TextureFileName);
      instance.SetTileGeometry(Convert(TileGeometry));
      instance.SetTitle(Title);

      return instance;
    }
Ejemplo n.º 2
0
        private INativeInstance CreateNativeInstance()
        {
            NativeMontageSettings instance = new NativeMontageSettings();

            instance.SetBackgroundColor(BackgroundColor);
            instance.SetBorderColor(BorderColor);
            instance.SetBorderWidth(BorderWidth);
            instance.SetFillColor(FillColor);
            instance.SetFont(Font);
            instance.SetFontPointsize(FontPointsize);
            instance.SetFrameGeometry(Convert(FrameGeometry));
            instance.SetGeometry(Convert(Geometry));
            instance.SetGravity(Gravity);
            instance.SetShadow(Shadow);
            instance.SetStrokeColor(StrokeColor);
            instance.SetTextureFileName(TextureFileName);
            instance.SetTileGeometry(Convert(TileGeometry));
            instance.SetTitle(Title);

            return(instance);
        }
Ejemplo n.º 3
0
        private static INativeInstance CreateNativeInstance(IMontageSettings <QuantumType> instance)
        {
            var result = new NativeMontageSettings();

            result.SetBackgroundColor(instance.BackgroundColor);
            result.SetBorderColor(instance.BorderColor);
            result.SetBorderWidth(instance.BorderWidth);
            result.SetFillColor(instance.FillColor);
            result.SetFont(instance.Font);
            result.SetFontPointsize(instance.FontPointsize);
            result.SetFrameGeometry(Convert(instance.FrameGeometry));
            result.SetGeometry(Convert(instance.Geometry));
            result.SetGravity(instance.Gravity);
            result.SetShadow(instance.Shadow);
            result.SetStrokeColor(instance.StrokeColor);
            result.SetTextureFileName(instance.TextureFileName);
            result.SetTileGeometry(Convert(instance.TileGeometry));
            result.SetTitle(instance.Title);

            return(result);
        }