L_VecGetHitTest

#include "ltvkrn.h"

L_LTVKRN_API L_INT L_VecGetHitTest(pVector, pHitTest)

Gets the current hit test settings.

Parameters

const pVECTORHANDLE pVector

Pointer to a vector handle.

pVECTORHITTEST pHitTest

Pointer to a VECTORHITTEST structure to be updated with the current hit test settings.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

The hit test settings determine the behavior of the hit test. The hit test itself is performed by calling L_VecHitTest.

The hit test settings can be changed by calling L_VecSetHitTest.

For more information on possible hit test settings, refer to the VECTORHITTEST structure.

Required DLLs and Libraries

See Also

Functions

Topics

Example

This example will toggle dwFlags when doing hit testing.

L_LTVKRNTEX_API L_INT VecGetHitTestExample(pVECTORHANDLE pVector) 
{ 
   L_INT nRet; 
   VECTORHITTEST   HitTest;  /* Hittest settings */ 
 
   /* Get the hit test settings */ 
   nRet = L_VecGetHitTest( pVector, &HitTest ); 
   if(nRet != SUCCESS) 
      return nRet; 
 
   /* Toggle checking for closed areas */ 
   if( HitTest.dwFlags & VECTOR_HITTEST_CLOSEDFIGURES ) 
      HitTest.dwFlags &= ~VECTOR_HITTEST_CLOSEDFIGURES; 
   else 
      HitTest.dwFlags |= VECTOR_HITTEST_CLOSEDFIGURES; 
 
   /* Set new hit test settings */ 
   nRet = L_VecSetHitTest( pVector, &HitTest ); 
 
   return nRet; 
} 

Help Version 21.0.2021.4.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Vector C API Help