summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2010-08-11 14:34:21 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2010-08-11 14:34:21 +0200
commit0591497663e3bd09542dd3fd3cac347570a3361a (patch)
treea77fd2b58a8712fd9ab3e74666b97ccebc142b3e /src
parent52d2902b355616876bafbbfebe95bbd7cd6b545e (diff)
downloadfpGUI-0591497663e3bd09542dd3fd3cac347570a3361a.tar.xz
TfpgImageList: Added a Clear method.
Diffstat (limited to 'src')
-rw-r--r--src/corelib/fpg_imagelist.pas6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/corelib/fpg_imagelist.pas b/src/corelib/fpg_imagelist.pas
index b4d72a6a..c2c1b3eb 100644
--- a/src/corelib/fpg_imagelist.pas
+++ b/src/corelib/fpg_imagelist.pas
@@ -72,6 +72,7 @@ type
procedure AddImage(AImage: TfpgImage; AIndex: integer = -1);
procedure RemoveIndex(AIndex: integer);
function GetMaxItem: integer;
+ procedure Clear;
property Item[AIndex: integer]: TfpgImageItem read GetItem write SetItem;
property Count: integer read GetCount;
end;
@@ -208,6 +209,11 @@ begin
result := TfpgImageItem(FList[i]).Index;
end;
+procedure TfpgImageList.Clear;
+begin
+ FList.Clear;
+end;
+
{ TfpgImageItem }
procedure TfpgImageItem.SetImageList(AImageList: TfpgImageList);