DayZ Enforce
Script API
Private Member Functions | Private Attributes | List of all members
DragQueue Class Reference

DragQueue Class provide callbacks while mouse is dragging. Callback function must have exact arguments: More...

#include <tools.h>

Inheritance diagram for DragQueue:
CallQueue

Private Member Functions

void  DragQueue ()
 
void  Tick ()
  System function, don't call it. More...
 

Private Attributes

private autoptr Param3< int, int, bool >  m_mouse_params
 

Detailed Description

DragQueue Class provide callbacks while mouse is dragging. Callback function must have exact arguments:

void AnyFunctionName(int mouse_x, int mouse_y, bool is_dragging);

When mouse button is released, callback function is called one more time with is_dragging = false. Then all callbacks are automatically removed from queue.


usage:

class XYZ
{
void UpdateDrag(int mouse_x, int mouse_y, bool is_dragging);
}
...
GetGame().GetDragQueue().Call(this, "UpdateDrag"); // calls "UpdateDrag" function on "this"

Constructor & Destructor Documentation

void DragQueue::DragQueue ( )
private

References m_mouse_params.

Member Function Documentation

void DragQueue::Tick ( )
private

Member Data Documentation

private autoptr Param3<int, int, bool> DragQueue::m_mouse_params
private

Referenced by DragQueue(), and Tick().


The documentation for this class was generated from the following files:
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)