Files
common/CEF4Delphi/win32/hpps/uCEFTextfieldComponent.hpp
2026-06-12 23:18:12 +08:00

135 lines
6.3 KiB
C++

// CodeGear C++Builder
// Copyright (c) 1995, 2025 by Embarcadero Technologies, Inc.
// All rights reserved
// (DO NOT EDIT: machine generated header) 'uCEFTextfieldComponent.pas' rev: 37.00 (Windows)
#ifndef uCEFTextfieldComponentHPP
#define uCEFTextfieldComponentHPP
#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 <uCEFConstants.hpp>
#include <uCEFViewsFrameworkEvents.hpp>
#include <uCEFViewComponent.hpp>
//-- user supplied -----------------------------------------------------------
namespace Uceftextfieldcomponent
{
//-- forward type declarations -----------------------------------------------
class DELPHICLASS TCEFTextfieldComponent;
//-- type declarations -------------------------------------------------------
class PASCALIMPLEMENTATION TCEFTextfieldComponent : public Ucefviewcomponent::TCEFViewComponent
{
typedef Ucefviewcomponent::TCEFViewComponent inherited;
protected:
Ucefinterfaces::_di_ICefTextfield FTextfield;
Ucefviewsframeworkevents::TOnTextfieldKeyEventEvent FOnTextfieldKeyEvent;
Ucefviewsframeworkevents::TOnAfterUserActionEvent FOnAfterUserAction;
virtual void __fastcall DestroyView();
virtual void __fastcall Initialize();
virtual bool __fastcall GetInitialized();
virtual Ucefinterfaces::_di_ICefView __fastcall GetAsView();
virtual Ucefinterfaces::_di_ICefTextfield __fastcall GetAsTextfield();
bool __fastcall GetIsPasswordInput();
bool __fastcall GetIsReadOnly();
Uceftypes::ustring __fastcall GetText();
bool __fastcall GetHasSelection();
Uceftypes::ustring __fastcall GetSelectedText();
Uceftypes::TCefRange __fastcall GetSelectedRange();
System::NativeUInt __fastcall GetCursorPosition();
Uceftypes::TCefColor __fastcall GetTextColor();
Uceftypes::TCefColor __fastcall GetSelectionTextColor();
Uceftypes::TCefColor __fastcall GetSelectionBackgroundColor();
Uceftypes::ustring __fastcall GetPlaceholderText();
void __fastcall SetPasswordInput(bool password_input);
void __fastcall SetReadOnly(bool read_only);
void __fastcall SetText(const Uceftypes::ustring text_);
void __fastcall SetTextColor(Uceftypes::TCefColor color);
void __fastcall SetSelectionTextColor(Uceftypes::TCefColor color);
void __fastcall SetSelectionBackgroundColor(Uceftypes::TCefColor color);
void __fastcall SetPlaceholderText(const Uceftypes::ustring text_);
void __fastcall SetSelectedRange(const Uceftypes::TCefRange &range);
void __fastcall doOnKeyEvent(const Ucefinterfaces::_di_ICefTextfield textfield, const Uceftypes::TCefKeyEvent &event, bool &aResult);
void __fastcall doOnAfterUserAction(const Ucefinterfaces::_di_ICefTextfield textfield);
virtual void __fastcall doCreateCustomView();
public:
void __fastcall CreateTextField();
void __fastcall AppendText(const Uceftypes::ustring text_);
void __fastcall InsertOrReplaceText(const Uceftypes::ustring text_);
void __fastcall SelectAll(bool reversed);
void __fastcall ClearSelection();
void __fastcall SetFontList(const Uceftypes::ustring font_list);
void __fastcall ApplyTextColor(Uceftypes::TCefColor color, const Uceftypes::TCefRange &range);
void __fastcall ApplyTextStyle(Uceftypes::TCefTextStyle style, bool add, const Uceftypes::TCefRange &range);
bool __fastcall IsCommandEnabled(Uceftypes::TCefTextFieldCommands command_id);
void __fastcall ExecuteCommand(Uceftypes::TCefTextFieldCommands command_id);
void __fastcall ClearEditHistory();
void __fastcall SetAccessibleName(const Uceftypes::ustring name_);
void __fastcall SetPlaceholderTextColor(Uceftypes::TCefColor color);
__property bool PasswordInput = {read=GetIsPasswordInput, write=SetPasswordInput, nodefault};
__property bool ReadOnly = {read=GetIsReadOnly, write=SetReadOnly, nodefault};
__property Uceftypes::ustring Text = {read=GetText, write=SetText};
__property Uceftypes::ustring SelectedText = {read=GetSelectedText};
__property Uceftypes::TCefRange SelectedRange = {read=GetSelectedRange, write=SetSelectedRange};
__property System::NativeUInt CursorPosition = {read=GetCursorPosition, nodefault};
__property Uceftypes::TCefColor TextColor = {read=GetTextColor, write=SetTextColor, nodefault};
__property Uceftypes::TCefColor SelectionTextColor = {read=GetSelectionTextColor, write=SetSelectionTextColor, nodefault};
__property Uceftypes::TCefColor SelectionBackgroundColor = {read=GetSelectionBackgroundColor, write=SetSelectionBackgroundColor, nodefault};
__property Uceftypes::ustring PlaceholderText = {read=GetPlaceholderText, write=SetPlaceholderText};
__property bool HasSelection = {read=GetHasSelection, nodefault};
__published:
__property Ucefviewsframeworkevents::TOnTextfieldKeyEventEvent OnTextfieldKeyEvent = {read=FOnTextfieldKeyEvent, write=FOnTextfieldKeyEvent};
__property Ucefviewsframeworkevents::TOnAfterUserActionEvent OnAfterUserAction = {read=FOnAfterUserAction, write=FOnAfterUserAction};
public:
/* TCEFViewComponent.Create */ inline __fastcall virtual TCEFTextfieldComponent(System::Classes::TComponent* AOwner) : Ucefviewcomponent::TCEFViewComponent(AOwner) { }
public:
/* TComponent.Destroy */ inline __fastcall virtual ~TCEFTextfieldComponent() { }
private:
void *__ICefTextfieldDelegateEvents; // Ucefinterfaces::ICefTextfieldDelegateEvents
public:
#if defined(MANAGED_INTERFACE_OPERATORS)
// {682480E0-C786-4E65-B950-4FF2B13B97B9}
operator Ucefinterfaces::_di_ICefTextfieldDelegateEvents()
{
Ucefinterfaces::_di_ICefTextfieldDelegateEvents intf;
this->GetInterface(intf);
return intf;
}
#else
operator Ucefinterfaces::ICefTextfieldDelegateEvents*(void) { return (Ucefinterfaces::ICefTextfieldDelegateEvents*)&__ICefTextfieldDelegateEvents; }
#endif
};
//-- var, const, procedure ---------------------------------------------------
} /* namespace Uceftextfieldcomponent */
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_UCEFTEXTFIELDCOMPONENT)
using namespace Uceftextfieldcomponent;
#endif
#pragma pack(pop)
#pragma option pop
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // uCEFTextfieldComponentHPP