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_Rectangle Class Reference

#include <cxfa_rectangle.h>

Inheritance diagram for CXFA_Rectangle:
Collaboration diagram for CXFA_Rectangle:

Public Member Functions

 ~CXFA_Rectangle () override
void GetFillPath (const std::vector< CXFA_Stroke * > &strokes, const CFX_RectF &rtWidget, CFGAS_GEPath *fillPath)
void Draw (const std::vector< CXFA_Stroke * > &strokes, CFGAS_GEGraphics *pGS, CFX_RectF rtWidget, const CFX_Matrix &matrix)
Public Member Functions inherited from CXFA_Box
 ~CXFA_Box () override
XFA_AttributeValue GetPresence ()
std::tuple< XFA_AttributeValue, bool, float > Get3DStyle ()
size_t CountEdges ()
CXFA_EdgeGetEdgeIfExists (size_t nIndex)
CXFA_FillGetOrCreateFillIfPossible ()
std::vector< CXFA_Stroke * > GetStrokes ()
void Draw (CFGAS_GEGraphics *pGS, const CFX_RectF &rtWidget, const CFX_Matrix &matrix, bool forceRound)
Public Member Functions inherited from CXFA_Node
 ~CXFA_Node () override
void Trace (cppgc::Visitor *visitor) const override
bool HasProperty (XFA_Element property) const
bool HasPropertyFlag (XFA_Element property, XFA_PropertyFlag flag) const
uint8_t PropertyOccurrenceCount (XFA_Element property) const
std::pair< CXFA_Node *, int32_t > GetProperty (int32_t index, XFA_Element eProperty) const
CXFA_NodeGetOrCreateProperty (int32_t index, XFA_Element eProperty)
void SendAttributeChangeMessage (XFA_Attribute eAttribute, bool bScriptModify)
bool HasAttribute (XFA_Attribute attr) const
XFA_AttributeType GetAttributeType (XFA_Attribute type) const
XFA_Attribute GetAttribute (size_t i) const
XFA_PacketType GetPacketType () const
void SetInitializedFlagAndNotify ()
void SetFlag (XFA_NodeFlag dwFlag)
void ClearFlag (XFA_NodeFlag dwFlag)
CXFA_NodeCreateInstanceIfPossible (bool bDataMerge)
int32_t GetCount ()
CXFA_NodeGetItemIfExists (int32_t iIndex)
void RemoveItem (CXFA_Node *pRemoveInstance, bool bRemoveDataBinding)
void InsertItem (CXFA_Node *pNewInstance, int32_t iPos, int32_t iCount, bool bMoveDataBindingNodes)
bool IsInitialized () const
bool IsUserInteractive () const
bool IsUnusedNode () const
bool IsLayoutGeneratedNode () const
bool PresenceRequiresSpace () const
void SetBindingNode (CXFA_Node *node)
void SetNodeAndDescendantsUnused ()
bool HasRemovedChildren () const
bool IsAttributeInXML ()
bool IsFormContainer () const
void SetXMLMappingNode (CFX_XMLNode *node)
CFX_XMLNodeGetXMLMappingNode () const
CFX_XMLNodeCreateXMLMappingNode ()
bool IsNeedSavingXMLNode () const
void SetToXML (const WideString &value)
uint32_t GetNameHash () const
bool IsUnnamed () const
CXFA_NodeGetModelNode ()
void UpdateNameHash ()
size_t CountChildren (XFA_Element eType, bool bOnlyChild)
template<typename T>
T * GetChild (size_t index, XFA_Element eType, bool bOnlyChild)
template<typename T>
const T * GetChild (size_t index, XFA_Element eType, bool bOnlyChild) const
bool IsAncestorOf (const CXFA_Node *that) const
void InsertChildAndNotify (int32_t index, CXFA_Node *pNode)
void InsertChildAndNotify (CXFA_Node *pNode, CXFA_Node *pBeforeNode)
void RemoveChildAndNotify (CXFA_Node *pNode, bool bNotify)
CXFA_NodeClone (bool bRecursive)
CXFA_NodeGetNextContainerSibling () const
CXFA_NodeGetPrevContainerSibling () const
CXFA_NodeGetFirstContainerChild () const
CXFA_NodeGetContainerParent () const
std::vector< CXFA_Node * > GetNodeListForType (XFA_Element eTypeFilter)
std::vector< CXFA_Node * > GetNodeListWithFilter (Mask< XFA_NodeFilter > dwFilter)
CXFA_NodeCreateSamePacketNode (XFA_Element eType)
CXFA_NodeCloneTemplateToForm (bool bRecursive)
CXFA_NodeGetTemplateNodeIfExists () const
void SetTemplateNode (CXFA_Node *pTemplateNode)
CXFA_NodeGetDataDescriptionNode ()
void SetDataDescriptionNode (CXFA_Node *pDataDescriptionNode)
CXFA_NodeGetBindData ()
bool HasBindItems () const
std::vector< CXFA_Node * > GetBindItemsCopy () const
void AddBindItem (CXFA_Node *pFormNode)
bool RemoveBindItem (CXFA_Node *pFormNode)
bool HasBindItem () const
CXFA_NodeGetContainerNode ()
GCedLocaleIfaceGetLocale ()
std::optional< WideStringGetLocaleName ()
XFA_AttributeValue GetIntact ()
WideString GetNameExpression ()
CXFA_NodeGetFirstChildByName (WideStringView wsNodeName) const
CXFA_NodeGetFirstChildByName (uint32_t dwNodeNameHash) const
template<typename T>
T * GetFirstChildByClass (XFA_Element eType) const
CXFA_NodeGetNextSameNameSibling (uint32_t dwNodeNameHash) const
template<typename T>
T * GetNextSameNameSibling (WideStringView wsNodeName) const
template<typename T>
T * GetNextSameClassSibling (XFA_Element eType) const
CXFA_NodeGetOneChildNamed (WideStringView wsName)
CXFA_NodeGetOneChildOfClass (WideStringView wsClass)
std::vector< CXFA_Node * > GetSiblings (bool bIsClassName)
size_t GetIndex (bool bIsProperty, bool bIsClassIndex)
size_t GetIndexByName ()
size_t GetIndexByClassName ()
CXFA_NodeGetInstanceMgrOfSubform ()
std::optional< bool > GetDefaultBoolean (XFA_Attribute attr) const
std::optional< int32_t > GetDefaultInteger (XFA_Attribute attr) const
std::optional< CXFA_MeasurementGetDefaultMeasurement (XFA_Attribute attr) const
std::optional< WideStringGetDefaultCData (XFA_Attribute attr) const
std::optional< XFA_AttributeValueGetDefaultEnum (XFA_Attribute attr) const
bool IsOpenAccess () const
CXFA_OccurGetOccurIfExists ()
CXFA_BorderGetBorderIfExists () const
CXFA_BorderGetOrCreateBorderIfPossible ()
CXFA_CaptionGetCaptionIfExists () const
CXFA_FontGetFontIfExists () const
CXFA_FontGetOrCreateFontIfPossible ()
float GetFontSize () const
FX_ARGB GetTextColor () const
float GetLineHeight () const
CXFA_MarginGetMarginIfExists () const
CXFA_ParaGetParaIfExists () const
CXFA_CalculateGetCalculateIfExists () const
CXFA_ValidateGetValidateIfExists () const
CXFA_ValidateGetOrCreateValidateIfPossible ()
CXFA_ValueGetFormValueIfExists () const
WideString GetRawValue () const
int32_t GetRotate () const
std::optional< float > TryWidth ()
CXFA_NodeGetExclGroupIfExists ()
XFA_EventError ProcessEvent (CXFA_FFDocView *pDocView, XFA_AttributeValue iActivity, CXFA_EventParam *pEventParam)
XFA_EventError ProcessCalculate (CXFA_FFDocView *pDocView)
XFA_EventError ProcessValidate (CXFA_FFDocView *pDocView, int32_t iFlags)
XFA_EventError ExecuteScript (CXFA_FFDocView *pDocView, CXFA_Script *script, CXFA_EventParam *pEventParam)
BoolScriptResult ExecuteBoolScript (CXFA_FFDocView *pDocView, CXFA_Script *script, CXFA_EventParam *pEventParam)
CXFA_NodeGetUIChildNode ()
XFA_FFWidgetType GetFFWidgetType ()
CFX_RectF GetUIMargin ()
CXFA_BorderGetUIBorder ()
void SetPreNull (bool val)
bool IsNull () const
void SetIsNull (bool val)
void SetWidgetReady ()
bool IsWidgetReady () const
std::vector< CXFA_Event * > GetEventByActivity (XFA_AttributeValue iActivity, bool bIsFormReady)
void ResetData ()
void StartWidgetLayout (CXFA_FFDoc *doc, float *pCalcWidth, float *pCalcHeight)
std::optional< float > FindSplitPos (CXFA_FFDocView *pDocView, size_t szBlockIndex, float fCalcHeight)
bool LoadCaption (CXFA_FFDoc *doc)
CXFA_TextLayoutGetCaptionTextLayout ()
CXFA_TextLayoutGetTextLayout ()
bool LoadLayoutImage (CXFA_FFDoc *doc)
bool LoadEditImage (CXFA_FFDoc *doc)
CFX_Size GetLayoutImageDpi () const
CFX_Size GetEditImageDpi () const
RetainPtr< CFX_DIBitmapGetLayoutImage ()
RetainPtr< CFX_DIBitmapGetEditImage ()
void SetLayoutImage (RetainPtr< CFX_DIBitmap > newImage)
void SetEditImage (RetainPtr< CFX_DIBitmap > newImage)
RetainPtr< CFGAS_GEFontGetFGASFont (CXFA_FFDoc *doc)
bool IsListBox ()
bool IsRadioButton ()
bool IsMultiLine ()
bool HasButtonRollover () const
bool HasButtonDown () const
float GetCheckButtonSize ()
XFA_CheckState GetCheckState ()
void SetCheckState (XFA_CheckState eCheckState)
CXFA_NodeGetSelectedMember ()
CXFA_NodeSetSelectedMember (WideStringView wsName)
void SetSelectedMemberByValue (WideStringView wsValue, bool bNotify, bool bScriptModify, bool bSyncData)
CXFA_NodeGetExclGroupFirstMember ()
CXFA_NodeGetExclGroupNextMember (CXFA_Node *pNode)
bool IsChoiceListAllowTextEntry ()
size_t CountChoiceListItems (bool bSaveValue)
std::optional< WideStringGetChoiceListItem (int32_t nIndex, bool bSaveValue)
bool IsChoiceListMultiSelect ()
bool IsChoiceListCommitOnSelect ()
std::vector< WideStringGetChoiceListItems (bool bSaveValue)
int32_t CountSelectedItems ()
int32_t GetSelectedItem (int32_t nIndex)
std::vector< int32_t > GetSelectedItems ()
std::vector< WideStringGetSelectedItemsValue ()
void SetSelectedItems (const std::vector< int32_t > &iSelArray, bool bNotify, bool bScriptModify, bool bSyncData)
void InsertItem (const WideString &wsLabel, const WideString &wsValue, bool bNotify)
bool DeleteItem (int32_t nIndex, bool bNotify, bool bScriptModify)
void ClearAllSelections ()
bool GetItemState (int32_t nIndex)
void SetItemState (int32_t nIndex, bool bSelected, bool bNotify, bool bScriptModify)
WideString GetItemValue (WideStringView wsLabel)
bool IsHorizontalScrollPolicyOff ()
bool IsVerticalScrollPolicyOff ()
std::optional< int32_t > GetNumberOfCells ()
bool SetValue (XFA_ValuePicture eValueType, const WideString &wsValue)
WideString GetValue (XFA_ValuePicture eValueType)
WideString GetPictureContent (XFA_ValuePicture ePicture)
WideString GetNormalizeDataValue (const WideString &wsValue)
WideString GetFormatDataValue (const WideString &wsValue)
WideString NormalizeNumStr (const WideString &wsValue)
std::pair< XFA_Element, int32_t > GetMaxChars () const
int32_t GetFracDigits () const
int32_t GetLeadDigits () const
WideString NumericLimit (const WideString &wsValue)
bool IsTransparent () const
bool IsProperty () const
Public Member Functions inherited from CXFA_Object
virtual ~CXFA_Object ()
CXFA_DocumentGetDocument () const
XFA_ObjectType GetObjectType () const
bool IsList () const
bool IsNode () const
bool IsTreeList () const
bool IsContentNode () const
bool IsContainerNode () const
bool IsModelNode () const
bool IsNodeV () const
bool IsThisProxy () const
CXFA_ListAsList ()
CXFA_NodeAsNode ()
CXFA_TreeListAsTreeList ()
CXFA_ThisProxyAsThisProxy ()
CJX_ObjectJSObject ()
const CJX_ObjectJSObject () const
bool HasCreatedUIWidget () const
XFA_Element GetElementType () const
ByteStringView GetClassName () const
uint32_t GetClassHashCode () const
WideString GetSOMExpression ()
Public Member Functions inherited from fxcrt::TreeNodeBase< T >
 TreeNodeBase ()=default
