PHPマニュアル/PEARマニュアル | ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot

GtkStyle::bg_pixmap | JavaScript入門&応用&リファレンスなら「JavaScriptist」

  

GtkStyle::bg_pixmap

Access: Read Write
Type: Array

Returns an array of 5 pixmaps, one for each state a widget can reach. You can set it the following way:

$bookicon = array("16 16 6 1",
"       c None s None",".      c black","X      c red","o      c yellow","O      c #808080",
"#      c white","                ","       ..       ","     ..XX.      ","   ..XXXXX.     ",
" ..XXXXXXXX.    ",".ooXXXXXXXXX.   ","..ooXXXXXXXXX.  ",".X.ooXXXXXXXXX. ",".XX.ooXXXXXX..  ",
" .XX.ooXXX..#O  ","  .XX.oo..##OO. ","   .XX..##OO..  ","    .X.#OO..    ","     ..O..      ",
"      ..        ","                ");
$transparent = &new GdkColor(0, 0, 0);
list( $pixmap, $mask) = Gdk::pixmap_create_from_xpm_d($window->window, $transparent, $bookicon);

$style	= &new GtkStyle;
$style->bg_pixmap[GTK_STATE_NORMAL]	= $pixmap;

忘却曲線を使ってこの知識を確実に記憶に残す

フォーラムで「GtkStyle::bg_pixmap」について話す
各種マニュアル: PHPマニュアル | PEARマニュアル | Smarty(英語)マニュアル | PHP-GTKマニュアル | GtkStyle::bg_pixmap」をGoogle検索
copyright © 1997-2024 PHP ドキュメント作成グループ(ライセンス). provided by php spot. マニュアル: