Properties: support text knockout

This commit is contained in:
Jon Evans 2022-12-02 21:46:03 -05:00
parent 0bc06d506c
commit a5f7ecbe00
1 changed files with 4 additions and 0 deletions

View File

@ -341,5 +341,9 @@ static struct PCB_TEXT_DESC
propMgr.AddTypeCast( new TYPE_CAST<PCB_TEXT, EDA_TEXT> );
propMgr.InheritsAfter( TYPE_HASH( PCB_TEXT ), TYPE_HASH( BOARD_ITEM ) );
propMgr.InheritsAfter( TYPE_HASH( PCB_TEXT ), TYPE_HASH( EDA_TEXT ) );
propMgr.AddProperty( new PROPERTY<PCB_TEXT, bool, BOARD_ITEM>( _HKI( "Knockout" ),
&BOARD_ITEM::SetIsKnockout, &BOARD_ITEM::IsKnockout ),
_HKI( "Text Properties" ) );
}
} _PCB_TEXT_DESC;