Copyright (C) 2000-2012 |
Manpages PERL-GTK-REFSection: User Contributed Perl Documentation (1)Updated: perl v5.6.1 Index Return to Main Contents NAMEReference documentation for the Gtk moduleGtk$func->_bootstrap ()Gtk->_exit ($status)Exits the program with status as the result code (useful after a fork() call). string Gtk->check_version ($req_maj, $req_min, $req_micro)scalar $data->constsubstr ($offset, $len)Gtk->error ($text)Print text as an error using Gtk+'s output facilities. This function also exits the program with an error. integer Gtk->events_pending ()Check if there are any events pending for the toolkit to service. Gtk->exit ($status)Exits the program with status as the result code. boolean Gtk->false ()Utility function that always return a FALSE value. Most useful in some signal handler. Gtk->gc ()Perform a garbage collection run. Gtk::Gdk::Event Gtk->get_current_event ()Gtk::Widget Gtk->get_event_widget ($event)Get the widget the event event is destined for. Gtk->grab_add ($widget)Add widget to the grab list (events are sent to this widgets first). Gtk::Widget Gtk->grab_get_current ()Gtk->grab_remove ($widget)Remove widget to the grab list. integer Gtk->idle_add ($handler, ...)Add an idle handler (a function that gets called when the main loop is not busy servicing toolkit events). handler is called with the additional arguments as parameters. integer Gtk->idle_add_priority ($priority, $handler, ...)
Add an idle handler (a function that gets called when the main loop is not busy servicing toolkit events). handler is called with the additional arguments as parameters. The lower the value of priority, the highter the priority of the handler. Gtk->idle_remove ($tag)Remove an idle handler identified by tag. Gtk->init ()Initialize the Gtk module. Parses the args out of @ARGV. Gtk->init_add ($handler, ...)Add an handler to be called at initialization time. boolean Gtk->init_check ()Initialize the Gtk module checking for a connection to the display. Gtk->init_types ()integer Gtk->key_snooper_install ($handler, ...)Install a key snooper handler: the subroutine will get a Gtk::Widget, a If the function returns a TRUE value the key event will not be handed over to the Gtk internals. Gtk->key_snooper_remove ($tag)Removes the key snooper handler identified by tag. Gtk->main ()Run an instance of the main loop. integer Gtk->main_iteration ()Performs a (blocking) iteration of the main loop. integer Gtk->main_iteration_do ($blocking)Performs a (optionally blocking) iteration of the main loop. integer Gtk->main_level ()Returns the current main loop level (main loops can be nested). Gtk->main_quit (...)integer Gtk->major_version ()integer Gtk->micro_version ()integer Gtk->minor_version ()Gtk->mod_init_add ($module, $handler, ...)Gtk->module_configure ($data)Gtk->print ($text)Print text using Gtk+'s output facilities. integer Gtk->quit_add ($main_level, $handler, ...)
Add an handler to be called when the main loop of level main_level quits. Gtk->quit_remove ($tag)Remove the main loop quit handler identified by tag. string Gtk->set_locale ()Tells the library to use the locale support. This function must be called before any of the init ones. integer Gtk->timeout_add ($interval, $handler, ...)
Add a timeout handler. interval is the interval in milliseconds. handler is called every interval milliseconds with the additional arguments as parameters. Gtk->timeout_remove ($tag)Remove a timeout handler identified by tag. boolean Gtk->true ()Utility function that always returns a TRUE value. Most useful in some signal handler. Gtk->warning ($text)Print text as a warning using Gtk+'s output facilities. integer Gtk->watch_add ($sv, $priority, $handler, ...)Gtk->watch_remove ($tag)Gtk::AccelGroupboolean $accel_group->activate ($accel_key, $accel_mods)$accel_group->add ($accel_key, $accel_mods, $accel_flags, $object, $accel_signal)
$accel_group->attach ($object)$accel_group->detach ($object)Gtk::AccelGroup Gtk::AccelGroup->get_default ()$accel_group->lock ()$accel_group->lock_entry ($accel_key, $accel_mods)Gtk::AccelGroup Gtk::AccelGroup->new ()$accel_group->remove ($accel_key, $accel_mods, $object)$accel_group->unlock ()$accel_group->unlock_entry ($accel_key, $accel_mods)Gtk::AccelLabelinteger $accel_label->accelerator_width ()integer $accel_label->get_accel_width ()Gtk::AccelLabel Gtk::AccelLabel->new ($string)boolean $accel_label->refetch ()$accel_label->set_accel_widget ($accel_widget)Gtk::AcceleratorGtk::Gdk::ModifierType Gtk::Accelerator->get_default_mod_mask ()string Gtk::Accelerator->name ($accel_key, $accel_mods)Gtk::Accelerator->parse ($accelerator)Gtk::Accelerator->set_default_mod_mask ($default_mod_mask)boolean Gtk::Accelerator->valid ($keyval, $modifiers)Gtk::Adjustment$adj->changed ()$adj->clamp_page ($lower, $upper)float $adjustment->get_value ()float $adjustment->lower ($new_value)Gtk::Adjustment Gtk::Adjustment->new ($value, $lower, $upper, $step_increment, $page_increment, $page_size)
float $adjustment->page_increment ($new_value)float $adjustment->page_size ($new_value)$adjustment->set_value ($value)float $adjustment->step_increment ($new_value)float $adjustment->upper ($new_value)float $adjustment->value ($new_value)$adj->value_changed ()Gtk::AlignmentGtk::Alignment Gtk::Alignment->new ($xalign, $yalign, $xscale, $yscale)$alignment->set ($xalign, $yalign, $xscale, $yscale)Gtk::ArrowGtk::Arrow Gtk::Arrow->new ($arrow_type, $shadow_type)$arrow->set ($arrow_type, $shadow_type)Gtk::AspectFrameGtk::AspectFrame Gtk::AspectFrame->new ($label, $xalign, $yalign, $ratio, $obey_child)$aspect_frame->set ($xalign, $yalign, $ratio, $obey_child)Gtk::BinGtk::Widget $widget->child ($newvalue)Gtk::Box$box->children ()$box->pack_end ($child, $expand, $fill, $padding)$box->pack_end_defaults ($child)$box->pack_start ($child, $expand, $fill, $padding)$box->pack_start_defaults ($child)$box->query_child_packing ($child)$box->reorder_child ($child, $pos)$box->set_child_packing ($child, $expand, $fill, $padding, $pack_type)
$box->set_homogeneous ($homogeneous)$box->set_spacing ($spacing)Gtk::BoxChildinteger $child->expand ()integer $child->fill ()integer $child->pack ()integer $child->padding ()Gtk::Widget $child->widget ()Gtk::Button$button->clicked ()$button->enter ()Gtk::ReliefStyle $button->get_relief ()$button->leave ()Gtk::Button Gtk::Button->new ($label)Gtk::Button Gtk::Button->new_with_label ($label)$button->pressed ()$button->released ()$button->set_relief ($style)Gtk::ButtonBox$buttonbox->get_child_ipadding ()Gtk::ButtonBox->get_child_ipadding_default ()$buttonbox->get_child_size ()Gtk::ButtonBox->get_child_size_default ()integer $buttonbox->get_layout ()integer $buttonbox->get_spacing ()$buttonbox->set_child_ipadding ($ipad_x, $ipad_y)Gtk::ButtonBox->set_child_ipadding_default ($ipad_x, $ipad_y)$buttonbox->set_child_size ($min_width, $min_height)Gtk::ButtonBox->set_child_size_default ($min_width, $min_height)$buttonbox->set_layout ($layout_style)$buttonbox->set_spacing ($spacing)Gtk::CListinteger $clist->append ($text, ...)
$clist->clear ()Gtk::Gdk::Window $clist->clist_window ()$clist->column_title_active ($column)$clist->column_title_passive ($column)$clist->column_titles_active ()$clist->column_titles_hide ()$clist->column_titles_passive ()$clist->column_titles_show ()integer $clist->columns ()integer $clist->columns_autosize ()integer $clist->find_row_from_data ($data)integer $clist->focus_row ()$clist->freeze ()Gtk::Style $clist->get_cell_style ($row, $column)Gtk::CellType $clist->get_cell_type ($row, $column)string $clist->get_column_title ($column)Gtk::Widget $clist->get_column_widget ($column)Gtk::Adjustment $clist->get_hadjustment ()$clist->get_pixmap ($row, $column)$clist->get_pixtext ($row, $column)scalar $clist->get_row_data ($row)Gtk::Style $clist->get_row_style ($row) |