7#include "core/fxge/cfx_graphstate.h"
26 for (
float& val : dashes)
28 pData->m_DashArray =
std::move(dashes);
37 std::vector<
float> ret;
39 if (m_Ref.GetObject())
40 ret = m_Ref.GetObject()->m_DashArray;
46 return m_Ref.GetObject() ? m_Ref.GetObject()->m_DashArray.size() : 0;
50 return m_Ref.GetObject() ? m_Ref.GetObject()->m_DashPhase : 1.0f;
54 return m_Ref.GetObject() ? m_Ref.GetObject()->m_LineWidth : 1.0f;
58 m_Ref.GetPrivateCopy()->m_LineWidth = width;
62 return m_Ref.GetObject() ? m_Ref.GetObject()->m_LineCap
63 : CFX_GraphStateData::LineCap::kButt;
66 m_Ref.GetPrivateCopy()->m_LineCap = cap;
70 return m_Ref.GetObject() ? m_Ref.GetObject()->m_LineJoin
71 : CFX_GraphStateData::LineJoin::kMiter;
75 m_Ref.GetPrivateCopy()->m_LineJoin = join;
79 return m_Ref.GetObject() ? m_Ref.GetObject()->m_MiterLimit : 10.f;
83 m_Ref.GetPrivateCopy()->m_MiterLimit = limit;
float GetLineDashPhase() const
void SetLineWidth(float width)
CFX_GraphState(const CFX_GraphState &that)
std::vector< float > GetLineDashArray() const
void SetMiterLimit(float limit)
void SetLineJoin(CFX_GraphStateData::LineJoin join)
float GetMiterLimit() const
void SetLineDashPhase(float phase)
void SetLineDash(std::vector< float > dashes, float phase, float scale)
float GetLineWidth() const
CFX_GraphStateData::LineCap GetLineCap() const
size_t GetLineDashSize() const
CFX_GraphStateData::LineJoin GetLineJoin() const
void SetLineCap(CFX_GraphStateData::LineCap cap)