Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export element and style by default #88

Merged
merged 3 commits into from
Dec 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,349 changes: 1,349 additions & 0 deletions src/pixel-display-impl_.toit

Large diffs are not rendered by default.

1,339 changes: 2 additions & 1,337 deletions src/pixel-display.toit

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions tests/barcode-visualized.toit
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
import expect show *
import pixel-display show *
import pixel-display.bar-code show *
import pixel-display.element show *
import pixel-display.style show Style
import .png-visualizer

main args:
Expand Down
1 change: 0 additions & 1 deletion tests/bitmap-2-visualized.toit
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import font

import host.file
import pixel-display show *
import pixel-display.element show *
import pixel-display.png show Png
import .png-visualizer

Expand Down
1 change: 0 additions & 1 deletion tests/bitmap-visualized.toit
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import font

import host.file
import pixel-display show *
import pixel-display.element show *
import pixel-display.gradient show *
import pixel-display.png show Png
import .png-visualizer
Expand Down
2 changes: 0 additions & 2 deletions tests/drop-shadow-gray-window-visualized.toit
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
import bitmap show *
import font show Font
import pixel-display show *
import pixel-display.element show *
import pixel-display.gradient show *
import pixel-display.style show *
import .png-visualizer

main args:
Expand Down
2 changes: 0 additions & 2 deletions tests/drop-shadow-window-visualized.toit
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
import bitmap show *
import font show Font
import pixel-display show *
import pixel-display.element show *
import pixel-display.gradient show *
import pixel-display.style show *
import .png-visualizer

main args:
Expand Down
1 change: 0 additions & 1 deletion tests/four-gray-bitmap-2-visualized.toit
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import font

import host.file
import pixel-display show *
import pixel-display.element show *
import pixel-display.four-gray show WHITE LIGHT-GRAY
import pixel-display.png show Png
import .png-visualizer
Expand Down
1 change: 0 additions & 1 deletion tests/gradient-bounds-visualized.toit
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import bitmap show *
import expect show *
import font show *
import pixel-display show *
import pixel-display.element show *
import pixel-display.gradient show *
import .png-visualizer

Expand Down
2 changes: 0 additions & 2 deletions tests/gradient-style-visualized.toit
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ import bitmap show *
import expect show *
import font show *
import pixel-display show *
import pixel-display.element show *
import pixel-display.gradient show *
import pixel-display.style show *
import .png-visualizer

main args:
Expand Down
1 change: 0 additions & 1 deletion tests/gradient-visualized.toit
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import bitmap show *
import expect show *
import font show *
import pixel-display show *
import pixel-display.element show *
import pixel-display.gradient show *
import .png-visualizer

Expand Down
1 change: 0 additions & 1 deletion tests/gray-scale-bitmap-2-visualized.toit
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import font

import host.file
import pixel-display show *
import pixel-display.element show *
import pixel-display.png show Png
import .png-visualizer

Expand Down
1 change: 0 additions & 1 deletion tests/gray-scale-visualized.toit
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import expect show *
import font show Font
import pixel-display show *
import pixel-display.gray-scale show *
import pixel-display.element show *
import .png-visualizer

main args:
Expand Down
2 changes: 0 additions & 2 deletions tests/horizontal-slider-visualized.toit
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ import bitmap show *
import expect show *
import font show *
import pixel-display show *
import pixel-display.element show *
import pixel-display.gradient show *
import pixel-display.slider show *
import pixel-display.style show *
import .png-visualizer

main args:
Expand Down
2 changes: 0 additions & 2 deletions tests/icons-visualized.toit
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ import icons show Icon

import pictogrammers-icons.size-40 show *
import pixel-display show *
import pixel-display.element show *
import pixel-display.gradient show *
import pixel-display.style show *

import .png-visualizer

Expand Down
2 changes: 0 additions & 2 deletions tests/mixed-text-rotated-visualized.toit
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import bitmap show *
import expect show *
import font show *
import pixel-display show *
import pixel-display.element show *
import pixel-display.style show *
import .png-visualizer

main args:
Expand Down
2 changes: 0 additions & 2 deletions tests/mixed-text-visualized.toit
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import bitmap show *
import expect show *
import font show *
import pixel-display show *
import pixel-display.element show *
import pixel-display.style show *
import .png-visualizer

main args:
Expand Down
1 change: 0 additions & 1 deletion tests/mixed-texture-rotated-visualized.toit
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import expect show *
import pixel-display show *
import pixel-display.element show *
import .png-visualizer

main args:
Expand Down
2 changes: 0 additions & 2 deletions tests/mixed-texture-visualized.toit
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

import expect show *
import pixel-display show *
import pixel-display.element show *
import pixel-display.style show *
import .png-visualizer

