]> git.decadent.org.uk Git - ion3-doc.git/blobdiff - ionnotes/node2.html
[svn-upgrade] Integrating new upstream version, ion3-doc (20080103)
[ion3-doc.git] / ionnotes / node2.html
index e25fd2d14bcbf0ac56dd6155c6f3ecbdc005c593..db367a5e33c35c17acce4dd1c32f6bf8524686e4 100644 (file)
@@ -28,31 +28,31 @@ original version by:  Nikos Drakos, CBLU, University of Leeds
 <BODY >
 
 <DIV CLASS="navigation"><!--Navigation Panel-->
-<A NAME="tex2html82"
+<A NAME="tex2html81"
   HREF="node3.html">
 <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
-<A NAME="tex2html76"
+<A NAME="tex2html75"
   HREF="ionnotes.html">
 <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
-<A NAME="tex2html70"
+<A NAME="tex2html69"
   HREF="node1.html">
 <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
-<A NAME="tex2html78"
+<A NAME="tex2html77"
   HREF="node1.html">
 <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
-<A NAME="tex2html80"
+<A NAME="tex2html79"
   HREF="node8.html">
 <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
 <BR>
-<B> Next:</B> <A NAME="tex2html83"
+<B> Next:</B> <A NAME="tex2html82"
   HREF="node3.html">2 Object system implementation</A>
-<B> Up:</B> <A NAME="tex2html77"
+<B> Up:</B> <A NAME="tex2html76"
   HREF="ionnotes.html">Ion: Notes for the</A>
-<B> Previous:</B> <A NAME="tex2html71"
+<B> Previous:</B> <A NAME="tex2html70"
   HREF="node1.html">Contents</A>
- &nbsp; <B>  <A NAME="tex2html79"
+ &nbsp; <B>  <A NAME="tex2html78"
   HREF="node1.html">Contents</A></B> 
- &nbsp; <B>  <A NAME="tex2html81"
+ &nbsp; <B>  <A NAME="tex2html80"
   HREF="node8.html">Index</A></B> 
 <BR>
 <BR></DIV>
@@ -61,18 +61,18 @@ original version by:  Nikos Drakos, CBLU, University of Leeds
 <A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A>
 
 <UL CLASS="ChildLinks">
-<LI><A NAME="tex2html84"
+<LI><A NAME="tex2html83"
   HREF="node2.html#SECTION00021000000000000000"><SPAN CLASS="arabic">1</SPAN>.<SPAN CLASS="arabic">1</SPAN> Class hierarchy</A>
-<LI><A NAME="tex2html85"
+<LI><A NAME="tex2html84"
   HREF="node2.html#SECTION00022000000000000000"><SPAN CLASS="arabic">1</SPAN>.<SPAN CLASS="arabic">2</SPAN> Object hierarchies: WRegion parents and managers</A>
 <UL>
-<LI><A NAME="tex2html86"
+<LI><A NAME="tex2html85"
   HREF="node2.html#SECTION00022100000000000000"><SPAN CLASS="arabic">1</SPAN>.<SPAN CLASS="arabic">2</SPAN>.<SPAN CLASS="arabic">1</SPAN> Parent-child relations</A>
-<LI><A NAME="tex2html87"
+<LI><A NAME="tex2html86"
   HREF="node2.html#SECTION00022200000000000000"><SPAN CLASS="arabic">1</SPAN>.<SPAN CLASS="arabic">2</SPAN>.<SPAN CLASS="arabic">2</SPAN> Manager-managed relations</A>
 </UL>
 <BR>
-<LI><A NAME="tex2html88"
+<LI><A NAME="tex2html87"
   HREF="node2.html#SECTION00023000000000000000"><SPAN CLASS="arabic">1</SPAN>.<SPAN CLASS="arabic">3</SPAN> Summary</A>
 </UL>
 <!--End of Table of Child-Links-->
@@ -87,9 +87,9 @@ original version by:  Nikos Drakos, CBLU, University of Leeds
 <P>
 While Ion does not not have a truly object-oriented design
 <A NAME="tex2html1"
