dwpage.txt

来自「嵌入式浏览器Dillo源码」· 文本 代码 · 共 59 行

TXT
59
字号
Nov 2001, S.Geerken@ping.de======DwPage======A widget for displaying texts. It is (currently) the main widget forrendering HTML documents.Signals=======DwPage defines the same signals as DwImage, with the exception thatthe coordinates are always -1. See DwImage.txt for more details.Collapsing Spaces=================The idea behind this is that every text box has a specific verticalspace around, and that they are combined to one space, according torules stated below. A rule is either a paragraph within a DwPagewidget, or a DwPage within a DwPage widget, in a single line; thelatter is used for indented boxes and list items.The rules:   1. If a box is following another, the space between them is the      maximum of both box spaces:         +---------+         |/////////|         |/////////|                           +---------+         +---------+                           |/////////|         |    A    |                           |/////////|         +---------+                           +---------+         |/////////|                           |    A    |         |/////////|                           +---------+         +---------+  are combined like this:  |/////////|                                               |XXXXXXXXX|         +---------+                           +---------+         |\\\\\\\\\|                           |    B    |         +---------+                           +---------+         |    B    |                           |\\\\\\\\\|         +---------+                           +---------+         |\\\\\\\\\|         +---------+   2. a) If one box is the first box within another, the upper space      of these boxes collapse. b) The analogue is the case for the      last box:         +---------+                       If B and C are put into A,         |/////////|                       the result is:         |/////////|         +---------+        +---------+      +---------+         |    A    | <--+-- |\\\\\\\\\|      |/////////|         +---------+    

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?