KiCad PCB EDA Suite
|
#include <text_attributes.h>
Public Member Functions | |
TEXT_ATTRIBUTES (KIFONT::FONT *aFont=nullptr) | |
int | Compare (const TEXT_ATTRIBUTES &aRhs) const |
bool | operator== (const TEXT_ATTRIBUTES &aRhs) const |
bool | operator> (const TEXT_ATTRIBUTES &aRhs) const |
bool | operator< (const TEXT_ATTRIBUTES &aRhs) const |
Public Attributes | |
KIFONT::FONT * | m_Font |
GR_TEXT_H_ALIGN_T | m_Halign |
GR_TEXT_V_ALIGN_T | m_Valign |
EDA_ANGLE | m_Angle |
double | m_LineSpacing |
int | m_StrokeWidth |
bool | m_Italic |
bool | m_Bold |
bool | m_Underlined |
KIGFX::COLOR4D | m_Color |
bool | m_Visible |
bool | m_Mirrored |
bool | m_Multiline |
VECTOR2I | m_Size |
bool | m_KeepUpright |
int | m_StoredStrokeWidth |
Definition at line 120 of file text_attributes.h.
TEXT_ATTRIBUTES::TEXT_ATTRIBUTES | ( | KIFONT::FONT * | aFont = nullptr | ) |
Definition at line 24 of file text_attributes.cpp.
int TEXT_ATTRIBUTES::Compare | ( | const TEXT_ATTRIBUTES & | aRhs | ) | const |
Definition at line 44 of file text_attributes.cpp.
References EDA_ANGLE::AsDegrees(), KIGFX::COLOR4D::Compare(), KIFONT::FONT::GetName(), m_Angle, m_Bold, m_Color, m_Font, m_Halign, m_Italic, m_KeepUpright, m_LineSpacing, m_Mirrored, m_Multiline, m_Size, m_StrokeWidth, m_Underlined, m_Valign, m_Visible, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by EDA_TEXT::Compare().
|
inline |
Definition at line 129 of file text_attributes.h.
|
inline |
Definition at line 127 of file text_attributes.h.
|
inline |
Definition at line 128 of file text_attributes.h.
EDA_ANGLE TEXT_ATTRIBUTES::m_Angle |
Definition at line 134 of file text_attributes.h.
Referenced by BOARD_ADAPTER::addText(), PCB_IO_IPC2581::addText(), KIGFX::GAL::BitmapText(), KIGFX::bitmapText(), BOOST_AUTO_TEST_CASE(), Compare(), PCB_TEXT::Deserialize(), KIGFX::PCB_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIFONT::FONT::Draw(), drawTicksAlongLine(), GENDRILL_WRITER_BASE::genDrillMapFile(), EDA_TEXT::GetEffectiveTextShape(), KIFONT::OUTLINE_FONT::GetLinesAsGlyphs(), EDA_TEXT::GetRenderCache(), EDA_TEXT::GetTextAngle(), EDA_TEXT::GetTextAngleDegrees(), KIGFX::GetTextExtents(), GRPrintText(), FEATURES_MANAGER::InitFeatureList(), std::hash< TEXT_ATTRIBUTES >::operator()(), operator<<(), SCH_FIELD::Plot(), SCH_TEXT::Plot(), DXF_PLOTTER::plotOneLineOfText(), BRDITEMS_PLOTTER::PlotPadNumber(), SCH_PIN::PlotPinTexts(), BRDITEMS_PLOTTER::PlotText(), PDF_PLOTTER::PlotText(), SVG_PLOTTER::PlotText(), EDA_TEXT::SetTextAngle(), KIGFX::PCB_PAINTER::strokeText(), PLOTTER::Text(), DXF_PLOTTER::Text(), and PCB_TEXT::TransformTextToPolySet().
bool TEXT_ATTRIBUTES::m_Bold |
Definition at line 138 of file text_attributes.h.
Referenced by BOOST_AUTO_TEST_CASE(), KIGFX::boxText(), Compare(), PCB_TEXT::Deserialize(), KIGFX::GetTextExtents(), InferBold(), FEATURES_MANAGER::InitFeatureList(), EDA_TEXT::IsBold(), KIGFX::knockoutText(), std::hash< TEXT_ATTRIBUTES >::operator()(), operator<<(), DXF_PLOTTER::plotOneLineOfText(), PDF_PLOTTER::PlotText(), SVG_PLOTTER::PlotText(), PLOTTER::PlotText(), EDA_TEXT::SetBold(), EDA_TEXT::SetBoldFlag(), KIGFX::PCB_PAINTER::strokeText(), KIGFX::strokeText(), and DXF_PLOTTER::Text().
KIGFX::COLOR4D TEXT_ATTRIBUTES::m_Color |
Definition at line 140 of file text_attributes.h.
Referenced by BOOST_AUTO_TEST_CASE(), Compare(), KIGFX::SCH_PAINTER::draw(), EDA_TEXT::GetTextColor(), KIGFX::knockoutText(), std::hash< TEXT_ATTRIBUTES >::operator()(), operator<<(), and EDA_TEXT::SetTextColor().
KIFONT::FONT* TEXT_ATTRIBUTES::m_Font |
Definition at line 131 of file text_attributes.h.
Referenced by BOOST_AUTO_TEST_CASE(), KIGFX::boxText(), Compare(), PCB_TEXT::Deserialize(), KIGFX::SCH_PAINTER::draw(), EDA_TEXT::GetFont(), KIGFX::knockoutText(), std::hash< TEXT_ATTRIBUTES >::operator()(), operator<<(), EDA_TEXT::SetFont(), KIGFX::PCB_PAINTER::strokeText(), and KIGFX::strokeText().
GR_TEXT_H_ALIGN_T TEXT_ATTRIBUTES::m_Halign |
Definition at line 132 of file text_attributes.h.
Referenced by KIGFX::bitmapText(), BOOST_AUTO_TEST_CASE(), Compare(), PCB_TEXT::Deserialize(), KIGFX::PCB_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), DRAWING_TOOL::drawShape(), KIGFX::PREVIEW::DrawTextNextToCursor(), drawTicksAlongLine(), GENDRILL_WRITER_BASE::genDrillMapFile(), DS_DRAW_ITEM_TEXT::GetApproxBBox(), EDA_TEXT::GetEffectiveTextShape(), EDA_TEXT::GetHorizJustify(), KIFONT::FONT::getLinePositions(), KIGFX::GetTextExtents(), std::hash< TEXT_ATTRIBUTES >::operator()(), operator<<(), DRAWING_TOOL::PlaceText(), SCH_FIELD::Plot(), SCH_TEXT::Plot(), DXF_PLOTTER::plotOneLineOfText(), SCH_PIN::PlotPinTexts(), PDF_PLOTTER::PlotText(), SVG_PLOTTER::PlotText(), DRAWING_TOOL::Reset(), EDA_TEXT::SetHorizJustify(), KIGFX::PCB_PAINTER::strokeText(), DXF_PLOTTER::Text(), TUNING_STATUS_VIEW_ITEM::ViewDraw(), ROUTER_STATUS_VIEW_ITEM::ViewDraw(), and KIGFX::ANCHOR_DEBUG::ViewDraw().
bool TEXT_ATTRIBUTES::m_Italic |
Definition at line 137 of file text_attributes.h.
Referenced by BOOST_AUTO_TEST_CASE(), KIGFX::boxText(), Compare(), PCB_TEXT::Deserialize(), KIGFX::PCB_PAINTER::draw(), KIFONT::FONT::Draw(), DRAWING_TOOL::drawShape(), KIFONT::FONT::getLinePositions(), KIFONT::OUTLINE_FONT::GetLinesAsGlyphs(), KIGFX::GetTextExtents(), EDA_TEXT::IsItalic(), KIGFX::knockoutText(), std::hash< TEXT_ATTRIBUTES >::operator()(), operator<<(), DRAWING_TOOL::PlaceText(), DXF_PLOTTER::plotOneLineOfText(), PDF_PLOTTER::PlotText(), SVG_PLOTTER::PlotText(), DRAWING_TOOL::Reset(), EDA_TEXT::SetItalic(), EDA_TEXT::SetItalicFlag(), KIGFX::PCB_PAINTER::strokeText(), KIGFX::strokeText(), and DXF_PLOTTER::Text().
bool TEXT_ATTRIBUTES::m_KeepUpright |
Definition at line 147 of file text_attributes.h.
Referenced by BOOST_AUTO_TEST_CASE(), Compare(), PCB_TEXT::Deserialize(), DRAWING_TOOL::drawShape(), EDA_TEXT::IsKeepUpright(), operator<<(), DRAWING_TOOL::PlaceText(), DRAWING_TOOL::Reset(), and EDA_TEXT::SetKeepUpright().
double TEXT_ATTRIBUTES::m_LineSpacing |
Definition at line 135 of file text_attributes.h.
Referenced by Compare(), PCB_TEXT::Deserialize(), KIFONT::FONT::getLinePositions(), EDA_TEXT::GetLineSpacing(), std::hash< TEXT_ATTRIBUTES >::operator()(), operator<<(), and EDA_TEXT::SetLineSpacing().
bool TEXT_ATTRIBUTES::m_Mirrored |
Definition at line 142 of file text_attributes.h.
Referenced by KIGFX::GAL::BitmapText(), BOOST_AUTO_TEST_CASE(), Compare(), PCB_TEXT::Deserialize(), KIGFX::PCB_PAINTER::draw(), KIFONT::FONT::Draw(), DRAWING_TOOL::drawShape(), KIGFX::PREVIEW::DrawTextNextToCursor(), drawTicksAlongLine(), KIFONT::OUTLINE_FONT::GetLinesAsGlyphs(), EDA_TEXT::IsMirrored(), std::hash< TEXT_ATTRIBUTES >::operator()(), operator<<(), DRAWING_TOOL::PlaceText(), DXF_PLOTTER::plotOneLineOfText(), PDF_PLOTTER::PlotText(), SVG_PLOTTER::PlotText(), DRAWING_TOOL::Reset(), EDA_TEXT::SetMirrored(), KIGFX::PCB_PAINTER::strokeText(), DXF_PLOTTER::Text(), TUNING_STATUS_VIEW_ITEM::ViewDraw(), and ROUTER_STATUS_VIEW_ITEM::ViewDraw().
bool TEXT_ATTRIBUTES::m_Multiline |
Definition at line 143 of file text_attributes.h.
Referenced by PCB_IO_IPC2581::addText(), BOOST_AUTO_TEST_CASE(), Compare(), PCB_TEXT::Deserialize(), GENDRILL_WRITER_BASE::genDrillMapFile(), FEATURES_MANAGER::InitFeatureList(), EDA_TEXT::IsMultilineAllowed(), std::hash< TEXT_ATTRIBUTES >::operator()(), operator<<(), SCH_FIELD::Plot(), SCH_LABEL_BASE::Plot(), SCH_TEXT::Plot(), SCH_TEXTBOX::Plot(), SCH_PIN::PlotPinTexts(), BRDITEMS_PLOTTER::PlotText(), DXF_PLOTTER::PlotText(), PDF_PLOTTER::PlotText(), SVG_PLOTTER::PlotText(), EDA_TEXT::SetMultilineAllowed(), and DXF_PLOTTER::Text().
VECTOR2I TEXT_ATTRIBUTES::m_Size |
Definition at line 144 of file text_attributes.h.
Referenced by KIGFX::GAL::BitmapText(), KIGFX::bitmapText(), BOOST_AUTO_TEST_CASE(), Compare(), PCB_TEXT::Deserialize(), KIGFX::PCB_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIFONT::FONT::Draw(), DRAWING_TOOL::drawShape(), KIGFX::PREVIEW::DrawTextNextToCursor(), drawTicksAlongLine(), GENDRILL_WRITER_BASE::genDrillMapFile(), DS_DRAW_ITEM_TEXT::GetApproxBBox(), KIFONT::FONT::getLinePositions(), KIFONT::OUTLINE_FONT::GetLinesAsGlyphs(), KIGFX::GetTextExtents(), EDA_TEXT::GetTextHeight(), EDA_TEXT::GetTextSize(), EDA_TEXT::GetTextWidth(), InferBold(), FEATURES_MANAGER::InitFeatureList(), std::hash< TEXT_ATTRIBUTES >::operator()(), operator<<(), DRAWING_TOOL::PlaceText(), DXF_PLOTTER::plotOneLineOfText(), BRDITEMS_PLOTTER::PlotPadNumber(), SCH_PIN::PlotPinTexts(), PDF_PLOTTER::PlotText(), SVG_PLOTTER::PlotText(), PLOTTER::PlotText(), DRAWING_TOOL::Reset(), EDA_TEXT::SetBold(), EDA_TEXT::SetTextHeight(), EDA_TEXT::SetTextSize(), EDA_TEXT::SetTextWidth(), PCB_TEXT::TransformTextToPolySet(), TUNING_STATUS_VIEW_ITEM::ViewDraw(), ROUTER_STATUS_VIEW_ITEM::ViewDraw(), and KIGFX::ANCHOR_DEBUG::ViewDraw().
int TEXT_ATTRIBUTES::m_StoredStrokeWidth |
Definition at line 148 of file text_attributes.h.
Referenced by EDA_TEXT::SetBold().
int TEXT_ATTRIBUTES::m_StrokeWidth |
Definition at line 136 of file text_attributes.h.
Referenced by PCB_IO_IPC2581::addText(), KIGFX::GAL::BitmapText(), KIGFX::bitmapText(), BOOST_AUTO_TEST_CASE(), KIGFX::boxText(), Compare(), PCB_TEXT::Deserialize(), KIGFX::DS_PAINTER::draw(), KIGFX::PCB_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), KIFONT::FONT::Draw(), DRAWING_TOOL::drawShape(), KIGFX::PREVIEW::DrawTextNextToCursor(), drawTicksAlongLine(), GENDRILL_WRITER_BASE::genDrillMapFile(), KIFONT::FONT::getLinePositions(), KIGFX::GetTextExtents(), EDA_TEXT::GetTextThickness(), InferBold(), FEATURES_MANAGER::InitFeatureList(), KIGFX::knockoutText(), std::hash< TEXT_ATTRIBUTES >::operator()(), operator<<(), DRAWING_TOOL::PlaceText(), SCH_FIELD::Plot(), SCH_LABEL_BASE::Plot(), SCH_TEXT::Plot(), SCH_TEXTBOX::Plot(), BRDITEMS_PLOTTER::PlotPadNumber(), SCH_PIN::PlotPinTexts(), BRDITEMS_PLOTTER::PlotText(), PS_PLOTTER::PlotText(), PDF_PLOTTER::PlotText(), SVG_PLOTTER::PlotText(), PLOTTER::PlotText(), DRAWING_TOOL::Reset(), EDA_TEXT::SetBold(), EDA_TEXT::SetTextThickness(), KIGFX::PCB_PAINTER::strokeText(), DXF_PLOTTER::Text(), TUNING_STATUS_VIEW_ITEM::ViewDraw(), and ROUTER_STATUS_VIEW_ITEM::ViewDraw().
bool TEXT_ATTRIBUTES::m_Underlined |
Definition at line 139 of file text_attributes.h.
Referenced by BOOST_AUTO_TEST_CASE(), Compare(), PCB_TEXT::Deserialize(), KIGFX::SCH_PAINTER::draw(), KIFONT::FONT::Draw(), std::hash< TEXT_ATTRIBUTES >::operator()(), and operator<<().
GR_TEXT_V_ALIGN_T TEXT_ATTRIBUTES::m_Valign |
Definition at line 133 of file text_attributes.h.
Referenced by KIGFX::bitmapText(), BOOST_AUTO_TEST_CASE(), Compare(), PCB_TEXT::Deserialize(), KIGFX::PCB_PAINTER::draw(), KIGFX::SCH_PAINTER::draw(), DRAWING_TOOL::drawShape(), GENDRILL_WRITER_BASE::genDrillMapFile(), EDA_TEXT::GetEffectiveTextShape(), KIFONT::FONT::getLinePositions(), KIGFX::GetTextExtents(), EDA_TEXT::GetVertJustify(), std::hash< TEXT_ATTRIBUTES >::operator()(), operator<<(), DRAWING_TOOL::PlaceText(), SCH_FIELD::Plot(), SCH_TEXT::Plot(), DXF_PLOTTER::plotOneLineOfText(), SCH_PIN::PlotPinTexts(), PDF_PLOTTER::PlotText(), SVG_PLOTTER::PlotText(), DRAWING_TOOL::Reset(), EDA_TEXT::SetVertJustify(), and DXF_PLOTTER::Text().
bool TEXT_ATTRIBUTES::m_Visible |
Definition at line 141 of file text_attributes.h.
Referenced by BOOST_AUTO_TEST_CASE(), Compare(), PCB_TEXT::Deserialize(), KIGFX::PCB_PAINTER::draw(), EDA_TEXT::IsVisible(), std::hash< TEXT_ATTRIBUTES >::operator()(), operator<<(), and EDA_TEXT::SetVisible().