148 lines
6.2 KiB
C++
148 lines
6.2 KiB
C++
// CodeGear C++Builder
|
|
// Copyright (c) 1995, 2025 by Embarcadero Technologies, Inc.
|
|
// All rights reserved
|
|
|
|
// (DO NOT EDIT: machine generated header) 'uCEFMenuButtonDelegate.pas' rev: 37.00 (Windows)
|
|
|
|
#ifndef uCEFMenuButtonDelegateHPP
|
|
#define uCEFMenuButtonDelegateHPP
|
|
|
|
#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 <System.Classes.hpp>
|
|
#include <System.SysUtils.hpp>
|
|
#include <uCEFBaseRefCounted.hpp>
|
|
#include <uCEFInterfaces.hpp>
|
|
#include <uCEFTypes.hpp>
|
|
#include <uCEFButtonDelegate.hpp>
|
|
#include <uCEFViewDelegate.hpp>
|
|
|
|
//-- user supplied -----------------------------------------------------------
|
|
|
|
namespace Ucefmenubuttondelegate
|
|
{
|
|
//-- forward type declarations -----------------------------------------------
|
|
class DELPHICLASS TCefMenuButtonDelegateRef;
|
|
class DELPHICLASS TCefMenuButtonDelegateOwn;
|
|
class DELPHICLASS TCustomMenuButtonDelegate;
|
|
//-- type declarations -------------------------------------------------------
|
|
#pragma pack(push,4)
|
|
class PASCALIMPLEMENTATION TCefMenuButtonDelegateRef : public Ucefbuttondelegate::TCefButtonDelegateRef
|
|
{
|
|
typedef Ucefbuttondelegate::TCefButtonDelegateRef inherited;
|
|
|
|
protected:
|
|
void __fastcall OnMenuButtonPressed(const Ucefinterfaces::_di_ICefMenuButton menu_button, const Uceftypes::TCefPoint &screen_point, const Ucefinterfaces::_di_ICefMenuButtonPressedLock button_pressed_lock);
|
|
|
|
public:
|
|
__classmethod Ucefinterfaces::_di_ICefMenuButtonDelegate __fastcall UnWrap(void * data);
|
|
public:
|
|
/* TCefBaseRefCountedRef.Create */ inline __fastcall virtual TCefMenuButtonDelegateRef(void * data) : Ucefbuttondelegate::TCefButtonDelegateRef(data) { }
|
|
/* TCefBaseRefCountedRef.Destroy */ inline __fastcall virtual ~TCefMenuButtonDelegateRef() { }
|
|
|
|
private:
|
|
void *__ICefMenuButtonDelegate; // Ucefinterfaces::ICefMenuButtonDelegate
|
|
|
|
public:
|
|
#if defined(MANAGED_INTERFACE_OPERATORS)
|
|
// {D0E89A75-463A-4766-8701-BD8D24B11E9F}
|
|
operator Ucefinterfaces::_di_ICefMenuButtonDelegate()
|
|
{
|
|
Ucefinterfaces::_di_ICefMenuButtonDelegate intf;
|
|
this->GetInterface(intf);
|
|
return intf;
|
|
}
|
|
#else
|
|
operator Ucefinterfaces::ICefMenuButtonDelegate*(void) { return (Ucefinterfaces::ICefMenuButtonDelegate*)&__ICefMenuButtonDelegate; }
|
|
#endif
|
|
|
|
};
|
|
|
|
#pragma pack(pop)
|
|
|
|
#pragma pack(push,4)
|
|
class PASCALIMPLEMENTATION TCefMenuButtonDelegateOwn : public Ucefbuttondelegate::TCefButtonDelegateOwn
|
|
{
|
|
typedef Ucefbuttondelegate::TCefButtonDelegateOwn inherited;
|
|
|
|
protected:
|
|
virtual void __fastcall OnMenuButtonPressed(const Ucefinterfaces::_di_ICefMenuButton menu_button, const Uceftypes::TCefPoint &screen_point, const Ucefinterfaces::_di_ICefMenuButtonPressedLock button_pressed_lock);
|
|
virtual void __fastcall InitializeCEFMethods();
|
|
|
|
public:
|
|
__fastcall virtual TCefMenuButtonDelegateOwn();
|
|
public:
|
|
/* TCefBaseRefCountedOwn.CreateData */ inline __fastcall virtual TCefMenuButtonDelegateOwn(unsigned size, bool owned) : Ucefbuttondelegate::TCefButtonDelegateOwn(size, owned) { }
|
|
/* TCefBaseRefCountedOwn.Destroy */ inline __fastcall virtual ~TCefMenuButtonDelegateOwn() { }
|
|
|
|
private:
|
|
void *__ICefMenuButtonDelegate; // Ucefinterfaces::ICefMenuButtonDelegate
|
|
|
|
public:
|
|
#if defined(MANAGED_INTERFACE_OPERATORS)
|
|
// {D0E89A75-463A-4766-8701-BD8D24B11E9F}
|
|
operator Ucefinterfaces::_di_ICefMenuButtonDelegate()
|
|
{
|
|
Ucefinterfaces::_di_ICefMenuButtonDelegate intf;
|
|
this->GetInterface(intf);
|
|
return intf;
|
|
}
|
|
#else
|
|
operator Ucefinterfaces::ICefMenuButtonDelegate*(void) { return (Ucefinterfaces::ICefMenuButtonDelegate*)&__ICefMenuButtonDelegate; }
|
|
#endif
|
|
|
|
};
|
|
|
|
#pragma pack(pop)
|
|
|
|
#pragma pack(push,4)
|
|
class PASCALIMPLEMENTATION TCustomMenuButtonDelegate : public TCefMenuButtonDelegateOwn
|
|
{
|
|
typedef TCefMenuButtonDelegateOwn inherited;
|
|
|
|
protected:
|
|
void *FEvents;
|
|
virtual void __fastcall OnGetPreferredSize(const Ucefinterfaces::_di_ICefView view, Uceftypes::TCefSize &aResult);
|
|
virtual void __fastcall OnGetMinimumSize(const Ucefinterfaces::_di_ICefView view, Uceftypes::TCefSize &aResult);
|
|
virtual void __fastcall OnGetMaximumSize(const Ucefinterfaces::_di_ICefView view, Uceftypes::TCefSize &aResult);
|
|
virtual void __fastcall OnGetHeightForWidth(const Ucefinterfaces::_di_ICefView view, int width, int &aResult);
|
|
virtual void __fastcall OnParentViewChanged(const Ucefinterfaces::_di_ICefView view, bool added, const Ucefinterfaces::_di_ICefView parent);
|
|
virtual void __fastcall OnChildViewChanged(const Ucefinterfaces::_di_ICefView view, bool added, const Ucefinterfaces::_di_ICefView child);
|
|
virtual void __fastcall OnWindowChanged(const Ucefinterfaces::_di_ICefView view, bool added);
|
|
virtual void __fastcall OnLayoutChanged(const Ucefinterfaces::_di_ICefView view, const Uceftypes::TCefRect &new_bounds);
|
|
virtual void __fastcall OnFocus(const Ucefinterfaces::_di_ICefView view);
|
|
virtual void __fastcall OnBlur(const Ucefinterfaces::_di_ICefView view);
|
|
virtual void __fastcall OnThemeChanged(const Ucefinterfaces::_di_ICefView view);
|
|
virtual void __fastcall OnButtonPressed(const Ucefinterfaces::_di_ICefButton button);
|
|
virtual void __fastcall OnButtonStateChanged(const Ucefinterfaces::_di_ICefButton button);
|
|
virtual void __fastcall OnMenuButtonPressed(const Ucefinterfaces::_di_ICefMenuButton menu_button, const Uceftypes::TCefPoint &screen_point, const Ucefinterfaces::_di_ICefMenuButtonPressedLock button_pressed_lock);
|
|
|
|
public:
|
|
__fastcall TCustomMenuButtonDelegate(const Ucefinterfaces::_di_ICefMenuButtonDelegateEvents events);
|
|
public:
|
|
/* TCefBaseRefCountedOwn.CreateData */ inline __fastcall virtual TCustomMenuButtonDelegate(unsigned size, bool owned) : TCefMenuButtonDelegateOwn(size, owned) { }
|
|
/* TCefBaseRefCountedOwn.Destroy */ inline __fastcall virtual ~TCustomMenuButtonDelegate() { }
|
|
|
|
};
|
|
|
|
#pragma pack(pop)
|
|
|
|
//-- var, const, procedure ---------------------------------------------------
|
|
} /* namespace Ucefmenubuttondelegate */
|
|
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_UCEFMENUBUTTONDELEGATE)
|
|
using namespace Ucefmenubuttondelegate;
|
|
#endif
|
|
#pragma pack(pop)
|
|
#pragma option pop
|
|
|
|
#pragma delphiheader end.
|
|
//-- end unit ----------------------------------------------------------------
|
|
#endif // uCEFMenuButtonDelegateHPP
|