Pieces
This page covers IFormat, IFormats, IFormatChangeEvent, and IFormatChangeEventHandler. In TonCut Desktop, format is the public piece model: geometry, quantity, material, orientation, edging, grind metadata, project grouping, and commercial metadata all live here. Grind fields are part of the ABI, but TonCut currently ignores them.
Each IFormat also owns mutable ITcAlgorithmData that must travel with that piece. Its payload is opaque and implementation-defined; no public key/value schema or compatibility guarantee is provided.
If you come from the TonCut Engine terminology, read
IFormat as “piece”. The interface name stays IFormat
because that is the published Desktop ABI.
IFormat.PreviewColor is the color used when the piece is drawn in a
preview, as a TTcColor: a $RRGGBB value, clTcNone (no
preview color, the default) or clTcRandom (the host derives a stable color
from the piece's Id). GetPreviewColor and SetPreviewColor are vtable
slots appended at the end of the interface, after EndUpdate, under the same
interface GUID, so no existing slot moves; every class that implements
IFormat must add both methods. Engine version 24 carries these slots, and
the host refuses a plugin whose EngineVersion does not match.
Interfaces
Declarations are shown in Pascal and, where the SDK's generated language-support manifest lists the member for C++, in C++; the build fails if that manifest no longer matches TonCutPluginSdk.hpp. There is no C# declaration: C# plugins are native-shim-only, so a C++ shim owns every interface on this page. Methods are listed with their accessors folded into properties; open Vtable order for the exact slot sequence, and see ABI and marshalling for type sizes and ownership rules.
IFormat
Piece definition used by Desktop importers. It combines project assignment, geometry, material, edging, grind metadata, and planning fields. Grind data is part of the ABI, but TonCut currently ignores it.
- IID
- {9B47E250-1F63-4A8D-97C2-6E05B3D81A94}
- Parent
- IUnknown (implicit: a Delphi interface without a parent is IUnknown)
- Unit
- uIFormat
Vtable order (72 methods, slots 3 to 74, after the three IUnknown slots)
- function GetId(): Int64;
- procedure SetId(aId: Int64);
- function GetProject(): IProject;
- procedure SetProject(const aProject: IProject);
- function GetLength(): Cardinal;
- procedure SetLength(aLength: Cardinal);
- function GetWidth(): Cardinal;
- procedure SetWidth(aWidth: Cardinal);
- function GetQuantity(): Cardinal;
- procedure SetQuantity(aQuantity: Cardinal);
- function GetProcessedQuantity(): Cardinal;
- procedure SetProcessedQuantity(aQuantity: Cardinal);
- function GetOrnament(): TOrnaments;
- procedure SetOrnament(aOrnament: TOrnaments);
- function GetIdentifier(): WideString;
- procedure SetIdentifier(const aIdentifier: WideString);
- function GetDescription(): WideString;
- procedure SetDescription(const aDescription: WideString);
- function GetShape(): IShape;
- procedure SetShape(const aShape: IShape);
- function GetRotationStep(): TRotation;
- procedure SetRotationStep(aStep: TRotation);
- function GetRotation(): TRotation;
- procedure SetRotation(aRotation: TRotation);
- function GetMirror(): Boolean;
- procedure SetMirror(aMirror: Boolean);
- function GetMaterial(): IMaterial;
- procedure SetMaterial(const aMaterial: IMaterial);
- function GetSurplus(): Cardinal;
- procedure SetSurplus(aSurplus: Cardinal);
- function GetMargin(): Cardinal;
- procedure SetMargin(aMargin: Cardinal);
- function GetBanding(): IBanding;
- function GetGrinds(): IGrinds;
- function GetColor(): WideString;
- procedure SetColor(const aColor: WideString);
- function GetPriority(): Integer;
- procedure SetPriority(aPriority: Integer);
- function GetWeight(): Double;
- procedure SetWeight(aWeight: Double);
- function GetWeightModifier(): Double;
- procedure SetWeightModifier(aModifier: Double);
- function GetGroup(): Word;
- procedure SetGroup(aGroup: Word);
- function GetOrder(): Word;
- procedure SetOrder(aOrder: Word);
- function GetSellingPrice(): TTcPrice;
- procedure SetSellingPrice(aPrice: TTcPrice);
- function GetStorageCost(): TTcPrice;
- procedure SetStorageCost(aCost: TTcPrice);
- function GetCustomData(): WideString;
- procedure SetCustomData(const aData: WideString);
- function GetAlgorithmData(): ITcAlgorithmData;
- function GetEffectivePriority(): Integer;
- function GetLeftQuantity(): Cardinal;
- function GetTotalSurplus(): Cardinal;
- function GetTotalMargin(): Cardinal;
- function GetTotalLength(): Cardinal;
- function GetTotalWidth(): Cardinal;
- function GetTotalField(): TField;
- function GetGrossLength(): Cardinal;
- function GetGrossWidth(): Cardinal;
- function GetShapePathAsString(aRotation: Double; aMirror: Boolean; aWithOffset, aBBoxOrigin: Boolean): WideString;
- procedure GetShapeOffsetInsideBoundingBox(aRotation: Double; aMirror: Boolean; var aX, aY: Double);
- procedure Assign(const aOther: IFormat; aProject: IProject);
- function GetOnChange(): INotifyEvent;
- function GetOnIdChange(): IIdChangeEvent;
- procedure UpdateEffectivePriority(aTriggerChange: Boolean);
- procedure BeginUpdate();
- procedure EndUpdate();
- function GetPreviewColor(): TTcColor;
- procedure SetPreviewColor(aColor: TTcColor);
Properties
- Property name
- Id
- Type
- Int64
- Description
Persistent numeric identifier used by TonCut to track the object.
Declaration
property Id: Int64 read GetId write SetId;
- Property name
- Project
- Type
- IProject
- Description
Project linked to the object.
Declaration
property Project: IProject read GetProject write SetProject;
- Property name
- Length
- Type
- Cardinal
- Description
Length value stored on the object.
Declaration
property Length: Cardinal read GetLength write SetLength;
- Property name
- Width
- Type
- Cardinal
- Description
Piece width in hundredths of a millimeter. A 1D piece always has its material’s width.
Declaration
property Width: Cardinal read GetWidth write SetWidth;
- Property name
- Quantity
- Type
- Cardinal
- Description
Number of pieces required.
Declaration
property Quantity: Cardinal read GetQuantity write SetQuantity;
- Property name
- ProcessedQuantity
- Type
- Cardinal
- Description
Quantity already processed by TonCut.
Declaration
property ProcessedQuantity: Cardinal read GetProcessedQuantity write SetProcessedQuantity;
- Property name
- Ornament
- Type
- Description
Grain or ornament direction associated with the stock item.
Declaration
property Ornament: TOrnaments read GetOrnament write SetOrnament;
- Property name
- Identifier
- Type
- WideString
- Description
Piece code. TonCut shows it in some label modes and encodes it in barcodes.
Declaration
property Identifier: WideString read GetIdentifier write SetIdentifier;
- Property name
- Description
- Type
- WideString
- Description
Piece name shown to the user.
Declaration
property Description: WideString read GetDescription write SetDescription;
- Property name
- Shape
- Type
- IShape
- Description
Shape object linked to the current entity.
Declaration
property Shape: IShape read GetShape write SetShape;
- Property name
- RotationStep
- Type
- TRotation
- Description
Allowed rotation step as a
TRotation, in tenths of a degree.Declaration
property RotationStep: TRotation read GetRotationStep write SetRotationStep;
- Property name
- Rotation
- Type
- TRotation
- Description
Fixed rotation of the piece as a
TRotation, in tenths of a degree (cRotation90= 900).Declaration
property Rotation: TRotation read GetRotation write SetRotation;
- Property name
- Mirror
- Type
- Boolean
- Description
Mirror state for the current object.
Declaration
property Mirror: Boolean read GetMirror write SetMirror;
- Property name
- Material
- Type
- IMaterial
- Description
Material linked to the object.
Declaration
property Material: IMaterial read GetMaterial write SetMaterial;
- Property name
- Surplus
- Type
- Cardinal
- Description
Surplus allowance stored on the object.
Declaration
property Surplus: Cardinal read GetSurplus write SetSurplus;
- Property name
- Margin
- Type
- Cardinal
- Description
Margin allowance stored on the object.
Declaration
property Margin: Cardinal read GetMargin write SetMargin;
- Property name
- Banding
- Type
- IBanding
- Description
Gets the linked banding interface.
Declaration
property Banding: IBanding read GetBanding;
- Property name
- Grinds
- Type
- IGrinds
- Description
Associated grinds collection or helper interface.
Declaration
property Grinds: IGrinds read GetGrinds;
- Property name
- Color
- Type
- WideString
- Description
Color information stored with the object.
Declaration
property Color: WideString read GetColor write SetColor;
- Property name
- Priority
- Type
- Integer
- Description
Piece priority:
cPiecePriorityDefault(0) inherits the project priority,cPiecePriorityNormal(1),cPiecePriorityHigh(10),cPiecePriorityCritical(100). New pieces default to 0 when TonCut uses projects and to 1 otherwise.Declaration
property Priority: Integer read GetPriority write SetPriority;
- Property name
- Weight
- Type
- Double
- Description
Weight value stored on the object.
Declaration
property Weight: Double read GetWeight write SetWeight;
- Property name
- WeightModifier
- Type
- Double
- Description
Weight multiplier or correction factor.
Declaration
property WeightModifier: Double read GetWeightModifier write SetWeightModifier;
- Property name
- Group
- Type
- Word
- Description
Gets or sets group.
Declaration
property Group: Word read GetGroup write SetGroup;
- Property name
- Order
- Type
- Word
- Description
Gets or sets order.
Declaration
property Order: Word read GetOrder write SetOrder;
- Property name
- SellingPrice
- Type
- TTcPrice
- Description
Selling price assigned to the object.
Declaration
property SellingPrice: TTcPrice read GetSellingPrice write SetSellingPrice;
- Property name
- StorageCost
- Type
- TTcPrice
- Description
Gets or sets storage cost.
Declaration
property StorageCost: TTcPrice read GetStorageCost write SetStorageCost;
- Property name
- PreviewColor
- Type
- TTcColor
- Description
Gets or sets the color used when this piece is drawn in a preview, as a
TTcColor: a 24-bit RGB value packed as$RRGGBB(not the VCLTColorbyte order),clTcNone(-1, no preview color; the default) orclTcRandom(-2, the host derives a stable color from the item’sId); both constants are defined inuICommonandTonCutPluginSdk.hpp.GetPreviewColor/SetPreviewColorare vtable slots appended at the end of the interface, afterEndUpdate, under the same interface GUID, so no existing slot moves. TonCut implements this interface; a plugin only calls these accessors. Engine version 24 carries these slots.Declaration
property PreviewColor: TTcColor read GetPreviewColor write SetPreviewColor;
- Property name
- CustomData
- Type
- WideString
- Description
Opaque custom text payload stored with the object.
Declaration
property CustomData: WideString read GetCustomData write SetCustomData;
- Property name
- AlgorithmData
- Type
- ITcAlgorithmData
- Description
Mutable access to opaque, implementation-defined algorithm data owned by the current device, material, piece, or stock sheet. No public payload schema or compatibility guarantee is provided.
Declaration
property AlgorithmData: ITcAlgorithmData read GetAlgorithmData;No C++ declaration in the SDK's language-support manifest. If your
TonCutPluginSdk.hpplacks it, declare it in the vtable order shown above.
- Property name
- EffectivePriority
- Type
- Integer
- Description
Gets effective priority.
Declaration
property EffectivePriority: Integer read GetEffectivePriority;
- Property name
- LeftQuantity
- Type
- Cardinal
- Description
Gets left quantity.
Declaration
property LeftQuantity: Cardinal read GetLeftQuantity;
- Property name
- TotalSurplus
- Type
- Cardinal
- Description
Combined surplus value used by the current object.
Declaration
property TotalSurplus: Cardinal read GetTotalSurplus;
- Property name
- TotalMargin
- Type
- Cardinal
- Description
Combined margin value used by the current object.
Declaration
property TotalMargin: Cardinal read GetTotalMargin;
- Property name
- TotalLength
- Type
- Cardinal
- Description
Gets total length.
Declaration
property TotalLength: Cardinal read GetTotalLength;
- Property name
- TotalWidth
- Type
- Cardinal
- Description
Total width after TonCut applies edge and surplus adjustments.
Declaration
property TotalWidth: Cardinal read GetTotalWidth;
- Property name
- TotalField
- Type
- TField
- Description
Gets total field.
Declaration
property TotalField: TField read GetTotalField;
- Property name
- GrossLength
- Type
- Cardinal
- Description
Gets gross length.
Declaration
property GrossLength: Cardinal read GetGrossLength;
- Property name
- GrossWidth
- Type
- Cardinal
- Description
Gets gross width.
Declaration
property GrossWidth: Cardinal read GetGrossWidth;
- Property name
- OnChange
- Type
- INotifyEvent
- Description
Event fired when the object or collection changes.
Declaration
property OnChange: INotifyEvent read GetOnChange;
- Property name
- OnIdChange
- Type
- IIdChangeEvent
- Description
Event fired when an identifier changes.
Declaration
property OnIdChange: IIdChangeEvent read GetOnIdChange;
Methods
- Method name
- GetShapePathAsString()
- Type
- WideString
- Description
Return an SVG-compatible path string for the current shape outline.
Declaration
function GetShapePathAsString(aRotation: Double; aMirror: Boolean; aWithOffset: Boolean; aBBoxOrigin: Boolean): WideString; safecall;ParametersaRotationDoubleValue for rotation.aMirrorBooleanBooleanflag controlling mirror.aWithOffsetBooleanBooleanflag controlling with offset.aBBoxOriginBooleanBooleanflag controlling bbox origin.ReturnsThe SVG-compatible path string for the current shape outline.
- Method name
- GetShapeOffsetInsideBoundingBox()
- Type
- procedure
- Description
Return or populate shape offset inside bounding box.
Declaration
procedure GetShapeOffsetInsideBoundingBox(aRotation: Double; aMirror: Boolean; var aX: Double; var aY: Double); safecall;ParametersaRotationDoubleValue for rotation.aMirrorBooleanBooleanflag controlling mirror.aXvarDoubleX coordinate in hundredths of a millimeter. Passed by reference and may be updated by the callee.aYvarDoubleY coordinate in hundredths of a millimeter. Passed by reference and may be updated by the callee.
- Method name
- Assign()
- Type
- procedure
- Description
Copy values from another object of the same type.
Declaration
procedure Assign(const aOther: IFormat; aProject: IProject); safecall;
- Method name
- UpdateEffectivePriority()
- Type
- procedure
- Description
Update effective priority.
Declaration
procedure UpdateEffectivePriority(aTriggerChange: Boolean); safecall;ParametersaTriggerChangeBooleanBooleanflag controlling trigger change.
- Method name
- BeginUpdate()
- Type
- procedure
- Description
Start a batched update so change notifications can be delayed.
Declaration
procedure BeginUpdate(); safecall;
- Method name
- EndUpdate()
- Type
- procedure
- Description
Finish a batched update and allow deferred notifications to resume.
Declaration
procedure EndUpdate(); safecall;
IFormats
Collection interface used to create, enumerate, query, and reload a shared Desktop object set.
- IID
- {42199936-3DD0-4680-93DE-433D43E6573B}
- Parent
- IUnknown (implicit: a Delphi interface without a parent is IUnknown)
- Unit
- uIFormats
Vtable order (32 methods, slots 3 to 34, after the three IUnknown slots)
- procedure Assign(const aOther: IFormats);
- procedure Clear();
- procedure Reload();
- function CreateFormat(): IFormat;
- procedure Add(aFormat: IFormat);
- procedure DeleteByIndex(aIndex: Cardinal);
- procedure DeleteById(aId: Int64);
- procedure Remove(const aFormat: IFormat);
- function IndexOf(const aFormat: IFormat): Integer; overload;
- function IndexOf(aId: Int64): Integer; overload;
- function IndexOf(aList: array of Int64; const aMaterial: IMaterial; aLength, aWidth: Cardinal; aOrnament: TOrnament; var aRotated: Boolean; var aListIndex: Integer): Integer; overload;
- function IndexOf(const aOtherFormat: IFormat; aSkipId: Int64; var aRotated: Boolean): Integer; overload;
- function Find(aLength, aWidth: Cardinal; var aRotated: Boolean): IFormat;
- function GetCount(): Integer;
- function GetByIndex(aIndex: Cardinal): IFormat;
- function GetById(aId: Int64): IFormat;
- procedure LoadByProject(aProject: IProject; aFormats: IFormats); overload;
- procedure LoadByProject(aProject: IProject); overload;
- function GetByProject(aProject: IProject): IFormats;
- procedure UnloadByProject(const aProject: IProject);
- procedure UnloadFormat(const aFormat: IFormat);
- function CalcMaxLength(): Cardinal;
- function GetField(): TField;
- function GetQuantity(): Cardinal;
- function GetLoading(): Boolean;
- procedure SetLoading(aLoading: Boolean);
- function GetOnAdd(): IFormatChangeEvent;
- function GetOnRemove(): IFormatChangeEvent;
- function GetOnChange(): INotifyEvent;
- procedure BeginUpdate();
- procedure EndUpdate();
- function IsUpdating(): Boolean;
Properties
- Property name
- Count
- Type
- Integer
- Description
Number of items currently exposed by the interface.
Declaration
property Count: Integer read GetCount;
- Property name
- Items
- Type
- IFormat
- Description
Indexed property used to read one item from the collection.
Declaration
property Items[aIndex: Cardinal]: IFormat read GetByIndex; default;Index ParametersaIndexCardinalZero-based position within a collection.ValueThe collection item located at the supplied index.
- Property name
- Field
- Type
- TField
- Description
Area-like value stored on the object.
Declaration
property Field: TField read GetField;
- Property name
- Quantity
- Type
- Cardinal
- Description
Quantity associated with the current object.
Declaration
property Quantity: Cardinal read GetQuantity;
- Property name
- Loading
- Type
- Boolean
- Description
Whether the project or collection is currently loading data.
Declaration
property Loading: Boolean read GetLoading write SetLoading;
- Property name
- OnAdd
- Type
- IFormatChangeEvent
- Description
Event fired when an item is added.
Declaration
property OnAdd: IFormatChangeEvent read GetOnAdd;
- Property name
- OnRemove
- Type
- IFormatChangeEvent
- Description
Event fired when an item is removed.
Declaration
property OnRemove: IFormatChangeEvent read GetOnRemove;
- Property name
- OnChange
- Type
- INotifyEvent
- Description
Event fired when the object or collection changes.
Declaration
property OnChange: INotifyEvent read GetOnChange;
Methods
- Method name
- Assign()
- Type
- procedure
- Description
Copy values from another object of the same type.
Declaration
procedure Assign(const aOther: IFormats); safecall;Parameters
- Method name
- Clear()
- Type
- procedure
- Description
Remove all items from the collection.
Declaration
procedure Clear(); safecall;
- Method name
- Reload()
- Type
- procedure
- Description
Reload the underlying data from the host or storage layer.
Declaration
procedure Reload(); safecall;
- Method name
- CreateFormat()
- Type
- IFormat
- Description
Create a new, empty format. No dialog opens, the result is never
null, and the object is not in the collection until you pass it toAdd. A new object has a temporary negativeId.Declaration
function CreateFormat(): IFormat; safecall;ReturnsA new, empty format that is not yet in the collection; nevernull.
- Method name
- Add()
- Type
- procedure
- Description
Add an object created by this collection’s factory method. In
LoadFile, add to the staging collection you received.Adddoes not check title uniqueness, and adding an object that is already in the collection raises an error.Declaration
procedure Add(aFormat: IFormat); safecall;Parameters
- Method name
- DeleteByIndex()
- Type
- procedure
- Description
Delete the item at the specified zero-based index.
Declaration
procedure DeleteByIndex(aIndex: Cardinal); safecall;ParametersaIndexCardinalZero-based position within a collection.
- Method name
- DeleteById()
- Type
- procedure
- Description
Delete the item with the specified TonCut identifier.
Declaration
procedure DeleteById(aId: Int64); safecall;ParametersaIdInt64TonCut object identifier.
- Method name
- Remove()
- Type
- procedure
- Description
Remove an item or handler.
Declaration
procedure Remove(const aFormat: IFormat); safecall;Parameters
- Method name
- IndexOf()
- Type
- Integer
- Description
Return the zero-based index of the matching item.
Declaration
function IndexOf(const aFormat: IFormat): Integer; overload; safecall;C++ name:
IndexOfByObject. The C++ header gives each Pascal overload its own name; the vtable slot is the same.ParametersReturnsZero-based index of the matching item, or-1when no match exists.
- Method name
- IndexOf()
- Type
- Integer
- Description
Return the zero-based index of the matching item.
Declaration
function IndexOf(aId: Int64): Integer; overload; safecall;C++ name:
IndexOfById. The C++ header gives each Pascal overload its own name; the vtable slot is the same.ParametersaIdInt64TonCut object identifier.ReturnsZero-based index of the matching item, or-1when no match exists.
- Method name
- IndexOf()
- Type
- Integer
- Description
Return the zero-based index of the matching item.
Declaration
function IndexOf(aList: array of Int64; const aMaterial: IMaterial; aLength: Cardinal; aWidth: Cardinal; aOrnament: TOrnament; var aRotated: Boolean; var aListIndex: Integer): Integer; overload; safecall;C++ name:
IndexOfByList. The C++ header gives each Pascal overload its own name; the vtable slot is the same.ParametersaListarray of Int64Value for list.aLengthCardinalLength value in hundredths of a millimeter.aWidthCardinalWidth value in hundredths of a millimeter.aOrnamentValue for ornament.aRotatedvarBooleanBooleanflag controlling rotated. Passed by reference and may be updated by the callee.aListIndexvarIntegerValue for list index. Passed by reference and may be updated by the callee.ReturnsZero-based index of the matching item, or-1when no match exists.
- Method name
- IndexOf()
- Type
- Integer
- Description
Return the zero-based index of the matching item.
Declaration
function IndexOf(const aOtherFormat: IFormat; aSkipId: Int64; var aRotated: Boolean): Integer; overload; safecall;C++ name:
IndexOfByOther. The C++ header gives each Pascal overload its own name; the vtable slot is the same.ParametersaSkipIdInt64skip id value used to identify an object.aRotatedvarBooleanBooleanflag controlling rotated. Passed by reference and may be updated by the callee.ReturnsZero-based index of the matching item, or-1when no match exists.
- Method name
- Find()
- Type
- IFormat
- Description
Find an item matching the supplied criteria.
Declaration
function Find(aLength: Cardinal; aWidth: Cardinal; var aRotated: Boolean): IFormat; safecall;ParametersaLengthCardinalLength value in hundredths of a millimeter.aWidthCardinalWidth value in hundredths of a millimeter.aRotatedvarBooleanBooleanflag controlling rotated. Passed by reference and may be updated by the callee.ReturnsThe matching format interface instance, ornullwhen not found.
- Method name
- GetById()
- Type
- IFormat
- Description
Return the item stored under the specified TonCut identifier.
Declaration
function GetById(aId: Int64): IFormat; safecall;ParametersaIdInt64TonCut object identifier.ReturnsThe matching format interface instance.
- Method name
- LoadByProject()
- Type
- procedure
- Description
Load by project.
Declaration
procedure LoadByProject(aProject: IProject; aFormats: IFormats); overload; safecall;C++ name:
LoadByProjectInto. The C++ header gives each Pascal overload its own name; the vtable slot is the same.
- Method name
- LoadByProject()
- Type
- procedure
- Description
Load by project.
Declaration
procedure LoadByProject(aProject: IProject); overload; safecall;Parameters
- Method name
- GetByProject()
- Type
- IFormats
- Description
Return or populate by project.
Declaration
function GetByProject(aProject: IProject): IFormats; safecall;ParametersReturnsThe matching formats interface instance.
- Method name
- UnloadByProject()
- Type
- procedure
- Description
Perform unload by project.
Declaration
procedure UnloadByProject(const aProject: IProject); safecall;Parameters
- Method name
- UnloadFormat()
- Type
- procedure
- Description
Perform unload format.
Declaration
procedure UnloadFormat(const aFormat: IFormat); safecall;Parameters
- Method name
- CalcMaxLength()
- Type
- Cardinal
- Description
Calculate max length.
Declaration
function CalcMaxLength(): Cardinal; safecall;ReturnsThe calculated max length value.
- Method name
- BeginUpdate()
- Type
- procedure
- Description
Start a batched update so change notifications can be delayed.
Declaration
procedure BeginUpdate(); safecall;
- Method name
- EndUpdate()
- Type
- procedure
- Description
Finish a batched update and allow deferred notifications to resume.
Declaration
procedure EndUpdate(); safecall;
- Method name
- IsUpdating()
- Type
- Boolean
- Description
Report whether the interface is currently inside an update batch.
Declaration
function IsUpdating(): Boolean; safecall;ReturnsReturnstruewhile the interface is inside aBeginUpdate/EndUpdatebatch.
IFormatChangeEventHandler
Callback sink consumed by the matching change-event interface.
- IID
- {02973286-E67D-4469-8502-70BCE455FE4B}
- Parent
- IUnknown
- Unit
- uIFormatChangeEvent
The SDK's language-support manifest lists no C++ member of this interface. If your TonCutPluginSdk.hpp leaves it opaque, declare the interface yourself in the vtable order below.
Vtable order (1 methods, slots 3 to 3, after the three IUnknown slots)
- procedure Invoke(aSender: IUnknown; aFormat: IFormat; aIndex: Integer);
Methods
- Method name
- Invoke()
- Type
- procedure
- Description
Handle the event callback when the owning event interface invokes it.
Declaration
procedure Invoke(aSender: IUnknown; aFormat: IFormat; aIndex: Integer); safecall;ParametersaSenderIUnknownObject that raised the event.aIndexIntegerZero-based position within a collection.
IFormatChangeEvent
Event interface with Add, Remove, and Invoke hooks for collection or entity change notifications.
- IID
- {87F91622-3567-415E-9765-CB562911773F}
- Parent
- IUnknown
- Unit
- uIFormatChangeEvent
The SDK's language-support manifest lists no C++ member of this interface. If your TonCutPluginSdk.hpp leaves it opaque, declare the interface yourself in the vtable order below.
Vtable order (3 methods, slots 3 to 5, after the three IUnknown slots)
- procedure Add(aHandler: IFormatChangeEventHandler);
- procedure Remove(aHandler: IFormatChangeEventHandler);
- procedure Invoke(aSender: IUnknown; aFormat: IFormat; aIndex: Integer);
Methods
- Method name
- Add()
- Type
- procedure
- Description
Add an item or handler.
Declaration
procedure Add(aHandler: IFormatChangeEventHandler); safecall;Parameters
- Method name
- Remove()
- Type
- procedure
- Description
Remove an item or handler.
Declaration
procedure Remove(aHandler: IFormatChangeEventHandler); safecall;Parameters
- Method name
- Invoke()
- Type
- procedure
- Description
Raise the typed change event for the current payload.
Declaration
procedure Invoke(aSender: IUnknown; aFormat: IFormat; aIndex: Integer); safecall;ParametersaSenderIUnknownObject that raised the event.aIndexIntegerEvent payload field for index.