1 | // <developer>niklas@protocol7.com</developer>
|
---|
2 | // <completed>100</completed>
|
---|
3 |
|
---|
4 | using System;
|
---|
5 | using SharpVectors.Dom;
|
---|
6 |
|
---|
7 | namespace SharpVectors.Dom.Svg
|
---|
8 | {
|
---|
9 | /// <summary>
|
---|
10 | /// All of the Svg DOM interfaces that correspond directly to
|
---|
11 | /// elements in the Svg language (e.g., the SvgPathElement
|
---|
12 | /// interface corresponds directly to the 'path' element in the
|
---|
13 | /// language) are derivative from base class SvgElement.
|
---|
14 | /// </summary>
|
---|
15 | public interface ISvgElement : IElement
|
---|
16 | {
|
---|
17 | /// <summary>
|
---|
18 | /// The value of the id attribute on the given element.
|
---|
19 | /// Inheriting class should throw an exception when trying
|
---|
20 | /// to update a read only element
|
---|
21 | /// </summary>
|
---|
22 | string Id
|
---|
23 | {
|
---|
24 | get; set;
|
---|
25 | }
|
---|
26 |
|
---|
27 | /// <summary>
|
---|
28 | /// The nearest ancestor 'svg' element. Null if the given
|
---|
29 | /// element is the outermost 'svg' element.
|
---|
30 | /// </summary>
|
---|
31 | ISvgSvgElement OwnerSvgElement
|
---|
32 | {
|
---|
33 | get;
|
---|
34 | }
|
---|
35 |
|
---|
36 | /// <summary>
|
---|
37 | /// The element which established the current viewport.
|
---|
38 | /// Often, the nearest ancestor 'svg' element. Null if
|
---|
39 | /// the given element is the outermost 'svg' element.
|
---|
40 | /// </summary>
|
---|
41 | ISvgElement ViewportElement
|
---|
42 | {
|
---|
43 | get;
|
---|
44 | }
|
---|
45 |
|
---|
46 | // Support for rendering...
|
---|
47 |
|
---|
48 | /// <summary>
|
---|
49 | /// Gets a value indicating whether this SVG element is renderable.
|
---|
50 | /// </summary>
|
---|
51 | /// <value>
|
---|
52 | /// This is <see langword="'true"/> if the element is renderable; otherwise,
|
---|
53 | /// it is <see langword="false"/>.
|
---|
54 | /// </value>
|
---|
55 | bool IsRenderable
|
---|
56 | {
|
---|
57 | get;
|
---|
58 | }
|
---|
59 |
|
---|
60 | /// <summary>
|
---|
61 | /// Gets a value providing a hint on the rendering defined by this element.
|
---|
62 | /// </summary>
|
---|
63 | /// <value>
|
---|
64 | /// An enumeration of the <see cref="SvgRenderingHint"/> specifying the rendering hint.
|
---|
65 | /// </value>
|
---|
66 | SvgRenderingHint RenderingHint
|
---|
67 | {
|
---|
68 | get;
|
---|
69 | }
|
---|
70 | }
|
---|
71 | }
|
---|
72 |
|
---|