Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
JD557 committed May 4, 2024
1 parent 420bb20 commit 64646ab
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import eu.joaocosta.interim.skins._

/** Object containing the default components.
*
* By convention, all components are functions in the form `def component(id, area, ...params, skin)(value): Value`.
* By convention, all components are functions in the form `def component(id, ...params, skin)(area, value): Value`.
*
* The area parameter can be ommited if there's an area allocator in scope.
*/
object Components extends Components

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import eu.joaocosta.interim.skins._
* As such, panels should be called like:
*
* ```
* val (value, nextRect) = panel(id, panelRect, ...) {area => ...}
* val (value, nextRect) = panel(id, params..., skins...)(panelRect){area => ...}
* panelRect = nextRect
* ```
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import eu.joaocosta.interim._
/** Object containing the default primitives.
*
* By convention, all components are functions in the form `def primitive(area, color, params...): Unit`.
*
* The area parameter can be either a `Rect` or a `LayoutAllocator`.
*/
object Primitives extends Primitives

Expand Down

0 comments on commit 64646ab

Please sign in to comment.