L_VecHideObject

#include "ltvkrn.h"

L_LTVKRN_API L_INT L_VecHideObject(pVector, pObject, bHide)

Hides or shows an object.

Parameters

const pVECTORHANDLE pVector

Pointer to a vector handle. Objects within this vector handle will be hidden or shown.

pVECTOROBJECT pObject

Pointer to a VECTOROBJECT structure that references an object to be hidden or shown.

L_BOOL bHide

Flag that indicates whether to hide or show the specified object. Possible values are:

Value Meaning
TRUE Hide the specified object.
FALSE Show the specified object.

Returns

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

Comments

Hides or shows an object within the specified vector handle.

A hidden object will not be drawn. It will also not be returned when calling the L_VecHitTest function.

Please note that you will have to update the window to see the results of this function.

Required DLLs and Libraries

See Also

Functions

Example

This example will hide the object under a given 2D point.

L_LTVKRNTEX_API L_INT VecHideObjectExample( 
   pVECTORHANDLE pVector, 
   POINT* pPoint) 
{ 
   VECTOROBJECT Object;    /* Object under point */ 
   L_INT nRet; 
 
   /* Get object under that point */ 
   nRet = L_VecHitTest( pVector, pPoint, &Object ); 
 
   /* Is there an object under that point? */ 
   if( nRet == SUCCESS ) 
      /* Yes, hide it */ 
      nRet = L_VecHideObject( pVector, &Object, TRUE ); 
 
   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