35#define TB_DEFAULT_TEXTSIZE 1.5      
  116        m_Pos.m_Pos.x = aPosx;
 
  117        m_Pos.m_Pos.y = aPosy;
 
  118        m_Pos.m_Anchor = aAnchor;
 
 
  123        m_End.m_Pos.x = aPosx;
 
  124        m_End.m_Pos.y = aPosy;
 
  125        m_End.m_Anchor = aAnchor;
 
 
 
  367    void SetPPI( 
int aBitmapPPI );
 
 
This class handle bitmap images in KiCad.
 
BITMAP_BASE * m_ImageBitmap
 
void SyncDrawItems(DS_DRAW_ITEM_LIST *aCollector, KIGFX::VIEW *aView) override
 
DS_DATA_ITEM_BITMAP(BITMAP_BASE *aImage)
 
void SetPPI(int aBitmapPPI)
 
unsigned GetPolyIndexStart(unsigned aContour) const
 
unsigned GetPolyIndexEnd(unsigned aContour) const
 
const VECTOR2I GetCornerPositionIU(unsigned aIdx, int aRepeat=0) const
 
void SetBoundingBox()
Calculate the bounding box of the set polygons.
 
virtual int GetPenSizeIU() override
 
void SyncDrawItems(DS_DRAW_ITEM_LIST *aCollector, KIGFX::VIEW *aView) override
 
void CloseContour()
Close the current contour, by storing the index of the last corner of the current polygon in m_polyIn...
 
bool IsInsidePage(int ii) const override
 
std::vector< unsigned > m_polyIndexEnd
 
const VECTOR2D GetCornerPosition(unsigned aIdx, int aRepeat=0) const
 
void AppendCorner(const VECTOR2D &aCorner)
Add a corner in corner list.
 
std::vector< VECTOR2D > m_Corners
 
bool ReplaceAntiSlashSequence()
Replace the '\''n' sequence by EOL and the sequence '\''\' by only one '\' inside m_FullText.
 
void SyncDrawItems(DS_DRAW_ITEM_LIST *aCollector, KIGFX::VIEW *aView) override
 
void IncrementLabel(int aIncr)
Try to build text which is an increment of m_TextBase has meaning only if m_TextBase is a basic text ...
 
void SetConstrainedTextSize()
Calculate m_ConstrainedTextSize from m_TextSize to keep the X size and the full Y size of the text sm...
 
GR_TEXT_H_ALIGN_T m_Hjustify
 
KIGFX::COLOR4D m_TextColor
 
virtual int GetPenSizeIU() override
 
VECTOR2D m_BoundingBoxSize
 
VECTOR2D m_ConstrainedTextSize
 
DS_DATA_ITEM_TEXT(const wxString &aTextBase)
 
GR_TEXT_V_ALIGN_T m_Vjustify
 
PAGE_OPTION GetPage1Option() const
 
void SetPage1Option(PAGE_OPTION aChoice)
 
DS_DATA_ITEM(DS_ITEM_TYPE aType)
 
const VECTOR2D GetEndPos(int ii=0) const
 
void MoveStartPointToIU(const VECTOR2I &aPosition)
Move the starting point of the item to a new position.
 
const VECTOR2D GetStartPos(int ii=0) const
 
void MoveStartPointTo(const VECTOR2D &aPosition)
Move the starting point of the item to a new position.
 
void MoveEndPointTo(const VECTOR2D &aPosition)
Move the ending point of the item to a new position.
 
virtual int GetPenSizeIU()
 
void MoveEndPointToIU(const VECTOR2I &aPosition)
Move the ending point of the item to a new position.
 
DS_ITEM_TYPE GetType() const
 
void MoveTo(const VECTOR2D &aPosition)
Move item to a new position.
 
void MoveToIU(const VECTOR2I &aPosition)
Move item to a new position.
 
std::vector< DS_DRAW_ITEM_BASE * > m_drawItems
 
const wxString GetClassName() const
 
const VECTOR2I GetStartPosIU(int ii=0) const
 
const VECTOR2I GetEndPosIU(int ii=0) const
 
void SetEnd(double aPosx, double aPosy, enum CORNER_ANCHOR aAnchor=RB_CORNER)
 
VECTOR2D m_IncrementVector
 
void SetStart(double aPosx, double aPosy, enum CORNER_ANCHOR aAnchor=RB_CORNER)
 
virtual void SyncDrawItems(DS_DRAW_ITEM_LIST *aCollector, KIGFX::VIEW *aView)
 
const std::vector< DS_DRAW_ITEM_BASE * > & GetDrawItems() const
 
virtual bool IsInsidePage(int ii) const
 
Store the list of graphic items: rect, lines, polygons and texts to draw/plot the title block and fra...
 
FONT is an abstract base class for both outline and stroke fonts.
 
A color representation with 4 components: red, green, blue, alpha.
 
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
 
POINT_COORD(const VECTOR2D &aPos, enum CORNER_ANCHOR aAnchor=RB_CORNER)
 
CORNER_ANCHOR
A coordinate is relative to a page corner.
 
The Cairo implementation of the graphics abstraction layer.
 
GR_TEXT_H_ALIGN_T
This is API surface mapped to common.types.HorizontalAlignment.
 
GR_TEXT_V_ALIGN_T
This is API surface mapped to common.types.VertialAlignment.
 
VECTOR2< int32_t > VECTOR2I
 
VECTOR2< double > VECTOR2D