// CodeGear C++Builder
// Copyright (c) 1995, 2014 by Embarcadero Technologies, Inc.
// All rights reserved

// (DO NOT EDIT: machine generated header) 'FMX.TMSHTMLText.pas' rev: 27.00 (Windows)

#ifndef Fmx_TmshtmltextHPP
#define Fmx_TmshtmltextHPP

#pragma delphiheader begin
#pragma option push
#pragma option -w-      // All warnings off
#pragma option -Vx      // Zero-length empty class member 
#pragma pack(push,8)
#include <System.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.Classes.hpp>	// Pascal unit
#include <System.Types.hpp>	// Pascal unit
#include <System.SysUtils.hpp>	// Pascal unit
#include <FMX.Types.hpp>	// Pascal unit
#include <FMX.Objects.hpp>	// Pascal unit
#include <System.UITypes.hpp>	// Pascal unit
#include <FMX.Dialogs.hpp>	// Pascal unit
#include <FMX.TMSHTMLEngine.hpp>	// Pascal unit
#include <FMX.TMSBitmapContainer.hpp>	// Pascal unit
#include <FMX.TMSBaseControl.hpp>	// Pascal unit
#include <System.UIConsts.hpp>	// Pascal unit
#include <FMX.Styles.hpp>	// Pascal unit
#include <FMX.Controls.hpp>	// Pascal unit
#include <FMX.Graphics.hpp>	// Pascal unit

//-- user supplied -----------------------------------------------------------

namespace Fmx
{
namespace Tmshtmltext
{
//-- type declarations -------------------------------------------------------
typedef void __fastcall (__closure *TTMSFMXHTMLTextAnchorClickEvent)(System::TObject* Sender, System::UnicodeString AAnchor);

class DELPHICLASS TTMSFMXHTMLText;
class PASCALIMPLEMENTATION TTMSFMXHTMLText : public Fmx::Objects::TText
{
	typedef Fmx::Objects::TText inherited;
	
private:
	Fmx::Graphics::TBrush* FFill;
	Fmx::Graphics::TStrokeBrush* FStroke;
	Fmx::Tmsbitmapcontainer::TTMSFMXBitmapContainer* FBitmapContainer;
	TTMSFMXHTMLTextAnchorClickEvent FOnAnchorClick;
	System::Uitypes::TAlphaColor FURLColor;
	int FShadowOffset;
	System::Uitypes::TAlphaColor FShadowColor;
	System::UnicodeString __fastcall GetVersion(void);
	int __fastcall GetVersionNr(void);
	void __fastcall SetVersion(const System::UnicodeString Value);
	void __fastcall SetShadowOffset(const int Value);
	void __fastcall SetURLColor(const System::Uitypes::TAlphaColor Value);
	void __fastcall SetShadowColor(const System::Uitypes::TAlphaColor Value);
	void __fastcall SetBitmapContainer(Fmx::Tmsbitmapcontainer::TTMSFMXBitmapContainer* const Value);
	HIDESBASE System::UnicodeString __fastcall GetText(void);
	HIDESBASE void __fastcall SetText(const System::UnicodeString Value);
	void __fastcall SetFill(Fmx::Graphics::TBrush* const Value);
	void __fastcall SetStroke(Fmx::Graphics::TStrokeBrush* const Value);
	
protected:
	void __fastcall FillChanged(System::TObject* Sender);
	virtual void __fastcall Notification(System::Classes::TComponent* AComponent, System::Classes::TOperation Operation);
	virtual void __fastcall MouseMove(System::Classes::TShiftState Shift, float X, float Y);
	virtual void __fastcall MouseDown(System::Uitypes::TMouseButton Button, System::Classes::TShiftState Shift, float X, float Y);
	void __fastcall DoAnchorClick(System::UnicodeString Anchor);
	
public:
	__fastcall virtual TTMSFMXHTMLText(System::Classes::TComponent* AOwner);
	__fastcall virtual ~TTMSFMXHTMLText(void);
	virtual void __fastcall Paint(void);
	float __fastcall GetTextWidth(void);
	float __fastcall GetTextHeight(void);
	System::UnicodeString __fastcall GetStrippedHTMLText(void);
	void __fastcall DoMouseMove(System::Classes::TShiftState Shift, float X, float Y);
	void __fastcall DoMouseDown(System::Uitypes::TMouseButton Button, System::Classes::TShiftState Shift, float X, float Y);
	void __fastcall HTMLDraw(bool TestAnchor, float X, float Y, System::UnicodeString &Anchor);
	bool __fastcall IsHTML(void);
	
__published:
	__property System::UnicodeString Text = {read=GetText, write=SetText};
	__property Fmx::Tmsbitmapcontainer::TTMSFMXBitmapContainer* BitmapContainer = {read=FBitmapContainer, write=SetBitmapContainer};
	__property System::Uitypes::TAlphaColor ShadowColor = {read=FShadowColor, write=SetShadowColor, default=-8355712};
	__property int ShadowOffset = {read=FShadowOffset, write=SetShadowOffset, default=1};
	__property System::Uitypes::TAlphaColor URLColor = {read=FURLColor, write=SetURLColor, default=-16776961};
	__property Fmx::Graphics::TBrush* Fill = {read=FFill, write=SetFill};
	__property Fmx::Graphics::TStrokeBrush* Stroke = {read=FStroke, write=SetStroke};
	__property System::UnicodeString Version = {read=GetVersion, write=SetVersion};
	__property TTMSFMXHTMLTextAnchorClickEvent OnAnchorClick = {read=FOnAnchorClick, write=FOnAnchorClick};
};


//-- var, const, procedure ---------------------------------------------------
static const System::Int8 MAJ_VER = System::Int8(0x1);
static const System::Int8 MIN_VER = System::Int8(0x5);
static const System::Int8 REL_VER = System::Int8(0x0);
static const System::Int8 BLD_VER = System::Int8(0x1);
}	/* namespace Tmshtmltext */
}	/* namespace Fmx */
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_FMX_TMSHTMLTEXT)
using namespace Fmx::Tmshtmltext;
#endif
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_FMX)
using namespace Fmx;
#endif
#pragma pack(pop)
#pragma option pop

#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif	// Fmx_TmshtmltextHPP
