• Artigos
  • Projetos
  • Download
  • Lista
  • Docs
  • Comunidade
  • ?

GtkFixed
Classes GTK
Anterior GtkFixed Próximo

GtkFixed

A container that allows for precise placement of widgets.

Hierarquia de Objetos

GObject
`-- GtkObject
       `-- GtkWidget
              `-- GtkContainer
                     `-- GtkFixed

Descrição

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.

Veja também:GtkTable, GtkBox.

Construtores

GtkFixed ();

-- Creates a new GtkFixed container.

Métodos

get_has_window()
  Gets whether the GtkFixed has its own GdkWindow.
move()
  Moves child to new position.
put()
  Sets initial position of child.
set_has_window()
  Defines whether a separate window should be created.


Anterior Início Próximo
GtkFileSelection::selection_text Acima GtkFixed Construtor

Comentários

  Enviado por Jonathan B. Kolling em 2009-11-05  

<?php

// Cria a janela
$window = new GtkWindow();
$window->set_title(Teste do GtkFixed);
$window->set_default_size(400,300);


// Cria o GtkFixed e o adiciona na janela
$fixed = new GtkFixed();
$window->add($fixed);


// Cria botões
$button1 = new GtkButton(Botão 1);
$button2 = new GtkButton(Botão 2);

// Adiciona botões ao GtkFixed
$fixed->put($button1,10,10);
$fixed->put($button2,100,100);


// Exibe tudo na janela
$window->show_all();

gtk::main();
?>


 Adicionar Comentário
 login
 senha
 Texto

Livros


Outros

Busque conteúdo no site
Participe de nosso grupo no google

[Página do grupo]  [Arquivo do grupo]

    Paleta

    Google

    Parceiros

 
Designed by Wolfgang Bartelme Designed by Wolfgang Bartelme

© 2006 Wordpress Themes | Theme (Not so) Fresh
XHTML CSS RSS