20#ifndef PCB_TABLECELL_H
21#define PCB_TABLECELL_H
42 wxString
GetClass()
const override {
return wxT(
"PCB_TABLECELL" ); }
50 void Serialize( google::protobuf::Any &aContainer )
const override;
51 bool Deserialize(
const google::protobuf::Any &aContainer )
override;
53 void Serialize( kiapi::board::types::TableCell& aOutput )
const;
54 bool Deserialize(
const kiapi::board::types::TableCell& aInput );
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
BOARD_ITEM_CONTAINER * GetParent() const
The base class for create windows for drawing purpose.
A set of EDA_ITEMs (i.e., without duplicates).
A base class for most all the KiCad significant classes used in schematics and boards.
virtual EDA_GROUP * GetParentGroup() const
KICAD_T Type() const
Returns the type of object.
virtual int GetTextHeight() const
virtual int GetTextWidth() const
Class that other classes need to inherit from, in order to be inspectable.
int GetColumnWidth() const
wxString GetItemDescription(UNITS_PROVIDER *aUnitsProvider, bool aFull) const override
Return a user-visible description string of this item.
double GetCoverageArea(int aTextMargin) const override
Return the board area this item covers, used to rank candidates under the cursor so a click on a smal...
static bool ClassOf(const EDA_ITEM *aItem)
void SetRowHeight(int aHeight)
wxString GetShownText(RESOLUTION_CONTEXT aContext, int aDepth=0) const override
Return the string actually shown after processing of the base text.
virtual void swapData(BOARD_ITEM *aImage) override
void SetRowSpan(int aSpan)
double Similarity(const BOARD_ITEM &aBoardItem) const override
Return a measure of how likely the other object is to represent the same object.
bool operator==(const PCB_TABLECELL &aBoardItem) const
void SetFontSize(int aSize)
void SetColumnWidth(int aWidth)
bool HasSquareFontSize() const
wxString GetUnwrappedShownText(RESOLUTION_CONTEXT aContext, int aDepth=0) const
GetShownText() before it is line-broken to the cell's width, i.e.
bool IsFilledForHitTesting() const override
virtual wxString GetFriendlyName() const override
void SetColSpan(int aSpan)
void CopyFrom(const BOARD_ITEM *aOther) override
EDA_GROUP * GetParentGroup() const override
EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
bool Deserialize(const google::protobuf::Any &aContainer) override
Deserializes the given protobuf message into this object.
int GetFontSize() const
The text height, which speaks for the width too only when HasSquareFontSize.
void GetMsgPanelInfo(EDA_DRAW_FRAME *aFrame, std::vector< MSG_PANEL_ITEM > &aList) override
Populate aList of MSG_PANEL_ITEM objects with it's internal state for display purposes.
wxString GetClass() const override
Return the class name.
void Serialize(google::protobuf::Any &aContainer) const override
Serializes this object to the given Any message.
PCB_TABLECELL(BOARD_ITEM *parent)
static wxPGChoices FontChoices(INSPECTABLE *aItem)
The font names EDA_TEXT's Font property offers, for the Font Name a generated table and its cells off...
PCB_TEXTBOX(BOARD_ITEM *aParent, KICAD_T aType=PCB_TEXTBOX_T)
void SetTextSize(VECTOR2I aNewSize, bool aEnforceMinTextSize=true) override
@ PCB_TABLECELL_T
class PCB_TABLECELL, PCB_TEXTBOX for use in tables
VECTOR2< int32_t > VECTOR2I