int ViewGetx(int vw);

 

Get the x coordinate of a view's location.

 

Return Value

 

Returns the x coordinate of a view's location.

 

Parameters

 

vw

View handle returned from ViewAdd().

 

Remarks

 

The ViewGetx() function returns the x coordinate of a view's location.

 

Availability

 

Available in DragonFireSDK 1.0 and later.

 

Example

 

Description: This example will get the x coordinate of the Ball's location.

 

#include "DragonFireSDK.h"

 

void AppMain()

{

  int vw;

  int x;

 

  vw = ViewAdd("Ball.png", 0, 0);

  x = ViewGetx(vw);

}

 

void AppExit()

{

 

}

 

void OnTimer()

{

 

}