bakery  2.6
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
Bakery::BusyCursor Class Reference

Changes the cursor for as long as this instance lives. More...

#include <BusyCursor.h>

Public Member Functions

 BusyCursor (Gtk::Window &window, Gdk::CursorType cursor_type=Gdk::WATCH)
 Associate a busy cursor with the window, for the lifetime of this object. More...
 
 BusyCursor (Gtk::Window *window, Gdk::CursorType cursor_type=Gdk::WATCH)
 Associate a busy cursor with the window, for the lifetime of this object, if window is not 0. More...
 
virtual ~BusyCursor ()
 

Protected Types

typedef std::map< Gtk::Window *, Gdk::Cursor > type_map_cursors
 

Protected Member Functions

void init ()
 
void force_gui_update ()
 

Protected Attributes

Gdk::Cursor m_Cursor
 
Gtk::Window * m_pWindow
 
Glib::RefPtr< Gdk::Window > m_refWindow
 
Gdk::Cursor m_old_cursor
 
bool m_old_cursor_valid
 

Static Protected Attributes

static type_map_cursors m_map_cursors
 

Detailed Description

Changes the cursor for as long as this instance lives.

For instance, put it at the start of code in a { and } block.

Member Typedef Documentation

◆ type_map_cursors

typedef std::map<Gtk::Window*, Gdk::Cursor> Bakery::BusyCursor::type_map_cursors
protected

Constructor & Destructor Documentation

◆ BusyCursor() [1/2]

Bakery::BusyCursor::BusyCursor ( Gtk::Window &  window,
Gdk::CursorType  cursor_type = Gdk::WATCH 
)

Associate a busy cursor with the window, for the lifetime of this object.

◆ BusyCursor() [2/2]

Bakery::BusyCursor::BusyCursor ( Gtk::Window *  window,
Gdk::CursorType  cursor_type = Gdk::WATCH 
)

Associate a busy cursor with the window, for the lifetime of this object, if window is not 0.

◆ ~BusyCursor()

virtual Bakery::BusyCursor::~BusyCursor ( )
virtual

Member Function Documentation

◆ force_gui_update()

void Bakery::BusyCursor::force_gui_update ( )
protected

◆ init()

void Bakery::BusyCursor::init ( )
protected

Member Data Documentation

◆ m_Cursor

Gdk::Cursor Bakery::BusyCursor::m_Cursor
protected

◆ m_map_cursors

type_map_cursors Bakery::BusyCursor::m_map_cursors
staticprotected

◆ m_old_cursor

Gdk::Cursor Bakery::BusyCursor::m_old_cursor
protected

◆ m_old_cursor_valid

bool Bakery::BusyCursor::m_old_cursor_valid
protected

◆ m_pWindow

Gtk::Window* Bakery::BusyCursor::m_pWindow
protected

◆ m_refWindow

Glib::RefPtr<Gdk::Window> Bakery::BusyCursor::m_refWindow
protected

The documentation for this class was generated from the following file: