Mako 7.5.0 API
Loading...
Searching...
No Matches
JawsMako::IAnnotationAppearance Class Referenceabstract

An interface class for an annotation appearance, describing the graphical content of an annotation in a given usage and state. Annotation appearances are immutable. More...

#include <interactive.h>

Inheritance diagram for JawsMako::IAnnotationAppearance:

Public Member Functions

virtual IAnnotationAppearancePtr clone () const =0
 Clone the appearance. This is a deep clone.
 
virtual eAppearanceUsage getUsage () const =0
 Get the usage for this appearance.
 
virtual U8String getState () const =0
 Get the appearance state for this appearance. Will return an empty string if there is no state associated with the appearance.
 
virtual IDOMFormPtr getForm () const =0
 Get the graphical contents as an IDOMForm. Do not edit this form.
 
virtual IDOMNodePtr getScaledAppearance (const FRect &annotRect) const =0
 Get DOM for the annotation scaled appropriately to the given rect. Useful for preparing an annotation appearance for display or rendering. A clone of the contents will be returned.
 
- Public Member Functions inherited from IRCObject
virtual void addRef () const =0
 Increases the reference count of the actual object pointed to. This would take place during an assignment or copying.
 
virtual bool decRef () const =0
 Decreases the reference count of the actual object pointed to. When the reference count falls to Zero, it deletes the actual object pointed to.
 
virtual int32 getRefCount () const =0
 Retrieve the current reference count of the actual object pointed to.
 

Static Public Member Functions

static JAWSMAKO_API IAnnotationAppearancePtr create (const IJawsMakoPtr &jawsMako, const IDOMFormPtr &form, eAppearanceUsage usage, const U8String &state=U8String())
 Create a new annotation appearance.
 

Additional Inherited Members

- Protected Member Functions inherited from IRCObject
virtual ~IRCObject ()
 Virtual destructor.
 

Detailed Description

An interface class for an annotation appearance, describing the graphical content of an annotation in a given usage and state. Annotation appearances are immutable.

Member Function Documentation

◆ clone()

virtual IAnnotationAppearancePtr JawsMako::IAnnotationAppearance::clone ( ) const
pure virtual

Clone the appearance. This is a deep clone.

Returns
IAnnotationAppearancePtr A smart pointer to the cloned annotation appearance

◆ create()

static JAWSMAKO_API IAnnotationAppearancePtr JawsMako::IAnnotationAppearance::create ( const IJawsMakoPtr & jawsMako,
const IDOMFormPtr & form,
eAppearanceUsage usage,
const U8String & state = U8String() )
static

Create a new annotation appearance.

Parameters
jawsMakoThe JawsMako instance
formThe graphical contents as an IDOMForm
usageThe usage for this appearance
stateThe appearance state for this appearance
Returns
IAnnotationAppearancePtr A smart pointer to the new annotation appearance

◆ getForm()

virtual IDOMFormPtr JawsMako::IAnnotationAppearance::getForm ( ) const
pure virtual

Get the graphical contents as an IDOMForm. Do not edit this form.

Returns
IDOMFormPtr The graphical contents as an IDOMForm

◆ getScaledAppearance()

virtual IDOMNodePtr JawsMako::IAnnotationAppearance::getScaledAppearance ( const FRect & annotRect) const
pure virtual

Get DOM for the annotation scaled appropriately to the given rect. Useful for preparing an annotation appearance for display or rendering. A clone of the contents will be returned.

Parameters
annotRectAn FRect that defines the scale of the returned DOM node
Returns
IDOMNodePtr The DOM for the annotation

◆ getState()

virtual U8String JawsMako::IAnnotationAppearance::getState ( ) const
pure virtual

Get the appearance state for this appearance. Will return an empty string if there is no state associated with the appearance.

Returns
U8String The appearance state for this appearance

◆ getUsage()

virtual eAppearanceUsage JawsMako::IAnnotationAppearance::getUsage ( ) const
pure virtual

Get the usage for this appearance.

Returns
eAppearanceUsage The usage for this appearance

The documentation for this class was generated from the following file: