Skip to content

Commit d39e51f

Browse files
committed
Adding TGlyphColumn wrapper
1 parent c425fbf commit d39e51f

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Source/fmx/WrapFmxGrids.pas

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,16 @@ TPyDelphiIntegerColumn = class(TPyDelphiCustomNumberColumn)
146146
property DelphiObject: TIntegerColumn read GetDelphiObject write SetDelphiObject;
147147
end;
148148

149+
TPyDelphiGlyphColumn = class(TPyDelphiColumn)
150+
private
151+
function GetDelphiObject: TGlyphColumn;
152+
procedure SetDelphiObject(const Value: TGlyphColumn);
153+
public
154+
class function DelphiObjectClass : TClass; override;
155+
// Properties
156+
property DelphiObject: TGlyphColumn read GetDelphiObject write SetDelphiObject;
157+
end;
158+
149159
implementation
150160

151161
uses
@@ -190,6 +200,7 @@ procedure TGridsRegistration.RegisterWrappers(
190200
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCurrencyColumn);
191201
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiFloatColumn);
192202
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiIntegerColumn);
203+
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiGlyphColumn);
193204
end;
194205

195206
{ TPyDelphiColumn }
@@ -432,6 +443,23 @@ procedure TPyDelphiIntegerColumn.SetDelphiObject(const Value: TIntegerColumn);
432443
inherited DelphiObject := Value;
433444
end;
434445

446+
{ TPyDelphiGlyphColumn }
447+
448+
class function TPyDelphiGlyphColumn.DelphiObjectClass: TClass;
449+
begin
450+
Result := TGlyphColumn;
451+
end;
452+
453+
function TPyDelphiGlyphColumn.GetDelphiObject: TGlyphColumn;
454+
begin
455+
Result := TGlyphColumn(inherited DelphiObject);
456+
end;
457+
458+
procedure TPyDelphiGlyphColumn.SetDelphiObject(const Value: TGlyphColumn);
459+
begin
460+
inherited DelphiObject := Value;
461+
end;
462+
435463
initialization
436464
RegisteredUnits.Add(TGridsRegistration.Create);
437465

0 commit comments

Comments
 (0)