libgnomeuimm  2.28.0
Public Types | Public Member Functions | Protected Member Functions | Related Functions | List of all members
Gnome::UI::IconList Class Reference

#include <icon-list.h>

Inheritance diagram for Gnome::UI::IconList:
Canvas

Public Types

typedef IconList_Helpers::SelectionList SelectionList
 

Public Member Functions

virtual ~IconList ()
 
GnomeIconList * gobj ()
 Provides access to the underlying C GtkObject. More...
 
const GnomeIconList * gobj () const
 Provides access to the underlying C GtkObject. More...
 
 IconList (guint icon_width=80, bool is_editable=false)
 
void set_hadjustment (Gtk::Adjustment &hadj)
 
void set_vadjustment (Gtk::Adjustment &vadj)
 
void freeze ()
 
void thaw ()
 
void insert (int pos, const Glib::ustring &icon_filename, const Glib::ustring &text)
 
void insert (int idx, const Glib::RefPtr< Gdk::Pixbuf > &im, const Glib::ustring &icon_filename, const Glib::ustring &text)
 
int append (const Glib::ustring &icon_filename, const Glib::ustring &text)
 
int append (const Glib::RefPtr< Gdk::Pixbuf > &im, const Glib::ustring &icon_filename, const Glib::ustring &text)
 
void clear ()
 
void remove (int pos)
 
guint get_num_icons () const
 
Gtk::SelectionMode get_selection_mode () const
 
void set_selection_mode (Gtk::SelectionMode mode)
 
void select_icon (int idx)
 
void unselect_icon (int idx)
 
int select_all ()
 
int unselect_all ()
 
void focus_icon (gint idx)
 
void set_icon_width (int w)
 
void set_row_spacing (int spacing)
 
void set_col_spacing (int spacing)
 
void set_text_spacing (int spacing)
 
void set_icon_border (int spacing)
 
void set_separators (const Glib::ustring &sep)
 
Glib::ustring get_icon_filename (int idx) const
 
int find_icon_from_filename (const Glib::ustring &filename) const
 
void set_icon_data (int pos, gpointer data)
 
int find_icon_from_data (gpointer data) const
 
gpointer get_icon_data (int pos)
 
void moveto (int pos, double yalign)
 
Gtk::Visibility icon_is_visible (int pos)
 
int get_icon_at (int x, int y) const
 
int get_items_per_line () const
 
IconTextItemget_icon_text_item (int idx)
 
Gnome::Canvas::Pixbuf * get_icon_pixbuf_item (int idx)
 
SelectionListselection ()
 
const SelectionListselection () const
 
Glib::SignalProxy2< void, int, GdkEvent *> signal_select_icon ()
 
Glib::SignalProxy2< void, int, GdkEvent *> signal_unselect_icon ()
 
Glib::SignalProxy1< void, int > signal_focus_icon ()
 
Glib::SignalProxy2< bool, int, const char *> signal_text_changed ()
 
Glib::SignalProxy2< void, Gtk::DirectionType, bool > signal_move_cursor ()
 
Glib::SignalProxy0< void > signal_toggle_cursor_selection ()
 

Protected Member Functions

virtual void on_select_icon (int num, GdkEvent *event)
 
virtual void on_unselect_icon (int num, GdkEvent *event)
 
virtual void on_focus_icon (int num)
 
virtual bool on_text_changed (int num, const char *new_text)
 
virtual void on_move_cursor (Gtk::DirectionType dir, bool clear_selection)
 
virtual void on_toggle_cursor_selection ()
 

Related Functions

(Note that these are not member functions.)

Gnome::UI::IconListwrap (GnomeIconList *object, bool take_copy=false)
 A Glib::wrap() method for this object. More...
 

Member Typedef Documentation

§ SelectionList

Constructor & Destructor Documentation

§ ~IconList()

virtual Gnome::UI::IconList::~IconList ( )
virtual

§ IconList()

Gnome::UI::IconList::IconList ( guint  icon_width = 80,
bool  is_editable = false 
)
explicit

Member Function Documentation

§ append() [1/2]

int Gnome::UI::IconList::append ( const Glib::ustring &  icon_filename,
const Glib::ustring &  text 
)

§ append() [2/2]

int Gnome::UI::IconList::append ( const Glib::RefPtr< Gdk::Pixbuf > &  im,
const Glib::ustring &  icon_filename,
const Glib::ustring &  text 
)

§ clear()

void Gnome::UI::IconList::clear ( )

§ find_icon_from_data()

int Gnome::UI::IconList::find_icon_from_data ( gpointer  data) const

§ find_icon_from_filename()

int Gnome::UI::IconList::find_icon_from_filename ( const Glib::ustring &  filename) const

§ focus_icon()

void Gnome::UI::IconList::focus_icon ( gint  idx)

§ freeze()

void Gnome::UI::IconList::freeze ( )

§ get_icon_at()

int Gnome::UI::IconList::get_icon_at ( int  x,
int  y 
) const

§ get_icon_data()

gpointer Gnome::UI::IconList::get_icon_data ( int  pos)

§ get_icon_filename()

Glib::ustring Gnome::UI::IconList::get_icon_filename ( int  idx) const

§ get_icon_pixbuf_item()

Gnome::Canvas::Pixbuf* Gnome::UI::IconList::get_icon_pixbuf_item ( int  idx)

§ get_icon_text_item()

IconTextItem* Gnome::UI::IconList::get_icon_text_item ( int  idx)

