Pike v8.0 release 1738

Class GTK1.AspectFrame

Inheritance graph
Description

A W(Frame) widget that always maintain a specified ratio between width and height. width/height == ratio

 GTK1.AspectFrame("Title",0.5,0.5,0.4,0)->add( GTK1.Label("Wrong aspect"))->set_usize(200,200)


Inherit Frame

inherit GTK1.Frame : Frame


Method create

GTK1.AspectFrame GTK1.AspectFrame(string label, float xalign, float yalign, float ratio, int obey_child)

Description

Create a new frame. Arguments are label, xalign, yalign, ratio, obey_child xalign is floats between 0 and 1, 0.0 is upper (or leftmost), 1.0 is lower (or rightmost). If 'obey_child' is true, the frame will use the aspect ratio of it's (one and only) child widget instead of 'ratio'.