summaryrefslogtreecommitdiff
path: root/old/dw/html/dw-miscellaneous.html
blob: ba714d5e6d475eabc5b7d2ee098f779e8b80b851 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>Dillo: Miscellaneous Notes on Dw</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="https://www.dillo.org/dw/html/jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Dillo
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">Miscellaneous Notes on Dw </div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><p>This is a barely sorted list of issues which I consider noteworthy, but have yet to be moved to other parts of the documentation (which is partly to be created).</p>
<h1>General </h1>
<h2>Widget allocation outside of parent allocation </h2>
<p>A widget allocation outside of the allocation of the parent is allowed, but the part outside is not visible.</p>
<h2>Which widgets may be drawn? </h2>
<p>All drawing starts with the toplevel widget (cf. <a class="el" href="classdw_1_1core_1_1Widget.html#a68e995505b0885143024e3254253f2d8">dw::core::Widget::queueDrawArea</a>, <a class="el" href="classdw_1_1core_1_1Layout.html#a1e65014b2460fb2f66df84eb8b0064cc">dw::core::Layout::queueDraw</a>, and <a class="el" href="classdw_1_1core_1_1Layout.html#a3c685ce77935dacd4416d6b92ad93a77">dw::core::Layout::expose</a>), and a widget has to draw its children, in a way consistent with their stacking order.</p>
<p>There are two exceptions:</p>
<ol type="1">
<li>Direct descendants, which are not children, may be drawn, if the parent can distinguish them and so omit drawing them a second time. See <a class="el" href="classdw_1_1core_1_1StackingContextMgr.html" title="See Handling stacking contexts. ">dw::core::StackingContextMgr</a> and <a class="el" href="dw-stacking-context.html">Handling stacking contexts</a>. Parents should not draw children in flow for which <a class="el" href="classdw_1_1core_1_1StackingContextMgr.html#a64309f6cf7debcb812b3bf909c098b6e">dw::core::StackingContextMgr::handledByStackingContextMgr</a> returns true.</li>
<li>Interrupted drawing: via <a class="el" href="classdw_1_1core_1_1Widget.html#aaebe553117db0b7ba2cb0243d06311df">dw::core::Widget::drawInterruption</a>; see <a class="el" href="dw-interrupted-drawing.html">Interrupted drawing</a>.</li>
</ol>
<p>Similar rules apply to handling mouse events (<a class="el" href="classdw_1_1core_1_1Widget.html#aa4eac09454c63d9dc7a8d6a322e7998a">dw::core::Widget::getWidgetAtPoint</a>).</p>
<h2>Interrupted drawing </h2>
<p>→ <a class="el" href="dw-interrupted-drawing.html">Interrupted drawing</a>.</p>
<p>Similar rules apply to handling mouse events (<a class="el" href="classdw_1_1core_1_1Widget.html#aa4eac09454c63d9dc7a8d6a322e7998a">dw::core::Widget::getWidgetAtPoint</a>).</p>
<h2>Extra space </h2>
<p>Should <a class="el" href="classdw_1_1core_1_1Widget.html#a461b61bd42a01e41ccf258db8673d82f" title="Calculates dw::core::Widget::extraSpace. ">dw::core::Widget::calcExtraSpace</a> be called from <a class="el" href="classdw_1_1core_1_1Widget.html#aec23092b0cfe5624b9751a59671fe251" title="Wrapper for Widget::getExtremesImpl(). ">dw::core::Widget::getExtremes</a>? </p>
</div></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sat May 28 2016 11:47:43 for Dillo by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.8
</small></address>
</body>
</html>