// CodeGear C++Builder // Copyright (c) 1995, 2025 by Embarcadero Technologies, Inc. // All rights reserved // (DO NOT EDIT: machine generated header) 'uCEFWindowComponent.pas' rev: 37.00 (Windows) #ifndef uCEFWindowComponentHPP #define uCEFWindowComponentHPP #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 #include #include #include #include #include #include #include #include #include //-- user supplied ----------------------------------------------------------- namespace Ucefwindowcomponent { //-- forward type declarations ----------------------------------------------- class DELPHICLASS TCEFWindowComponent; //-- type declarations ------------------------------------------------------- class PASCALIMPLEMENTATION TCEFWindowComponent : public Ucefpanelcomponent::TCEFPanelComponent { typedef Ucefpanelcomponent::TCEFPanelComponent inherited; protected: Ucefinterfaces::_di_ICefWindow FWindow; Ucefinterfaces::_di_ICefWindowDelegate FWindowDlg; Ucefviewsframeworkevents::TOnWindowCreatedEvent FOnWindowCreated; Ucefviewsframeworkevents::TOnWindowClosingEvent FOnWindowClosing; Ucefviewsframeworkevents::TOnWindowDestroyedEvent FOnWindowDestroyed; Ucefviewsframeworkevents::TOnWindowActivationChangedEvent FOnWindowActivationChanged; Ucefviewsframeworkevents::TOnWindowBoundsChangedEvent FOnWindowBoundsChanged; Ucefviewsframeworkevents::TOnWindowFullscreenTransitionEvent FOnWindowFullscreenTransition; Ucefviewsframeworkevents::TOnGetParentWindowEvent FOnGetParentWindow; Ucefviewsframeworkevents::TOnIsWindowModalDialogEvent FOnIsWindowModalDialog; Ucefviewsframeworkevents::TOnGetInitialBoundsEvent FOnGetInitialBounds; Ucefviewsframeworkevents::TOnGetInitialShowStateEvent FOnGetInitialShowState; Ucefviewsframeworkevents::TOnIsFramelessEvent FOnIsFrameless; Ucefviewsframeworkevents::TOnWithStandardWindowButtonsEvent FOnWithStandardWindowButtons; Ucefviewsframeworkevents::TOnGetTitlebarHeightEvent FOnGetTitlebarHeight; Ucefviewsframeworkevents::TOnAcceptsFirstMouseEvent FOnAcceptsFirstMouse; Ucefviewsframeworkevents::TOnCanResizeEvent FOnCanResize; Ucefviewsframeworkevents::TOnCanMaximizeEvent FOnCanMaximize; Ucefviewsframeworkevents::TOnCanMinimizeEvent FOnCanMinimize; Ucefviewsframeworkevents::TOnCanCloseEvent FOnCanClose; Ucefviewsframeworkevents::TOnAcceleratorEvent FOnAccelerator; Ucefviewsframeworkevents::TOnWindowKeyEventEvent FOnKeyEvent; Ucefviewsframeworkevents::TOnThemeColorsChangedEvent FOnThemeColorsChanged; Ucefviewsframeworkevents::TOnGetWindowRuntimeStyleEvent FOnGetWindowRuntimeStyle; Ucefviewsframeworkevents::TOnGetLinuxWindowPropertiesEvent FOnGetLinuxWindowProperties; virtual void __fastcall DestroyView(); virtual void __fastcall Initialize(); virtual bool __fastcall GetInitialized(); virtual Ucefinterfaces::_di_ICefView __fastcall GetAsView(); virtual Ucefinterfaces::_di_ICefPanel __fastcall GetAsPanel(); virtual Ucefinterfaces::_di_ICefWindow __fastcall GetAsWindow(); bool __fastcall GetIsClosed(); bool __fastcall GetIsActive(); bool __fastcall GetIsAlwaysOnTop(); bool __fastcall GetIsMaximized(); bool __fastcall GetIsMinimized(); bool __fastcall GetIsFullscreen(); Ucefinterfaces::_di_ICefView __fastcall GetFocusedView(); Uceftypes::ustring __fastcall GetTitle(); Ucefinterfaces::_di_ICefImage __fastcall GetWindowIcon(); Ucefinterfaces::_di_ICefImage __fastcall GetWindowAppIcon(); Ucefinterfaces::_di_ICefDisplay __fastcall GetDisplay(); Uceftypes::TCefRect __fastcall GetClientAreaBoundsInScreen(); Uceftypes::TCefWindowHandle __fastcall GetWindowHandle(); Uceftypes::TCefRuntimeStyle __fastcall GetRuntimeStyle(); void __fastcall SetAlwaysOnTop(bool on_top); void __fastcall SetFullscreen(bool fullscreen); void __fastcall SetTitle(const Uceftypes::ustring title_); void __fastcall SetWindowIcon(const Ucefinterfaces::_di_ICefImage image); void __fastcall SetWindowAppIcon(const Ucefinterfaces::_di_ICefImage image); void __fastcall doOnWindowCreated(const Ucefinterfaces::_di_ICefWindow window_); void __fastcall doOnWindowClosing(const Ucefinterfaces::_di_ICefWindow window_); void __fastcall doOnWindowDestroyed(const Ucefinterfaces::_di_ICefWindow window_); void __fastcall doOnWindowActivationChanged(const Ucefinterfaces::_di_ICefWindow window_, bool active); void __fastcall doOnWindowBoundsChanged(const Ucefinterfaces::_di_ICefWindow window_, const Uceftypes::TCefRect &new_bounds); void __fastcall doOnWindowFullscreenTransition(const Ucefinterfaces::_di_ICefWindow window_, bool is_completed); void __fastcall doOnGetParentWindow(const Ucefinterfaces::_di_ICefWindow window_, bool &is_menu, bool &can_activate_menu, Ucefinterfaces::_di_ICefWindow &aResult); void __fastcall doOnIsWindowModalDialog(const Ucefinterfaces::_di_ICefWindow window_, bool &aResult); void __fastcall doOnGetInitialBounds(const Ucefinterfaces::_di_ICefWindow window_, Uceftypes::TCefRect &aResult); void __fastcall doOnGetInitialShowState(const Ucefinterfaces::_di_ICefWindow window_, Uceftypes::TCefShowState &aResult); void __fastcall doOnIsFrameless(const Ucefinterfaces::_di_ICefWindow window_, bool &aResult); void __fastcall doOnWithStandardWindowButtons(const Ucefinterfaces::_di_ICefWindow window_, bool &aResult); void __fastcall doOnGetTitlebarHeight(const Ucefinterfaces::_di_ICefWindow window_, float &titlebar_height, bool &aResult); void __fastcall doOnAcceptsFirstMouse(const Ucefinterfaces::_di_ICefWindow window_, Uceftypes::TCefState &aResult); void __fastcall doOnCanResize(const Ucefinterfaces::_di_ICefWindow window_, bool &aResult); void __fastcall doOnCanMaximize(const Ucefinterfaces::_di_ICefWindow window_, bool &aResult); void __fastcall doOnCanMinimize(const Ucefinterfaces::_di_ICefWindow window_, bool &aResult); void __fastcall doOnCanClose(const Ucefinterfaces::_di_ICefWindow window_, bool &aResult); void __fastcall doOnAccelerator(const Ucefinterfaces::_di_ICefWindow window_, int command_id, bool &aResult); void __fastcall doOnKeyEvent(const Ucefinterfaces::_di_ICefWindow window_, const Uceftypes::TCefKeyEvent &event, bool &aResult); void __fastcall doOnThemeColorsChanged(const Ucefinterfaces::_di_ICefWindow window_, int chrome_theme); void __fastcall doOnGetWindowRuntimeStyle(Uceftypes::TCefRuntimeStyle &aResult); void __fastcall doOnGetLinuxWindowProperties(const Ucefinterfaces::_di_ICefWindow window_, Uceftypes::TLinuxWindowProperties &properties, bool &aResult); virtual void __fastcall doCreateCustomView(); public: void __fastcall CreateTopLevelWindow(); void __fastcall Show(); void __fastcall ShowAsBrowserModalDialog(const Ucefinterfaces::_di_ICefBrowserView browser_view); void __fastcall Hide(); void __fastcall CenterWindow(const Uceftypes::TCefSize &size_); void __fastcall Close(); void __fastcall Activate(); void __fastcall Deactivate(); void __fastcall BringToTop(); void __fastcall Maximize(); void __fastcall Minimize(); void __fastcall Restore(); Ucefinterfaces::_di_ICefOverlayController __fastcall AddOverlayView(const Ucefinterfaces::_di_ICefView view, Uceftypes::TCefDockingMode docking_mode, bool can_activate); void __fastcall ShowMenu(const Ucefinterfaces::_di_ICefMenuModel menu_model, const Uceftypes::TCefPoint &screen_point, Uceftypes::TCefMenuAnchorPosition anchor_position); void __fastcall CancelMenu(); void __fastcall SetDraggableRegions(System::NativeUInt regionsCount, const Uceftypes::PCefDraggableRegionArray regions); void __fastcall SendKeyPress(int key_code, unsigned event_flags); void __fastcall SendMouseMove(int screen_x, int screen_y); void __fastcall SendMouseEvents(Uceftypes::TCefMouseButtonType button, bool mouse_down, bool mouse_up); void __fastcall SetAccelerator(int command_id, int key_code, bool shift_pressed, bool ctrl_pressed, bool alt_pressed, bool high_priority); void __fastcall RemoveAccelerator(int command_id); void __fastcall RemoveAllAccelerators(); void __fastcall SetThemeColor(int color_id, Uceftypes::TCefColor color); void __fastcall ThemeChanged(); __property Ucefinterfaces::_di_ICefView FocusedView = {read=GetFocusedView}; __property Uceftypes::ustring Title = {read=GetTitle, write=SetTitle}; __property Ucefinterfaces::_di_ICefImage WindowIcon = {read=GetWindowIcon, write=SetWindowIcon}; __property Ucefinterfaces::_di_ICefImage WindowAppIcon = {read=GetWindowAppIcon, write=SetWindowAppIcon}; __property Ucefinterfaces::_di_ICefDisplay Display = {read=GetDisplay}; __property Uceftypes::TCefRect ClientAreaBoundsInScreen = {read=GetClientAreaBoundsInScreen}; __property Uceftypes::TCefWindowHandle WindowHandle = {read=GetWindowHandle, nodefault}; __property bool IsClosed = {read=GetIsClosed, nodefault}; __property bool IsActive = {read=GetIsActive, nodefault}; __property bool IsAlwaysOnTop = {read=GetIsAlwaysOnTop, write=SetAlwaysOnTop, nodefault}; __property bool IsFullscreen = {read=GetIsFullscreen, write=SetFullscreen, nodefault}; __property bool IsMaximized = {read=GetIsMaximized, nodefault}; __property bool IsMinimized = {read=GetIsMinimized, nodefault}; __property Uceftypes::TCefRuntimeStyle RuntimeStyle = {read=GetRuntimeStyle, nodefault}; __published: __property Ucefviewsframeworkevents::TOnWindowCreatedEvent OnWindowCreated = {read=FOnWindowCreated, write=FOnWindowCreated}; __property Ucefviewsframeworkevents::TOnWindowClosingEvent OnWindowClosing = {read=FOnWindowClosing, write=FOnWindowClosing}; __property Ucefviewsframeworkevents::TOnWindowDestroyedEvent OnWindowDestroyed = {read=FOnWindowDestroyed, write=FOnWindowDestroyed}; __property Ucefviewsframeworkevents::TOnWindowActivationChangedEvent OnWindowActivationChanged = {read=FOnWindowActivationChanged, write=FOnWindowActivationChanged}; __property Ucefviewsframeworkevents::TOnWindowBoundsChangedEvent OnWindowBoundsChanged = {read=FOnWindowBoundsChanged, write=FOnWindowBoundsChanged}; __property Ucefviewsframeworkevents::TOnWindowFullscreenTransitionEvent OnWindowFullscreenTransition = {read=FOnWindowFullscreenTransition, write=FOnWindowFullscreenTransition}; __property Ucefviewsframeworkevents::TOnGetParentWindowEvent OnGetParentWindow = {read=FOnGetParentWindow, write=FOnGetParentWindow}; __property Ucefviewsframeworkevents::TOnIsWindowModalDialogEvent OnIsWindowModalDialog = {read=FOnIsWindowModalDialog, write=FOnIsWindowModalDialog}; __property Ucefviewsframeworkevents::TOnGetInitialBoundsEvent OnGetInitialBounds = {read=FOnGetInitialBounds, write=FOnGetInitialBounds}; __property Ucefviewsframeworkevents::TOnGetInitialShowStateEvent OnGetInitialShowState = {read=FOnGetInitialShowState, write=FOnGetInitialShowState}; __property Ucefviewsframeworkevents::TOnIsFramelessEvent OnIsFrameless = {read=FOnIsFrameless, write=FOnIsFrameless}; __property Ucefviewsframeworkevents::TOnWithStandardWindowButtonsEvent OnWithStandardWindowButtons = {read=FOnWithStandardWindowButtons, write=FOnWithStandardWindowButtons}; __property Ucefviewsframeworkevents::TOnGetTitlebarHeightEvent OnGetTitlebarHeight = {read=FOnGetTitlebarHeight, write=FOnGetTitlebarHeight}; __property Ucefviewsframeworkevents::TOnAcceptsFirstMouseEvent OnAcceptsFirstMouse = {read=FOnAcceptsFirstMouse, write=FOnAcceptsFirstMouse}; __property Ucefviewsframeworkevents::TOnCanResizeEvent OnCanResize = {read=FOnCanResize, write=FOnCanResize}; __property Ucefviewsframeworkevents::TOnCanMaximizeEvent OnCanMaximize = {read=FOnCanMaximize, write=FOnCanMaximize}; __property Ucefviewsframeworkevents::TOnCanMinimizeEvent OnCanMinimize = {read=FOnCanMinimize, write=FOnCanMinimize}; __property Ucefviewsframeworkevents::TOnCanCloseEvent OnCanClose = {read=FOnCanClose, write=FOnCanClose}; __property Ucefviewsframeworkevents::TOnAcceleratorEvent OnAccelerator = {read=FOnAccelerator, write=FOnAccelerator}; __property Ucefviewsframeworkevents::TOnWindowKeyEventEvent OnKeyEvent = {read=FOnKeyEvent, write=FOnKeyEvent}; __property Ucefviewsframeworkevents::TOnThemeColorsChangedEvent OnThemeColorsChanged = {read=FOnThemeColorsChanged, write=FOnThemeColorsChanged}; __property Ucefviewsframeworkevents::TOnGetWindowRuntimeStyleEvent OnGetWindowRuntimeStyle = {read=FOnGetWindowRuntimeStyle, write=FOnGetWindowRuntimeStyle}; __property Ucefviewsframeworkevents::TOnGetLinuxWindowPropertiesEvent OnGetLinuxWindowProperties = {read=FOnGetLinuxWindowProperties, write=FOnGetLinuxWindowProperties}; public: /* TCEFViewComponent.Create */ inline __fastcall virtual TCEFWindowComponent(System::Classes::TComponent* AOwner) : Ucefpanelcomponent::TCEFPanelComponent(AOwner) { } public: /* TComponent.Destroy */ inline __fastcall virtual ~TCEFWindowComponent() { } private: void *__ICefWindowDelegateEvents; // Ucefinterfaces::ICefWindowDelegateEvents public: #if defined(MANAGED_INTERFACE_OPERATORS) // {05C19A41-E75D-459E-AD4D-C8A0CA4A49D3} operator Ucefinterfaces::_di_ICefWindowDelegateEvents() { Ucefinterfaces::_di_ICefWindowDelegateEvents intf; this->GetInterface(intf); return intf; } #else operator Ucefinterfaces::ICefWindowDelegateEvents*(void) { return (Ucefinterfaces::ICefWindowDelegateEvents*)&__ICefWindowDelegateEvents; } #endif }; //-- var, const, procedure --------------------------------------------------- } /* namespace Ucefwindowcomponent */ #if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_UCEFWINDOWCOMPONENT) using namespace Ucefwindowcomponent; #endif #pragma pack(pop) #pragma option pop #pragma delphiheader end. //-- end unit ---------------------------------------------------------------- #endif // uCEFWindowComponentHPP