/usr/include/wxSVG/SVGTextContentElement.h is in libwxsvg-dev 2:1.2~dfsg0-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | //////////////////////////////////////////////////////////////////////////////
// Name: SVGTextContentElement.h
// Author: Alex Thuering
// Copyright: (c) 2005 Alex Thuering
// Licence: wxWindows licence
// Notes: generated by generate.py
//////////////////////////////////////////////////////////////////////////////
#ifndef WX_SVG_TEXT_CONTENT_ELEMENT_H
#define WX_SVG_TEXT_CONTENT_ELEMENT_H
#include "SVGElement.h"
#include "SVGTests.h"
#include "SVGLangSpace.h"
#include "SVGExternalResourcesRequired.h"
#include "SVGStylable.h"
#include "EventTarget.h"
#include "SVGAnimatedLength.h"
#include "SVGAnimatedEnumeration.h"
#include "SVGSVGElement.h"
#include "SVGPoint.h"
#include "SVGRect.h"
#include "String_wxsvg.h"
#include "Element.h"
enum wxLENGTHADJUST
{
wxLENGTHADJUST_UNKNOWN = 0,
wxLENGTHADJUST_SPACING = 1,
wxLENGTHADJUST_SPACINGANDGLYPHS = 2
};
class wxSVGTextContentElement:
public wxSVGElement,
public wxSVGTests,
public wxSVGLangSpace,
public wxSVGExternalResourcesRequired,
public wxSVGStylable,
public wxEventTarget
{
protected:
wxSVGAnimatedLength m_textLength;
wxSVGAnimatedEnumeration m_lengthAdjust;
public:
inline const wxSVGAnimatedLength& GetTextLength() const { WX_SVG_ANIM_LENGTH_CALC_WIDTH(m_textLength, GetViewportElement()); return m_textLength; }
inline void SetTextLength(const wxSVGAnimatedLength& n) { m_textLength = n; }
inline void SetTextLength(const wxSVGLength& n) { m_textLength.SetBaseVal(n); }
inline const wxSVGAnimatedEnumeration& GetLengthAdjust() const { return m_lengthAdjust; }
inline void SetLengthAdjust(const wxSVGAnimatedEnumeration& n) { m_lengthAdjust = n; }
inline void SetLengthAdjust(unsigned char n) { m_lengthAdjust.SetBaseVal(n); }
public:
wxSVGTextContentElement(wxString tagName = wxT("")):
wxSVGElement(tagName) {}
virtual ~wxSVGTextContentElement() {}
virtual long GetNumberOfChars();
virtual double GetComputedTextLength();
virtual double GetSubStringLength(unsigned long charnum, unsigned long nchars);
virtual wxSVGPoint GetStartPositionOfChar(unsigned long charnum);
virtual wxSVGPoint GetEndPositionOfChar(unsigned long charnum);
virtual wxSVGRect GetExtentOfChar(unsigned long charnum);
virtual double GetRotationOfChar(unsigned long charnum);
virtual long GetCharNumAtPosition(const wxSVGPoint& point);
virtual void SelectSubString(unsigned long charnum, unsigned long nchars);
bool HasAttribute(const wxString& name);
wxString GetAttribute(const wxString& name);
bool SetAttribute(const wxString& name, const wxString& value);
wxSvgXmlAttrHash GetAttributes() const;
};
#endif // WX_SVG_TEXT_CONTENT_ELEMENT_H
|