131 lines
6.5 KiB
C++
131 lines
6.5 KiB
C++
// CodeGear C++Builder
|
|
// Copyright (c) 1995, 2025 by Embarcadero Technologies, Inc.
|
|
// All rights reserved
|
|
|
|
// (DO NOT EDIT: machine generated header) 'uCEFMenuModel.pas' rev: 37.00 (Windows)
|
|
|
|
#ifndef uCEFMenuModelHPP
|
|
#define uCEFMenuModelHPP
|
|
|
|
#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 <uCEFBaseRefCounted.hpp>
|
|
#include <uCEFInterfaces.hpp>
|
|
#include <uCEFTypes.hpp>
|
|
|
|
//-- user supplied -----------------------------------------------------------
|
|
|
|
namespace Ucefmenumodel
|
|
{
|
|
//-- forward type declarations -----------------------------------------------
|
|
class DELPHICLASS TCefMenuModelRef;
|
|
//-- type declarations -------------------------------------------------------
|
|
#pragma pack(push,4)
|
|
class PASCALIMPLEMENTATION TCefMenuModelRef : public Ucefbaserefcounted::TCefBaseRefCountedRef
|
|
{
|
|
typedef Ucefbaserefcounted::TCefBaseRefCountedRef inherited;
|
|
|
|
protected:
|
|
bool __fastcall IsSubMenu();
|
|
bool __fastcall Clear();
|
|
System::NativeUInt __fastcall GetCount();
|
|
bool __fastcall AddSeparator();
|
|
bool __fastcall AddItem(int commandId, const Uceftypes::ustring text);
|
|
bool __fastcall AddCheckItem(int commandId, const Uceftypes::ustring text);
|
|
bool __fastcall AddRadioItem(int commandId, const Uceftypes::ustring text, int groupId);
|
|
Ucefinterfaces::_di_ICefMenuModel __fastcall AddSubMenu(int commandId, const Uceftypes::ustring text);
|
|
bool __fastcall InsertSeparatorAt(System::NativeUInt index);
|
|
bool __fastcall InsertItemAt(System::NativeUInt index, int commandId, const Uceftypes::ustring text);
|
|
bool __fastcall InsertCheckItemAt(System::NativeUInt index, int commandId, const Uceftypes::ustring text);
|
|
bool __fastcall InsertRadioItemAt(System::NativeUInt index, int commandId, const Uceftypes::ustring text, int groupId);
|
|
Ucefinterfaces::_di_ICefMenuModel __fastcall InsertSubMenuAt(System::NativeUInt index, int commandId, const Uceftypes::ustring text);
|
|
bool __fastcall Remove(int commandId);
|
|
bool __fastcall RemoveAt(System::NativeUInt index);
|
|
int __fastcall GetIndexOf(int commandId);
|
|
int __fastcall GetCommandIdAt(System::NativeUInt index);
|
|
bool __fastcall SetCommandIdAt(System::NativeUInt index, int commandId);
|
|
Uceftypes::ustring __fastcall GetLabel(int commandId);
|
|
Uceftypes::ustring __fastcall GetLabelAt(System::NativeUInt index);
|
|
bool __fastcall SetLabel(int commandId, const Uceftypes::ustring text);
|
|
bool __fastcall SetLabelAt(System::NativeUInt index, const Uceftypes::ustring text);
|
|
Uceftypes::TCefMenuItemType __fastcall GetType(int commandId);
|
|
Uceftypes::TCefMenuItemType __fastcall GetTypeAt(System::NativeUInt index);
|
|
int __fastcall GetGroupId(int commandId);
|
|
int __fastcall GetGroupIdAt(System::NativeUInt index);
|
|
bool __fastcall SetGroupId(int commandId, int groupId);
|
|
bool __fastcall SetGroupIdAt(System::NativeUInt index, int groupId);
|
|
Ucefinterfaces::_di_ICefMenuModel __fastcall GetSubMenu(int commandId);
|
|
Ucefinterfaces::_di_ICefMenuModel __fastcall GetSubMenuAt(System::NativeUInt index);
|
|
bool __fastcall IsVisible(int commandId);
|
|
bool __fastcall isVisibleAt(System::NativeUInt index);
|
|
bool __fastcall SetVisible(int commandId, bool visible);
|
|
bool __fastcall SetVisibleAt(System::NativeUInt index, bool visible);
|
|
bool __fastcall IsEnabled(int commandId);
|
|
bool __fastcall IsEnabledAt(System::NativeUInt index);
|
|
bool __fastcall SetEnabled(int commandId, bool enabled);
|
|
bool __fastcall SetEnabledAt(System::NativeUInt index, bool enabled);
|
|
bool __fastcall IsChecked(int commandId);
|
|
bool __fastcall IsCheckedAt(System::NativeUInt index);
|
|
bool __fastcall setChecked(int commandId, bool checked);
|
|
bool __fastcall setCheckedAt(System::NativeUInt index, bool checked);
|
|
bool __fastcall HasAccelerator(int commandId);
|
|
bool __fastcall HasAcceleratorAt(System::NativeUInt index);
|
|
bool __fastcall SetAccelerator(int commandId, int keyCode, bool shiftPressed, bool ctrlPressed, bool altPressed);
|
|
bool __fastcall SetAcceleratorAt(System::NativeUInt index, int keyCode, bool shiftPressed, bool ctrlPressed, bool altPressed);
|
|
bool __fastcall RemoveAccelerator(int commandId);
|
|
bool __fastcall RemoveAcceleratorAt(System::NativeUInt index);
|
|
bool __fastcall GetAccelerator(int commandId, /* out */ int &keyCode, /* out */ bool &shiftPressed, /* out */ bool &ctrlPressed, /* out */ bool &altPressed);
|
|
bool __fastcall GetAcceleratorAt(System::NativeUInt index, /* out */ int &keyCode, /* out */ bool &shiftPressed, /* out */ bool &ctrlPressed, /* out */ bool &altPressed);
|
|
bool __fastcall SetColor(int commandId, Uceftypes::TCefMenuColorType colorType, Uceftypes::TCefColor color);
|
|
bool __fastcall SetColorAt(int index, Uceftypes::TCefMenuColorType colorType, Uceftypes::TCefColor color);
|
|
bool __fastcall GetColor(int commandId, Uceftypes::TCefMenuColorType colorType, /* out */ Uceftypes::TCefColor &color);
|
|
bool __fastcall GetColorAt(int index, Uceftypes::TCefMenuColorType colorType, /* out */ Uceftypes::TCefColor &color);
|
|
bool __fastcall SetFontList(int commandId, const Uceftypes::ustring fontList);
|
|
bool __fastcall SetFontListAt(int index, const Uceftypes::ustring fontList);
|
|
|
|
public:
|
|
__classmethod Ucefinterfaces::_di_ICefMenuModel __fastcall UnWrap(void * data);
|
|
__classmethod Ucefinterfaces::_di_ICefMenuModel __fastcall New(const Ucefinterfaces::_di_ICefMenuModelDelegate delegate);
|
|
public:
|
|
/* TCefBaseRefCountedRef.Create */ inline __fastcall virtual TCefMenuModelRef(void * data) : Ucefbaserefcounted::TCefBaseRefCountedRef(data) { }
|
|
/* TCefBaseRefCountedRef.Destroy */ inline __fastcall virtual ~TCefMenuModelRef() { }
|
|
|
|
private:
|
|
void *__ICefMenuModel; // Ucefinterfaces::ICefMenuModel
|
|
|
|
public:
|
|
#if defined(MANAGED_INTERFACE_OPERATORS)
|
|
// {40AF19D3-8B4E-44B8-8F89-DEB5907FC495}
|
|
operator Ucefinterfaces::_di_ICefMenuModel()
|
|
{
|
|
Ucefinterfaces::_di_ICefMenuModel intf;
|
|
this->GetInterface(intf);
|
|
return intf;
|
|
}
|
|
#else
|
|
operator Ucefinterfaces::ICefMenuModel*(void) { return (Ucefinterfaces::ICefMenuModel*)&__ICefMenuModel; }
|
|
#endif
|
|
|
|
};
|
|
|
|
#pragma pack(pop)
|
|
|
|
//-- var, const, procedure ---------------------------------------------------
|
|
} /* namespace Ucefmenumodel */
|
|
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_UCEFMENUMODEL)
|
|
using namespace Ucefmenumodel;
|
|
#endif
|
|
#pragma pack(pop)
|
|
#pragma option pop
|
|
|
|
#pragma delphiheader end.
|
|
//-- end unit ----------------------------------------------------------------
|
|
#endif // uCEFMenuModelHPP
|