1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2025-04-17 06:57:13 +02:00
2024-06-02 18:27:25 +02:00

37 lines
508 B
ObjectPascal

library custombrowser;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}
cthreads, cmem,
{$ENDIF}
Classes,
{ you can add units after this }
uencapsulatedbrowser;
procedure InitializeCEF4Delphi; cdecl;
begin
InitializeEncapsulatedBrowser;
end;
procedure FinalizeCEF4Delphi; cdecl;
begin
FinalizeEncapsulatedBrowser;
end;
procedure TakeSnapshot; cdecl;
begin
CaptureScreenshot('https://www.google.com');
end;
exports
InitializeCEF4Delphi,
FinalizeCEF4Delphi,
TakeSnapshot;
begin
//
end.