---
name: "Gtk2::RcStyle"
section: "3pm"
platform: "linux"
package: "libgtk2-perl-doc"
version: "2:1.24992-1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/Gtk2::RcStyle"
---

# Gtk2::RcStyle(3pm)

wrapper for GtkRcStyle

## NAME

Gtk2::RcStyle - wrapper for GtkRcStyle

## HIERARCHY

```
  Glib::Object
  +----Gtk2::RcStyle
```

## METHODS

### rcstyle = Gtk2::RcStyle-\>new

### color = $style-\>base ($state, $new=undef)

- •

  `$state` (Gtk2::StateType)

- •

  `$new` (Gtk2::Gdk::Color or undef)

### color = $style-\>bg ($state, $new=undef)

- •

  `$state` (Gtk2::StateType)

- •

  `$new` (Gtk2::Gdk::Color or undef)

### scalar = $style-\>bg\_pixmap\_name ($state, $new=undef)

- •

  `$state` (Gtk2::StateType)

- •

  `$new` (string or undef)

### rcflags = $style-\>color\_flags ($state, $new=0)

- •

  `$state` (Gtk2::StateType)

- •

  `$new` (Gtk2::RcFlags)

### rcstyle = $orig-\>copy

### color = $style-\>fg ($state, $new=undef)

- •

  `$state` (Gtk2::StateType)

- •

  `$new` (Gtk2::Gdk::Color or undef)

### scalar = $style-\>font\_desc ($new=undef)

- •

  `$new` (scalar)

### scalar = $style-\>name ($new=undef)

- •

  `$new` (scalar)

### color = $style-\>text ($state, $new=undef)

- •

  `$state` (Gtk2::StateType)

- •

  `$new` (Gtk2::Gdk::Color or undef)

### scalar = $style-\>xthickness ($new=undef)

- •

  `$new` (scalar)

### scalar = $style-\>ythickness ($new=undef)

- •

  `$new` (scalar)

## ENUMS AND FLAGS

### flags Gtk2::RcFlags

- •

  'fg' / 'GTK\_RC\_FG'

- •

  'bg' / 'GTK\_RC\_BG'

- •

  'text' / 'GTK\_RC\_TEXT'

- •

  'base' / 'GTK\_RC\_BASE'

### enum Gtk2::StateType

- •

  'normal' / 'GTK\_STATE\_NORMAL'

- •

  'active' / 'GTK\_STATE\_ACTIVE'

- •

  'prelight' / 'GTK\_STATE\_PRELIGHT'

- •

  'selected' / 'GTK\_STATE\_SELECTED'

- •

  'insensitive' / 'GTK\_STATE\_INSENSITIVE'

## SEE ALSO

Gtk2, Glib::Object

## COPYRIGHT

Copyright (C) 2003-2011 by the gtk2-perl team.

This software is licensed under the LGPL.  See Gtk2 for a full notice.
