Devices

This page covers IDevice, IDevices, IDeviceChangeEvent, and IDeviceChangeEventHandler. Use these interfaces to describe machine limits, strip-cut behavior, slant support, cut-depth handling, and device-side cost modifiers.

Minimum cut constraints

MinCutDistance is the minimum kerf-excluded material gap between span-overlapping parallel cuts, calculated as line spacing minus kerf. It is independent of MinCutSize. AllowEdgeCuts on the material conflicts with either a positive MinCutSize or a positive MinCutDistance on its device; edge cuts can be enabled only when both device values are zero. Legacy MinCutWidth is only an alias for MinCutSize, never for MinCutDistance. MinEdgeDistance carries per-edge constraints in an IRectangle; a negative side means that edge is inherited or unspecified.

Each device also owns mutable ITcAlgorithmData. Its payload is opaque and implementation-defined; no public key/value schema or compatibility guarantee is provided.

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.

IDevice

Mutable device definition describing machine constraints, cut rules, and cost-related tuning.

IID
{2A6F1B84-9C37-4E52-B1D6-4F8A0C97E361}
Parent
IUnknown (implicit: a Delphi interface without a parent is IUnknown)
Unit
uIDevice
Vtable order (72 methods, slots 3 to 74, after the three IUnknown slots)
  1. function Clone(): IDevice;
  2. procedure Assign(const aOther: IDevice);
  3. function GetId(): Int64;
  4. procedure SetId(aId: Int64);
  5. function GetTitle(): WideString;
  6. procedure SetTitle(const aTitle: WideString);
  7. function GetDriver(): WideString;
  8. procedure SetDriver(const aDriver: WideString);
  9. function GetCanCutAnyShapes(): Boolean;
  10. procedure SetCanCutAnyShapes(aCanCutAnyShapes: Boolean);
  11. function GetCanCrossCuts(): Boolean;
  12. procedure SetCanCrossCuts(aCanCrossCuts: Boolean);
  13. function GetFullCutsOnly(): Boolean;
  14. procedure SetFullCutsOnly(aFullCutsOnly: Boolean);
  15. function GetStripCuts(): TStripCutting;
  16. procedure SetStripCuts(aStripCuts: TStripCutting);
  17. function GetMaxStripeWidth(): Integer;
  18. procedure SetMaxStripeWidth(aMaxWidth: Integer);
  19. function GetMinCutSize(): Cardinal;
  20. procedure SetMinCutSize(aSize: Cardinal);
  21. function GetMinCutDistance(): Cardinal;
  22. procedure SetMinCutDistance(aDistance: Cardinal);
  23. function GetMinEdgeDistance(): IRectangle;
  24. function GetEdgingCuts(): TEdgingCuts;
  25. procedure SetEdgingCuts(aEdgingCuts: TEdgingCuts);
  26. function GetOriginEdgingCuts(): TOriginEdgingCuts;
  27. procedure SetOriginEdgingCuts(aOriginEdgingCuts: TOriginEdgingCuts);
  28. function GetMaxCutDepthOn(): Boolean;
  29. procedure SetMaxCutDepthOn(aOn: Boolean);
  30. function GetMaxCutDepth(): Cardinal;
  31. procedure SetMaxCutDepth(aDepth: Cardinal);
  32. function GetFirstCutDirection(): TCutDirections;
  33. procedure SetFirstCutDirection(aDirection: TCutDirections);
  34. function GetMaxCutDepthIncludeSheetEdging(): Boolean;
  35. procedure SetMaxCutDepthIncludeSheetEdging(aInclude: Boolean);
  36. function GetMaxCutLengthByLengthOn(): Boolean;
  37. procedure SetMaxCutLengthByLengthOn(aOn: Boolean);
  38. function GetMaxCutLengthByLength(): Cardinal;
  39. procedure SetMaxCutLengthByLength(aLength: Cardinal);
  40. function GetMaxCutLengthByWidthOn(): Boolean;
  41. procedure SetMaxCutLengthByWidthOn(aOn: Boolean);
  42. function GetMaxCutLengthByWidth(): Cardinal;
  43. procedure SetMaxCutLengthByWidth(aLength: Cardinal);
  44. function GetMaterialKind(): TMaterialKind;
  45. procedure SetMaterialKind(aKind: TMaterialKind);
  46. function GetCanCutSlants(): Boolean;
  47. procedure SetCanCutSlants(aCan: Boolean);
  48. function GetLeftSlantMeasurement(): TSlantMeasurement;
  49. procedure SetLeftSlantMeasurement(aSlantMeasurement: TSlantMeasurement);
  50. function GetRightSlantMeasurement(): TSlantMeasurement;
  51. procedure SetRightSlantMeasurement(aSlantMeasurement: TSlantMeasurement);
  52. function GetCutCostPerMeter(): TTcPrice;
  53. procedure SetCutCostPerMeter(aCost: TTcPrice);
  54. function GetReuseCost(): TTcPrice;
  55. procedure SetReuseCost(aCost: TTcPrice);
  56. function GetUtilizationCost(): TTcPrice;
  57. procedure SetUtilizationCost(aCost: TTcPrice);
  58. function GetSegmentShiftCost(): TTcPrice;
  59. procedure SetSegmentShiftCost(aCost: TTcPrice);
  60. function GetSegmentRotationCost(): TTcPrice;
  61. procedure SetSegmentRotationCost(aCost: TTcPrice);
  62. function GetCustomData(): WideString;
  63. procedure SetCustomData(const aData: WideString);
  64. function GetAlgorithmData(): ITcAlgorithmData;
  65. function GetOnChange(): INotifyEvent;
  66. function GetOnIdChange(): IIdChangeEvent;
  67. procedure BeginUpdate();
  68. procedure EndUpdate();
  69. function GetDefaultRotation(): Integer;
  70. procedure SetDefaultRotation(aRotation: Integer);
  71. function GetDefaultMirror(): TMirrors;
  72. procedure SetDefaultMirror(aMirror: TMirrors);

