Skip to content

Commit

Permalink
Description of collides_point updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
salt-die committed Oct 23, 2023
1 parent d100b97 commit 7a27abf
Show file tree
Hide file tree
Showing 40 changed files with 46 additions and 46 deletions.
2 changes: 1 addition & 1 deletion batgrl/gadgets/animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ class Animation(GadgetBase):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down
2 changes: 1 addition & 1 deletion batgrl/gadgets/bar_chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ class BarChart(GadgetBase):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down
2 changes: 1 addition & 1 deletion batgrl/gadgets/box_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class BoxImage(Text):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down
2 changes: 1 addition & 1 deletion batgrl/gadgets/braille_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class BrailleImage(Text):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down
2 changes: 1 addition & 1 deletion batgrl/gadgets/braille_video_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class BrailleVideoPlayer(Text):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down
2 changes: 1 addition & 1 deletion batgrl/gadgets/button.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class Button(Themable, ButtonBehavior, Gadget):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down
2 changes: 1 addition & 1 deletion batgrl/gadgets/color_picker.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ class ColorPicker(Themable, GadgetBase):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down
2 changes: 1 addition & 1 deletion batgrl/gadgets/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ class Console(Themable, Focusable, GadgetBase):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down
2 changes: 1 addition & 1 deletion batgrl/gadgets/data_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ class DataTable(Themable, GadgetBase):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down
2 changes: 1 addition & 1 deletion batgrl/gadgets/digital_display.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ class DigitalDisplay(Gadget):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down
2 changes: 1 addition & 1 deletion batgrl/gadgets/file_chooser.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ class FileChooser(GadgetBase):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down
2 changes: 1 addition & 1 deletion batgrl/gadgets/flat_toggle.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ class FlatToggle(Gadget):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down
2 changes: 1 addition & 1 deletion batgrl/gadgets/gadget.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class Gadget(GadgetBase):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down
4 changes: 2 additions & 2 deletions batgrl/gadgets/gadget_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ class GadgetBase:
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down Expand Up @@ -865,7 +865,7 @@ def to_local(self, point: Point) -> Point:

def collides_point(self, point: Point) -> bool:
"""
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
Parameters
----------
Expand Down
2 changes: 1 addition & 1 deletion batgrl/gadgets/graphic_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class GraphicParticleField(GadgetBase):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down
2 changes: 1 addition & 1 deletion batgrl/gadgets/graphics.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class Graphics(GadgetBase):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down
2 changes: 1 addition & 1 deletion batgrl/gadgets/grid_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ class GridLayout(Gadget):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down
2 changes: 1 addition & 1 deletion batgrl/gadgets/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class Image(Graphics):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down
2 changes: 1 addition & 1 deletion batgrl/gadgets/line_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ class LinePlot(GadgetBase):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down
6 changes: 3 additions & 3 deletions batgrl/gadgets/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ class MenuItem(Themable, ToggleButtonBehavior, Gadget):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down Expand Up @@ -549,7 +549,7 @@ class Menu(GridLayout):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down Expand Up @@ -1053,7 +1053,7 @@ class MenuBar(GridLayout):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down
2 changes: 1 addition & 1 deletion batgrl/gadgets/parallax.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class Parallax(GadgetBase):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down
2 changes: 1 addition & 1 deletion batgrl/gadgets/progress_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class ProgressBar(Themable, Text):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down
2 changes: 1 addition & 1 deletion batgrl/gadgets/raycaster.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ class Raycaster(Graphics):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down
2 changes: 1 addition & 1 deletion batgrl/gadgets/scroll_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ class ScrollView(Themable, Grabbable, GadgetBase):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down
2 changes: 1 addition & 1 deletion batgrl/gadgets/shadow_caster.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ class ShadowCaster(Graphics):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down
2 changes: 1 addition & 1 deletion batgrl/gadgets/slider.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ class Slider(Grabbable, Text):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down
2 changes: 1 addition & 1 deletion batgrl/gadgets/sparkline.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class Sparkline(Text):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down
4 changes: 2 additions & 2 deletions batgrl/gadgets/split_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ class HSplitLayout(GadgetBase):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down Expand Up @@ -426,7 +426,7 @@ class VSplitLayout(GadgetBase):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down
4 changes: 2 additions & 2 deletions batgrl/gadgets/stack_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class VStackLayout(_StackLayoutBase):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down Expand Up @@ -308,7 +308,7 @@ class HStackLayout(_StackLayoutBase):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down
2 changes: 1 addition & 1 deletion batgrl/gadgets/tabs.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class Tabs(Themable, GadgetBase):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down
2 changes: 1 addition & 1 deletion batgrl/gadgets/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ class Text(GadgetBase):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down
2 changes: 1 addition & 1 deletion batgrl/gadgets/text_animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class TextAnimation(Gadget):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down
2 changes: 1 addition & 1 deletion batgrl/gadgets/text_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class TextParticleField(Gadget):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down
2 changes: 1 addition & 1 deletion batgrl/gadgets/text_pad.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class TextPad(Themable, Grabbable, Focusable, GadgetBase):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down
2 changes: 1 addition & 1 deletion batgrl/gadgets/textbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ class Textbox(Themable, Focusable, Grabbable, GadgetBase):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down
2 changes: 1 addition & 1 deletion batgrl/gadgets/tiled_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class TiledImage(Graphics):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down
2 changes: 1 addition & 1 deletion batgrl/gadgets/toggle_button.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ class ToggleButton(Themable, ToggleButtonBehavior, Gadget):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down
4 changes: 2 additions & 2 deletions batgrl/gadgets/tree_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ class TreeViewNode(Themable, ButtonBehavior, Text):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down Expand Up @@ -448,7 +448,7 @@ class TreeView(GadgetBase):
to_local(point):
Convert point in absolute coordinates to local coordinates.
collides_point(point):
True if point collides with an uncovered portion of gadget.
True if point collides with visible portion of gadget.
collides_gadget(other):
True if other is within gadget's bounding box.
add_gadget(gadget):
Expand Down
Loading

0 comments on commit 7a27abf

Please sign in to comment.