Project:DUI

Class List Class Hierarchy
Summary: Ctors Methods Mixins

Module dui.Layout

Class Layout

dui.ObjectG.ObjectG
        dui.DUIObject.DUIObject
                dui.Widget.Widget
                        dui.Container.Container
                                dui.Layout.Layout

Implemented interfaces:


public class

Layout



A container to layout widgets on view larger then the visible area.
This can be used to go beyond the limits on the supporting layer of graphics environment.

Constructor Summary
(GtkWidget* gtkWidget)
          
public (Adjustment hAdjustment, Adjustment vAdjustment)
          Creates a new layout with vertical and horizontal adjustments

Methods Summary
public static GType getType()
          Gets this class type
void put(Widget child, gint x, gint y)
          puts a widget to a new position
void move(Widget child, gint x, gint y)
          Move a widget to a new position
void setSize(guint width, guint height)
          Sets the layout size
void getSize(guint* width, guint* height)
          Gets the layout size
Adjustment getHAdjustment()
          Gets the horizontal adjustment
Adjustment getVAdjustment()
          Gets the vertical adjustment
void setHAdjustment(Adjustment adjustment)
          Sets the horizontal adjustment
void setVAdjustment(Adjustment adjustment)
          Sets the vertical adjustment


getType

public static GType getType()
Gets this class type

Returns:
type



ctor(Layout)(GtkWidget* gtkWidget)



public ctor(Layout)(Adjustment hAdjustment, Adjustment vAdjustment)
Creates a new layout with vertical and horizontal adjustments

Parameters:
hAdjustment -
vAdjustment -

put

void put(Widget child, gint x, gint y)
puts a widget to a new position

Parameters:
child - the widget to move
x -
y -

move

void move(Widget child, gint x, gint y)
Move a widget to a new position

Parameters:
child - the widget to move
x -
y -

setSize

void setSize(guint width, guint height)
Sets the layout size

Parameters:
width -
height -

getSize

void getSize(guint* width, guint* height)
Gets the layout size

Parameters:
width -
height -

getHAdjustment

Adjustment getHAdjustment()
Gets the horizontal adjustment

Returns:
adjustment

getVAdjustment

Adjustment getVAdjustment()
Gets the vertical adjustment

Returns:
adjustment

setHAdjustment

void setHAdjustment(Adjustment adjustment)
Sets the horizontal adjustment

Parameters:
adjustment -

setVAdjustment

void setVAdjustment(Adjustment adjustment)
Sets the vertical adjustment

Parameters:
adjustment -