virtual ~TreeNodeBase ()=default
T * GetParent () const
T * GetFirstChild () const
T * GetLastChild () const
T * GetNextSibling () const
T * GetPrevSibling () const
bool HasChild (const T *child) const
T * GetNthChild (int32_t n)
void AppendFirstChild (T *child)
void AppendLastChild (T *child)
void InsertBefore (T *child, T *other)
void InsertAfter (T *child, T *other)
void RemoveChild (T *child)
void RemoveAllChildren ()
void RemoveSelfIfParented ()

Static Public Member Functions

static CXFA_RectangleFromNode (CXFA_Node *pNode)
Static Public Member Functions inherited from CXFA_Node
static CXFA_NodeCreate (CXFA_Document *doc, XFA_Element element, XFA_PacketType packet)

Public Attributes

 CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
Public Attributes inherited from CXFA_Box
 CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED

Protected Member Functions

 CXFA_Rectangle (CXFA_Document *doc, XFA_PacketType packet)
 CXFA_Rectangle (CXFA_Document *pDoc, XFA_PacketType ePacket, Mask< XFA_XDPPACKET > validPackets, XFA_ObjectType oType, XFA_Element eType, pdfium::span< const PropertyData > properties, pdfium::span< const AttributeData > attributes, CJX_Object *js_node)
