AspectFrame Class Reference

List of all members.

Detailed Description

A frame that keeps the x, y aspect ratio.


Protected Member Functions

 this (char[] label, gfloat xalign, gfloat yalign, gfloat ratio, bit obeyChild)
 Creates a new AspectFrame.
void set (gfloat xalign, gfloat yalign, gfloat ratio, gboolean obeyChild)
 Sets values for this AspectFrame.


Member Function Documentation

void AspectFrame.set gfloat  xalign,
gfloat  yalign,
gfloat  ratio,
gboolean  obeyChild
[protected]
 

Sets values for this AspectFrame.

Parameters:
xalign 0.0 is left 1.0 is right 0.5 is centre (that's canadian for center)
yalign 0.0 is top 1.0 is bottom 0.5 is centre
ratio x/y 2 is twice as wide as tall
obeyChild is true uses the child aspect not ours

AspectFrame.this char[]  label,
gfloat  xalign,
gfloat  yalign,
gfloat  ratio,
bit  obeyChild
[protected]
 

Creates a new AspectFrame.

Parameters:
label text to use as a title for the fram
xalign 0.0 is left 1.0 is right 0.5 is centre (that's canadian for center)
yalign 0.0 is top 1.0 is bottom 0.5 is centre
ratio x/y 2 is twice as wide as tall
obeyChild is true uses the child aspect not ours


SourceForge.net Logo DSource.org Logo digitalmars.com Logo