Initial commit

This commit is contained in:
2026-06-12 23:18:12 +08:00
commit 424bde1b02
249 changed files with 40338 additions and 0 deletions
+201
View File
@@ -0,0 +1,201 @@
// CodeGear C++Builder
// Copyright (c) 1995, 2025 by Embarcadero Technologies, Inc.
// All rights reserved
// (DO NOT EDIT: machine generated header) 'uCEFViewComponent.pas' rev: 37.00 (Windows)
#ifndef uCEFViewComponentHPP
#define uCEFViewComponentHPP
#pragma delphiheader begin
#pragma option push
#if defined(__BORLANDC__) && !defined(__clang__)
#pragma option -w- // All warnings off
#pragma option -Vx // Zero-length empty class member
#endif
#pragma pack(push,8)
#include <System.hpp>
#include <SysInit.hpp>
#include <Winapi.Windows.hpp>
#include <System.Classes.hpp>
#include <uCEFTypes.hpp>
#include <uCEFInterfaces.hpp>
#include <uCEFViewsFrameworkEvents.hpp>
//-- user supplied -----------------------------------------------------------
namespace Ucefviewcomponent
{
//-- forward type declarations -----------------------------------------------
class DELPHICLASS TCEFViewComponent;
//-- type declarations -------------------------------------------------------
class PASCALIMPLEMENTATION TCEFViewComponent : public System::Classes::TComponent
{
typedef System::Classes::TComponent inherited;
protected:
Ucefviewsframeworkevents::TOnGetPreferredSizeEvent FOnGetPreferredSize;
Ucefviewsframeworkevents::TOnGetMinimumSizeEvent FOnGetMinimumSize;
Ucefviewsframeworkevents::TOnGetMaximumSizeEvent FOnGetMaximumSize;
Ucefviewsframeworkevents::TOnGetHeightForWidthEvent FOnGetHeightForWidth;
Ucefviewsframeworkevents::TOnParentViewChangedEvent FOnParentViewChanged;
Ucefviewsframeworkevents::TOnChildViewChangedEvent FOnChildViewChanged;
Ucefviewsframeworkevents::TOnWindowChangedEvent FOnWindowChanged;
Ucefviewsframeworkevents::TOnLayoutChangedEvent FOnLayoutChanged;
Ucefviewsframeworkevents::TOnFocusEvent FOnFocus;
Ucefviewsframeworkevents::TOnBlurEvent FOnBlur;
Ucefviewsframeworkevents::TOnThemeChangedEvent FOnThemeChanged;
int FComponentID;
virtual void __fastcall CreateView();
virtual void __fastcall DestroyView();
virtual void __fastcall Initialize();
virtual bool __fastcall GetInitialized();
virtual Ucefinterfaces::_di_ICefView __fastcall GetAsView();
Uceftypes::ustring __fastcall GetTypeString();
virtual Ucefinterfaces::_di_ICefBrowserView __fastcall GetAsBrowserView();
virtual Ucefinterfaces::_di_ICefButton __fastcall GetAsButton();
virtual Ucefinterfaces::_di_ICefPanel __fastcall GetAsPanel();
virtual Ucefinterfaces::_di_ICefScrollView __fastcall GetAsScrollView();
virtual Ucefinterfaces::_di_ICefTextfield __fastcall GetAsTextfield();
bool __fastcall GetIsValid();
bool __fastcall GetIsAttached();
Ucefinterfaces::_di_ICefViewDelegate __fastcall GetDelegate();
Ucefinterfaces::_di_ICefWindow __fastcall GetWindow();
int __fastcall GetID();
int __fastcall GetGroupID();
Ucefinterfaces::_di_ICefView __fastcall GetParentView();
Uceftypes::TCefRect __fastcall GetBounds();
Uceftypes::TCefRect __fastcall GetBoundsInScreen();
Uceftypes::TCefSize __fastcall GetSize();
Uceftypes::TCefPoint __fastcall GetPosition();
Uceftypes::TCefSize __fastcall GetPreferredSize();
Uceftypes::TCefSize __fastcall GetMinimumSize();
Uceftypes::TCefSize __fastcall GetMaximumSize();
bool __fastcall GetIsVisible();
bool __fastcall GetIsDrawn();
bool __fastcall GetIsEnabled();
bool __fastcall GetIsFocusable();
bool __fastcall GetIsAccessibilityFocusable();
bool __fastcall GetHasFocus();
Uceftypes::TCefColor __fastcall GetBackgroundColor();
Ucefinterfaces::_di_ICefView __fastcall GetViewForID(int id_);
int __fastcall GetHeightForWidth(int width);
Uceftypes::TCefInsets __fastcall GetInsets();
int __fastcall GetComponentID();
void __fastcall SetID(int id_);
void __fastcall SetGroupID(int group_id);
void __fastcall SetBounds(const Uceftypes::TCefRect &bounds_);
void __fastcall SetSize(const Uceftypes::TCefSize &size_);
void __fastcall SetPosition(const Uceftypes::TCefPoint &position_);
void __fastcall SetVisible(bool visible_);
void __fastcall SetEnabled(bool enabled_);
void __fastcall SetFocusable(bool focusable_);
void __fastcall SetBackgroundColor(Uceftypes::TCefColor color);
void __fastcall SetInsets(const Uceftypes::TCefInsets &insets);
virtual void __fastcall doOnGetPreferredSize(const Ucefinterfaces::_di_ICefView view, Uceftypes::TCefSize &aResult);
virtual void __fastcall doOnGetMinimumSize(const Ucefinterfaces::_di_ICefView view, Uceftypes::TCefSize &aResult);
virtual void __fastcall doOnGetMaximumSize(const Ucefinterfaces::_di_ICefView view, Uceftypes::TCefSize &aResult);
virtual void __fastcall doOnGetHeightForWidth(const Ucefinterfaces::_di_ICefView view, int width, int &aResult);
virtual void __fastcall doOnParentViewChanged(const Ucefinterfaces::_di_ICefView view, bool added, const Ucefinterfaces::_di_ICefView parent);
virtual void __fastcall doOnChildViewChanged(const Ucefinterfaces::_di_ICefView view, bool added, const Ucefinterfaces::_di_ICefView child);
virtual void __fastcall doOnWindowChanged(const Ucefinterfaces::_di_ICefView view, bool added);
virtual void __fastcall doOnLayoutChanged(const Ucefinterfaces::_di_ICefView view, const Uceftypes::TCefRect &new_bounds);
virtual void __fastcall doOnFocus(const Ucefinterfaces::_di_ICefView view);
virtual void __fastcall doOnBlur(const Ucefinterfaces::_di_ICefView view);
virtual void __fastcall doOnThemeChanged(const Ucefinterfaces::_di_ICefView view);
virtual void __fastcall doCreateCustomView();
public:
__fastcall virtual TCEFViewComponent(System::Classes::TComponent* AOwner);
virtual void __fastcall AfterConstruction();
virtual void __fastcall BeforeDestruction();
Uceftypes::ustring __fastcall ToStringEx(bool include_children);
bool __fastcall IsSame(const Ucefinterfaces::_di_ICefView that);
void __fastcall SizeToPreferredSize();
void __fastcall InvalidateLayout();
void __fastcall RequestFocus();
Uceftypes::TCefColor __fastcall GetThemeColor(int color_id);
bool __fastcall ConvertPointToScreen(Uceftypes::TCefPoint &point);
bool __fastcall ConvertPointFromScreen(Uceftypes::TCefPoint &point);
bool __fastcall ConvertPointToWindow(Uceftypes::TCefPoint &point);
bool __fastcall ConvertPointFromWindow(Uceftypes::TCefPoint &point);
bool __fastcall ConvertPointToView(const Ucefinterfaces::_di_ICefView view, Uceftypes::TCefPoint &point);
bool __fastcall ConvertPointFromView(const Ucefinterfaces::_di_ICefView view, Uceftypes::TCefPoint &point);
__property bool Initialized = {read=GetInitialized, nodefault};
__property Ucefinterfaces::_di_ICefView AsView = {read=GetAsView};
__property Ucefinterfaces::_di_ICefBrowserView AsBrowserView = {read=GetAsBrowserView};
__property Ucefinterfaces::_di_ICefButton AsButton = {read=GetAsButton};
__property Ucefinterfaces::_di_ICefPanel AsPanel = {read=GetAsPanel};
__property Ucefinterfaces::_di_ICefScrollView AsScrollView = {read=GetAsScrollView};
__property Ucefinterfaces::_di_ICefTextfield AsTextfield = {read=GetAsTextfield};
__property Ucefinterfaces::_di_ICefView ViewForID[int id_] = {read=GetViewForID};
__property bool Valid = {read=GetIsValid, nodefault};
__property bool Attached = {read=GetIsAttached, nodefault};
__property Ucefinterfaces::_di_ICefViewDelegate Delegate = {read=GetDelegate};
__property Ucefinterfaces::_di_ICefWindow Window = {read=GetWindow};
__property Ucefinterfaces::_di_ICefView ParentView = {read=GetParentView};
__property Uceftypes::TCefRect BoundsInScreen = {read=GetBoundsInScreen};
__property Uceftypes::TCefSize PreferredSize = {read=GetPreferredSize};
__property Uceftypes::TCefSize MinimumSize = {read=GetMinimumSize};
__property Uceftypes::TCefSize MaximumSize = {read=GetMaximumSize};
__property bool Visible = {read=GetIsVisible, write=SetVisible, nodefault};
__property bool Drawn = {read=GetIsDrawn, nodefault};
__property bool Enabled = {read=GetIsEnabled, write=SetEnabled, nodefault};
__property bool Focusable = {read=GetIsFocusable, write=SetFocusable, nodefault};
__property bool AccessibilityFocusable = {read=GetIsAccessibilityFocusable, nodefault};
__property bool HasFocus = {read=GetHasFocus, nodefault};
__property Uceftypes::TCefColor BackgroundColor = {read=GetBackgroundColor, write=SetBackgroundColor, nodefault};
__property int ID = {read=GetID, write=SetID, nodefault};
__property int GroupID = {read=GetGroupID, write=SetGroupID, nodefault};
__property Uceftypes::TCefRect Bounds = {read=GetBounds, write=SetBounds};
__property Uceftypes::TCefSize Size = {read=GetSize, write=SetSize};
__property Uceftypes::TCefPoint Position = {read=GetPosition, write=SetPosition};
__property Uceftypes::TCefInsets Insets = {read=GetInsets, write=SetInsets};
__property Uceftypes::ustring TypeString = {read=GetTypeString};
__property int HeightForWidth[int width] = {read=GetHeightForWidth};
__published:
__property Ucefviewsframeworkevents::TOnGetPreferredSizeEvent OnGetPreferredSize = {read=FOnGetPreferredSize, write=FOnGetPreferredSize};
__property Ucefviewsframeworkevents::TOnGetMinimumSizeEvent OnGetMinimumSize = {read=FOnGetMinimumSize, write=FOnGetMinimumSize};
__property Ucefviewsframeworkevents::TOnGetMaximumSizeEvent OnGetMaximumSize = {read=FOnGetMaximumSize, write=FOnGetMaximumSize};
__property Ucefviewsframeworkevents::TOnGetHeightForWidthEvent OnGetHeightForWidth = {read=FOnGetHeightForWidth, write=FOnGetHeightForWidth};
__property Ucefviewsframeworkevents::TOnParentViewChangedEvent OnParentViewChanged = {read=FOnParentViewChanged, write=FOnParentViewChanged};
__property Ucefviewsframeworkevents::TOnChildViewChangedEvent OnChildViewChanged = {read=FOnChildViewChanged, write=FOnChildViewChanged};
__property Ucefviewsframeworkevents::TOnWindowChangedEvent OnWindowChanged = {read=FOnWindowChanged, write=FOnWindowChanged};
__property Ucefviewsframeworkevents::TOnLayoutChangedEvent OnLayoutChanged = {read=FOnLayoutChanged, write=FOnLayoutChanged};
__property Ucefviewsframeworkevents::TOnFocusEvent OnFocus = {read=FOnFocus, write=FOnFocus};
__property Ucefviewsframeworkevents::TOnBlurEvent OnBlur = {read=FOnBlur, write=FOnBlur};
__property Ucefviewsframeworkevents::TOnThemeChangedEvent OnThemeChanged = {read=FOnThemeChanged, write=FOnThemeChanged};
public:
/* TComponent.Destroy */ inline __fastcall virtual ~TCEFViewComponent() { }
private:
void *__ICefViewDelegateEvents; // Ucefinterfaces::ICefViewDelegateEvents
public:
#if defined(MANAGED_INTERFACE_OPERATORS)
// {74DDDB37-8F08-4672-BDB6-55CA2CD374ED}
operator Ucefinterfaces::_di_ICefViewDelegateEvents()
{
Ucefinterfaces::_di_ICefViewDelegateEvents intf;
this->GetInterface(intf);
return intf;
}
#else
operator Ucefinterfaces::ICefViewDelegateEvents*(void) { return (Ucefinterfaces::ICefViewDelegateEvents*)&__ICefViewDelegateEvents; }
#endif
};
//-- var, const, procedure ---------------------------------------------------
} /* namespace Ucefviewcomponent */
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_UCEFVIEWCOMPONENT)
using namespace Ucefviewcomponent;
#endif
#pragma pack(pop)
#pragma option pop
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // uCEFViewComponentHPP