Ignore:
Timestamp:
Apr 17, 2019, 10:42:18 AM (5 years ago)
Author:
chronos
Message:
  • Modified: Updated Graphics32 library.
Location:
GraphicTest/Packages/Graphics32
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GraphicTest/Packages/Graphics32

    • Property svn:ignore set to
      lib
  • GraphicTest/Packages/Graphics32/GR32_Backends.pas

    r450 r522  
    4444  Windows, Messages, Controls, Graphics,
    4545{$ENDIF}
    46   Classes, SysUtils, GR32, GR32_Containers, GR32_Image;
     46  Classes, SysUtils, GR32, GR32_Containers, GR32_Image, GR32_Paths;
    4747
    4848type
     49  EBackend = class(Exception);
     50
    4951  ITextSupport = interface(IUnknown)
    5052  ['{225997CC-958A-423E-8B60-9EDE0D3B53B5}']
     
    7072    property Font: TFont read GetFont write SetFont;
    7173    property OnFontChange: TNotifyEvent read GetOnFontChange write SetOnFontChange;
     74  end;
     75
     76  ITextToPathSupport = interface(IUnknown)
     77  ['{6C4037E4-FF4D-4EE2-9C20-B9DB9C64B42D}']
     78    procedure TextToPath(Path: TCustomPath; const X, Y: TFloat; const Text: WideString); overload;
     79    procedure TextToPath(Path: TCustomPath; const DstRect: TFloatRect; const Text: WideString; Flags: Cardinal); overload;
     80    function MeasureText(const DstRect: TFloatRect; const Text: WideString; Flags: Cardinal): TFloatRect;
    7281  end;
    7382
     
    130139implementation
    131140
    132 uses
    133   GR32_LowLevel;
    134 
    135141procedure RequireBackendSupport(TargetBitmap: TCustomBitmap32;
    136142  RequiredInterfaces: array of TGUID;
     
    159165    // TODO: Try to find a back-end that supports the required interfaces
    160166    //       instead of resorting to the default platform back-end class...
    161     TargetBitmap.Backend := GetPlatformBackendClass.Create;
     167    TargetBitmap.Backend := TargetBitmap.GetPlatformBackendClass.Create;
    162168  end
    163169  else
Note: See TracChangeset for help on using the changeset viewer.