GtkStyle::bg

GtkStyle::bg

Access: Read Write
Type: Array

Returns an array of 5 background GdkColors used for the different states a widget can reach.

$newstyle = &new GtkStyle();
$newstyle->bg[GTK_STATE_PRELIGHT] = $newstyle->white;

Note that GtkLabel does not allow the background color to be changed, so you have to set the background of the parent widget, e.g. the GtkButton.

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.