Webhosting and cheap domain registration service
  

 Home

GTK Classes
Prev GtkStyle Next

GtkStyle

A class that determines the appearance of widgets.

Object Hierarchy

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.


Prev Home Next
text-popped Up GtkStyle Constructor

 

  

Network sites:

Cheap domain registrar's cheap domain registration service

$8.95 domain registration : Buy domain name or register domain name 

 
 
Quotes:
As the ostrich when pursued hideth his head, but forgetteth his body; so the fears of a coward expose him to danger.No man likes to have his intelligence or good faith questioned, especially if he has doubts about it himself.  
 
 

Disclaimer: This documentation is provided only for the benefits of our webhosting customers.
For authoritative source of the documentation, please refer to http://gtk.php.net/docs.php