fg_justify()

Win32 DirectX Fastgraph/Light

Prototype

void fg_justify (int xjust, int yjust);

Sub fg_justify (ByVal xjust As Long, ByVal yjust As Long)

procedure fg_justify (xjust, yjust : integer);

Description

The fg_justify() function defines the horizontal and vertical justification settings for strings displayed with fg_print().

Parameters

xjust defines the horizontal justification. If xjust is -1, strings will be displayed left justified relative to the current graphics x position. If xjust is 0, strings will be centered about the x position. If xjust is 1, strings will be right justified.

yjust defines the vertical justification. If yjust is -1, the bottom of the characters will be the current graphics y position. If yjust is 0, strings will be centered about the y position. If yjust is 1, the top of the characters will be at the y position.

Return value

none

Restrictions

The values of xjust and yjust must be -1, 0, or 1.

See also

fg_getxjust(), fg_getyjust(), fg_print()

Examples

Strings1, Strings2

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.