Properties

  • Property name
    DefaultRotation
    Type
    Integer
    Description

    Gets or sets the default (initial) rotation of the device, in degrees, and it is persisted with the device. Allowed values are 0, 90, 180 and 270; any other value raises EArgumentOutOfRangeException. The default is 0. New in TonCut 8.5. GetDefaultRotation/SetDefaultRotation are vtable slots appended at the end of the interface under the same interface GUID, so no existing slot moves. TonCut implements IDevice; a plugin only calls these accessors. Engine version 24 carries these slots.

    Declaration

    property DefaultRotation: Integer read GetDefaultRotation write SetDefaultRotation;
  • Property name
    DefaultMirror
    Type
    Description

    Gets or sets the default (initial) mirroring of the device as a TMirrors set, and it is persisted with the device. The flags are mHorizontal and mVertical; the default is the empty set (no mirroring), and a set with an unknown flag raises an exception. New in TonCut 8.5. GetDefaultMirror/SetDefaultMirror are vtable slots appended at the end of the interface under the same interface GUID, so no existing slot moves. TonCut implements IDevice; a plugin only calls these accessors. Engine version 24 carries these slots.

    Declaration

    property DefaultMirror: TMirrors read GetDefaultMirror write SetDefaultMirror;
  • 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
    Title
    Type
    WideString
    Description

    Human-readable title shown to users.

    Declaration

    property Title: WideString read GetTitle write SetTitle;
  • Property name
    Driver
    Type
    WideString
    Description

    Plugin Name assigned to the device driver. When set, TonCut treats the device as plugin-backed and can constrain plugin-controlled settings from ITcPlotterInfo.

    Declaration

    property Driver: WideString read GetDriver write SetDriver;
  • Property name
    CanCutAnyShapes
    Type
    Boolean
    Description

    Whether non-rectangular shapes are supported.

    Declaration

    property CanCutAnyShapes: Boolean read GetCanCutAnyShapes write SetCanCutAnyShapes;
  • Property name
    CanCrossCuts
    Type
    Boolean
    Description

    Whether cuts are allowed to cross each other.

    Declaration

    property CanCrossCuts: Boolean read GetCanCrossCuts write SetCanCrossCuts;
  • Property name
    FullCutsOnly
    Type
    Boolean
    Description

    Whether only full-through cuts are supported.

    Declaration

    property FullCutsOnly: Boolean read GetFullCutsOnly write SetFullCutsOnly;
  • Property name
    StripCuts
    Type
    Description

    Strip-cutting capability mode.

    Declaration

    property StripCuts: TStripCutting read GetStripCuts write SetStripCuts;
  • Property name
    MaxStripeWidth
    Type
    Integer
    Description

    Maximum width of one strip cut.

    Declaration

    property MaxStripeWidth: Integer read GetMaxStripeWidth write SetMaxStripeWidth;
  • Property name
    MinCutSize
    Type
    Cardinal
    Description

    Minimum cut size. This is the current name and migration target for the legacy MinCutWidth value.

    Declaration

    property MinCutSize: Cardinal read GetMinCutSize write SetMinCutSize;
  • Property name
    MinCutDistance
    Type
    Cardinal
    Description

    Minimum kerf-excluded material gap between span-overlapping parallel cuts, calculated as line spacing minus kerf. This is independent of MinCutSize; legacy MinCutWidth maps only to MinCutSize, never to this property.

    Declaration

    property MinCutDistance: Cardinal read GetMinCutDistance write SetMinCutDistance;
  • Property name
    MinEdgeDistance
    Type
    IRectangle
    Description

    Per-edge minimum distance exposed as a signed rectangle; a negative side means inherited or unspecified.

    Declaration

    property MinEdgeDistance: IRectangle read GetMinEdgeDistance;
  • Property name
    EdgingCuts
    Type
    Description

    Gets or sets edging cuts.

    Declaration

    property EdgingCuts: TEdgingCuts read GetEdgingCuts write SetEdgingCuts;
  • Property name
    OriginEdgingCuts
    Type
    Description

    Gets or sets origin edging cuts.

    Declaration

    property OriginEdgingCuts: TOriginEdgingCuts read GetOriginEdgingCuts write SetOriginEdgingCuts;
  • Property name
    MaxCutDepthOn
    Type
    Boolean
    Description

    Gets or sets whether max cut depth on.

    Declaration

    property MaxCutDepthOn: Boolean read GetMaxCutDepthOn write SetMaxCutDepthOn;
  • Property name
    MaxCutDepth
    Type
    Cardinal
    Description

    Gets or sets max cut depth.

    Declaration

    property MaxCutDepth: Cardinal read GetMaxCutDepth write SetMaxCutDepth;
  • Property name
    FirstCutDirection
    Type
    Description

    Gets or sets first cut direction.

    Declaration

    property FirstCutDirection: TCutDirections read GetFirstCutDirection write SetFirstCutDirection;
  • Property name
    MaxCutDepthIncludeSheetEdging
    Type
    Boolean
    Description

    Gets or sets whether max cut depth include sheet edging.

    Declaration

    property MaxCutDepthIncludeSheetEdging: Boolean read GetMaxCutDepthIncludeSheetEdging write SetMaxCutDepthIncludeSheetEdging;
  • Property name
    MaxCutLengthByLengthOn
    Type
    Boolean
    Description

    Gets or sets whether max cut length by length on.

    Declaration

    property MaxCutLengthByLengthOn: Boolean read GetMaxCutLengthByLengthOn write SetMaxCutLengthByLengthOn;
  • Property name
    MaxCutLengthByLength
    Type
    Cardinal
    Description

    Gets or sets max cut length by length.

    Declaration

    property MaxCutLengthByLength: Cardinal read GetMaxCutLengthByLength write SetMaxCutLengthByLength;
  • Property name
    MaxCutLengthByWidthOn
    Type
    Boolean
    Description

    Gets or sets whether max cut length by width on.

    Declaration

    property MaxCutLengthByWidthOn: Boolean read GetMaxCutLengthByWidthOn write SetMaxCutLengthByWidthOn;
  • Property name
    MaxCutLengthByWidth
    Type
    Cardinal
    Description

    Gets or sets max cut length by width.

    Declaration

    property MaxCutLengthByWidth: Cardinal read GetMaxCutLengthByWidth write SetMaxCutLengthByWidth;
  • Property name
    MaterialKind
    Type
    Description

    Gets or sets material kind.

    Declaration

    property MaterialKind: TMaterialKind read GetMaterialKind write SetMaterialKind;
  • Property name
    CanCutSlants
    Type
    Boolean
    Description

    Whether slanted cuts are supported.

    Declaration

    property CanCutSlants: Boolean read GetCanCutSlants write SetCanCutSlants;
  • Property name
    LeftSlantMeasurement
    Type
    Description

    The device’s convention (TSlantMeasurement) for measuring the left slant angle. The ILinearShape angles use a fixed convention, and TonCut uses this setting to convert them when it talks to this device.

    Declaration

    property LeftSlantMeasurement: TSlantMeasurement read GetLeftSlantMeasurement write SetLeftSlantMeasurement;
    Left slant measured from the middle to the left (smFromMiddleToLeft).Left slant measured from the middle to the right (smFromMiddleToRight).Left slant measured from the left side (smFromLeft).Left slant measured from the right side (smFromRight).
  • Property name
    RightSlantMeasurement
    Type
    Description

    The device’s convention (TSlantMeasurement) for measuring the right slant angle. The ILinearShape angles use a fixed convention, and TonCut uses this setting to convert them when it talks to this device.

    Declaration

    property RightSlantMeasurement: TSlantMeasurement read GetRightSlantMeasurement write SetRightSlantMeasurement;
    Right slant measured from the middle to the left (smFromMiddleToLeft).Right slant measured from the middle to the right (smFromMiddleToRight).Right slant measured from the left side (smFromLeft).Right slant measured from the right side (smFromRight).
  • Property name
    CutCostPerMeter
    Type
    TTcPrice
    Description

    Cost per running meter of cut.

    Declaration

    property CutCostPerMeter: TTcPrice read GetCutCostPerMeter write SetCutCostPerMeter;
  • Property name
    ReuseCost
    Type
    TTcPrice
    Description

    Reuse-related cost value.

    Declaration

    property ReuseCost: TTcPrice read GetReuseCost write SetReuseCost;
  • Property name
    UtilizationCost
    Type
    TTcPrice
    Description

    Utilization cost stored on the object.

    Declaration

    property UtilizationCost: TTcPrice read GetUtilizationCost write SetUtilizationCost;
  • Property name
    SegmentShiftCost
    Type
    TTcPrice
    Description

    Cost assigned to segment shifts.

    Declaration

    property SegmentShiftCost: TTcPrice read GetSegmentShiftCost write SetSegmentShiftCost;
  • Property name
    SegmentRotationCost
    Type
    TTcPrice
    Description

    Cost assigned to segment rotation.

    Declaration

    property SegmentRotationCost: TTcPrice read GetSegmentRotationCost write SetSegmentRotationCost;
  • 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.hpp lacks it, declare it in the vtable order shown above.

  • 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
    Clone()
    Type
    IDevice
    Description

    Create a copy of the current object.

    Declaration

    function Clone(): IDevice; safecall;
    Returns
    A copied device interface instance.
  • Method name
    Assign()
    Type
    procedure
    Description

    Copy values from another object of the same type.

    Declaration

    procedure Assign(const aOther: IDevice); safecall;
    Parameters
    aOtherconst
    Source object whose values should be copied.
  • 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;