main args:
Expand Down
2 changes: 0 additions & 2 deletions tests/rounded-gray-window-visualized.toit
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
import bitmap show *
import font show Font
import pixel-display show *
import pixel-display.element show *
import pixel-display.gradient show *
import pixel-display.style show *
import .png-visualizer

main args:
Expand Down
2 changes: 0 additions & 2 deletions tests/rounded-huge-window-visualized.toit
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
import bitmap show *
import font show Font
import pixel-display show *
import pixel-display.element show *
import pixel-display.gradient show *
import pixel-display.style show *
import .png-visualizer

main args:
Expand Down
2 changes: 0 additions & 2 deletions tests/rounded-several-window-visualized.toit
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
import bitmap show *
import font show Font
import pixel-display show *
import pixel-display.element show *
import pixel-display.style show *
import .png-visualizer

main args:
Expand Down
2 changes: 0 additions & 2 deletions tests/rounded-three-color-window-visualized.toit
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
import bitmap show *
import font show Font
import pixel-display show *
import pixel-display.element show *
import pixel-display.style show *
import pixel-display.three-color show BLACK WHITE RED
import .png-visualizer

Expand Down
2 changes: 0 additions & 2 deletions tests/rounded-two-color-window-visualized.toit
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
import bitmap show *
import font show Font
import pixel-display show *
import pixel-display.element show *
import pixel-display.style show *
import pixel-display.two-color show BLACK WHITE
import .png-visualizer

Expand Down
2 changes: 0 additions & 2 deletions tests/rounded-window-visualized.toit
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
import bitmap show *
import font show Font
import pixel-display show *
import pixel-display.element show *
import pixel-display.gradient show *
import pixel-display.style show *
import .png-visualizer

main args:
Expand Down
1 change: 0 additions & 1 deletion tests/simple-several-window-visualized.toit
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import bitmap show *
import font show Font
import pixel-display show *
import pixel-display.element show *
import .png-visualizer

main args:
Expand Down
1 change: 0 additions & 1 deletion tests/simple-three-color-window-visualized.toit
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import bitmap show *
import font show Font
import pixel-display show *
import pixel-display.element show *
import pixel-display.three-color show BLACK WHITE RED
import .png-visualizer

Expand Down
1 change: 0 additions & 1 deletion tests/simple-two-color-window-visualized.toit
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import bitmap show *
import font show Font
import pixel-display show *
import pixel-display.element show *
import pixel-display.two-color show BLACK WHITE
import .png-visualizer

Expand Down
2 changes: 0 additions & 2 deletions tests/slider-rotated-visualized.toit
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ import bitmap show *
import expect show *
import font show *
import pixel-display show *
import pixel-display.element show *
import pixel-display.gradient show *
import pixel-display.slider show *
import pixel-display.style show *
import .png-visualizer

main args:
Expand Down
2 changes: 0 additions & 2 deletions tests/slider-visualized.toit
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ import bitmap show *
import expect show *
import font show *
import pixel-display show *
import pixel-display.element show *
import pixel-display.gradient show *
import pixel-display.slider show *
import pixel-display.style show *
import .png-visualizer

main args:
Expand Down
4 changes: 1 addition & 3 deletions tests/style-test.toit
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@

import expect show *

import pixel-display show Canvas
import pixel-display.element show Element
import pixel-display.style show *
import pixel-display show Canvas Element SolidBorder Style

/// Test that the examples from style.toit are well-formed.
toit-doc-examples-test:
Expand Down
2 changes: 0 additions & 2 deletions tests/text-visualized.toit
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import bitmap show *
import expect show *
import font show *
import pixel-display show *
import pixel-display.element show *
import pixel-display.style show *
import .png-visualizer

main args:
Expand Down
1 change: 0 additions & 1 deletion tests/three-color-bitmap-2-visualized.toit
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import font

import host.file
import pixel-display show *
import pixel-display.element show *
import pixel-display.png show Png
import pixel-display.three-color show *
import .png-visualizer
Expand Down
1 change: 0 additions & 1 deletion tests/true-color-portrait-visualized.toit
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import expect show *
import font show Font
import pixel-display show *
import pixel-display.element show *
import pixel-display.true-color show *
import .png-visualizer

Expand Down
1 change: 0 additions & 1 deletion tests/true-color-visualized.toit
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import expect show *
import font show Font
import pixel-display show *
import pixel-display.element show *
import pixel-display.true-color show *
import .png-visualizer

Expand Down
1 change: 0 additions & 1 deletion tests/two-color-bitmap-2-visualized.toit
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import font

import host.file
import pixel-display show *
import pixel-display.element show *
import pixel-display.png show Png
import pixel-display.two-color show WHITE BLACK
import .png-visualizer
Expand Down