-  HREF="#foot212"><SUP><SPAN CLASS="arabic">1</SPAN></SUP></A>,
+  HREF="#foot208"><SUP><SPAN CLASS="arabic">1</SPAN></SUP></A>,
 things that appear on the computer screen are, however, quite
-naturally expressed as such ''objects''. Therefore Ion implements
+naturally expressed as such ``objects''. Therefore Ion implements
 a rather primitive OO system for these screen objects and some
 other things. 
 
@@ -107,7 +107,7 @@ basic relations.
 <P>
 For simplicity we consider only the essential-for-basic-configuration
 Ioncore, <SPAN  CLASS="textit">mod_tiling</SPAN> and <SPAN  CLASS="textit">mod_query</SPAN> classes. 
-See Appendix <A HREF="#app:fullhierarchy"><IMG  ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A> for the full class hierachy visible
+See Appendix <A HREF="#app:fullhierarchy"><IMG  ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A> for the full class hierarchy visible
 to Lua side.
 
 <P>
@@ -128,7 +128,7 @@ implement.
 
 <P>
 
-<DIV ALIGN="CENTER"><A NAME="fig:classhierarchy"></A><A NAME="319"></A>
+<DIV ALIGN="CENTER"><A NAME="fig:classhierarchy"></A><A NAME="315"></A>
 <TABLE>
 <CAPTION ALIGN="BOTTOM"><STRONG>Figure 1:</STRONG>
 Partial Ioncore, <SPAN  CLASS="textit">mod_tiling</SPAN> and <SPAN  CLASS="textit">mod_query</SPAN> 
@@ -138,18 +138,18 @@ Partial Ioncore, <SPAN  CLASS="textit">mod_tiling</SPAN> and <SPAN  CLASS="texti
      |--&gt;WRegion
      |    |--&gt;WClientWin
      |    |--&gt;WWindow
-     |    |    |--&gt;WRootWin
      |    |    |--&gt;WMPlex
-     |    |    |    |--&gt;WScreen
      |    |    |    |--&gt;WFrame
-     |    |    |--&gt;WInput (mod_query)
+     |    |    |    `--&gt;WScreen
+     |    |    |         `--&gt;WRootWin
+     |    |    `--&gt;WInput (mod_query)
      |    |         |--&gt;WEdln (mod_query)
-     |    |         |--&gt;WMessage (mod_query)
+     |    |         `--&gt;WMessage (mod_query)
      |    |--&gt;WGroup
      |    |    |--&gt;WGroupWS
