// CodeGear C++Builder // Copyright (c) 1995, 2025 by Embarcadero Technologies, Inc. // All rights reserved // (DO NOT EDIT: machine generated header) 'uCEFMenuButtonComponent.pas' rev: 37.00 (Windows) #ifndef uCEFMenuButtonComponentHPP #define uCEFMenuButtonComponentHPP #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 #include //-- user supplied ----------------------------------------------------------- namespace Ucefmenubuttoncomponent { //-- forward type declarations ----------------------------------------------- class DELPHICLASS TCEFMenuButtonComponent; //-- type declarations ------------------------------------------------------- class PASCALIMPLEMENTATION TCEFMenuButtonComponent : public Uceflabelbuttoncomponent::TCEFLabelButtonComponent { typedef Uceflabelbuttoncomponent::TCEFLabelButtonComponent inherited; protected: Ucefinterfaces::_di_ICefMenuButton FMenuButton; Ucefviewsframeworkevents::TOnMenuButtonPressedEvent FOnMenuButtonPressed; virtual void __fastcall DestroyView(); virtual void __fastcall Initialize(); virtual bool __fastcall GetInitialized(); virtual Ucefinterfaces::_di_ICefView __fastcall GetAsView(); virtual Ucefinterfaces::_di_ICefButton __fastcall GetAsButton(); virtual Ucefinterfaces::_di_ICefLabelButton __fastcall GetAsLabelButton(); virtual Ucefinterfaces::_di_ICefMenuButton __fastcall GetAsMenuButton(); void __fastcall doOnMenuButtonPressed(const Ucefinterfaces::_di_ICefMenuButton menu_button, const Uceftypes::TCefPoint &screen_point, const Ucefinterfaces::_di_ICefMenuButtonPressedLock button_pressed_lock); virtual void __fastcall doCreateCustomView(); public: void __fastcall CreateMenuButton(const Uceftypes::ustring aText); void __fastcall ShowMenu(const Ucefinterfaces::_di_ICefMenuModel menu_model, const Uceftypes::TCefPoint &screen_point, Uceftypes::TCefMenuAnchorPosition anchor_position); void __fastcall TriggerMenu(); __published: __property Ucefviewsframeworkevents::TOnMenuButtonPressedEvent OnMenuButtonPressed = {read=FOnMenuButtonPressed, write=FOnMenuButtonPressed}; public: /* TCEFViewComponent.Create */ inline __fastcall virtual TCEFMenuButtonComponent(System::Classes::TComponent* AOwner) : Uceflabelbuttoncomponent::TCEFLabelButtonComponent(AOwner) { } public: /* TComponent.Destroy */ inline __fastcall virtual ~TCEFMenuButtonComponent() { } private: void *__ICefMenuButtonDelegateEvents; // Ucefinterfaces::ICefMenuButtonDelegateEvents public: #if defined(MANAGED_INTERFACE_OPERATORS) // {DA36DD60-7609-4576-BB8E-6A55FD48C680} operator Ucefinterfaces::_di_ICefMenuButtonDelegateEvents() { Ucefinterfaces::_di_ICefMenuButtonDelegateEvents intf; this->GetInterface(intf); return intf; } #else operator Ucefinterfaces::ICefMenuButtonDelegateEvents*(void) { return (Ucefinterfaces::ICefMenuButtonDelegateEvents*)&__ICefMenuButtonDelegateEvents; } #endif }; //-- var, const, procedure --------------------------------------------------- } /* namespace Ucefmenubuttoncomponent */ #if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_UCEFMENUBUTTONCOMPONENT) using namespace Ucefmenubuttoncomponent; #endif #pragma pack(pop) #pragma option pop #pragma delphiheader end. //-- end unit ---------------------------------------------------------------- #endif // uCEFMenuButtonComponentHPP