Maeomm Reference Documentation: hildonsmm
Main Page   Namespaces   Book  

Hildon::ColorButton Class Reference
[ButtonsWidgets]

Inheritance diagram for Hildon::ColorButton:

Gtk::Button Gtk::Bin Gtk::Container Gtk::Widget Gtk::Object Atk::Implementor Glib::Object Glib::Interface Glib::ObjectBase Glib::ObjectBase sigc::trackable sigc::trackable List of all members.

Detailed Description

Hildon::ColorButton is a widget to open a Hildon::ColorSelector dialog.

The selected color is shown in the button and is a property of the button.


Public Member Functions

 ColorButton (const Gdk::Color& color)
 ColorButton ()
Gdk::Color get_color () const
bool get_popup_shown () const
 This function checks if the color button has the color selection dialog currently popped-up.
const HildonColorButton* gobj () const
 Provides access to the underlying C GtkObject.
HildonColorButton* gobj ()
 Provides access to the underlying C GtkObject.
void popdown ()
 If the color selection dialog is currently popped-up (visible) it will be popped-down (hidden).
void set_color (const Gdk::Color& color)
 Sets the color selected by the button.
virtual ~ColorButton ()

Related Functions

(Note that these are not member functions.)

Hildon::ColorButtonwrap (HildonColorButton* object, bool take_copy=false)
 
Parameters:
object The C instance


Constructor & Destructor Documentation

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

Hildon::ColorButton::ColorButton (  ) 

Hildon::ColorButton::ColorButton ( const Gdk::Color color  )  [explicit]


Member Function Documentation

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

bool Hildon::ColorButton::get_popup_shown (  )  const

This function checks if the color button has the color selection dialog currently popped-up.

Returns:
true if the dialog is popped-up (visible to user).

const HildonColorButton* Hildon::ColorButton::gobj (  )  const [inline]

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::Button.

HildonColorButton* Hildon::ColorButton::gobj (  )  [inline]

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::Button.

void Hildon::ColorButton::popdown (  ) 

If the color selection dialog is currently popped-up (visible) it will be popped-down (hidden).

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

Sets the color selected by the button.

Parameters:
color A color to be set.


Friends And Related Function Documentation

Hildon::ColorButton* wrap ( HildonColorButton *  object,
bool  take_copy = false 
) [related]

Parameters:
object The C instance

Parameters:
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 hildonmm by Doxygen 1.5.1 © 1997-2001