mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 22:36:17 +02:00
TAChart: Add IfThen overload for TObject
git-svn-id: trunk@37527 -
This commit is contained in:
parent
e930d4c8e4
commit
c0a075c800
@ -267,6 +267,7 @@ procedure Exchange(var A, B: String); overload; inline;
|
||||
|
||||
function FormatIfNotEmpty(AFormat, AStr: String): String; inline;
|
||||
|
||||
function IfThen(ACond: Boolean; ATrue, AFalse: TObject): TObject; overload;
|
||||
function InterpolateRGB(AColor1, AColor2: Integer; ACoeff: Double): Integer;
|
||||
function IntToColorHex(AColor: Integer): String; inline;
|
||||
function IsNan(const APoint: TDoublePoint): Boolean; overload; inline;
|
||||
@ -365,6 +366,14 @@ begin
|
||||
Result := Format(AFormat, [AStr]);
|
||||
end;
|
||||
|
||||
function IfThen(ACond: Boolean; ATrue, AFalse: TObject): TObject;
|
||||
begin
|
||||
if ACond then
|
||||
Result := ATrue
|
||||
else
|
||||
Result := AFalse;
|
||||
end;
|
||||
|
||||
function InterpolateRGB(AColor1, AColor2: Integer; ACoeff: Double): Integer;
|
||||
type
|
||||
TBytes = packed array [1..4] of Byte;
|
||||
|
Loading…
Reference in New Issue
Block a user