void Stroke (const std::vector< CXFA_Stroke * > &strokes, CFGAS_GEGraphics *pGS, CFX_RectF rtWidget, const CFX_Matrix &matrix)
void StrokeEmbossed (CFGAS_GEGraphics *pGS, CFX_RectF rt, float fThickness, const CFX_Matrix &matrix)
void StrokeLowered (CFGAS_GEGraphics *pGS, CFX_RectF rt, float fThickness, const CFX_Matrix &matrix)
void StrokeRaised (CFGAS_GEGraphics *pGS, CFX_RectF rt, float fThickness, const CFX_Matrix &matrix)
void StrokeEtched (CFGAS_GEGraphics *pGS, CFX_RectF rt, float fThickness, const CFX_Matrix &matrix)
void StrokeRect (CFGAS_GEGraphics *pGraphic, const CFX_RectF &rt, float fLineWidth, const CFX_Matrix &matrix, FX_ARGB argbTopLeft, FX_ARGB argbBottomRight)
void GetPath (const std::vector< CXFA_Stroke * > &strokes, CFX_RectF rtWidget, CFGAS_GEPath &path, int32_t nIndex, bool bStart, bool bCorner)
Protected Member Functions inherited from CXFA_Box
 CXFA_Box (CXFA_Document *pDoc, XFA_PacketType ePacket, Mask< XFA_XDPPACKET > validPackets, XFA_ObjectType oType, XFA_Element eType, pdfium::span< const PropertyData > properties, pdfium::span< const AttributeData > attributes, CJX_Object *js_node)
