Layout Class Reference

Inheritance diagram for Layout:

Container List of all members.

Detailed Description

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.


Public Member Functions

 this (Adjustment hAdjustment, Adjustment vAdjustment)
 Creates a new layout with vertical and horizontal adjustments.
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.
void * gtk ()
 Gets the gtk structure.
PangoLayout * pngL ()
 Gets the pango structure.
GType getType ()
 Gets the type of this class.
 this (PangoLayout *pangoLayout)
 creates a Layout from a pango layout
 this (Context context)
 Creates a new layot from a context.
 this (Layout src)
 copy constructore
Context getContext ()
 gets the context

Static Public Member Functions

GType getType ()
 Gets this class type.


Member Function Documentation

Context Layout.getContext  ) 
 

gets the context

Returns:
a new Context to wrap the pangocontext

Adjustment Layout.getHAdjustment  ) 
 

Gets the horizontal adjustment.

Returns:
adjustment

void Layout.getSize guint *  width,
guint *  height
 

Gets the layout size.

Parameters:
width 
height 

GType Layout.getType  ) 
 

Gets the type of this class.

Returns:
GType

Reimplemented from Widget.

GType Layout.getType  )  [static]
 

Gets this class type.

Returns:
type

Reimplemented from Widget.

Adjustment Layout.getVAdjustment  ) 
 

Gets the vertical adjustment.

Returns:
adjustment

void* Layout.gtk  ) 
 

Gets the gtk structure.

Returns:
a pointer the the gtk structure

Reimplemented from Widget.

void Layout.move Widget  child,
gint  x,
gint  y
 

Move a widget to a new position.

Parameters:
child the widget to move
x 
y 

PangoLayout* Layout.pngL  ) 
 

Gets the pango structure.

Returns:
the pangoLayout struct

void Layout.put Widget  child,
gint  x,
gint  y
 

puts a widget to a new position

Parameters:
child the widget to move
x 
y 

void Layout.setHAdjustment Adjustment  adjustment  ) 
 

Sets the horizontal adjustment.

Parameters:
adjustment 

void Layout.setSize guint  width,
guint  height
 

Sets the layout size.

Parameters:
width 
height 

void Layout.setVAdjustment Adjustment  adjustment  ) 
 

Sets the vertical adjustment.

Parameters:
adjustment 

Layout.this Layout  src  ) 
 

copy constructore

Parameters:
src the layout to copy

Layout.this Context  context  ) 
 

Creates a new layot from a context.

Parameters:
context 

Layout.this PangoLayout *  pangoLayout  ) 
 

creates a Layout from a pango layout

Parameters:
pangoLayout the pango structure

Layout.this Adjustment  hAdjustment,
Adjustment  vAdjustment
 

Creates a new layout with vertical and horizontal adjustments.

Parameters:
hAdjustment 
vAdjustment 


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