Gtk2::AspectFrame(3pm) User Contributed Perl Documentation Gtk2::AspectFrame(3pm)NAME
Gtk2::AspectFrame - wrapper for GtkAspectFrame
HIERARCHY
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::Widget
+----Gtk2::Container
+----Gtk2::Bin
+----Gtk2::Frame
+----Gtk2::AspectFrame
INTERFACES
Glib::Object::_Unregistered::AtkImplementorIface
Gtk2::Buildable
METHODS
widget = Gtk2::AspectFrame->new ($label, $xalign, $yalign, $ratio, $obey_child)
o $label (string or undef)
o $xalign (double)
o $yalign (double)
o $ratio (double)
o $obey_child (boolean)
$aspect_frame->set_params ($xalign, $yalign, $ratio, $obey_child)
o $xalign (double)
o $yalign (double)
o $ratio (double)
o $obey_child (boolean)
PROPERTIES
'obey-child' (boolean : default true : readable / writable / private)
Force aspect ratio to match that of the frame's child
'ratio' (float : default 1 : readable / writable / private)
Aspect ratio if obey_child is FALSE
'xalign' (float : default 0.5 : readable / writable / private)
X alignment of the child
'yalign' (float : default 0.5 : readable / writable / private)
Y alignment of the child
SEE ALSO
Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Bin, Gtk2::Frame
COPYRIGHT
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
perl v5.14.2 2012-05-27 Gtk2::AspectFrame(3pm)
Check Out this Related Man Page
Gtk2::Misc(3pm) User Contributed Perl Documentation Gtk2::Misc(3pm)NAME
Gtk2::Misc - wrapper for GtkMisc
HIERARCHY
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::Widget
+----Gtk2::Misc
INTERFACES
Glib::Object::_Unregistered::AtkImplementorIface
Gtk2::Buildable
METHODS
(xalign, yalign) = $misc->get_alignment
$misc->set_alignment ($xalign, $yalign)
o $xalign (double)
o $yalign (double)
(xpad, ypad) = $misc->get_padding
$misc->set_padding ($xpad, $ypad)
o $xpad (integer)
o $ypad (integer)
PROPERTIES
'xalign' (float : default 0.5 : readable / writable / private)
The horizontal alignment, from 0 (left) to 1 (right). Reversed for RTL layouts.
'xpad' (integer : default 0 : readable / writable / private)
The amount of space to add on the left and right of the widget, in pixels
'yalign' (float : default 0.5 : readable / writable / private)
The vertical alignment, from 0 (top) to 1 (bottom)
'ypad' (integer : default 0 : readable / writable / private)
The amount of space to add on the top and bottom of the widget, in pixels
SEE ALSO
Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget
COPYRIGHT
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
perl v5.14.2 2012-05-27 Gtk2::Misc(3pm)
Hi,
I' using bash and I would like to use "bc" to compute the ratio of of two numbers and assign the ratio to a variable.
The numbers are in a file, e.g.
196.304492
615.348986
Any idea how to do it?
N.B. I cannot change the file to have 196.304492 / 615.348986 as the file is produced by... (14 Replies)
hello,
please can you help me.
jj and kk are two numbers which are the result of an sql program.
I would like to calculate the ratio jj/kk*100.
I have done this:
ratio=$((jj/kk * 100)) or ratio=`expr $jj \/ expr $kk) but the result is 0
What can i do?
Thanks for help. (3 Replies)