Urho.UrhoObject Class

Base class for objects with type identification, subsystem access and event sending/receiving capability.

See Also: UrhoObject


public class UrhoObject : RefCounted


Namespace: Urho
Assembly: Urho (in Urho.dll)
Assembly Versions:

The members of Urho.UrhoObject are listed below.

See Also: RefCounted

Public Constructors

Constructs a new instance of Urho.UrhoObject, given a raw pointer to an unmanaged object

Protected Constructors

Empty constructor, chain to this constructor when you provide your own constructor that sets the handle field.

Public Properties

CategoryString. Return object category. Categories are (optionally) registered along with the object factory. Return an empty string if the object category is not registered.
ContextContext. Return execution context.
EventHandlerIntPtr. Return active event handler. Null outside event handling.
EventSenderUrhoObject. Return active event sender. Null outside event handling.
TypeStringHash. Urho's type system type.
TypeInfoTypeInfo*. Return type info.
TypeInfoStaticTypeInfo*. Return type info static.
TypeNameString. Urho's low-level type name.

Public Methods

GetSubsystem(StringHash) : UrhoObject
Return subsystem by type.
HasEventHandlers() : Boolean
Return whether has subscribed to any event.
HasSubscribedToEvent(StringHash) : Boolean
Return whether has subscribed to an event without specific sender.
HasSubscribedToEvent(UrhoObject, StringHash) : Boolean
Return whether has subscribed to a specific sender's event.
IsInstanceOf(StringHash) : Boolean
IsInstanceOf(TypeInfo*) : Boolean
Send event to all subscribers.
SetGlobalVar(StringHash, Int32)
SetGlobalVar(StringHash, Single)
SetGlobalVar(StringHash, String)
SetGlobalVar(StringHash, Color)
SetGlobalVar(StringHash, IntRect)
SetGlobalVar(StringHash, IntVector2)
SetGlobalVar(StringHash, Matrix3x4)
SetGlobalVar(StringHash, Matrix4)
SetGlobalVar(StringHash, Quaternion)
SetGlobalVar(StringHash, Vector2)
SetGlobalVar(StringHash, Vector3)
SetGlobalVar(StringHash, Vector4)
SubscribeToEvent(StringHash, IntPtr)
Subscribe to an event that can be sent by any sender.
SubscribeToEvent(UrhoObject, StringHash, IntPtr)
Subscribe to a specific sender's event.
Unsubscribe from all events.
Unsubscribe from an event.
UnsubscribeFromEvent(UrhoObject, StringHash)
Unsubscribe from a specific sender's event.
Unsubscribe from a specific sender's events.