XFA_AttributeValue GetHand ()
Protected Member Functions inherited from CXFA_Node
 CXFA_Node (CXFA_Document *pDoc, XFA_PacketType ePacket, Mask< XFA_XDPPACKET > validPackets, XFA_ObjectType oType, XFA_Element eType, pdfium::span< const PropertyData > properties, pdfium::span< const AttributeData > attributes, CJX_Object *js_object)
virtual XFA_Element GetValueNodeType () const
virtual XFA_FFWidgetType GetDefaultFFWidgetType () const
Protected Member Functions inherited from CXFA_Object
 CXFA_Object (CXFA_Document *pDocument, XFA_ObjectType objectType, XFA_Element eType, CJX_Object *jsObject)
Protected Member Functions inherited from fxjs::GCedTreeNodeMixin< T >
 GCedTreeNodeMixin ()=default
 GCedTreeNodeMixin (const GCedTreeNodeMixin &that)=delete
GCedTreeNodeMixinoperator= (const GCedTreeNodeMixin &that)=delete

Additional Inherited Members

Protected Attributes inherited from CXFA_Object
const XFA_ObjectType m_objectType
const XFA_Element m_elementType
const ByteStringView m_elementName
const uint32_t m_elementNameHash
cppgc::WeakMember< CXFA_Documentm_pDocument
cppgc::Member< CJX_Objectm_pJSObject

