Project:DUI

Class List Class Hierarchy
Summary: Ctors Methods Mixins

Module dui.AspectFrame

Class AspectFrame

dui.ObjectG.ObjectG
        dui.DUIObject.DUIObject
                dui.Widget.Widget
                        dui.Container.Container
                                dui.Bin.Bin
                                        dui.Frame.Frame
                                                dui.AspectFrame.AspectFrame

Implemented interfaces:


public class

AspectFrame



A frame that keeps the x, y aspect ratio

Constructor Summary
protected (GtkWidget* gtkWidget)
          
(char label, gfloat xalign, gfloat yalign, gfloat ratio, bit obeyChild)
          Creates a new AspectFrame.

Methods Summary
void set(gfloat xalign, gfloat yalign, gfloat ratio, gboolean obeyChild)
          Sets values for this AspectFrame.




protected ctor(AspectFrame)(GtkWidget* gtkWidget)



ctor(AspectFrame)(char label, gfloat xalign, gfloat yalign, gfloat ratio, bit obeyChild)
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

set

void set(gfloat xalign, gfloat yalign, gfloat ratio, gboolean obeyChild)
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