gtk.AspectFrame.AspectFrame Class Reference

Inheritance diagram for gtk.AspectFrame.AspectFrame:

gtk.Frame.Frame gtk.Bin.Bin gtk.Container.Container gtk.Widget.Widget gtk.ObjectGtk.ObjectGtk gobject.ObjectG.ObjectG List of all members.

Public Member Functions

GtkAspectFramegetAspectFrameStruct ()
 this (GtkAspectFrame *gtkAspectFrame)
 Sets our main struct and passes it to the parent class.
 this (char[] label, float xalign, float yalign, float ratio, int obeyChild)
 Create a new GtkAspectFrame.
void set (float xalign, float yalign, float ratio, int obeyChild)
 Set parameters for an existing GtkAspectFrame.

Protected Member Functions

void * getStruct ()
 the main Gtk struct as a void*

Protected Attributes

GtkAspectFramegtkAspectFrame
 the main Gtk struct

Constructor & Destructor Documentation

gtk.AspectFrame.AspectFrame.this ( GtkAspectFrame gtkAspectFrame  ) 

Sets our main struct and passes it to the parent class.

gtk.AspectFrame.AspectFrame.this ( char[]  label,
float  xalign,
float  yalign,
float  ratio,
int  obeyChild 
)

Create a new GtkAspectFrame.

label: Label text. xalign: Horizontal alignment of the child within the allocation of the GtkAspectFrame. This ranges from 0.0 (left aligned) to 1.0 (right aligned) yalign: Vertical alignment of the child within the allocation of the GtkAspectFrame. This ranges from 0.0 (left aligned) to 1.0 (right aligned) ratio: The desired aspect ratio. obey_child: If TRUE, ratio is ignored, and the aspect ratio is taken from the requistion of the child. Returns: the new GtkAspectFrame.


Member Function Documentation

GtkAspectFrame* gtk.AspectFrame.AspectFrame.getAspectFrameStruct (  ) 

void* gtk.AspectFrame.AspectFrame.getStruct (  )  [protected]

the main Gtk struct as a void*

Reimplemented from gtk.Frame.Frame.

void gtk.AspectFrame.AspectFrame.set ( float  xalign,
float  yalign,
float  ratio,
int  obeyChild 
)

Set parameters for an existing GtkAspectFrame.

aspect_frame: a GtkAspectFrame xalign: Horizontal alignment of the child within the allocation of the GtkAspectFrame. This ranges from 0.0 (left aligned) to 1.0 (right aligned) yalign: Vertical alignment of the child within the allocation of the GtkAspectFrame. This ranges from 0.0 (left aligned) to 1.0 (right aligned) ratio: The desired aspect ratio. obey_child: If TRUE, ratio is ignored, and the aspect ratio is taken from the requistion of the child. Property Details The "obey-child" property "obey-child" gboolean : Read / Write Force aspect ratio to match that of the frame's child. Default value: TRUE


Member Data Documentation

GtkAspectFrame* gtk.AspectFrame.AspectFrame.gtkAspectFrame [protected]

the main Gtk struct


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