-     |    |    |--&gt;WGroupCW
-     |    |--&gt;WTiling (mod_tiling)
-     |--&gt;WSplit (mod_tiling)
+     |    |    `--&gt;WGroupCW
+     |    `--&gt;WTiling (mod_tiling)
+     `--&gt;WSplit (mod_tiling)
 </PRE></TD></TR>
 </TABLE>
 </DIV>
@@ -160,78 +160,76 @@ The core classes:
 <P>
 <DL>
 <DT><STRONG>Obj</STRONG></DT>
-<DD><A NAME="325"></A>
+<DD><A NAME="321"></A>
     Is the base of Ion's object system.
 
 <P>
 </DD>
 <DT><STRONG>WRegion</STRONG></DT>
-<DD><A NAME="326"></A>
+<DD><A NAME="322"></A>
     is the base class for everything corresponding to something on the
     screen. Each object of type WRegion has a size and  position
     relative to the parent WRegion. While a big part of Ion 
     operates on these instead of more specialised classes, WRegion
-    is a ''virtual''  base class in that there are no objects of ''pure''
+    is a ``virtual''  base class in that there are no objects of ``pure''
     type WRegion; all concrete regions are objects of some class 
     that inherits WRegion.
 
 <P>
 </DD>
 <DT><STRONG>WClientWin</STRONG></DT>
-<DD><A NAME="327"></A> is a class for
+<DD><A NAME="323"></A> is a class for
     client window objects, the objects that window managers are
     supposed to manage.
 
 <P>
 </DD>
 <DT><STRONG>WWindow</STRONG></DT>
-<DD><A NAME="328"></A> is the base class for all
+<DD><A NAME="324"></A> is the base class for all
     internal objects having an X window associated to them
     (WClientWins also have X windows associated to them).
 
-<P>
-</DD>
-<DT><STRONG>WRootWin</STRONG></DT>
-<DD><A NAME="329"></A> is the class for
-    root windows<A NAME="242"></A> of X screens<A NAME="243"></A>.
-    Note that an ''X screen'' or root window is not necessarily a
-    single  physical screen<A NAME="244"></A> as a root window
-    may be split over multiple screens when multi-head extensions 
-    such as Xinerama<A NAME="245"></A> are used. (Actually there
-    can be only one WRootWin when Xinerama is used.)
-
 <P>
 </DD>
 <DT><STRONG>WMPlex</STRONG></DT>
-<DD>is a base class for all regions that''multiplex'' 
+<DD>is a base class for all regions that ``multiplex'' 
     other regions. This means that of the regions managed by the multiplexer,
-    only one can be displayed at a time. Classes that inhereit WMPlex
-    include screens and frames.
+    only one can be displayed at a time. 
 
 <P>
 </DD>
 <DT><STRONG>WScreen</STRONG></DT>
-<DD><A NAME="330"></A> is the class for objects
-    corresponding to physical screens. Screens may share a root
-    window when Xinerama multihead extensions are used as explained
-    above.
+<DD><A NAME="325"></A> is an instance of WMPlex
+    for screens.
+
+<P>
+</DD>
+<DT><STRONG>WRootWin</STRONG></DT>
+<DD><A NAME="326"></A> is the class for
+    root windows<A NAME="242"></A> of X screens<A NAME="243"></A>.
+    It is an instance of WScreen.
+    Note that an ``X screen'' or root window is not necessarily a
+    single physical screen<A NAME="245"></A> as a root window
+    may be split over multiple screens when ugly hacks such as 
+    Xinerama<A NAME="246"></A> are used. (Actually there can be only 
+    one root window when Xinerama is used.) 
 
 <P>
 </DD>
 <DT><STRONG>WFrame</STRONG></DT>
-<DD><A NAME="331"></A> is the class for frames.
-    While most Ion's objects have no graphical presentation, frames basically
-    add to WMPlexes the decorations around client windows 
-    (borders, tabs).
+<DD><A NAME="327"></A> is the class for frames.
+    While most Ion's objects have no graphical presentation, frames 
+    basically add to WMPlexes the decorations around client 
+    windows (borders, tabs).
 
 <P>
 </DD>
 <DT><STRONG>WGroup</STRONG></DT>
-<DD><A NAME="332"></A> is the base class for groups.
+<DD><A NAME="328"></A> is the base class for groups.
     Particular types of groups are workspaces 
-    (WGroupWS<A NAME="333"></A>)
+    (WGroupWS<A NAME="329"></A>)
     and groups of client windows
-    (WGroupCW<A NAME="334"></A>).
+    (WGroupCW<A NAME="330"></A>).
 </DD>
 </DL>
 
@@ -241,12 +239,12 @@ Classes implemented by the <SPAN  CLASS="textit">mod_tiling</SPAN> module:
 <P>
 <DL>
 <DT><STRONG>WTiling</STRONG></DT>
-<DD><A NAME="336"></A> is the class for tilings
+<DD><A NAME="332"></A> is the class for tilings
     of frames.
   
 </DD>
 <DT><STRONG>WSplit</STRONG></DT>
-<DD><A NAME="337"></A> (or, more specifically, classes
+<DD><A NAME="333"></A> (or, more specifically, classes
     that inherit it) encode the WTiling tree structure.
 </DD>
 </DL>
@@ -257,26 +255,26 @@ Classes implemented by the <SPAN  CLASS="textit">mod_query</SPAN> module:
 <P>
 <DL>
 <DT><STRONG>WInput</STRONG></DT>
-<DD><A NAME="339"></A> is a virtual base class for the
+<DD><A NAME="335"></A> is a virtual base class for the
     two classes below.
   
 </DD>
 <DT><STRONG>WEdln</STRONG></DT>
-<DD><A NAME="340"></A> is the class for the ''queries'',
+<DD><A NAME="336"></A> is the class for the ``queries'',
     the text inputs that usually appear at bottoms of frames and sometimes
-    screens. Queries are the functional equivalent of ''mini buffers'' in
+    screens. Queries are the functional equivalent of ``mini buffers'' in
     many text editors.
   
 </DD>
 <DT><STRONG>WMessage</STRONG></DT>
-<DD><A NAME="341"></A> implements the boxes for 
+<DD><A NAME="337"></A> implements the boxes for 
     warning and other messages that Ion may wish to display to the user. 
     These also usually appear at bottoms of frames.
 </DD>
 </DL>
 
 <P>
-There are also some other ''proxy'' classes that do not refer
+There are also some other ``proxy'' classes that do not refer
 to objects on the screen. The only important one of these for
 basic configuration is WMoveresMode that is used for
 binding callbacks in the move and resize mode.
@@ -293,7 +291,7 @@ binding callbacks in the move and resize mode.
 <SPAN CLASS="arabic">1</SPAN>.<SPAN CLASS="arabic">2</SPAN>.<SPAN CLASS="arabic">1</SPAN> Parent-child relations</A>
 </H3>
 Each object of type WRegion has a parent and possibly a manager
-associated to it. The parent<A NAME="282"></A> for an object is always a 
+associated to it. The parent<A NAME="278"></A> for an object is always a 
 WWindow and for WRegion with an X window (WClientWin,
 WWindow) the parent WWindow is given by the same relation of
 the X windows. For other WRegions the relation is not as clear.
@@ -303,36 +301,34 @@ Figure <A HREF="#fig:parentship">2</A>.
 
 <P>
 
-<DIV ALIGN="CENTER"><A NAME="fig:parentship"></A><A NAME="293"></A>
+<DIV ALIGN="CENTER"><A NAME="fig:parentship"></A><A NAME="289"></A>
 <TABLE>
 <CAPTION ALIGN="BOTTOM"><STRONG>Figure 2:</STRONG>
 Most common parent-child relations</CAPTION>
 <TR><TD><PRE>
     WRootWins
-     |--&gt;WScreens
-          |--&gt;WGroupWSs
-          |--&gt;WTilings
-          |--&gt;WClientWins in full screen mode
-          |--&gt;WFrames
-               |--&gt;WGroupCWs
-               |--&gt;WClientWins
-               |--&gt;WFrames for transients
-               |--&gt;a possible WEdln or WMessage
+     |--&gt;WGroupWSs
+     |--&gt;WTilings
+     |--&gt;WClientWins in full screen mode
+     `--&gt;WFrames
+          |--&gt;WGroupCWs
+          |--&gt;WClientWins
+          |--&gt;WFrames for transients
+          `--&gt;a possible WEdln or WMessage
 </PRE></TD></TR>
 </TABLE>
 </DIV>
 
 <P>
 WRegions have very little control over their children as a parent.
-The manager<A NAME="297"></A> WRegion has much more control over its
+The manager<A NAME="293"></A> WRegion has much more control over its
 managed WRegions. Managers, for example, handle resize requests,
 focusing and displaying of the managed regions. Indeed the manager--managed
 relationship gives a better picture of the logical ordering of objects on
 the screen. Again, there are generally few limits, but the most common
 hierarchy is given in Figure <A HREF="#fig:managership">3</A>. Note that sometimes
-the parent and manager are the same object and not all objects may have
-a manager (e.g. the dock in the dock module at the time of writing this)
-but all have a parent-a screen if not anything else.
+the parent and manager are the same object and not all regions may have
+a manager, but all have a parent-a screen if not anything else.
 
 <P>
 
@@ -342,24 +338,25 @@ but all have a parent-a screen if not anything else.
 
 <P>
 
-<DIV ALIGN="CENTER"><A NAME="fig:managership"></A><A NAME="305"></A>
+<DIV ALIGN="CENTER"><A NAME="fig:managership"></A><A NAME="301"></A>
 <TABLE>
 <CAPTION ALIGN="BOTTOM"><STRONG>Figure 3:</STRONG>
 Most common manager-managed relations</CAPTION>
 <TR><TD><PRE>
     WRootWins
-     |--&gt;WScreens
-          |--&gt;WGroupCWs for full screen WClientWins
-          |    |--&gt;WClientWins
-          |    |--&gt;WFrames for transients (dialogs)
-          |         |--&gt; WClientWin
-          |--&gt;WGroupWSs for workspaces
-          |    |--&gt;WTiling
-          |    |    |--&gt;possibly a WEdln, WMessage or WMenu
-          |    |    |--&gt;WFrames
-          |    |         |--&gt;WGroupCWs (with contents as above)
-          |    |--&gt;WFrames for floating content
-          |--&gt;WFrames for sticky stuff, such as the scratchpad
+     |--&gt;WGroupCWs for full screen WClientWins
+     |    |--&gt;WClientWins
+     |    `--&gt;WFrames for transients (dialogs)
+     |         `--&gt; WClientWin
+     |--&gt;WGroupWSs for workspaces
+     |    |--&gt;WTiling
+     |    |    |--&gt;WFrames
+     |    |    |    `--&gt;WGroupCWs (with contents as above)
+     |    |    `--&gt;possibly a WStatusBar or WDock
+     |    |--&gt;WFrames for floating content
+     |    |--&gt;possibly a WEdln, WMessage or WMenu
+     |    `--&gt;possibly a WStatusBar or WDock (if no tiling)
+     `--&gt;WFrames for sticky stuff, such as the scratchpad
 </PRE></TD></TR>
 </TABLE>
 </DIV>
@@ -404,7 +401,7 @@ consideration:
 <P>
 <BR><HR><H4>Footnotes</H4>
 <DL>
-<DT><A NAME="foot212">... design</A><A
+<DT><A NAME="foot208">... design</A><A
  HREF="node2.html#tex2html1"><SUP><SPAN CLASS="arabic">1</SPAN></SUP></A></DT>
 <DD>the author doesn't like such artificial designs
 
@@ -412,31 +409,31 @@ consideration:
 </DL>
 <DIV CLASS="navigation"><HR>
 <!--Navigation Panel-->
-<A NAME="tex2html82"
+<A NAME="tex2html81"
   HREF="node3.html">
 <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
-<A NAME="tex2html76"
+<A NAME="tex2html75"
   HREF="ionnotes.html">
 <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
-<A NAME="tex2html70"
+<A NAME="tex2html69"
   HREF="node1.html">
 <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
-<A NAME="tex2html78"
+<A NAME="tex2html77"
   HREF="node1.html">
 <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
-<A NAME="tex2html80"
+<A NAME="tex2html79"
   HREF="node8.html">
 <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
 <BR>
-<B> Next:</B> <A NAME="tex2html83"
+<B> Next:</B> <A NAME="tex2html82"
   HREF="node3.html">2 Object system implementation</A>
-<B> Up:</B> <A NAME="tex2html77"
+<B> Up:</B> <A NAME="tex2html76"
   HREF="ionnotes.html">Ion: Notes for the</A>
-<B> Previous:</B> <A NAME="tex2html71"
+<B> Previous:</B> <A NAME="tex2html70"
   HREF="node1.html">Contents</A>
- &nbsp; <B>  <A NAME="tex2html79"
+ &nbsp; <B>  <A NAME="tex2html78"
   HREF="node1.html">Contents</A></B> 
- &nbsp; <B>  <A NAME="tex2html81"
+ &nbsp; <B>  <A NAME="tex2html80"
   HREF="node8.html">Index</A></B> </DIV>
 <!--End of Navigation Panel-->