| ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
GtkListItem Constructor GtkListItem ([string
label
]);
A GtkListItem is a container widget, derived indirectly from GtkBin and so only able to hold one direct child. Most of the time, the child you will want the list item to contain will be a GtkLabel - and so, in common with all objects that have an alternative '-with-label' constructor available in GTK, we have the option in PHP-GTK to pass the label's text as a parameter during construction, e.g. If you wanted something other than a label in the list item, you simply omit the parameter and add the required widget:
Whatever your list item consists of, the GtkList will only respond to it as a GtkListItem. If you have different kinds of list item contents in the same list, you will need to exercise a great deal of caution if you are connecting callbacks to any form of select signal. See also: GtkList, which has a working example under the constructor. |
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「GtkListItem Constructor」をGoogle検索
|