Class Pickable
Picking event handler for rendering. Note that it has to be disposed manually or the object occurs memory leak.
public class Pickable : IGetPickable, IDisposable
- Inheritance
-
Pickable
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
Pickable()
Ctor.
public Pickable()
Fields
mark
Internal only.
protected picking_mark_t* mark
Field Value
Properties
Pickables
public static ConcurrentDictionary<Pickable, Pickable> Pickables { get; }
Property Value
Remarks
Design Concern: Substitude of ConcurrentSet.
PickingID
ID of picking event.
public int PickingID { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Dispose(bool)
protected virtual void Dispose(bool disposing)
Parameters
disposingbool
~Pickable()
protected ~Pickable()
GetPickable()
Get Pickable
public Pickable GetPickable()
Returns
- Pickable
pickable
OnKeyDown(key_event_t, DispEngine)
Behavior on key down.
public virtual void OnKeyDown(key_event_t e, DispEngine dispEngine)
Parameters
ekey_event_tevent
dispEngineDispEnginedisplay engine
OnKeyUp(key_event_t, DispEngine)
Behavior on key up
public virtual void OnKeyUp(key_event_t e, DispEngine dispEngine)
Parameters
ekey_event_tevent
dispEngineDispEnginedisplay engine
OnMouseDown(mouse_button_event_t, DispEngine)
Behavior on mouse down
public virtual void OnMouseDown(mouse_button_event_t e, DispEngine dispEngine)
Parameters
emouse_button_event_tevent
dispEngineDispEnginedisplay engine
OnMouseEnter(ui_event_type, DispEngine)
Behavior on mouse enter
public virtual void OnMouseEnter(ui_event_type e, DispEngine dispEngine)
Parameters
eui_event_typeevent type
dispEngineDispEnginedisplay engine
OnMouseLeave(ui_event_type, DispEngine)
Behavior on mouse leave
public virtual void OnMouseLeave(ui_event_type e, DispEngine dispEngine)
Parameters
eui_event_typeevent type
dispEngineDispEnginedisplay engine
OnMouseMove(mouse_move_event_t, DispEngine)
Behavior on mouse move
public virtual void OnMouseMove(mouse_move_event_t e, DispEngine dispEngine)
Parameters
emouse_move_event_tevent
dispEngineDispEnginedisplay engine
OnMouseUp(mouse_button_event_t, DispEngine)
Behavior on mouse up
public virtual void OnMouseUp(mouse_button_event_t e, DispEngine dispEngine)
Parameters
emouse_button_event_tevent
dispEngineDispEnginedisplay engine
OnMouseWheel(mouse_wheel_event_t, DispEngine)
Behavior on mouse wheel
public virtual void OnMouseWheel(mouse_wheel_event_t e, DispEngine dispEngine)
Parameters
emouse_wheel_event_tevent
dispEngineDispEnginedisplay engine