From 3778ccae5b383b45c08f51f435b45714a2d1d363 Mon Sep 17 00:00:00 2001 From: Graeme Geldenhuys Date: Sun, 19 Oct 2014 20:22:13 +0100 Subject: New fpgApplication.GetScreenPixelColor() for X11 We can now color pick a value on a X11 desktop. --- src/corelib/gdi/fpg_gdi.pas | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/corelib/gdi') diff --git a/src/corelib/gdi/fpg_gdi.pas b/src/corelib/gdi/fpg_gdi.pas index 1d5b7dff..8b7b9939 100644 --- a/src/corelib/gdi/fpg_gdi.pas +++ b/src/corelib/gdi/fpg_gdi.pas @@ -246,6 +246,7 @@ type procedure DoFlush; function GetScreenWidth: TfpgCoord; override; function GetScreenHeight: TfpgCoord; override; + function GetScreenPixelColor(APos: TPoint): TfpgColor; override; function Screen_dpi_x: integer; override; function Screen_dpi_y: integer; override; function Screen_dpi: integer; override; @@ -1416,6 +1417,11 @@ begin // Result := Windows.GetSystemMetrics(SM_CYSCREEN); end; +function TfpgGDIApplication.GetScreenPixelColor(APos: TPoint): TfpgColor; +begin + raise EfpGUIException.Create('Not implemented yet'); +end; + function TfpgGDIApplication.Screen_dpi_x: integer; begin Result := GetDeviceCaps(wapplication.display, LOGPIXELSX) -- cgit v1.2.3-70-g09d2