Example #1
0
 /// <summary>
 /// Register callback to respond to draw events.
 /// </summary>
 public void OnValueChange(System.Action <UIElement> callback)
 {
     _onValueChangeCallback = callback;
     _ref_onValueChange     = _onValueChange;
     _BonEngineBind.BON_UIElement_OnValueChange(_handle, _ref_onValueChange);
 }
Example #2
0
 /// <summary>
 /// Register callback to respond to draw events.
 /// </summary>
 public void OnDraw(System.Action <UIElement> callback)
 {
     _onDrawCallback = callback;
     _ref_onDraw     = _onDraw;
     _BonEngineBind.BON_UIElement_OnDraw(_handle, _ref_onDraw);
 }
Example #3
0
 /// <summary>
 /// Register callback to respond to mouse enter events.
 /// </summary>
 public void OnMouseEnter(System.Action <UIElement> callback)
 {
     _onMouseEnterCallback = callback;
     _ref_onMouseEnter     = _onMouseEnter;
     _BonEngineBind.BON_UIElement_OnMouseEnter(_handle, _ref_onMouseEnter);
 }
Example #4
0
 /// <summary>
 /// Register callback to respond to mouse leave events.
 /// </summary>
 public void OnMouseLeave(System.Action <UIElement> callback)
 {
     _onMouseLeaveCallback = callback;
     _ref_onMouseLeave     = _onMouseLeave;
     _BonEngineBind.BON_UIElement_OnMouseLeave(_handle, _ref_onMouseLeave);
 }
Example #5
0
 /// <summary>
 /// Register callback to respond to mouse released events.
 /// </summary>
 public void OnMouseReleased(System.Action <UIElement> callback)
 {
     _onMouseReleasedCallback = callback;
     _ref_onMouseReleased     = _onMouseReleased;
     _BonEngineBind.BON_UIElement_OnMouseReleased(_handle, _ref_onMouseReleased);
 }