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


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

A GtkHRuler C++ wrapper class. More...

#include <xfc/gtk/ruler.hh>

Inheritance diagram for Xfc::Gtk::HRuler:
Xfc::Gtk::Ruler Xfc::Gtk::Widget Xfc::Gtk::Object Xfc::Atk::Implementor Xfc::G::Object Xfc::G::TypeInterface Xfc::G::TypeInstance Xfc::G::TypeInstance Xfc::Trackable Xfc::Trackable

List of all members.

Public Member Functions

Constructors


Detailed Description

A GtkHRuler C++ wrapper class.

The HRuler widget is a widget arranged horizontally creating a ruler that is utilized around other widgets such as a text widget. The ruler is used to show the location of the mouse on the window and to show the size of the window in specified units. The available units of measurement are PIXELS (the default), INCHES and CENTIMETERS.

See also: the Ruler HOWTO and example.


Constructor & Destructor Documentation

Xfc::Gtk::HRuler::HRuler ( GtkHRuler *  hruler,
bool  owns_reference = false 
) [explicit, protected]

Construct a new HRuler from an existing GtkHRuler.

Parameters:
hrulerA pointer to a GtkHRuler.
owns_referenceSet false if the initial reference count is floating, set true if it's not.

The hruler can be a newly created GtkHRuler or an existing GtkHRuler (see G::Object::Object).

Xfc::Gtk::HRuler::HRuler ( MetricType  metric)

Contruct a new horizontal ruler with the metric type set to metric.

Parameters:
metricThe unit of measurement.

Available units are PIXELS, INCHES, or CENTIMETERS.


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