lazarus/lcl/interfaces/fpgui/fpguiobjects.pas
sekelsenmat abf11caaf2 Small update to fpgui-lcl from Graeme
git-svn-id: trunk@17786 -
2008-12-10 20:53:50 +00:00

78 lines
2.3 KiB
ObjectPascal

{
*****************************************************************************
* FpGUIObjects.pas *
* -------------- *
* Place for wrapper classes which aren't widgets *
* *
*****************************************************************************
*****************************************************************************
* *
* This file is part of the Lazarus Component Library (LCL) *
* *
* See the file COPYING.modifiedLGPL.txt, included in this distribution, *
* for details about the copyright. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* *
*****************************************************************************
}
unit fpguiobjects;
{$mode objfpc}{$H+}
interface
uses
// RTL, FCL, LCL
Classes, SysUtils,
Graphics, Menus,
// Widgetset
fpguiwsprivate,
// interface
fpg_main, fpg_menu;
type
{ TFpGuiDeviceContext }
TFpGuiDeviceContext = class(TObject)
public
fpgCanvas: TfpgCanvas;
public
constructor Create(AfpgCanvas: TfpgCanvas);
end;
{ TFPGUIPrivateMenuItem }
TFPGUIPrivateMenuItem = class(TObject)
private
protected
public
MenuItem: TfpgMenuItem;
LCLMenuItem: TMenuItem;
procedure HandleOnClick(ASender: TObject);
end;
implementation
{ TFpGuiDeviceContext }
constructor TFpGuiDeviceContext.Create(AfpgCanvas: TfpgCanvas);
begin
fpgCanvas := AfpgCanvas;
end;
{ TFPGUIPrivateMenuItem }
procedure TFPGUIPrivateMenuItem.HandleOnClick(ASender: TObject);
begin
if Assigned(LCLMenuItem) and Assigned(LCLMenuItem.OnClick) then
LCLMenuItem.OnClick(LCLMenuItem);
end;
end.