Skip to content

Commit 0d0ee61

Browse files
DigiDuncanpushfoo
andauthored
Bring Box closer to Rect standards (#2485)
* Imma get laaaaaaaazy. * thanks @DragonMoffon for code review * no, *your* line is too long * ok how about now * clean up box * Henry Ford was an American industrialist and business magnate. As the-- * pushfoo: proofreading * Add back missing module-level docstring? * Reword and reformat top-level box docstring * Update arcade/types/box.py Co-authored-by: Paul <36696816+pushfoo@users.noreply.github.com> * fix missed rectplacement * Add Box to the quick index * Bug fix for Rect and Box init helpers * Add capital letters to accepted function regex * Add comment explaining in-depth why and where we need the feature * Formatting to make True, 0, and False code literals * Add missing docstring for box.point_in_box --------- Co-authored-by: pushfoo <36696816+pushfoo@users.noreply.github.com>
1 parent 26af9ff commit 0d0ee61

File tree

3 files changed

+417
-10
lines changed

3 files changed

+417
-10
lines changed

arcade/types/__init__.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,18 @@
9292

9393
# Boxes
9494
from arcade.types.box import Box
95+
from arcade.types.box import LBNWHD
9596
from arcade.types.box import LRBTNF
9697
from arcade.types.box import XYZWHD
9798

9899

99100
__all__ = [
100101
"AsFloat",
101102
"BufferProtocol",
103+
"Box",
104+
"XYZWHD",
105+
"LRBTNF",
106+
"LBNWHD",
102107
"Color",
103108
"IntRectParams",
104109
"IPoint",
@@ -121,9 +126,6 @@
121126
"Viewport",
122127
"RectParams",
123128
"RectKwargs",
124-
"Box",
125-
"LRBTNF",
126-
"XYZWHD",
127129
"HasAddSubMul",
128130
"RGB",
129131
"RGBA",

0 commit comments

Comments
 (0)