Detailed Description

Definition at line 15 of file cxfa_rectangle.h.

Constructor & Destructor Documentation

◆ ~CXFA_Rectangle()

CXFA_Rectangle::~CXFA_Rectangle ( )
overridedefault

◆ CXFA_Rectangle() [1/2]

CXFA_Rectangle::CXFA_Rectangle ( CXFA_Document * doc,
XFA_PacketType packet )
protected

Definition at line 46 of file cxfa_rectangle.cpp.

References CXFA_Rectangle().

Referenced by CXFA_Rectangle().

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

◆ CXFA_Rectangle() [2/2]

CXFA_Rectangle::CXFA_Rectangle ( CXFA_Document * pDoc,
XFA_PacketType ePacket,
Mask< XFA_XDPPACKET > validPackets,
XFA_ObjectType oType,
XFA_Element eType,
pdfium::span< const PropertyData > properties,
pdfium::span< const AttributeData > attributes,
CJX_Object * js_node )
protected

Definition at line 58 of file cxfa_rectangle.cpp.

Member Function Documentation

◆ Draw()

void CXFA_Rectangle::Draw ( const std::vector< CXFA_Stroke * > & strokes,
CFGAS_GEGraphics * pGS,
CFX_RectF rtWidget,
const CFX_Matrix & matrix )

Definition at line 224 of file cxfa_rectangle.cpp.

References CXFA_Box::GetHand(), CFX_RectF::height, CFX_RectF::left, CFX_RectF::top, and CFX_RectF::width.

Here is the call graph for this function:

◆ FromNode()

CXFA_Rectangle * CXFA_Rectangle::FromNode ( CXFA_Node * pNode)
static

Definition at line 40 of file cxfa_rectangle.cpp.

References CXFA_Object::GetElementType().

Referenced by CXFA_Value::GetRectangleIfExists().

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

◆ GetFillPath()

void CXFA_Rectangle::GetFillPath ( const std::vector< CXFA_Stroke * > & strokes,
const CFX_RectF & rtWidget,
CFGAS_GEPath * fillPath )

◆ GetPath()

void CXFA_Rectangle::GetPath ( const std::vector< CXFA_Stroke * > & strokes,
CFX_RectF rtWidget,
CFGAS_GEPath & path,
int32_t nIndex,
bool bStart,
bool bCorner )
protected

Definition at line 461 of file cxfa_rectangle.cpp.

