typedef struct tagVECTOREVENT
{
L_INT nSize;
L_UINT uType;
[VECTOR_EVENT_STATUS](vector-event-status.md) Status;
L_INT nErrorCode;
pVECTOROBJECT pObject;
L_VOID *pObjectDesc;
pVECTORLAYER pLayer;
pVECTORLAYERDESC pLayerDesc;
pVECTORGROUP pGroup;
pVECTORGROUPDESC pGroupDesc;
pVECTORPOINT pPoint1;
pVECTORPOINT pPoint2;
L_UINT32 dwFlags;
L_VOID *pUserData;
} VECTOREVENT, * pVECTOREVENT;
The VECTOREVENT structure holds information about an event.
Member | Description | |
nSize | Size of this structure. Used for versioning. | |
uType | The type of event that was generated. For a list of possible values, refer to the Comments section below. | |
Status | Status of the event. Possible values are: | |
Value | Meaning | |
VECTOR_EVENT_STATUS_BEFORE | The action that generated the event is about to be taken. | |
VECTOR_EVENT_STATUS_AFTER | The action that generated the event was just completed. | |
nErrorCode | Error code associated with the event. For a list of possible values, refer to the Return Codes. | |
pObject | Pointer to the vector object associated with the event. This structure member is only valid for certain event types. For a list of the events for which this member is valid, refer to the table in the Comments section below. | |
pObjectDesc | Pointer to an object descriptor. This structure is only valid for certain event types. For a list of the events for which this member is valid, refer to the table in the Comments section below. | |
pLayer | Pointer to the vector layer associated with the event. This structure member is only valid for certain event types. For a list of the events for which this member is valid, refer to the table in the Comments section below. | |
pLayerDesc | Pointer to a layer descriptor. This structure is only valid for certain event types. For a list of the events for which this member is valid, refer to the table in the Comments section below. | |
pGroup | Pointer to the vector group associated with the event. This structure member is only valid for certain event types. For a list of the events for which this member is valid, refer to the table in the Comments section below. | |
pGroupDesc | Pointer to a group descriptor. This structure is only valid for certain event types. For a list of the events for which this member is valid, refer to the table in the Comments section below. | |
pPoint1 | Pointer to a general point 1. This structure is only valid for certain event types. For a list of the events for which this member is valid, refer to the table in the Comments section below. | |
pPoint2 | Pointer to a general point 2. This structure is only valid for certain event types. For a list of the events for which this member is valid, refer to the table in the Comments section below. | |
dwFlags | Flag that provides processing information. This member is only valid for certain event types. For a list of the events for which this member is valid, refer to the table in the Comments section below. | |
pUserData | User defined data. |
The uType member will correspond to the vector function called, for example if you call L_VecSetObject, an event of type VECTOR_EVENT_SETOBJECT will be fired.
The following table lists all the defined event types plus values for the structure variables, when defined. Not all structure members are defined for every event. For example, the Object pObject member is not defined for a VECTOR_EVENT_FREE event, but it is defined for the VECTOR_EVENT_TRANSLATION event. The pObject structure member is the same as the L_VecSetTranslation function.
Event (uType) |
Function |
pObject |
pObjectDesc |
pLayer |
pLayerDesc |
pGroup |
pGroupDesc |
pPoint1 |
pPoint2 |
dwFlags |
VECTOR_EVENT_FREE |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
|
VECTOR_EVENT_EMPTY |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
|
VECTOR_EVENT_COPY |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
dwFlags |
|
VECTOR_EVENT_VIEWPORT |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
|
VECTOR_EVENT_PAN |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
|
VECTOR_EVENT_LOCKED |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
bLocked |
|
VECTOR_EVENT_BACKGROUND |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Color |
|
VECTOR_EVENT_PALETTE |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
|
VECTOR_EVENT_VIEWMODE |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
nViewMode |
|
VECTOR_EVENT_TRANSLATION |
pObject |
Not used |
Not used |
Not used |
Not used |
Not used |
pTranslation |
Not used |
dwFlags |
|
VECTOR_EVENT_ROTATION |
pObject |
Not used |
Not used |
Not used |
Not used |
Not used |
pRotation |
pOrigin |
dwFlags |
|
VECTOR_EVENT_SCALE |
pObject |
Not used |
Not used |
Not used |
Not used |
Not used |
pScale |
pOrigin |
dwFlags |
|
VECTOR_EVENT_ORIGIN |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
pOrigin |
Not used |
Not used |
|
VECTOR_EVENT_APPLYTRANSFORMATION |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
|
VECTOR_EVENT_BINDVERTICESMODE |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
nBindMode |
|
VECTOR_EVENT_PARALLELOGRAM |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
pMin |
pMax |
Not used |
|
VECTOR_EVENT_CAMERA |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
|
VECTOR_EVENT_METAFILE |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
|
VECTOR_EVENT_ATTACHTOWINDOW |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
dwFlags |
|
VECTOR_EVENT_MARKER |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
|
VECTOR_EVENT_HITTEST |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
|
VECTOR_EVENT_POLYGONMODE |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
nPolygonMode |
|
VECTOR_EVENT_COPYFROMCLIPBOARD |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
dwFlags |
|
VECTOR_EVENT_ADDLAYER |
Not used |
Not used |
pLayer |
pLayerDesc |
Not used |
Not used |
Not used |
Not used |
dwFlags |
|
VECTOR_EVENT_DELETELAYER |
Not used |
Not used |
pLayer |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
|
VECTOR_EVENT_EMPTYLAYER |
Not used |
Not used |
pLayer |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
|
VECTOR_EVENT_COPYLAYER |
Not used |
Not used |
pLayerDst |
Not used |
Not used |
Not used |
Not used |
Not used |
dwFlags |
|
VECTOR_EVENT_SETLAYER |
Not used |
Not used |
pLayer |
pLayerDesc |
Not used |
Not used |
Not used |
Not used |
Not used |
|
VECTOR_EVENT_SETACTIVELAYER |
Not used |
Not used |
pLayer |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
|
VECTOR_EVENT_ADDGROUP |
Not used |
Not uesd |
Not uesd |
Not used |
pGroup |
pGroupDesc |
Not used |
Not used |
dwFlags |
|
VECTOR_EVENT_DELETEGROUP |
Not used |
Not used |
Not used |
Not used |
pGroup |
Not used |
Not used |
Not used |
Not uesd |
|
VECTOR_EVENT_DELETEGROUPCLONES |
Not used |
Not used |
Not used |
Not uesd |
pGroup |
Not uesd |
Not used |
Not used |
dwFlags |
|
VECTOR_EVENT_EMPTYGROUP |
Not uesd |
Not uesd |
Not used |
Not used |
pGroup |
Not used |
Not used |
Not used |
Not uesd |
|
VECTOR_EVENT_COPYGROUP |
Not uesd |
Not used |
Not used |
Not used |
pGroupDst |
Not used |
Not used |
Not used |
dwFlags |
|
VECTOR_EVENT_SETGROUP |
Not used |
Not used |
Not used |
Not used |
pGroup |
pGroupDesc |
Not used |
Not used |
Not used |
|
VECTOR_EVENT_ADDOBJECT |
pObject |
pObjectDesc |
pLayer |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
|
VECTOR_EVENT_DELETEOBJECT |
pObject |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
DwFlags |
|
VECTOR_EVENT_COPYOBJECT |
pObjectDst |
Not used |
Not used |
pLayerDst |
Not used |
Not used |
Not used |
Not used |
Not used |
|
VECTOR_EVENT_SETOBJECT |
pObject |
pObjectDesc |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
nType |
|
VECTOR_EVENT_EXPLODEOBJECT |
pObject |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
dwFlags |
|
VECTOR_EVENT_SELECTOBJECT |
pObject |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
bSelect |
|
VECTOR_EVENT_OBJECTATTRIBUTES |
pObject |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
dwFlags |
|
VECTOR_EVENT_LOADFILE |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
|
VECTOR_EVENT_ADDOBJECTTOGROUP |
pObject |
pObjectDesc |
Not used |
Not used |
pGroup |
Not used |
Not used |
Not used |
Not used |
|
VECTOR_EVENT_CREATENEWWINDOW |
Not used |
pObjectDesc |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
|
VECTOR_EVENT_INVERTCOLORS |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
Not used |
The events VECTOR_EVENT_USER to (VECTOR_EVENT_RESRVED-1) are user-defined. You can use any of these values when implementing your own events using L_VecEvent.
Note that when using Vector automation, dwFlags should be ORed with VECTOR_FLAGS_ADD_UNDO_NODE in order for the event to add an undo node.
pVECTOREVENT is a pointer to a VECTOREVENT structure.