IDevices

Collection interface used to create, enumerate, query, and reload a shared Desktop object set.

IID
{3384FFDE-7FF9-4B30-8C4E-F4F723FA08E2}
Parent
IUnknown (implicit: a Delphi interface without a parent is IUnknown)
Unit
uIDevices
Vtable order (22 methods, slots 3 to 24, after the three IUnknown slots)
  1. function CreateDevice(): IDevice;
  2. procedure Add(aDevice: IDevice);
  3. procedure DeleteByIndex(aIndex: Cardinal);
  4. procedure DeleteById(aId: Int64);
  5. procedure Remove(const aDevice: IDevice);
  6. function IndexOf(const aDevice: IDevice): Integer; overload;
  7. function IndexOf(aId: Int64): Integer; overload;
  8. function FindDuplicate(const aDevice: IDevice; aCheckTitle: Boolean = False): IDevice;
  9. function FindByTitle(const aTitle: WideString): IDevice;
  10. function FindUniqueName(const aBaseName: WideString): WideString;
  11. function CheckUniqueName(const aTitle: WideString; const aIgnoreDevice: IDevice): Boolean; overload;
  12. function CheckUniqueName(aDevice: IDevice; aAutoFix: Boolean = False): Boolean; overload;
  13. function GetCount(): Integer;
  14. function GetByIndex(aIndex: Cardinal): IDevice;
  15. function GetById(aId: Int64): IDevice;
  16. function GetOnAdd(): IDeviceChangeEvent;
  17. function GetOnRemove(): IDeviceChangeEvent;
  18. function GetOnChange(): INotifyEvent;
  19. procedure BeginUpdate();
  20. procedure EndUpdate();
  21. function IsUpdating(): Boolean;
  22. procedure Reload();

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
    IDevice
    Description

    Indexed property used to read one item from the collection.

    Declaration

    property Items[aIndex: Cardinal]: IDevice read GetByIndex; default;
    Index Parameters
    aIndex
    Cardinal
    Zero-based position within a collection.
    Value
    The collection item located at the supplied index.
  • Property name
    OnAdd
    Type
    IDeviceChangeEvent
    Description

    Event fired when an item is added.

    Declaration

    property OnAdd: IDeviceChangeEvent read GetOnAdd;
  • Property name
    OnRemove
    Type
    IDeviceChangeEvent
    Description

    Event fired when an item is removed.

    Declaration

    property OnRemove: IDeviceChangeEvent 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
    CreateDevice()
    Type
    IDevice
    Description

    Create a new, empty device. No dialog opens, the result is never null, and the object is not in the collection until you pass it to Add. A new object has a temporary negative Id.

    Declaration

    function CreateDevice(): IDevice; safecall;
    Returns
    A new, empty device that is not yet in the collection; never null.
  • 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. Add does not check title uniqueness, and adding an object that is already in the collection raises an error.

    Declaration

    procedure Add(aDevice: IDevice); safecall;
    Parameters
    aDevice
    Device instance being queried or modified.
  • Method name
    DeleteByIndex()
    Type
    procedure
    Description

    Delete the item at the specified zero-based index.

    Declaration

    procedure DeleteByIndex(aIndex: Cardinal); safecall;
    Parameters
    aIndex
    Cardinal
    Zero-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;
    Parameters
    aId
    Int64
    TonCut object identifier.
  • Method name
    Remove()
    Type
    procedure
    Description

    Remove an item or handler.

    Declaration

    procedure Remove(const aDevice: IDevice); safecall;
    Parameters
    aDeviceconst
    Device instance being queried or modified.
  • Method name
    IndexOf()
    Type
    Integer
    Description

    Return the zero-based index of the matching item.

    Declaration

    function IndexOf(const aDevice: IDevice): Integer; overload; safecall;

    C++ name: IndexOfByObject. The C++ header gives each Pascal overload its own name; the vtable slot is the same.

    Parameters
    aDeviceconst
    Device instance being queried or modified.
    Returns
    Zero-based index of the matching item, or -1 when 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.

    Parameters
    aId
    Int64
    TonCut object identifier.
    Returns
    Zero-based index of the matching item, or -1 when no match exists.
  • Method name
    FindDuplicate()
    Type
    IDevice
    Description

    Search for an existing item that duplicates the supplied object.

    Declaration

    function FindDuplicate(const aDevice: IDevice; aCheckTitle: Boolean = False): IDevice; safecall;
    Parameters
    aDeviceconst
    Device instance being queried or modified.
    aCheckTitle
    Boolean
    Whether title collisions should count as duplicates.
    Returns
    The matching device interface instance, or null when not found.
  • Method name
    FindByTitle()
    Type
    IDevice
    Description

    Find an item by its title and any additional matching fields.

    Declaration

    function FindByTitle(const aTitle: WideString): IDevice; safecall;
    Parameters
    aTitleconst
    WideString
    Human-readable title.
    Returns
    The matching device interface instance, or null when not found.
  • Method name
    FindUniqueName()
    Type
    WideString
    Description

    Generate or return a title that is unique within the collection.

    Declaration

    function FindUniqueName(const aBaseName: WideString): WideString; safecall;
    Parameters
    aBaseNameconst
    WideString
    Base title used while generating a unique name.
    Returns
    A title string that is unique within the collection.
  • Method name
    CheckUniqueName()
    Type
    Boolean
    Description

    Check whether a proposed title is unique within the collection.

    Declaration

    function CheckUniqueName(const aTitle: WideString; const aIgnoreDevice: IDevice): Boolean; overload; safecall;
    Parameters
    aTitleconst
    WideString
    Human-readable title.
    aIgnoreDeviceconst
    Device to exclude from uniqueness checks.
    Returns
    Returns true if the proposed title is unique within the collection.
  • Method name
    CheckUniqueName()
    Type
    Boolean
    Description

    Check whether a proposed title is unique within the collection.

    Declaration

    function CheckUniqueName(aDevice: IDevice; aAutoFix: Boolean = False): Boolean; overload; safecall;

    C++ name: CheckUniqueNameByDevice. The C++ header gives each Pascal overload its own name; the vtable slot is the same.

    Parameters
    aDevice
    Device instance being queried or modified.
    aAutoFix
    Boolean
    Whether the method may adjust data automatically.
    Returns
    Returns true if the proposed title is unique within the collection.
  • Method name
    GetById()
    Type
    IDevice
    Description

    Return the item stored under the specified TonCut identifier.

    Declaration

    function GetById(aId: Int64): IDevice; safecall;
    Parameters
    aId
    Int64
    TonCut object identifier.
    Returns
    The matching device interface instance.
  • 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;
    Returns
    Returns true while the interface is inside a BeginUpdate / EndUpdate batch.
  • Method name
    Reload()
    Type
    procedure
    Description

    Reload the underlying data from the host or storage layer.

    Declaration

    procedure Reload(); safecall;

