예제 #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);
 }
예제 #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);
 }
예제 #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);
 }
예제 #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);
 }
예제 #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);
 }