Extracted from Pike v7.8 release 866 at 2016-11-06.
pike.ida.liu.se
[Top]
GTK2
GTK2.AspectFrame

Class GTK2.AspectFrame

Description

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

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

Properties: int obey-child float ratio float xalign float yalign


Inherit Frame

inherit GTK2.Frame : Frame