Maeomm Reference Documentation: hildon-libsmm
Main Page   Namespaces   Book  

Hildon::ColorSelector Class Reference
[Dialogs]

Inheritance diagram for Hildon::ColorSelector:

Inheritance graph
[legend]
List of all members.

Detailed Description

The Hildon::ColorSelector is a dialog for selecting colors.

It allows selection of a color from a standard 16-color palette or a palette of 8 user-customizable colors. The user-customizable colors can be modified through Hildon::ColorPopup.

It is very similar to the Gtk::ColorSelectionDialog, but more suitable for embedded devices.

There are two different ways to use the Hildon::ColorSelector:


Public Member Functions

 ColorSelector (Gtk::Window& parent)
 ColorSelector ()
Gdk::Color get_color () const
const HildonColorSelector* gobj () const
 Provides access to the underlying C GtkObject.
HildonColorSelector* gobj ()
 Provides access to the underlying C GtkObject.
void set_color (const Gdk::Color& color)
 Selects the color specified.
virtual ~ColorSelector ()

Related Functions

(Note that these are not member functions.)

Hildon::ColorSelectorwrap (HildonColorSelector* object, bool take_copy=false)


Constructor & Destructor Documentation

virtual Hildon::ColorSelector::~ColorSelector (  )  [virtual]
 

Hildon::ColorSelector::ColorSelector (  ) 
 

Hildon::ColorSelector::ColorSelector ( Gtk::Window parent  ) 
 


Member Function Documentation

Gdk::Color Hildon::ColorSelector::get_color (  )  const
 

Returns:
The currently selected Gdk::Color.

const HildonColorSelector* Hildon::ColorSelector::gobj (  )  const [inline]
 

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::Dialog.

HildonColorSelector* Hildon::ColorSelector::gobj (  )  [inline]
 

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::Dialog.

void Hildon::ColorSelector::set_color ( const Gdk::Color color  ) 
 

Selects the color specified.

Does nothing if the color does not exist among the standard colors.

Parameters:
color Gdk::Color to set.


Friends And Related Function Documentation

Hildon::ColorSelector* wrap ( HildonColorSelector*  object,
bool  take_copy = false
[related]
 

Parameters:
object The C instance
take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
Returns:
A C++ instance that wraps this C instance.


The documentation for this class was generated from the following file:
Generated for hildon-libsmm by Doxygen 1.4.2 © 1997-2001