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

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

  

GtkStyle

A class that determines the appearance of widgets.

Object Hierarchy

Direct subclasses

None.

Description

GtkStyle is a structure that is used to define the colors displayed in any widget, or across an application. Being a GtkWidget property, it is accessible through all objects that take up screen space, using the syntax:

It is also possible to create a new GtkStyle object in the normal way, e.g. or to take the default application style: in order to change the style across an application.

Setting a style across an application can also be achieved by using rc files. There are two in the PHP-GTK test directory which are used in gtk.php.

The style functions are generally not buggy, the only known exception being where the text and base properties are intended to describe text and its normally-white background. In some cases this has not worked, and you may find that you need to use fg to color the text.

In all cases where the property type is given as array, what is being referred to is an array consisting of the five GtkStateType states.

Constructor

GtkStyle (void);
-- Creates a new style for a widget.

Methods

copy()
?? Copies an existing style.

Properties

black:
?? The color being used as black.
white:
?? The color being used as white.
font:
?? The font.
black_gc:
?? Graphics information for the black color.
white_gc:
?? Graphics information for the white color.
colormap:
?? The colormap currently being used.
fg:
?? Foreground colors.
bg:
?? Background colors.
light:
??
dark:
??
mid:
?? Midway between light and dark.
text:
?? Colors for a text widget.
base:
?? Text background.
fg_gc:
?? Graphics information for the foreground colors.
bg_gc:
?? Graphics information for the background colors.
light_gc:
??
dark_gc:
??
mid_gc:
??
text_gc:
?? Graphics information for the text foreground colors.
base_gc:
?? Graphics information for the text background colors.
bg_pixmap:
?? Background pixmaps.

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

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