| ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
GtkItemFactory Constructor GtkItemFactory (GtkType container_type, String path, GtkAccelGroup accel_group);
Creates a new instance of the GtkItemFactory class. One factory can be used for one menu, and not more. This means that if you want to have a standard GtkMenuBar at the top of a window and an additional right-click popup menu, you have to use 2 item factories.
The container_type determines, which type the root menu will have:
GtkMenu, GtkMenuBar or
GtkOptionMenu. To get the GtkType you want,
just use the the get_type() function of this class:
The path is a unique name for this menu, enclosed in < and >, e.g. <mainmenu>. This path has to be unique in the whole application. The accel_group is the accelerator group belonging to this window and is responsible for the menu shortcuts. It can be NULL, but then the menu shortcuts won't work. 例 18. Using a GtkItemFactory
A more sophisticated example can be found at the create_items() function. |
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「GtkItemFactory Constructor」をGoogle検索
|