diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2010-10-01 13:06:57 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2010-10-01 13:08:08 +0200 |
commit | 79babc6044a13a83a0503f88be0d6b4b6ab681b4 (patch) | |
tree | fc9e2e81b62953cb0ead561dfd262c9a4ba2159d | |
parent | b30ec9d88c58e8c4a565b1feffe9ef2d1710fd1e (diff) | |
download | fpGUI-79babc6044a13a83a0503f88be0d6b4b6ab681b4.tar.xz |
new function introduced: fpgIsNamedColor()
Then name says it all.
-rw-r--r-- | src/corelib/fpg_main.pas | 6 |
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; |