Xfce Foundation Classes
Main Page  | IndexNamespace List  |  Alphabetical List  |  Class List  |  File List


Public Member Functions
Xfc::Gtk::SourceTagStyle Class Reference

A GtkSourceTagStyle C++ wrapper class. More...

Inheritance diagram for Xfc::Gtk::SourceTagStyle:
Xfc::G::Boxed Xfc::Object Xfc::Trackable

List of all members.

Public Member Functions

Constructors

Detailed Description

A GtkSourceTagStyle C++ wrapper class.


Constructor & Destructor Documentation

Xfc::Gtk::SourceTagStyle::SourceTagStyle ( GtkSourceTagStyle *  style) [explicit]

Construct a new tag style from an existing GtkSourceTagStyle.

Parameters:
styleA pointer to a GtkSourceTagStyle.


The style can be a newly created GtkSourceTagStyle or an existing GtkSourceTagStyle. The SourceTagStyle object created is a temporary object. It doesn't take over the ownership of GtkSourceTagStyle and GtkSourceTagStyle is not freed by the destructor.

Xfc::Gtk::SourceTagStyle::SourceTagStyle ( GtkSourceTagStyle *  style,
bool  copy 
)

Construct a new tag style from an existing GtkSourceTagStyle.

Parameters:
styleA pointer to a GtkSourceTagStyle.
copyWhether the SourceTagStyle object should make a copy of GtkSourceTagStyle or not.


The style can be a newly created GtkSourceTagStyle or an existing GtkSourceTagStyle. If copy is true SourceTagStyle will make a copy of GtkSourceTagStyle. If copy is false SourceTagStyle wont make a copy but instead takes over the ownership of GtkSourceTagStyle. Either way, the destructor will free GtkSourceTagStyle when the SourceTagStyle object is destroyed. This constructor is used by G::Boxed::wrap() to wrap GtkSourceTagStyle objects in a C++ wrapper.

Copy constructor.

Parameters:
srcThe source tag style.

Member Function Documentation

SourceTagStyle& Xfc::Gtk::SourceTagStyle::operator= ( const SourceTagStyle src)

Assignment operator.

Parameters:
srcThe source tag style.
void Xfc::Gtk::SourceTagStyle::set_background ( const char *  spec)

Set the tag style text background color from a textual specification.

Parameters:
specThe textual specification of the background color.

Set the tag style text background color.

Parameters:
colorThe background color.
void Xfc::Gtk::SourceTagStyle::set_foreground ( const char *  spec)

Set the tag style text foreground color from a textual specification.

Parameters:
specThe textual specification of the foreground color.

Set the tag style text foreground color.

Parameters:
colorThe foreground color.

The documentation for this class was generated from the following file:
Xfce Foundation Classes
Copyright © 2004-2005 The XFC Development Team XFC