NAME

App::Chart::Gtk2::Ex::TableBits -- helpers for Gtk2::Table widgets

SYNOPSIS

use App::Chart::Gtk2::Ex::TableBits;

FUNCTIONS

App::Chart::Gtk2::Ex::TableBits::update_attach ($table, $child, $left_attach, $right_attach, $top_attach, $bottom_attach, $xoptions, $yoptions, $xpadding, $ypadding)

Update the attachment positions of $child in $table, if necessary. The arguments are the same as to $table->attach. If any differ from the current child attachment properties then a remove and fresh attach are done.

This function is designed to put a child at what might be a new position in the table, but do nothing if it's already right. Avoiding an unnecessary remove and attach can save a lot of resizing and possibly some flashing.

SEE ALSO

Gtk2::Table, Gtk2::Ex::WidgetBits

HOME PAGE

http://user42.tuxfamily.org/chart/index.html

LICENSE

Copyright 2008, 2009, 2010, 2011 Kevin Ryde

Chart is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.

Chart is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Chart. If not, see http://www.gnu.org/licenses/.