ScroogeXHTML for Object Pascal 10.0-RC1
Loading...
Searching...
No Matches
TPictureNode Class Reference

A class which represents an embedded picture as a DOM node. More...

Inheritance diagram for TPictureNode:
ISimpleDomPictureNode

Public Member Functions

 TPictureNode (const TSimpleDomNode AOwner)
 Create a new instance of the TPictureNode class.
 ~TPictureNode ()
 Destructor for the TPictureNode class.
TCharacterProperties GetTextProperties ()
 Get the character properties active when the picture was encountered.
 SetTextProperties (const TCharacterProperties CP)
 Set the character properties active when the picture was encountered.

Public Attributes

TCharacterProperties FData
Cardinal FHeightPx
Cardinal FWidthPx
Cardinal HeightPx
 The rendered height of the picture, in pixels.
string PictureUrl
 The URL (or data URI) of the picture.
string strict
Cardinal WidthPx
 The rendered width of the picture, in pixels.

Detailed Description

A class which represents an embedded picture as a DOM node.

Constructor & Destructor Documentation

◆ TPictureNode()

TPictureNode::TPictureNode ( const TSimpleDomNode AOwner)

Create a new instance of the TPictureNode class.

Parameters
AOwnerThe owner node of this picture node.

◆ ~TPictureNode()

TPictureNode::~TPictureNode ( )

Destructor for the TPictureNode class.

Cleans up resources used by the picture node.

Member Function Documentation

◆ GetTextProperties()

TCharacterProperties TPictureNode::GetTextProperties ( )

Get the character properties active when the picture was encountered.

Returns
The current text properties.

Implements ISimpleDomPictureNode.

◆ SetTextProperties()

TPictureNode::SetTextProperties ( const TCharacterProperties CP)

Set the character properties active when the picture was encountered.

Parameters
CPThe text properties to set.

Implements ISimpleDomPictureNode.

Member Data Documentation

◆ FData

TCharacterProperties TPictureNode::FData

◆ FHeightPx

Cardinal TPictureNode::FHeightPx

◆ FWidthPx

Cardinal TPictureNode::FWidthPx

◆ HeightPx

Cardinal TPictureNode::HeightPx

The rendered height of the picture, in pixels.

See also
GetHeightPx For reading
SetHeightPx For writing

◆ PictureUrl

string TPictureNode::PictureUrl

The URL (or data URI) of the picture.

See also
GetPictureUrl For reading
SetPictureUrl For writing

◆ strict

string TPictureNode::strict

◆ WidthPx

Cardinal TPictureNode::WidthPx

The rendered width of the picture, in pixels.

See also
GetWidthPx For reading
SetWidthPx For writing