PHP-GTK
Friday, August 22, 2014 
download | documentation | applications | faq | changelog | resources 


search for in the  


previousGtkLabel::set
GtkLabel::set_attributesnext

Last updated: Sun, 12 May 2013
view this page in English

GtkLabel::set_angle

Sets the angle of rotation for the label (0-359). An angle of 90 reads from from bottom to top, an angle of 270, from top to bottom. The angle setting for the label is ignored if the label is selectable, wrapped, or ellipsized.

Example 81. Getting and Setting an Angle for GtkLabel

<?php
// Create a window to hold the label.
$window = new GtkWindow();
// Set up the window to close cleanly.
$window->connect_simple('destroy', array('Gtk', 'main_quit'));
 
// Create a label
$label = new GtkLabel('Degree Angle');
 
// Set the angle to 50 degrees.
$label->set_angle(50);
 
// Now update the label with the current angle.
$label->set_text($label->get_angle() . ' ' . $label->get_text());
 
// Add the label to the window.
$window->add($label);
 
// Show the window and start the main loop.
$window->show_all();
Gtk::main();
?>
This example produces the following window:

See also: get_angle()


User Contributed Notes
gtk.gtklabel.method.set_angle.php
add a note about notes
There are no user contributed notes for this page.


previousGtkLabel::set
GtkLabel::set_attributesnext

Last updated: Sun, 12 May 2013
view this page in English


credits 

PHP  Copyright © 2001-2014 The PHP Group
 All rights reserved.
Last updated: Sun May 12 20:50:59 2013 CEST