TmRoot

Section: C Library Functions (3)
Updated: 24 July 1993
Index Return to Main Contents
 

NAME

TmRoot - the toplevel widget ``.''  

SYNOPSIS

xtAppInitialize
 

DESCRIPTION

This is the command that creates the root widget ``.''

 

OPTIONS

The function xtAppInitialize has these options
-class class
-fallbackResources resources
These are in a tcl list, as in
        {
                {*list.visibleItemCount: 10}
                {*quit.labelString: Quit}
        }
-options options
These set the application options. The options is a list of option values. Each option value consists of the command line option (such as -helpFile), the resource name (such as helpFile) and the type of command line argument supported. Possible values for this are
noArg
sepArg
stickyArg
resArg
skipArg
skipLine
For example,
-options {
        {-helpFile helpFile sepArg} 
        {-showHelp showHelp isArg}
    }

 

METHODS

The methods supported for this widget include all the commands for the TmCore and TmTopLevelShell widget. In addition, these methods are also available to the ``.'' widget
addInput
removeInput
addTimer
removeTimer
getAppResources
mainLoop
processEvent

addInput file mode command

This method adds the tcl command as an input handler for the file, according to the mode specified. This can be `r' for read, `w' for write or `x' for exception. Whenever the file is ready for the requested operation the tcl function is called to handle it. The command returns an XID which is an identifier for the input handler.

removeInput inputID

This method removes the file handler added by addInput. It takes as argument the identifier returned from ``addInput''.

addTimer interval command

This method adds the tcl command to an Xt timer. The interval is in milliseconds. The command returns an XID which is an identifier for the input handler.

removeTimer timerID

This method removes the timer added by addTimer. It takes as argument the identifier returned from ``addTimer''. Note that if an attempt is made to remove a timer that has gone off, Xt has unspecified behaviour.

mainLoop

This starts the Xt event processing loop

processEvent

This processes the next event, along with any timers and input handlers. It is supplied here for use in modal dialogs.

 

CALLBACK SUBSTITUTIONS

No additional substitutions are supported for this class.  

BUGS

None known.  

AUTHOR

Jan Newmarch, University of Canberra


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
METHODS
CALLBACK SUBSTITUTIONS
BUGS
AUTHOR

This document was created by man2html, using the manual pages.
Time: 15:08:48 GMT, November 05, 2024