summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2010-10-01 13:06:57 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2010-10-01 13:08:08 +0200
commit79babc6044a13a83a0503f88be0d6b4b6ab681b4 (patch)
treefc9e2e81b62953cb0ead561dfd262c9a4ba2159d
parentb30ec9d88c58e8c4a565b1feffe9ef2d1710fd1e (diff)
downloadfpGUI-79babc6044a13a83a0503f88be0d6b4b6ab681b4.tar.xz
new function introduced: fpgIsNamedColor()
Then name says it all.
-rw-r--r--src/corelib/fpg_main.pas6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/corelib/fpg_main.pas b/src/corelib/fpg_main.pas
index faaad5fd..2277c764 100644
--- a/src/corelib/fpg_main.pas
+++ b/src/corelib/fpg_main.pas
@@ -379,6 +379,7 @@ procedure fpgDeleteFirstMessage;
function fpgColorToRGB(col: TfpgColor): TfpgColor;
function fpgGetNamedColor(col: TfpgColor): TfpgColor;
procedure fpgSetNamedColor(colorid, rgbvalue: longword);
+function fpgIsNamedColor(col: TfpgColor): boolean;
function fpgGetNamedFontDesc(afontid: string): string;
procedure fpgSetNamedFont(afontid, afontdesc: string);
function fpgGetNamedFontList: TStringlist;
@@ -1059,6 +1060,11 @@ begin
fpgNamedColors[i] := rgbvalue;
end;
+function fpgIsNamedColor(col: TfpgColor): boolean;
+begin
+ Result := (col and cl_BaseNamedColor) <> 0;
+end;
+
function fpgGetNamedFontDesc(afontid: string): string;
var
n: integer;