2018-06-26 13:05:22 +00:00
|
|
|
unit mvExtraData;
|
2018-04-16 13:59:19 +00:00
|
|
|
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
|
|
|
|
interface
|
|
|
|
|
|
|
|
uses
|
2019-01-27 18:44:08 +00:00
|
|
|
Classes, SysUtils, graphics;
|
2018-04-16 13:59:19 +00:00
|
|
|
|
|
|
|
type
|
|
|
|
|
|
|
|
{ TDrawingExtraData }
|
|
|
|
|
|
|
|
TDrawingExtraData = class
|
|
|
|
private
|
|
|
|
FColor: TColor;
|
|
|
|
FId: integer;
|
|
|
|
procedure SetColor(AValue: TColor);
|
|
|
|
public
|
2019-01-27 18:44:08 +00:00
|
|
|
constructor Create(aId: integer);virtual;
|
|
|
|
property Color: TColor read FColor write SetColor;
|
|
|
|
property Id: integer read FId;
|
2018-04-16 13:59:19 +00:00
|
|
|
End;
|
|
|
|
|
2019-01-27 18:44:08 +00:00
|
|
|
|
2018-04-16 13:59:19 +00:00
|
|
|
implementation
|
|
|
|
|
|
|
|
{ TDrawingExtraData }
|
|
|
|
|
|
|
|
procedure TDrawingExtraData.SetColor(AValue: TColor);
|
|
|
|
begin
|
2019-01-27 18:44:08 +00:00
|
|
|
if FColor = AValue then Exit;
|
|
|
|
FColor := AValue;
|
2018-04-16 13:59:19 +00:00
|
|
|
end;
|
|
|
|
|
|
|
|
constructor TDrawingExtraData.Create(aId: integer);
|
|
|
|
begin
|
2019-01-27 18:44:08 +00:00
|
|
|
FId := aId;
|
|
|
|
FColor := clRed;
|
2018-04-16 13:59:19 +00:00
|
|
|
end;
|
|
|
|
|
|
|
|
end.
|
|
|
|
|