GtkFixedA container that allows for precise placement of widgets.
Hierarquia de Objetos
A GtkFixed container performs no automatic layout management, as it is left to the programmer to provide the placement and size of all child widgets, in pixels, through the put() and move() methods. The add() method should not be used with GtkFixed.
Although this container allows for a fine grain of control over the exact layout of a program, it is should not be used for most applications. One reason for this recommendation is that it requires great care and effort to prevent display bugs (such as truncated text or overlapping widgets), and makes it troublesome to add or remove widgets, as probably many others will have to be rearranged. It has some other limitations, particularly when it comes to tranlating text and handling right-to-left languages. It is also harder to maintain layout consistency, especially in applications with complex and/or multiple windows.
ConstrutoresGtkFixed ();-- Creates a new GtkFixed container.
Enviado por Jonathan B. Kolling em 2009-11-05
// Cria a janela
$window = new GtkWindow();
$window->set_title(\'Teste do GtkFixed\');
// Cria o GtkFixed e o adiciona na janela
$fixed = new GtkFixed();
// Cria botões
$button1 = new GtkButton(\'Botão 1\');
$button2 = new GtkButton(\'Botão 2\');
// Adiciona botões ao GtkFixed
// Exibe tudo na janela