Skip to content
This repository was archived by the owner on Mar 30, 2019. It is now read-only.

Commit 4e8fb65

Browse files
committed
Update mapping to provide a try api in SvgDocument
Make Clone SvgAttribute internal Add clone method on svg Attribute, that returns instead of out parameter
1 parent d2bfa93 commit 4e8fb65

2 files changed

Lines changed: 26 additions & 1 deletion

File tree

Source/SharpDX.Direct2D1/Mapping-direct2d1.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,8 +494,12 @@
494494
<map param="ID2D\dDeviceContext5::CreateColorContextFromSimpleColorProfile::colorContext" attribute="out fast"/>
495495
<map param="ID2D\dEffectContext2::CreateColorContextFromDxgiColorSpace::colorContext" attribute="out fast"/>
496496
<map param="ID2D\dEffectContext2::CreateColorContextFromSimpleColorProfile::colorContext" attribute="out fast"/>
497+
498+
<!-- Svg documents and elements -->
499+
<map method="ID2D1SvgDocument::FindElementById" hresult="true" check="false" visibility="private" name="TryFindElementById_"/>
500+
<map method="ID2D1SvgAttribute::Clone" visibility="internal" />
497501

498-
<!--
502+
<!--
499503
// *****************************************************************
500504
// D2D1 Functions
501505
// *****************************************************************
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
6+
namespace SharpDX.Direct2D1
7+
{
8+
public partial class SvgAttribute
9+
{
10+
/// <summary>
11+
/// Clones an svg attribute
12+
/// </summary>
13+
/// <returns></returns>
14+
public SvgAttribute Clone()
15+
{
16+
SvgAttribute svgAttribute;
17+
Clone(out svgAttribute);
18+
return svgAttribute;
19+
}
20+
}
21+
}

0 commit comments

Comments
 (0)