Urho.UrhoObject Class

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

See Also: UrhoObject

Syntax

public class UrhoObject : RefCounted

Requirements

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

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

[read-only]
CategoryString. Return object category. Categories are (optionally) registered along with the object factory. Return an empty string if the object category is not registered.
[read-only]
ContextContext. Return execution context.
[read-only]
EventHandlerIntPtr. Return active event handler. Null outside event handling.
[read-only]
EventSenderUrhoObject. Return active event sender. Null outside event handling.
[read-only]
TypeStringHash. Urho's type system type.
[read-only]
TypeInfoTypeInfo*. Return type info.
[read-only]
static
TypeInfoStaticTypeInfo*. Return type info static.
[read-only]
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
SendEvent(StringHash)
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.
UnsubscribeFromAllEvents()
Unsubscribe from all events.
UnsubscribeFromEvent(StringHash)
Unsubscribe from an event.
UnsubscribeFromEvent(UrhoObject, StringHash)
Unsubscribe from a specific sender's event.
UnsubscribeFromEvents(UrhoObject)
Unsubscribe from a specific sender's events.