Object

Qualified name: delphifmx.Object

class Object

Bases: object

TObject is the ultimate ancestor of all objects and components. TObject encapsulates fundamental behavior common to objects by introducing methods that:

Create, maintain, and destroy instances of the object by allocating, initializing, and freeing required memory. Respond when object instances are created or destroyed. Return class-type and instance information on an object and runtime type information (RTTI) about its published properties. Support message handling. Support interfaces implemented by the object. Use TObject as an immediate base class when declaring simple objects that do not need to persist (are not saved and reloaded) and that do not need to be assigned to other objects. Much of the capability of objects is established by methods that TObject introduces. Many of these methods are used internally by IDEs and are not intended for users to call directly. Others are overridden in descendant objects that have more complex behavior. Although TObject is the based object of a component framework, not all objects are components. All component classes descend from TComponent.

Note: TObject is never directly instantiated. Although it does not use programming language features that prevent instantiation, TObject is an abstract class.

Methods

AfterConstruction

TObject.AfterConstruction()

BeforeDestruction

TObject.BeforeDestruction()

CPP_ABI_1

TObject.CPP_ABI_1()

CPP_ABI_2

TObject.CPP_ABI_2()

CPP_ABI_3

TObject.CPP_ABI_3()

ClassInfo

TObject.ClassInfo() -> Pointer

ClassNameIs

TObject.ClassNameIs(Name: str) -> bool

ClassParent

TObject.ClassParent() -> Class

ClassType

TObject.ClassType() -> Class

CleanupInstance

TObject.CleanupInstance()

DefaultHandler

TObject.DefaultHandler(Message) -> None

Dispatch

TObject.Dispatch(Message) -> None

DisposeOf

TObject.DisposeOf()

Equals

TObject.Equals(Obj: Object) -> bool

FieldAddress

TObject.FieldAddress(Name: str) -> Pointer

Free

TObject.Free() Frees the Wrapped Delphi Object

FreeInstance

TObject.FreeInstance()

GetHashCode

TObject.GetHashCode() -> Integer

GetInterface

TObject.GetInterface(IID: GUID, Obj) -> bool

GetInterfaceEntry

TObject.GetInterfaceEntry(IID: GUID) -> PInterfaceEntry

GetInterfaceTable

TObject.GetInterfaceTable() -> PInterfaceable

InheritsFrom

TObject.InheritsFrom(ClassName) Returns True if Delphi Object is or inherits from ClassName

InitInstance

TObject.InitInstance(Instance: Pointer) -> Object

InstanceSize

TObject.InstanceSize() -> Integer

MethodAddress

TObject.MethodAddress(Name: str) -> Pointer

MethodName

TObject.MethodName(Address: Pointer) -> str

NewInstance

TObject.NewInstance() -> Object

QualifiedClassName

TObject.QualifiedClassName() -> string

SafeCallException

TObject.SafeCallException(ExceptObject: Object, ExceptAddr: Pointer) -> int

SetProps

TObject.SetProps(prop1=val1, prop2=val2...) Sets several properties in one call

ToList

TStrings.ToList() If the object is a container (TStrings, TComponent...), it returns the content of the sequence as a Python list object.

ToString

TObject.ToString() -> string

ToTuple

TStrings.ToTuple() If the object is a container (TStrings, TComponent...), it returns the content of the sequence as a Python tuple object.

UnitName

TObject.UnitName() -> string

UnitScope

TObject.UnitScope() -> string

Attributes

ClassName

Returns the TObject.ClassName

AfterConstruction()
BeforeDestruction()
CPP_ABI_1()
CPP_ABI_2()
CPP_ABI_3()
classmethod ClassInfo() Pointer
ClassName

Returns the TObject.ClassName

classmethod ClassNameIs(Name: str) bool
classmethod ClassParent() Class
ClassType() Class
CleanupInstance()
DefaultHandler(Message) None
Dispatch(Message) None
DisposeOf()
Equals(Obj: Object) bool
FieldAddress(Name: str) Pointer
Free()

Frees the Wrapped Delphi Object

FreeInstance()
GetHashCode() Integer
GetInterface(IID: GUID, Obj) bool
classmethod GetInterfaceEntry(IID: GUID) PInterfaceEntry
classmethod GetInterfaceTable() PInterfaceable
InheritsFrom(ClassName)

Returns True if Delphi Object is or inherits from ClassName

classmethod InitInstance(Instance: Pointer) Object
classmethod InstanceSize() Integer
classmethod MethodAddress(Name: str) Pointer
classmethod MethodName(Address: Pointer) str
classmethod NewInstance() Object
classmethod QualifiedClassName() string
SafeCallException(ExceptObject: Object, ExceptAddr: Pointer) int
SetProps(prop1=val1, prop2=val2...)

Sets several properties in one call

ToList()

If the object is a container (TStrings, TComponent…), it returns the content of the sequence as a Python list object.

ToString() string
ToTuple()

If the object is a container (TStrings, TComponent…), it returns the content of the sequence as a Python tuple object.

classmethod UnitName() string
classmethod UnitScope() string