edith
Clone
https://git.tahinli.com/Tahinli/edith.git
0 watching0 forksRust18.3 MiBff99ad6Tahinli6 days ago1055 commits
| 1 | //! Where a dropdown control sits, so the list it opens hangs from that control |
| 2 | //! (below it, or above it when the window has no room below) instead of from |
| 3 | //! wherever the pointer happened to land. Every dropdown box records its |
| 4 | //! bounds while it is painted ([`probe`]); the click that opens a list asks |
| 5 | //! which recorded box holds the click ([`control_at`]). |
| 6 | |
| 7 | use ; |
| 8 | use ; |
| 9 | use HashMap; |
| 10 | |
| 11 | thread_local! |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | /// An invisible child that records its parent's bounds under `id` each frame. |
| 19 | pub |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | /// Whether a list `list_h` tall hung from the control `id` would run off the bottom of the |
| 34 | /// window, so it should open above the control instead. An unknown control does not flip. |
| 35 | pub |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | /// The bounds a control recorded under `id` when it was last painted, if any. |
| 44 | pub |
| 45 | |
| 46 | |
| 47 | |
| 48 | /// The recorded control that holds `click`, if any. |
| 49 | pub |
| 50 | |
| 51 | |
| 52 | |
| 53 | /// The list's top-left for a control: its left edge and bottom, and the y it |
| 54 | /// would take instead when it opens above ([`Bounds::origin`]'s y). |
| 55 | pub |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | /// An invisible child that records its parent's bounds as the media row (or tile) of a source. |
| 63 | pub |
| 64 | |
| 65 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 | |
| 74 | |
| 75 | /// Where a source's row was last painted. |
| 76 | pub |
| 77 | |
| 78 |