logo top
Main Page   Widgets   Namespaces   Book  

Glib::Source Class Reference
[The Main Event Loop]

Inheritance diagram for Glib::Source:

Inheritance graph
[legend]
List of all members.

Public Types

typedef Glib::Source CppObjectType
typedef GSource BaseObjectType

Public Member Functions

unsigned int attach (const Glib::RefPtr<MainContext>& context)
 Adds a Source to a context so that it will be executed within that context.
unsigned int attach ()
 Adds a Source to a context so that it will be executed within that context.
void destroy ()
 Removes a source from its MainContext, if any, and marks it as destroyed.
void set_priority (int priority)
 Sets the priority of a source.
int get_priority () const
 Gets the priority of a source.
void set_can_recurse (bool can_recurse)
 Sets whether a source can be called recursively.
bool get_can_recurse () const
 Checks whether a source is allowed to be called recursively.
unsigned int get_id () const
 Returns the numeric ID for a particular source.
Glib::RefPtr<MainContextget_context ()
 Gets the MainContext with which the source is associated. run().

Returns:
true if the mainloop is currently being run.

void Glib::MainLoop::quit (  ) 
 

Stops a MainLoop from running.

Any calls to run() for the loop will return.

void Glib::MainLoop::reference (  )  const
 

Increases the reference count on a MainLoop object by one.

void Glib::MainLoop::run (  ) 
 

Runs a main loop until quit() is called on the loop.

If this is called for the thread of the loop's MainContext, it will process events from the loop, otherwise it will simply wait.

void Glib::MainLoop::unreference (  )  const
 

Decreases the reference count on a MainLoop object by one.

If the result is zero, free the loop and free all associated memory.


The documentation for this class was generated from the following file:
Generated for glibmm 2.4 by Doxygen 1.4.0 © 1997-2001
./usr/share/doc/libglibmm-2.4-dev/reference/html/classGlib_1_1MainLoop-members.html0000644000000000000000000001041610213201662030061 0ustar rootroot00000000000000 glibmm 2.4: Member List
logo top
Main Page   Widgets   Namespaces   Book  

Glib::MainLoop Member List

This is the complete list of members for Glib::MainLoop, including all inherited members.

BaseObjectType typedefGlib::MainLoop
CppObjectType typedefGlib::MainLoop
create(bool is_running=false)Glib::MainLoop [static]
create(const Glib::RefPtr<MainContext>& context, bool is_running=false)Glib::MainLoop [static]
depth()Glib::MainLoop [static]
get_context()Glib::MainLoop
gobj()Glib::MainLoop
gobj() const Glib::MainLoop
gobj_copy() const Glib::MainLoop
is_running()Glib::MainLoop
quit()Glib::MainLoop
reference() const Glib::MainLoop
run()Glib::MainLoop
unreference() const Glib::MainLoop
wrap(GMainLoop* gobject, bool take_copy=false)Glib::MainLoop [related]


Generated for glibmm 2.4 by Doxygen 1.4.0 © 1997-2001
./usr/share/doc/libglibmm-2.4-dev/reference/html/classGlib_1_1Source.html0000644000000000000000000011671110213201730026154 0ustar rootroot00000000000000 glibmm 2.4: Glib::Source Class Reference
logo top
Main Page   Widgets   Namespaces   Book  

Glib::Source Class Reference
[The Main Event Loop]

Inheritance diagram for Glib::Source:

Inheritance graph
[legend]
List of all members.

Public Types

typedef Glib::Source CppObjectType
typedef GSource BaseObjectType

Public Member Functions

unsigned int attach (const Glib::RefPtr<MainContext>& context)
 Adds a Source to a context so that it will be executed within that context.
unsigned int attach ()
 Adds a Source to a context so that it will be executed within that context.
void destroy ()
 Removes a source from its MainContext, if any, and marks it as destroyed.
void set_priority (int priority)
 Sets the priority of a source.
int get_priority () const
 Gets the priority of a source.
void set_can_recurse (bool can_recurse)
 Sets whether a source can be called recursively.
bool get_can_recurse () const
 Checks whether a source is allowed to be called recursively.
unsigned int get_id () const
 Returns the numeric ID for a particular source.
Glib::RefPtr<MainContextget_context ()
 Gets the MainContext with which the source is associated. run().

Returns:
true if the mainloop is currently being run.

void Glib::MainLoop::quit (  ) 
 

Stops a MainLoop from running.

Any calls to run() for the loop will return.

void Glib::MainLoop::reference (  )  const
 

Increases the reference count on a MainLoop object by one.

void Glib::MainLoop::run (  ) 
 

Runs a main loop until quit() is called on the loop.

If this is called for the thread of the loop's MainContext, it will process events from the loop, otherwise it will simply wait.

void Glib::MainLoop::unreference (  )  const
 

Decreases the reference count on a MainLoop object by one.

If the result is zero, free the loop and free all associated memory.


The documentation for this class was generated from the following file:
Generated for glibmm 2.4 by Doxygen 1.4.0 © 1997-2001
./usr/share/doc/libglibmm-2.4-dev/reference/html/classGlib_1_1MainLoop-members.html0000644000000000000000000001041610213201662030061 0ustar rootroot00000000000000 glibmm 2.4: Member List
logo top
Main Page   Widgets   Namespaces   Book  

Glib::MainLoop Member List

This is the complete list of members for Glib::MainLoop, including all inherited members.

BaseObjectType typedefGlib::MainLoop
CppObjectType typedefGlib::MainLoop
create(bool is_running=false)Glib::MainLoop [static]
create(const Glib::RefPtr<MainContext>& context, bool is_running=false)Glib::MainLoop [static]
depth()Glib::MainLoop [static]
get_context()Glib::MainLoop
gobj()Glib::MainLoop
gobj() const Glib::MainLoop
gobj_copy() const Glib::MainLoop
is_running()Glib::MainLoop
quit()Glib::MainLoop
reference() const Glib::MainLoop
run()Glib::MainLoop
unreference() const Glib::MainLoop
wrap(GMainLoop* gobject, bool take_copy=false)Glib::MainLoop [related]


Generated for glibmm 2.4 by Doxygen 1.4.0 © 1997-2001
./usr/share/doc/libglibmm-2.4-dev/reference/html/classGlib_1_1Source.html0000644000000000000000000011671110213201730026154 0ustar rootroot00000000000000 glibmm 2.4: Glib::Source Class Reference
logo top
Main Page   Widgets   Namespaces   Book  

Glib::Source Class Reference
[The Main Event Loop]

Inheritance diagram for Glib::Source:

Inheritance graph
[legend]
List of all members.

Public Types

typedef Glib::Source CppObjectType
typedef GSource BaseObjectType

Public Member Functions

unsigned int attach (const Glib::RefPtr<MainContext>& context)
 Adds a Source to a context so that it will be executed within that context.
unsigned int attach ()
 Adds a Source to a context so that it will be executed within that context.
void destroy ()
 Removes a source from its MainContext, if any, and marks it as destroyed.
void set_priority (int priority)
 Sets the priority of a source.
int get_priority () const
 Gets the priority of a source.
void set_can_recurse (bool can_recurse)
 Sets whether a source can be called recursively.
bool get_can_recurse () const
 Checks whether a source is allowed to be called recursively.
unsigned int get_id () const
 Returns the numeric ID for a particular source.
Glib::RefPtr<MainContextget_context ()
 Gets the MainContext with which the source is associated. run().

Returns:
true if the mainloop is currently being run.

void Glib::MainLoop::quit (  ) 
 

Stops a MainLoop from running.

Any calls to run() for the loop will return.