gtk.Timeout.Timeout Class Reference

List of all members.

Detailed Description

Description Before using GTK+, you need to initialize it; initialization connects to the window system display, and parses some standard command line arguments.

The gtk_init() function initializes GTK+. gtk_init() exits the application if errors occur; to avoid this, use gtk_init_check(). gtk_init_check() allows you to recover from a failed GTK+ initialization - you might start up your application in text mode instead. Like all GUI toolkits, GTK+ uses an event-driven programming model. When the user is doing nothing, GTK+ sits in the main loop and waits for input. If the user performs some action - say, a mouse click - then the main loop "wakes up" and delivers an event to GTK+. GTK+ forwards the event to one or more widgets. When widgets receive an event, they frequently emit one or more signals. Signals notify your program that "something interesting happened" by invoking functions you've connected to the signal with g_signal_connect(). Functions connected to a signal are often termed callbacks. When your callbacks are invoked, you would typically take some action


Public Member Functions

bit delegate ()[] timeoutListeners
 Holds all timeout delegates.
 this (uint interval, bit delegate() dlg, bit fireNow=false)
 Creates a new timeout cycle.
void stop ()
 ~this ()
 Removes the timeout from gtk Returns:.
void addListener (bit delegate() dlg, bit fireNow=false)
 Adds a new delegate to this timeout cycle Params: delegate() = fireNow =.
 extern (C) static bit timeoutCallback(Timeout timeout)
 The callback execution from glib Params: timeout = Returns:.

Static Public Member Functions

static uint addFull (uint interval, GtkFunction funct, GtkCallbackMarshal marshal, void *data, GtkDestroyNotify destroy)
 Warning gtk_timeout_add_full has been deprecated since version 2.4 and should not be used in newly-written code.
static uint add (uint interval, GtkFunction funct, void *data)
 Warning gtk_timeout_add has been deprecated since version 2.4 and should not be used in newly-written code.
static void remove (uint timeoutHandlerId)
 Warning gtk_timeout_remove has been deprecated since version 2.4 and should not be used in newly-written code.

Public Attributes

uint timeoutID
 our gtk timeout ID

Private Member Functions

bit callAllListeners ()
 Executes all delegates on the execution list Returns:.


Constructor & Destructor Documentation

gtk.Timeout.Timeout.this ( uint  interval,
bit delegate()  dlg,
bit  fireNow = false 
)

Creates a new timeout cycle.

Params: interval = the timeout in milieconds delegate() = the delegate to be executed fireNow = When true the delegate will be executed emmidiatly Returns:

gtk.Timeout.Timeout.~this (  ) 

Removes the timeout from gtk Returns:.


Member Function Documentation

static uint gtk.Timeout.Timeout.add ( uint  interval,
GtkFunction  funct,
void *  data 
) [static]

Warning gtk_timeout_add has been deprecated since version 2.4 and should not be used in newly-written code.

Use g_timeout_add() instead. Registers a function to be called periodically. The function will be called repeatedly after interval milliseconds until it returns FALSE at which point the timeout is destroyed and will not be called again. interval: The time between calls to the function, in milliseconds (1/1000ths of a second.) function: The function to call periodically. data: The data to pass to the function. Returns: A unique id for the event source.

static uint gtk.Timeout.Timeout.addFull ( uint  interval,
GtkFunction  funct,
GtkCallbackMarshal  marshal,
void *  data,
GtkDestroyNotify  destroy 
) [static]

Warning gtk_timeout_add_full has been deprecated since version 2.4 and should not be used in newly-written code.

Use g_timeout_add_full() instead. Registers a function to be called periodically. The function will be called repeatedly after interval milliseconds until it returns FALSE at which point the timeout is destroyed and will not be called again. interval: The time between calls to the function, in milliseconds (1/1000ths of a second.) function: The function to call periodically. marshal: The marshaller to use instead of the function (if non-NULL). data: The data to pass to the function. destroy: Function to call when the timeout is destroyed or NULL. Returns: A unique id for the event source.

void gtk.Timeout.Timeout.addListener ( bit delegate()  dlg,
bit  fireNow = false 
)

Adds a new delegate to this timeout cycle Params: delegate() = fireNow =.

bit gtk.Timeout.Timeout.callAllListeners (  )  [private]

Executes all delegates on the execution list Returns:.

bit gtk.Timeout.Timeout.delegate (  ) 

Holds all timeout delegates.

gtk.Timeout.Timeout.extern (  ) 

The callback execution from glib Params: timeout = Returns:.

static void gtk.Timeout.Timeout.remove ( uint  timeoutHandlerId  )  [static]

Warning gtk_timeout_remove has been deprecated since version 2.4 and should not be used in newly-written code.

Use g_source_remove() instead. Removes the given timeout destroying all information about it. timeout_handler_id: The identifier returned when installing the timeout.

void gtk.Timeout.Timeout.stop (  ) 


Member Data Documentation

uint gtk.Timeout.Timeout.timeoutID

our gtk timeout ID


SourceForge.net Logo DSource.org Logo digitalmars.com Logo