https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 8b12d6b5364659f6be8400d5cd44dba2374f339e authored by ffxbld on 07 March 2013, 10:24:02 UTC
Added FENNEC_19_0_2_RELEASE FENNEC_19_0_2_BUILD1 tag(s) for changeset c0f47817e7ad. DONTBUILD CLOSED TREE a=release
Tip revision: 8b12d6b
nsISVGGlyphFragmentNode.h
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */


#ifndef __NS_ISVGGLYPHFRAGMENTNODE_H__
#define __NS_ISVGGLYPHFRAGMENTNODE_H__

#include "nsQueryFrame.h"

class nsIDOMSVGPoint;
class nsSVGGlyphFrame;

class nsISVGGlyphFragmentNode : public nsQueryFrame
{
public:
  NS_DECL_QUERYFRAME_TARGET(nsISVGGlyphFragmentNode)

  virtual uint32_t GetNumberOfChars()=0;
  virtual float GetComputedTextLength()=0;
  virtual float GetSubStringLength(uint32_t charnum, uint32_t fragmentChars)=0;
  virtual int32_t GetCharNumAtPosition(nsIDOMSVGPoint *point)=0;
  NS_IMETHOD_(nsSVGGlyphFrame *) GetFirstGlyphFrame()=0;
  NS_IMETHOD_(nsSVGGlyphFrame *) GetNextGlyphFrame()=0;
  NS_IMETHOD_(void) SetWhitespaceCompression(bool aCompressWhitespace)=0;
};

#endif // __NS_ISVGGLYPHFRAGMENTNODE_H__
back to top