GFC Logo GFC Title Logo
Reference Manual
Main Page  |  Namespace List  |  Alphabetical List  |  Class List  |  File List

main.hh File Reference

A C++ interface for the GLib main event loop. More...

#include <gfc/object.hh>
#include <gfc/glib/iochannel.hh>
#include <sigc++/sigc++.h>
#include <gfc/glib/inline/main.inl>

Go to the source code of this file.

Namespaces

Classes

Time Methods

Enumerations

Variables


Detailed Description

A C++ interface for the GLib main event loop.

Provides G::MainContext, G::MainLoop and G::Source.


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
PRIORITY_HIGH  Use this for high priority event sources; It is not used within GLib or GTK+ (value -100).
PRIORITY_DEFAULT  Use this for default priority event sources; In GLib this priority is used when adding timeout functions with g_timeout_add(); In GDK this priority is used for events from the X server (value 0).
PRIORITY_HIGH_IDLE  Use this for high priority idle functions (value 100); GTK+ uses G_PRIORITY_HIGH_IDLE + 10 for window resizes and G_PRIORITY_HIGH_IDLE + 20 for window redraws, to ensure that any pending resizes are processed before any pending redraws, so that widgets are not redrawn twice unnecessarily; Note that you will interfere with GTK+ if you use a priority above G_PRIORITY_HIGH_IDLE + 10 (that is, GTK_PRIORITY_RESIZE).
PRIORITY_DEFAULT_IDLE  Use this for default priority idle functions; In GLib this priority is used when adding idle functions with g_idle_add() (value 200).
PRIORITY_LOW  Use this for very low priority background tasks; It is not used within GLib or GTK+ (value 300).


Function Documentation

void get_current_time TimeVal &  timeval  ) 
 

Equivalent to the UNIX gettimeofday() function, but portable.

Parameters:
timeval A TimeVal object in which to store the current time.


Generated on Tue Aug 24 00:04:56 2004 for GFC-Core by doxygen 1.3.8