Skip to content

Commit

Permalink
Export element and style by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Corry committed Dec 17, 2023
1 parent cfe2ceb commit b2a502e
Show file tree
Hide file tree
Showing 36 changed files with 3 additions and 55 deletions.
1 change: 1 addition & 0 deletions src/pixel-display.toit → src/pixel-display-impl_.toit
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import .several-color as several-color
import .one-byte_ as one-byte
import .style


FLAG-2-COLOR ::= 0b1
FLAG-3-COLOR ::= 0b10
FLAG-4-COLOR ::= 0b100
Expand Down
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
2 changes: 1 addition & 1 deletion tests/toit-png-tools
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

0 comments on commit b2a502e

Please sign in to comment.