Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > bd5c3d824c3db63ffd9226c15941e6ad > files > 2374

mozart-1.4.0-1mdv2010.0.i586.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>2.2 The Architecture</TITLE><LINK href="ozdoc.css" rel="stylesheet" type="text/css"></HEAD><BODY><TABLE align="center" border="0" cellpadding="6" cellspacing="6" class="nav"><TR bgcolor="#DDDDDD"><TD><A href="node3.html#section.started.first">&lt;&lt; Prev</A></TD><TD><A href="node2.html">- Up -</A></TD><TD><A href="node5.html#section.started.implementation">Next &gt;&gt;</A></TD></TR></TABLE><DIV id="section.started.architecture"><H2><A name="section.started.architecture">2.2 The Architecture</A></H2><P> <A href="node4.html#figure.started.architecture">Figure&nbsp;2.2</A> shows a sketch of the architecture of the window interface in Mozart. Its core part is the graphics engine. The <A name="label30"></A>graphics engine computes graphical output and displays it according to the input received. </P><DIV id="figure.started.architecture"><HR><P><A name="figure.started.architecture"></A></P><DIV align="center"><IMG alt="" src="latex1.png"></DIV><P class="caption"><STRONG>Figure&nbsp;2.2:</STRONG> Architecture sketch.</P><HR></DIV><P> </P><P> Initializing widgets with the method <A name="label31"></A><SPAN class="index"><CODE>tkInit</CODE></SPAN> and applying widgets to the <A name="label32"></A><SPAN class="index"><CODE>tk</CODE></SPAN> method send messages to the graphics engine. <A name="label34"></A>Additionally, the procedure <CODE>Tk<SPAN class="keyword">.</SPAN>send</CODE> we used for geometry management sends messages to the graphics engine. The graphics engine understands tickles, <CODE>Tk<SPAN class="keyword">.</SPAN>send</CODE> in fact just takes a tickle and sends it to the engine. Also <CODE>tkInit</CODE> and <CODE>tk</CODE> methods map straightforwardly to tickle messages. </P><P> The graphics engine is sequential, each tickle is executed in order. User events are considered only when the graphics engine is idle, then the attached actions are executed. </P></DIV><TABLE align="center" border="0" cellpadding="6" cellspacing="6" class="nav"><TR bgcolor="#DDDDDD"><TD><A href="node3.html#section.started.first">&lt;&lt; Prev</A></TD><TD><A href="node2.html">- Up -</A></TD><TD><A href="node5.html#section.started.implementation">Next &gt;&gt;</A></TD></TR></TABLE><HR><ADDRESS><A href="http://www.ps.uni-sb.de/~schulte/">Christian&nbsp;Schulte</A><BR><SPAN class="version">Version 1.4.0 (20090610)</SPAN></ADDRESS></BODY></HTML>