PHP-GTK
Monday, September 22, 2014 
download | documentation | applications | faq | changelog | resources 


search for in the  


previousGtkHSeparator Constructor
GtkIconFactory Constructornext

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

GtkIconFactory

A collection of a set of variants for a particular icon.

Object Hierarchy

Description

An icon factory helps you to manage a collection of GtkIconSets; and a GtkIconSet manages a set of variants for a particular icon, that is, variants for different sizes and widget states. Icons in an icon factory are named by a Stock ID, which a simple string identifying the icon.

Each GtkStyle has a list of GtkIconFactorys derived from the current theme; those icon factories are consulted first when searching for an icon. If the theme doesn't set a particular icon, PHP-GTK 2 looks for it in a list of default icon factories, which are maintained by add_default() and remove_default() .

Applications with icons must add a default icon factory to their icons, which will allow themes to override the icons for the application.

Constructors

-- Creates a new GtkIconFactory to manage icon sets.

Methods

add()
  Adds a new GtkIconSet to the icon factory.
add_default()
  Adds the icon factory to list of default factories.
lookup()
  Searches for a GtkIconSet in current icon factory.
lookup_default()
  Searches for a GtkIconSet in default icon factories.
remove_default()
  Removes an icon factory from the list of default factories.


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


previousGtkHSeparator Constructor
GtkIconFactory Constructornext

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:57 2013 CEST