References CFGAS_GEPath::ArcTo(), CXFA_Stroke::GetJoinType(), CXFA_Stroke::GetRadius(), CXFA_Stroke::GetThickness(), CXFA_Stroke::IsCorner(), CXFA_Stroke::IsInverted(), CFGAS_GEPath::LineTo(), CFGAS_GEPath::MoveTo(), CFX_RectF::Normalize(), CFX_RectF::Offset(), and CXFA_Stroke::SameStyles().

Here is the call graph for this function:

◆ Stroke()

void CXFA_Rectangle::Stroke ( const std::vector< CXFA_Stroke * > & strokes,
CFGAS_GEGraphics * pGS,
CFX_RectF rtWidget,
const CFX_Matrix & matrix )
protected

◆ StrokeEmbossed()

void CXFA_Rectangle::StrokeEmbossed ( CFGAS_GEGraphics * pGS,
CFX_RectF rt,
float fThickness,
const CFX_Matrix & matrix )
protected

Definition at line 449 of file cxfa_rectangle.cpp.

References CFX_RectF::CFX_RectF(), CFX_RectF::Deflate(), and StrokeRect().

Referenced by Stroke().

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

◆ StrokeEtched()

void CXFA_Rectangle::StrokeEtched ( CFGAS_GEGraphics * pGS,
CFX_RectF rt,
float fThickness,
const CFX_Matrix & matrix )
protected

Definition at line 437 of file cxfa_rectangle.cpp.

References CFX_RectF::CFX_RectF(), CFX_RectF::Deflate(), and StrokeRect().

Referenced by Stroke().

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

◆ StrokeLowered()

void CXFA_Rectangle::StrokeLowered ( CFGAS_GEGraphics * pGS,
CFX_RectF rt,
float fThickness,
const CFX_Matrix & matrix )
protected

Definition at line 405 of file cxfa_rectangle.cpp.

References CFGAS_GEColor::CFGAS_GEColor(), CFX_RectF::CFX_RectF(), CFGAS_GEPath::AddRectangle(), CFX_RectF::Deflate(), CFGAS_GEGraphics::FillPath(), CFX_RectF::height, CFX_FillRenderOptions::kEvenOdd, CFX_RectF::left, CFGAS_GEGraphics::SetFillColor(), StrokeRect(), CFX_RectF::top, and CFX_RectF::width.

Referenced by Stroke().

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

◆ StrokeRaised()

void CXFA_Rectangle::StrokeRaised ( CFGAS_GEGraphics * pGS,
CFX_RectF rt,
float fThickness,
const CFX_Matrix & matrix )
protected

Definition at line 421 of file cxfa_rectangle.cpp.

References CFGAS_GEColor::CFGAS_GEColor(), CFX_RectF::CFX_RectF(), CFGAS_GEPath::AddRectangle(), CFX_RectF::Deflate(), CFGAS_GEGraphics::FillPath(), CFX_RectF::height, CFX_FillRenderOptions::kEvenOdd, CFX_RectF::left, CFGAS_GEGraphics::SetFillColor(), StrokeRect(), CFX_RectF::top, and CFX_RectF::width.

Referenced by Stroke().

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

◆ StrokeRect()

void CXFA_Rectangle::StrokeRect ( CFGAS_GEGraphics * pGraphic,
const CFX_RectF & rt,
float fLineWidth,
const CFX_Matrix & matrix,
FX_ARGB argbTopLeft,
FX_ARGB argbBottomRight )
protected

Definition at line 374 of file cxfa_rectangle.cpp.

References CFGAS_GEColor::CFGAS_GEColor(), CFX_RectF::bottom(), CFGAS_GEGraphics::FillPath(), CFX_FillRenderOptions::kWinding, CFX_RectF::left, CFGAS_GEPath::LineTo(), CFGAS_GEPath::MoveTo(), CFX_RectF::right(), CFGAS_GEGraphics::SetFillColor(), and CFX_RectF::top.

Referenced by StrokeEmbossed(), StrokeEtched(), StrokeLowered(), and StrokeRaised().

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

Member Data Documentation

◆ CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED

CXFA_Rectangle::CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED

Definition at line 19 of file cxfa_rectangle.h.


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