Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
fpc-src / usr / share / fpcsrc / 3.0.0 / tests / webtbs / tw19700.pp
Size: Mime:
{ %target=darwin }
{ %norun }

{$mode objfpc}
{$modeswitch objectivec1}

program Main;
uses
    CocoaAll;

type
    TSomeView = objcclass (NSView)
        function canvasPointFromEvent (theEvent: NSEvent): NSPoint; message 'canvasPointFromEvent:';
    end;

function TSomeView.canvasPointFromEvent (theEvent: NSEvent): NSPoint;
begin
    result := convertPoint_fromView(theEvent.locationInWindow, nil);
end;

var
    argc: LongInt;
    argv: PPChar;
begin
    NSApplicationMain(argc, argv);
end.