OxyScripts.com
Menu spacer Home Tutorials Articles Code Forums irc.freenode.net #oxyscripts
Main (PHP)
Home Forums PHP News PHP Tutorials Articles PHP Code Snippets Contact Us Sysadmin Resources Books Template Shop
3rd Party Streams
SlashDot PHPDeveloper.org PHP.Net
Resources
PHP Manual MySQL Manual Smarty Manual PEAR Manual PHP-GTK Manual Symfony Manual
Code Snippets
Authentication Database Graphics HTTP Miscellaneous Time/Date
Affiliates
Scripts TutorialMan TutorialGuide CodingForums.com PHP Scripts Cheap Web Hosting Affordable Web Hosting Dreamweaver Templates

Search This Site :     PHP Function Reference :
 
GtkStyle

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.

 
   Print this page

Top Sponsor
Symantec\'s Norton SystemWorks 2006
Sponsors
CA
Sponsors
AdWords Dominator 125*125
Advertisting

Affiliates
VertexTemplates PHPFreaks CodeWalkers StarGeek DevScripts CGI & PHP Scripts PHP CMS

Shopping Rebates   Sell It 4 You   Flash Page Counters   Get Insured
GPS Tracking Service   Charity Donate Info   Web Site Hosting   VOIP Service

Privacy Policy | Links | Site Map | Advertising

All content on OxyScripts.com is (©)2002-2007

 
Powered by Adrastea - Version 1.0.0. Copyright © Rune Solutions, 2004-2005