Mouse event

Top  Previous  Next

The event enters if the Digitizer was moved or the mouse was moved in the graphics window by Moskito. The procedure receives complete sign surroundings, can draw objects in the window. All registered procedures are explained successively.

#define EVENT_ART_MOUSEMOVE 0

int DLLENTRY IOregisterEvent (int art, void *proc, void *userdata, int doRegister);

Parametre

pipes (PIOPIPES) [IN]

The trading pipes gives the issue canal.

art (int) [IN]

In this case must have the value EVENT_ART_MOUSEMOVE (0).

proc (void *) [IN]

This procedure is called by entry of the event. The type void* is only one deputy. The procedure has to go as

void DLLENTRY event_moveProc (int art, PZEICHENDATEN data, short int x, short int y, void *userdata)

be declared.

userdata (void *) [IN]

This value will hand over uninterpreted to the ActionProcedure.

doRegister (int) [IN]

Will hand over here FALSE (0), the before registered routine is removed. The affected routine is identified on the basis of Procedureadresse and parametre userdata.

Becomes here TRUE (! =0) hand over, the routine with in the list of the events is taken up.

Parametre of the ActionProcedure

art (int) [IN]

Always EVENT_ART_MOUSEMOVE.

data (PZEICHENDATEN) [IN]

Settings for spending of graphics. The data block may be changed. The issue procedures are so given that an issue occurs temporarily in the graphics window.

x (short int) [IN]

y (short int) [IN]

Real screen co-ordinates. These are also put down in data.

userdata (void *) [IN]

The value was handed over while registering as userdata.