1 module libwasm.bindings.SVGTextContentElement;
2 
3 import libwasm.types;
4 
5 import memutils.ct: tuple;
6 import libwasm.bindings.SVGAnimatedEnumeration;
7 import libwasm.bindings.SVGAnimatedLength;
8 import libwasm.bindings.SVGGraphicsElement;
9 import libwasm.bindings.SVGPoint;
10 import libwasm.bindings.SVGRect;
11 
12 @safe:
13 nothrow:
14 
15 struct SVGTextContentElement {
16   nothrow:
17   libwasm.bindings.SVGGraphicsElement.SVGGraphicsElement _parent;
18   alias _parent this;
19   this(Handle h) {
20     _parent = .SVGGraphicsElement(h);
21   }
22   enum ushort LENGTHADJUST_UNKNOWN = 0;
23   enum ushort LENGTHADJUST_SPACING = 1;
24   enum ushort LENGTHADJUST_SPACINGANDGLYPHS = 2;
25   auto textLength()() {
26     return SVGAnimatedLength(Object_Getter__Handle(this._parent, "textLength"));
27   }
28   auto lengthAdjust()() {
29     return SVGAnimatedEnumeration(Object_Getter__Handle(this._parent, "lengthAdjust"));
30   }
31   int getNumberOfChars()() {
32     return Object_Getter__int(this._parent, "getNumberOfChars");
33   }
34   float getComputedTextLength()() {
35     return Object_Getter__float(this._parent, "getComputedTextLength");
36   }
37   float getSubStringLength()(uint charnum, uint nchars) {
38     return Serialize_Object_VarArgCall!float(this._parent, "getSubStringLength", "uint;uint", tuple(charnum, nchars));
39   }
40   auto getStartPositionOfChar()(uint charnum) {
41     return SVGPoint(Object_Call_uint__Handle(this._parent, "getStartPositionOfChar", charnum));
42   }
43   auto getEndPositionOfChar()(uint charnum) {
44     return SVGPoint(Object_Call_uint__Handle(this._parent, "getEndPositionOfChar", charnum));
45   }
46   auto getExtentOfChar()(uint charnum) {
47     return SVGRect(Object_Call_uint__Handle(this._parent, "getExtentOfChar", charnum));
48   }
49   float getRotationOfChar()(uint charnum) {
50     return Serialize_Object_VarArgCall!float(this._parent, "getRotationOfChar", "uint", tuple(charnum));
51   }
52   int getCharNumAtPosition()(scope ref SVGPoint point) {
53     return Serialize_Object_VarArgCall!int(this._parent, "getCharNumAtPosition", "Handle", tuple(cast(Handle)point.handle));
54   }
55   void selectSubString()(uint charnum, uint nchars) {
56     Serialize_Object_VarArgCall!void(this._parent, "selectSubString", "uint;uint", tuple(charnum, nchars));
57   }
58 }
59 
60