Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
CXFA_Measurement Class Reference

#include <cxfa_measurement.h>

+ Collaboration diagram for CXFA_Measurement:

Public Member Functions

 CXFA_Measurement (WideStringView wsMeasure)
 
 CXFA_Measurement ()
 
 CXFA_Measurement (float fValue, XFA_Unit eUnit)
 
void Set (float fValue, XFA_Unit eUnit)
 
XFA_Unit GetUnit () const
 
float GetValue () const
 
WideString ToString () const
 
float ToUnit (XFA_Unit eUnit) const
 

Static Public Member Functions

static XFA_Unit GetUnitFromString (WideStringView wsUnit)
 

Detailed Description

Definition at line 13 of file cxfa_measurement.h.

Constructor & Destructor Documentation

◆ CXFA_Measurement() [1/3]

CXFA_Measurement::CXFA_Measurement ( WideStringView wsMeasure)
explicit

Definition at line 24 of file cxfa_measurement.cpp.

◆ CXFA_Measurement() [2/3]

CXFA_Measurement::CXFA_Measurement ( )

Definition at line 28 of file cxfa_measurement.cpp.

References Set(), and Unknown.

+ Here is the call graph for this function:

◆ CXFA_Measurement() [3/3]

CXFA_Measurement::CXFA_Measurement ( float fValue,
XFA_Unit eUnit )

Definition at line 32 of file cxfa_measurement.cpp.

References Set().

Referenced by CXFA_Node::GetCheckButtonSize(), CXFA_Stroke::GetRadius(), and CXFA_ViewLayoutProcessor::InitLayoutPage().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Function Documentation

◆ GetUnit()

XFA_Unit CXFA_Measurement::GetUnit ( ) const
inline

Definition at line 26 of file cxfa_measurement.h.

Referenced by CXFA_Font::GetLetterSpacing(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and ToString().

+ Here is the caller graph for this function:

◆ GetUnitFromString()

XFA_Unit CXFA_Measurement::GetUnitFromString ( WideStringView wsUnit)
static

Definition at line 135 of file cxfa_measurement.cpp.

References Cm, Em, In, Mm, Mp, Pc, Percent, Pt, and Unknown.

Referenced by TEST().

+ Here is the caller graph for this function:

◆ GetValue()

float CXFA_Measurement::GetValue ( ) const
inline

Definition at line 27 of file cxfa_measurement.h.

Referenced by CXFA_Font::GetLetterSpacing(), TEST(), TEST(), TEST(), TEST(), and ToString().

+ Here is the caller graph for this function:

◆ Set()

void CXFA_Measurement::Set ( float fValue,
XFA_Unit eUnit )
inline

Definition at line 21 of file cxfa_measurement.h.

Referenced by CXFA_Measurement(), CXFA_Measurement(), and TEST().

+ Here is the caller graph for this function:

◆ ToString()

WideString CXFA_Measurement::ToString ( ) const

Definition at line 54 of file cxfa_measurement.cpp.

References Cm, Em, fxcrt::WideString::Format(), GetUnit(), GetValue(), In, Mm, Mp, Pc, Percent, and Pt.

Referenced by TEST().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ToUnit()

float CXFA_Measurement::ToUnit ( XFA_Unit eUnit) const

Definition at line 78 of file cxfa_measurement.cpp.

Referenced by CXFA_Node::GetCheckButtonSize(), CXFA_Font::GetLetterSpacing(), CJX_Object::GetMeasureInUnit(), CXFA_TextParser::GetTabInterval(), CXFA_TextParser::GetTabstops(), and CXFA_Stroke::GetThickness().

+ Here is the caller graph for this function:

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