Table of Contents

 
GetTextX
 

Purpose

Gets the X location of the text object

 

Protoype

int CTextMngr::GetTextX (string str_text_id)
 

Parameters

text_id the ID of the text object to query
 

Description

This function queries the given text object and returns its current X coordinate location on the screen.

 

Use

CTextMngr text;
int xpos = text.GetTextX("my_text");
 

Prev: GetTextLength
Next: GetTextY