<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML><HEAD><TITLE>CuiWindow</TITLE><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REL="HOME" TITLE="Cuiterm Reference Manual" HREF="index.html"><LINK REL="UP" TITLE="Cuiterm Documentation 0.5" HREF="c4.html"><LINK REL="PREVIOUS" TITLE="CuiFrame" HREF="cuiframe.html"><LINK REL="NEXT" TITLE="CuiActionArea" HREF="cuiactionarea.html"><META NAME="GENERATOR" CONTENT="GTK-Doc V1.3 (SGML mode)"><STYLE TYPE="text/css">.synopsis, .classsynopsis { background: #eeeeee; border: solid 1px #aaaaaa; padding: 0.5em; } .programlisting { background: #eeeeff; border: solid 1px #aaaaff; padding: 0.5em; } .variablelist { padding: 4px; margin-left: 3em; } .navigation { background: #ffeeee; border: solid 1px #ffaaaa; margin-top: 0.5em; margin-bottom: 0.5em; } .navigation a { color: #770000; } .navigation a:visited { color: #550000; } .navigation .title { font-size: 200%; }</STYLE></HEAD><BODY CLASS="REFENTRY" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF"><TABLE WIDTH="100%" CLASS="navigation" SUMMARY="Navigation header" CELLPADDING="2" CELLSPACING="2"><TR VALIGN="middle"><TD><A ACCESSKEY="p" HREF="cuiframe.html"><IMG SRC="left.png" WIDTH="24" HEIGHT="24" BORDER="0" ALT="Prev"></A></TD><TD><A ACCESSKEY="u" HREF="c4.html"><IMG SRC="up.png" WIDTH="24" HEIGHT="24" BORDER="0" ALT="Up"></A></TD><TD><A ACCESSKEY="h" HREF="index.html"><IMG SRC="home.png" WIDTH="24" HEIGHT="24" BORDER="0" ALT="Home"></A></TD><TH WIDTH="100%" align="center">Cuiterm Reference Manual</TH><TD><A ACCESSKEY="n" HREF="cuiactionarea.html"><IMG SRC="right.png" WIDTH="24" HEIGHT="24" BORDER="0" ALT="Next"></A></TD></TR></TABLE><H1><A NAME="CUIWINDOW"></A>CuiWindow</H1><DIV CLASS="REFNAMEDIV"><A NAME="AEN3938"></A><H2>Name</H2>CuiWindow -- </DIV><DIV CLASS="REFSYNOPSISDIV"><A NAME="AEN3941"></A><H2>Synopsis</H2><PRE CLASS="SYNOPSIS"> #include <history.h> <A HREF="cuiwindow.html#CUIWINDOW-STRUCT">CuiWindow</A>; <A HREF="cuiwidget.html">CuiWidget</A>* <A HREF="cuiwindow.html#CUI-WINDOW-NEW">cui_window_new</A> (<A HREF="cuiterm-background.html#BACKGROUND">Background</A> *background); void <A HREF="cuiwindow.html#CUI-WINDOW-SET-BEGIN-MARK">cui_window_set_begin_mark</A> (<A HREF="cuiwindow.html">CuiWindow</A> *window, GtkTextMark *mark); void <A HREF="cuiwindow.html#CUI-WINDOW-SET-END-MARK">cui_window_set_end_mark</A> (<A HREF="cuiwindow.html">CuiWindow</A> *window, GtkTextMark *mark); void <A HREF="cuiwindow.html#CUI-WINDOW-SET-COMMAND">cui_window_set_command</A> (<A HREF="cuiwindow.html">CuiWindow</A> *window, GString *command); void <A HREF="cuiwindow.html#CUI-WINDOW-SET-WORKING-DIRECTORY">cui_window_set_working_directory</A> (<A HREF="cuiwindow.html">CuiWindow</A> *window, GString *wd); const gchar* <A HREF="cuiwindow.html#CUI-WINDOW-GET-WORKING-DIRECTORY">cui_window_get_working_directory</A> (<A HREF="cuiwindow.html">CuiWindow</A> *window); void <A HREF="cuiwindow.html#CUI-WINDOW-APPLY-TAG">cui_window_apply_tag</A> (<A HREF="cuiwindow.html">CuiWindow</A> *window, gchar *tag, GtkTextMark *mbegin, GtkTextMark *mend); void <A HREF="cuiwindow.html#CUI-WINDOW-REALIZE">cui_window_realize</A> (<A HREF="cuiwindow.html">CuiWindow</A> *window); gboolean <A HREF="cuiwindow.html#CUI-WINDOW-GET-TOKEN-MARKS">cui_window_get_token_marks</A> (<A HREF="cuiwindow.html">CuiWindow</A> *window, char *token, GtkTextMark **mbegin, GtkTextMark **mend); void <A HREF="cuiwindow.html#CUI-WINDOW-SET-TITLE">cui_window_set_title</A> (<A HREF="cuiwindow.html">CuiWindow</A> *window, gchar *title); void <A HREF="cuiwindow.html#CUI-WINDOW-SET-TITLE-IF-EMPTY">cui_window_set_title_if_empty</A> (<A HREF="cuiwindow.html">CuiWindow</A> *window, gchar *title); void <A HREF="cuiwindow.html#CUI-WINDOW-SET-PARSE-TREE">cui_window_set_parse_tree</A> (<A HREF="cuiwindow.html">CuiWindow</A> *window, GNode *parse_tree); gchar* <A HREF="cuiwindow.html#CUI-WINDOW-GET-TITLE">cui_window_get_title</A> (<A HREF="cuiwindow.html">CuiWindow</A> *window);</PRE></DIV><DIV CLASS="REFSECT1"><A NAME="AEN3997"></A><H2>Object Hierarchy</H2><PRE CLASS="SYNOPSIS"> GObject +----<A HREF="cuiwidget.html">CuiWidget</A> +----<A HREF="cuirectangle.html">CuiRectangle</A> +----CuiWindow</PRE></DIV><DIV CLASS="REFSECT1"><A NAME="AEN4003"></A><H2>Description</H2><P></P></DIV><DIV CLASS="REFSECT1"><A NAME="AEN4006"></A><H2>Details</H2><DIV CLASS="REFSECT2"><A NAME="AEN4008"></A><H3><A NAME="CUIWINDOW-STRUCT"></A>CuiWindow</H3><PRE CLASS="PROGRAMLISTING">typedef struct { GtkTextMark *begin; GtkTextMark *end; GtkTextMark *parser_cursor; /* wandering cursor */ GtkTextMark *lexer_cursor; /* */ GString *command; GNode *parse_tree; GString *wd; GString *username; GString *hostname; } CuiWindow;</PRE><P></P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4017"><SPAN STYLE="white-space: nowrap">GtkTextMark *<CODE CLASS="STRUCTFIELD">begin</CODE>;</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the starting point of the window is at the command line</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4023"><SPAN STYLE="white-space: nowrap">GtkTextMark *<CODE CLASS="STRUCTFIELD">end</CODE>;</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the end point of the window</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4029"><SPAN STYLE="white-space: nowrap">GtkTextMark *<CODE CLASS="STRUCTFIELD">parser_cursor</CODE>;</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the point where the parser reads the text (FIXME: do we need this?)</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4035"><SPAN STYLE="white-space: nowrap">GtkTextMark *<CODE CLASS="STRUCTFIELD">lexer_cursor</CODE>;</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the point where the lexer reads the text</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4041"><SPAN STYLE="white-space: nowrap">GString *<CODE CLASS="STRUCTFIELD">command</CODE>;</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the full command line created this command</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4047"><SPAN STYLE="white-space: nowrap">GNode *<CODE CLASS="STRUCTFIELD">parse_tree</CODE>;</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> A tree created by the bash parser. Every element is a <SPAN CLASS="TYPE">CuiLexElement</SPAN>.</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4055"><SPAN STYLE="white-space: nowrap">GString *<CODE CLASS="STRUCTFIELD">wd</CODE>;</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the working directory part from the prompt</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4061"><SPAN STYLE="white-space: nowrap">GString *<CODE CLASS="STRUCTFIELD">username</CODE>;</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the user name part from the cursor</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4067"><SPAN STYLE="white-space: nowrap">GString *<CODE CLASS="STRUCTFIELD">hostname</CODE>;</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the hostname part from the cursor</P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN4073"></A><H3><A NAME="CUI-WINDOW-NEW"></A>cui_window_new ()</H3><PRE CLASS="PROGRAMLISTING"><A HREF="cuiwidget.html">CuiWidget</A>* cui_window_new (<A HREF="cuiterm-background.html#BACKGROUND">Background</A> *background);</PRE><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4083"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">background</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4088"><SPAN STYLE="white-space: nowrap"><SPAN CLASS="emphasis"><I CLASS="EMPHASIS">Returns</I></SPAN> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> </P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN4093"></A><H3><A NAME="CUI-WINDOW-SET-BEGIN-MARK"></A>cui_window_set_begin_mark ()</H3><PRE CLASS="PROGRAMLISTING">void cui_window_set_begin_mark (<A HREF="cuiwindow.html">CuiWindow</A> *window, GtkTextMark *mark);</PRE><P>Sets the start point of the window.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4105"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">window</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a <A HREF="cuiwindow.html"><SPAN CLASS="TYPE">CuiWindow</SPAN></A></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4112"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">mark</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the begin point as a <SPAN CLASS="TYPE">GtkTextMark</SPAN></P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN4119"></A><H3><A NAME="CUI-WINDOW-SET-END-MARK"></A>cui_window_set_end_mark ()</H3><PRE CLASS="PROGRAMLISTING">void cui_window_set_end_mark (<A HREF="cuiwindow.html">CuiWindow</A> *window, GtkTextMark *mark);</PRE><P>Sets the end point of the window.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4131"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">window</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a <A HREF="cuiwindow.html"><SPAN CLASS="TYPE">CuiWindow</SPAN></A></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4138"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">mark</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the end point as a <SPAN CLASS="TYPE">GtkTextMark</SPAN></P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN4145"></A><H3><A NAME="CUI-WINDOW-SET-COMMAND"></A>cui_window_set_command ()</H3><PRE CLASS="PROGRAMLISTING">void cui_window_set_command (<A HREF="cuiwindow.html">CuiWindow</A> *window, GString *command);</PRE><P>Sets the command (the full command line) of which created this window. We use this facility to repeat the command if we want to refresh the window after a procedure has been completed on it.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4157"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">window</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a <A HREF="cuiwindow.html"><SPAN CLASS="TYPE">CuiWindow</SPAN></A></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4164"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">command</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the command created this window.</P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN4169"></A><H3><A NAME="CUI-WINDOW-SET-WORKING-DIRECTORY"></A>cui_window_set_working_directory ()</H3><PRE CLASS="PROGRAMLISTING">void cui_window_set_working_directory (<A HREF="cuiwindow.html">CuiWindow</A> *window, GString *wd);</PRE><P>Sets the directory path in which this window was created.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4181"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">window</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a <A HREF="cuiwindow.html"><SPAN CLASS="TYPE">CuiWindow</SPAN></A></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4188"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">wd</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the new working directory</P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN4193"></A><H3><A NAME="CUI-WINDOW-GET-WORKING-DIRECTORY"></A>cui_window_get_working_directory ()</H3><PRE CLASS="PROGRAMLISTING">const gchar* cui_window_get_working_directory (<A HREF="cuiwindow.html">CuiWindow</A> *window);</PRE><P>Returns the working directory of the window. This is a directory which was the working directory when the window creator command was executed.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4204"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">window</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a <A HREF="cuiwindow.html"><SPAN CLASS="TYPE">CuiWindow</SPAN></A></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4211"><SPAN STYLE="white-space: nowrap"><SPAN CLASS="emphasis"><I CLASS="EMPHASIS">Returns</I></SPAN> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the working directory</P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN4216"></A><H3><A NAME="CUI-WINDOW-APPLY-TAG"></A>cui_window_apply_tag ()</H3><PRE CLASS="PROGRAMLISTING">void cui_window_apply_tag (<A HREF="cuiwindow.html">CuiWindow</A> *window, gchar *tag, GtkTextMark *mbegin, GtkTextMark *mend);</PRE><P>Applies a text attribute tag in the window. A command parser can use this function to create syntax highlights in the terminal.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4230"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">window</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the <A HREF="cuiwindow.html"><SPAN CLASS="TYPE">CuiWindow</SPAN></A></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4237"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">tag</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the name of the tag</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4242"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">mbegin</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the starting point of the text we highlight</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4247"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">mend</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the end point of the text we highlight</P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN4252"></A><H3><A NAME="CUI-WINDOW-REALIZE"></A>cui_window_realize ()</H3><PRE CLASS="PROGRAMLISTING">void cui_window_realize (<A HREF="cuiwindow.html">CuiWindow</A> *window);</PRE><P>Realizes the window by calculating some data and creating some widgets.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4263"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">window</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the window to realize</P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN4268"></A><H3><A NAME="CUI-WINDOW-GET-TOKEN-MARKS"></A>cui_window_get_token_marks ()</H3><PRE CLASS="PROGRAMLISTING">gboolean cui_window_get_token_marks (<A HREF="cuiwindow.html">CuiWindow</A> *window, char *token, GtkTextMark **mbegin, GtkTextMark **mend);</PRE><P>Gets the text marks of the next lexical element in the window. A lexical analyzer can use this function to find out the borders of a given lexical element. If a lexical analizer uses this function then itm ust call for every lexical element!</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4282"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">window</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the embedded window</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4287"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">token</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the token was identified by the lexer and we want to read</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4292"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">mbegin</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the place where we put the start pointer, or NULL</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4297"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">mend</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the place where we put the end pointer, or NULL</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4302"><SPAN STYLE="white-space: nowrap"><SPAN CLASS="emphasis"><I CLASS="EMPHASIS">Returns</I></SPAN> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> TRUE if the token found</P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN4307"></A><H3><A NAME="CUI-WINDOW-SET-TITLE"></A>cui_window_set_title ()</H3><PRE CLASS="PROGRAMLISTING">void cui_window_set_title (<A HREF="cuiwindow.html">CuiWindow</A> *window, gchar *title);</PRE><P>Sets the window title of the window if it is empty, otherwise do nothing.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4319"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">window</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a <A HREF="cuiwindow.html"><SPAN CLASS="TYPE">CuiWindow</SPAN></A></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4326"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">title</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a new window title</P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN4331"></A><H3><A NAME="CUI-WINDOW-SET-TITLE-IF-EMPTY"></A>cui_window_set_title_if_empty ()</H3><PRE CLASS="PROGRAMLISTING">void cui_window_set_title_if_empty (<A HREF="cuiwindow.html">CuiWindow</A> *window, gchar *title);</PRE><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4342"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">window</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4347"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">title</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> </P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN4352"></A><H3><A NAME="CUI-WINDOW-SET-PARSE-TREE"></A>cui_window_set_parse_tree ()</H3><PRE CLASS="PROGRAMLISTING">void cui_window_set_parse_tree (<A HREF="cuiwindow.html">CuiWindow</A> *window, GNode *parse_tree);</PRE><P>Sets the parse tree for the window. The window uses the parse tree to decide what to do with the programs output.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4364"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">window</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a <A HREF="cuiwindow.html"><SPAN CLASS="TYPE">CuiWindow</SPAN></A></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4371"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">parse_tree</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a shell parse tree</P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN4376"></A><H3><A NAME="CUI-WINDOW-GET-TITLE"></A>cui_window_get_title ()</H3><PRE CLASS="PROGRAMLISTING">gchar* cui_window_get_title (<A HREF="cuiwindow.html">CuiWindow</A> *window);</PRE><P>Returns the window title of a <A HREF="cuiwindow.html"><SPAN CLASS="TYPE">Cuiwindow</SPAN></A>. The return string should not be changed or freed.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4389"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">window</CODE> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the <A HREF="cuiwindow.html"><SPAN CLASS="TYPE">CuiWindow</SPAN></A></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN4396"><SPAN STYLE="white-space: nowrap"><SPAN CLASS="emphasis"><I CLASS="EMPHASIS">Returns</I></SPAN> :</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the window title</P></TD></TR></TBODY></TABLE></DIV></DIV><TABLE CLASS="navigation" WIDTH="100%" SUMMARY="Navigation footer" CELLPADDING="2" CELLSPACING="2"><TR VALIGN="middle"><TD ALIGN="left"><A ACCESSKEY="p" HREF="cuiframe.html"><B><<< CuiFrame</B></A></TD><TD ALIGN="right"><A ACCESSKEY="n" HREF="cuiactionarea.html"><B>CuiActionArea >>></B></A></TD></TR></TABLE></BODY></HTML>