SVGTextContentElement.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /**
  2. http://www.w3.org/TR/2011/REC-SVG11-20110816/text.html#InterfaceSVGTextContentElement
  3. interface SVGTextContentElement : SVGElement,
  4. SVGTests,
  5. SVGLangSpace,
  6. SVGExternalResourcesRequired,
  7. SVGStylable {
  8. // lengthAdjust Types
  9. const unsigned short LENGTHADJUST_UNKNOWN = 0;
  10. const unsigned short LENGTHADJUST_SPACING = 1;
  11. const unsigned short LENGTHADJUST_SPACINGANDGLYPHS = 2;
  12. readonly attribute SVGAnimatedLength textLength;
  13. readonly attribute SVGAnimatedEnumeration lengthAdjust;
  14. long getNumberOfChars();
  15. float getComputedTextLength();
  16. float getSubStringLength(in unsigned long charnum, in unsigned long nchars) raises(DOMException);
  17. SVGPoint getStartPositionOfChar(in unsigned long charnum) raises(DOMException);
  18. SVGPoint getEndPositionOfChar(in unsigned long charnum) raises(DOMException);
  19. SVGRect getExtentOfChar(in unsigned long charnum) raises(DOMException);
  20. float getRotationOfChar(in unsigned long charnum) raises(DOMException);
  21. long getCharNumAtPosition(in SVGPoint point);
  22. void selectSubString(in unsigned long charnum, in unsigned long nchars) raises(DOMException);
  23. */
  24. #import "SVGElement.h"
  25. #import "SVGStylable.h"
  26. #import "SVGLength.h"
  27. typedef enum SVGLengthAdjust
  28. {
  29. // lengthAdjust Types
  30. SVGLengthAdjustUnknown = 0,
  31. SVGLengthAdjustSpacing = 1,
  32. SVGLengthAdjustSpacingAndGlyphs = 2
  33. } SVGLengthAdjust;
  34. @interface SVGTextContentElement : SVGElement <SVGStylable>
  35. @property(weak, nonatomic,readonly) SVGLength* /* FIXMED: should be SVGAnimatedLength*/ textLength;
  36. /**FIXME: missing: readonly attribute SVGAnimatedEnumeration lengthAdjust;*/
  37. /**FIXME: missing:
  38. long getNumberOfChars();
  39. float getComputedTextLength();
  40. float getSubStringLength(in unsigned long charnum, in unsigned long nchars) raises(DOMException);
  41. SVGPoint getStartPositionOfChar(in unsigned long charnum) raises(DOMException);
  42. SVGPoint getEndPositionOfChar(in unsigned long charnum) raises(DOMException);
  43. SVGRect getExtentOfChar(in unsigned long charnum) raises(DOMException);
  44. float getRotationOfChar(in unsigned long charnum) raises(DOMException);
  45. long getCharNumAtPosition(in SVGPoint point);
  46. void selectSubString(in unsigned long charnum, in unsigned long nchars) raises(DOMException);
  47. */
  48. @end