§ get_items_per_line()

int Gnome::UI::IconList::get_items_per_line ( ) const

§ get_num_icons()

guint Gnome::UI::IconList::get_num_icons ( ) const

§ get_selection_mode()

Gtk::SelectionMode Gnome::UI::IconList::get_selection_mode ( ) const

§ gobj() [1/2]

GnomeIconList* Gnome::UI::IconList::gobj ( )
inline

Provides access to the underlying C GtkObject.

§ gobj() [2/2]

const GnomeIconList* Gnome::UI::IconList::gobj ( ) const
inline

Provides access to the underlying C GtkObject.

§ icon_is_visible()

Gtk::Visibility Gnome::UI::IconList::icon_is_visible ( int  pos)

§ insert() [1/2]

void Gnome::UI::IconList::insert ( int  pos,
const Glib::ustring &  icon_filename,
const Glib::ustring &  text 
)

§ insert() [2/2]

void Gnome::UI::IconList::insert ( int  idx,
const Glib::RefPtr< Gdk::Pixbuf > &  im,
const Glib::ustring &  icon_filename,
const Glib::ustring &  text 
)

§ moveto()

void Gnome::UI::IconList::moveto ( int  pos,
double  yalign 
)

§ on_focus_icon()

virtual void Gnome::UI::IconList::on_focus_icon ( int  num)
protectedvirtual

§ on_move_cursor()

virtual void Gnome::UI::IconList::on_move_cursor ( Gtk::DirectionType  dir,
bool  clear_selection 
)
protectedvirtual

§ on_select_icon()

virtual void Gnome::UI::IconList::on_select_icon ( int  num,
GdkEvent *  event 
)
protectedvirtual

§ on_text_changed()

virtual bool Gnome::UI::IconList::on_text_changed ( int  num,
const char *  new_text 
)
protectedvirtual

§ on_toggle_cursor_selection()

virtual void Gnome::UI::IconList::on_toggle_cursor_selection ( )
protectedvirtual

§ on_unselect_icon()

virtual void Gnome::UI::IconList::on_unselect_icon ( int  num,
GdkEvent *  event 
)
protectedvirtual

§ remove()

void Gnome::UI::IconList::remove ( int  pos)

§ select_all()

int Gnome::UI::IconList::select_all ( )

§ select_icon()

void Gnome::UI::IconList::select_icon ( int  idx)

§ selection() [1/2]

SelectionList& Gnome::UI::IconList::selection ( )

§ selection() [2/2]

const SelectionList& Gnome::UI::IconList::selection ( ) const

§ set_col_spacing()

void Gnome::UI::IconList::set_col_spacing ( int  spacing)

§ set_hadjustment()

void Gnome::UI::IconList::set_hadjustment ( Gtk::Adjustment &  hadj)

§ set_icon_border()

void Gnome::UI::IconList::set_icon_border ( int  spacing)

§ set_icon_data()

void Gnome::UI::IconList::set_icon_data ( int  pos,
gpointer  data 
)

§ set_icon_width()

void Gnome::UI::IconList::set_icon_width ( int  w)

§ set_row_spacing()

void Gnome::UI::IconList::set_row_spacing ( int  spacing)

§ set_selection_mode()

void Gnome::UI::IconList::set_selection_mode ( Gtk::SelectionMode  mode)

§ set_separators()

void Gnome::UI::IconList::set_separators ( const Glib::ustring &  sep)

§ set_text_spacing()

void Gnome::UI::IconList::set_text_spacing ( int  spacing)

§ set_vadjustment()

void Gnome::UI::IconList::set_vadjustment ( Gtk::Adjustment &  vadj)

§ signal_focus_icon()

Glib::SignalProxy1< void,int > Gnome::UI::IconList::signal_focus_icon ( )
Prototype:
void on_my_focus_icon(int num)

§ signal_move_cursor()

Glib::SignalProxy2< void,Gtk::DirectionType,bool > Gnome::UI::IconList::signal_move_cursor ( )
Prototype:
void on_my_move_cursor(Gtk::DirectionType dir, bool clear_selection)

§ signal_select_icon()

Glib::SignalProxy2< void,int,GdkEvent* > Gnome::UI::IconList::signal_select_icon ( )
Prototype:
void on_my_select_icon(int num, GdkEvent* event)

§ signal_text_changed()

Glib::SignalProxy2< bool,int,const char* > Gnome::UI::IconList::signal_text_changed ( )
Prototype:
bool on_my_text_changed(int num, const char* new_text)

§ signal_toggle_cursor_selection()

Glib::SignalProxy0< void > Gnome::UI::IconList::signal_toggle_cursor_selection ( )
Prototype:
void on_my_toggle_cursor_selection()

§ signal_unselect_icon()

Glib::SignalProxy2< void,int,GdkEvent* > Gnome::UI::IconList::signal_unselect_icon ( )
Prototype:
void on_my_unselect_icon(int num, GdkEvent* event)

§ thaw()

void Gnome::UI::IconList::thaw ( )

§ unselect_all()

int Gnome::UI::IconList::unselect_all ( )

§ unselect_icon()

void Gnome::UI::IconList::unselect_icon ( int  idx)

Friends And Related Function Documentation

§ wrap()

Gnome::UI::IconList * wrap ( GnomeIconList *  object,
bool  take_copy = false 
)
related

A Glib::wrap() method for this object.

Parameters
objectThe C instance.
take_copyFalse 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: