提交 4064d0c5 编写于 作者: H Hixie

More stubs in rendering/README.md.

TBR=abarth

Review URL: https://codereview.chromium.org/1198293005.
上级 2b73e728
......@@ -7,8 +7,10 @@ developers using Sky will not need to interact directly with the rendering tree.
Instead, most developers should use [Sky widgets](../widgets/README.md), which
are built using the render tree.
Base Model
----------
Overview
--------
### Base Model
The base class for every node in the render tree is
[`RenderObject`](object.dart), which defines the base layout model. The base
......@@ -73,16 +75,65 @@ The base model also provides two mixins for common child models:
Subclasses of `RenderObject` are not required to use either of these child
models and are free to invent novel child models for their specific use cases.
Parent Data
-----------
### Parent Data
### Box Model
#### EdgeDims
#### BoxConstraints
### Bespoke Models
Using the provided subclasses
-----------------------------
### render_box.dart
#### RenderConstrainedBox
#### RenderShrinkWrapWidth
#### RenderOpacity
#### RenderColorFilter
#### RenderClipRect
#### RenderClipOval
#### RenderPadding
#### RenderPositionedBox
#### RenderImage
#### RenderDecoratedBox
#### RenderTransform
#### RenderSizeObserver
#### RenderCustomPaint
### RenderBlock (render_block.dart)
### RenderFlex (render_flex.dart)
### RenderParagraph (render_paragraph.dart)
### RenderStack (render_stack.dart)
Writing new subclasses
----------------------
### The RenderObject contract
#### The ParentData contract
#### Using RenderObjectWithChildMixin
#### Using ContainerParentDataMixin and ContainerRenderObjectMixin
### The RenderBox contract
#### Using RenderProxyBox
### The Hit Testing contract
Box Model
---------
Performance rules of thumb
--------------------------
* Avoid using transforms where mere maths would be sufficient (e.g.
draw your rectangle at x,y rather than translating by x,y and
drawing it at 0,0).
Bespoke Models
--------------
* Avoid using save/restore on canvases.
Dependencies
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册