IDeviceChangeEventHandler

Callback sink consumed by the matching change-event interface.

IID
{C86D52C2-9AE9-4181-AF01-AB38187F3DAD}
Parent
IUnknown
Unit
uIDeviceChangeEvent

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)
  1. procedure Invoke(aSender: IUnknown; aDevice: IDevice; 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; aDevice: IDevice; aIndex: Integer); safecall;
    Parameters
    aSender
    IUnknown
    Object that raised the event.
    aDevice
    Device instance being queried or modified.
    aIndex
    Integer
    Zero-based position within a collection.

IDeviceChangeEvent

Event interface with Add, Remove, and Invoke hooks for collection or entity change notifications.

IID
{45FD90F2-ED2D-4C35-A89E-33B61C12DBB4}
Parent
IUnknown
Unit
uIDeviceChangeEvent

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)
  1. procedure Add(aHandler: IDeviceChangeEventHandler);
  2. procedure Remove(aHandler: IDeviceChangeEventHandler);
  3. procedure Invoke(aSender: IUnknown; aDevice: IDevice; aIndex: Integer);

Methods

  • Method name
    Add()
    Type
    procedure
    Description

    Add an item or handler.

    Declaration

    procedure Add(aHandler: IDeviceChangeEventHandler); safecall;
    Parameters
    aHandler
    The handler interface instance to use.
  • Method name
    Remove()
    Type
    procedure
    Description

    Remove an item or handler.

    Declaration

    procedure Remove(aHandler: IDeviceChangeEventHandler); safecall;
    Parameters
    aHandler
    The handler interface instance to use.
  • Method name
    Invoke()
    Type
    procedure
    Description

    Raise the typed change event for the current payload.

    Declaration

    procedure Invoke(aSender: IUnknown; aDevice: IDevice; aIndex: Integer); safecall;
    Parameters
    aSender
    IUnknown
    Object that raised the event.
    aDevice
    Event payload field for device.
    aIndex
    Integer
    Event payload field for index.

Was this page helpful?