Class Ifc4x3_rc1::IfcTextStyleTextModel¶
Defined in File Ifc4x3_rc1.h
Nested Relationships¶
This class is a nested type of Struct Ifc4x3_rc1.
Inheritance Relationships¶
Base Type¶
public Ifc4x3_rc1::IfcPresentationItem
(Class Ifc4x3_rc1::IfcPresentationItem)
Class Documentation¶
-
class
Ifc4x3_rc1
::
IfcTextStyleTextModel
: public Ifc4x3_rc1::IfcPresentationItem¶ Definition from CSS1 (W3C Recommendation): The properties defined in the text model affect the visual presentation of characters, spaces, words, and paragraphs.
The IfcTextStyleTextModel combines all text style properties, that affect the presentation of a text literal within a given extent. It includes the spacing between characters and words, the horizontal and vertical alignment of the text within the planar box of the extent, decorations (like underline), transformations of the literal (like uppercase), and the height of each text line within a multi-line text block.
NOTE Corresponding CSS1 definitions are Text properties (word-spacing, letter-spacing, text-decoration, vertical-align, text-transform, text-align, text-indent, line-height).
HISTORY New entity in IFC2x3.
Public Types
-
typedef IfcTemplatedEntityList<IfcTextStyleTextModel>
list
¶
Public Functions
-
bool
hasTextIndent
() const¶ Whether the optional attribute TextIndent is defined for this IfcTextStyleTextModel.
-
::Ifc4x3_rc1::IfcSizeSelect *
TextIndent
() const¶ The property specifies the indentation that appears before the first formatted line. NOTE It has been introduced for later compliance to full CSS1 support.
-
void
setTextIndent
(::Ifc4x3_rc1::IfcSizeSelect *v)¶
-
bool
hasTextAlign
() const¶ Whether the optional attribute TextAlign is defined for this IfcTextStyleTextModel.
-
std::string
TextAlign
() const¶ This property describes how text is aligned horizontally within the element. The actual justification algorithm used is dependent on the rendering algorithm.
-
void
setTextAlign
(std::string v)¶
-
bool
hasTextDecoration
() const¶ Whether the optional attribute TextDecoration is defined for this IfcTextStyleTextModel.
-
std::string
TextDecoration
() const¶ This property describes decorations that are added to the text of an element.
-
void
setTextDecoration
(std::string v)¶
-
bool
hasLetterSpacing
() const¶ Whether the optional attribute LetterSpacing is defined for this IfcTextStyleTextModel.
-
::Ifc4x3_rc1::IfcSizeSelect *
LetterSpacing
() const¶ The length unit indicates an addition to the default space between characters. Values can be negative, but there may be implementation-specific limits. The user agent is free to select the exact spacing algorithm. The letter spacing may also be influenced by justification (which is a value of the ‘align’ property). NOTE The following values are allowed, IfcDescriptiveMeasure with value=’normal’, or IfcLengthMeasure, the length unit is globally defined at IfcUnitAssignment.
-
void
setLetterSpacing
(::Ifc4x3_rc1::IfcSizeSelect *v)¶
-
bool
hasWordSpacing
() const¶ Whether the optional attribute WordSpacing is defined for this IfcTextStyleTextModel.
-
::Ifc4x3_rc1::IfcSizeSelect *
WordSpacing
() const¶ The length unit indicates an addition to the default space between words. Values can be negative, but there may be implementation-specific limits. The user agent is free to select the exact spacing algorithm. The word spacing may also be influenced by justification (which is a value of the ‘text-align’ property). NOTE It has been introduced for later compliance to full CSS1 support.
-
void
setWordSpacing
(::Ifc4x3_rc1::IfcSizeSelect *v)¶
-
bool
hasTextTransform
() const¶ Whether the optional attribute TextTransform is defined for this IfcTextStyleTextModel.
-
std::string
TextTransform
() const¶ This property describes how text characters may transform to upper case, lower case, or capitalized case, independent of the character case used in the text literal. NOTE It has been introduced for later compliance to full CSS1 support.
-
void
setTextTransform
(std::string v)¶
-
bool
hasLineHeight
() const¶ Whether the optional attribute LineHeight is defined for this IfcTextStyleTextModel.
-
::Ifc4x3_rc1::IfcSizeSelect *
LineHeight
() const¶ The property sets the distance between two adjacent lines’ baselines. When a ratio value is specified, the line height is given by the font size of the current element multiplied with the numerical value. A value of ‘normal’ sets the line height to a reasonable value for the element’s font. It is suggested that user agents set the ‘normal’ value to be a ratio number in the range of 1.0 to 1.2. NOTE The following values are allowed: IfcDescriptiveMeasure with value=’normal’, or IfcLengthMeasure, with non-negative values, the length unit is globally defined at IfcUnitAssignment, or IfcRatioMeasure.
-
void
setLineHeight
(::Ifc4x3_rc1::IfcSizeSelect *v)¶
-
IfcTextStyleTextModel
(IfcEntityInstanceData *e)¶
-
IfcTextStyleTextModel
(::Ifc4x3_rc1::IfcSizeSelect *v1_TextIndent, boost::optional<std::string> v2_TextAlign, boost::optional<std::string> v3_TextDecoration, ::Ifc4x3_rc1::IfcSizeSelect *v4_LetterSpacing, ::Ifc4x3_rc1::IfcSizeSelect *v5_WordSpacing, boost::optional<std::string> v6_TextTransform, ::Ifc4x3_rc1::IfcSizeSelect *v7_LineHeight)¶
-
typedef IfcTemplatedEntityList<IfcTextStyleTextModel>