Commit graph

279 commits

Author SHA1 Message Date
StarryWorm
bdca8b66e7 Add custom_maximum_size to Control
This property mirrors `custom_minimum_size` and enables the user to set a size the `Control`. Enabling `propagate_maximum_size` forces all children to respect this node's maximum_size.
Not all `Control` types handle this gracefully, which may result in content clipping.
2026-04-07 14:34:12 -04:00
Danil Alexeev
32d1f518fa
Improve editor-only class checking 2026-03-25 17:07:39 +03:00
Rémi Verschelde
970f8236b5
Merge pull request #117733 from KoBeWi/autranslator_localized_(i.e._at_location)
Add `_get_tooltip_auto_translate_mode_at()` to Control
2026-03-23 22:36:15 +01:00
Rémi Verschelde
9b9a533ed2
Merge pull request #117504 from Giganzo/focus-draw-pointer-event
Clarify `show_focus_state_on_pointer_event` description
2026-03-23 22:34:48 +01:00
kobewi
0d220b35a5 Add _get_tooltip_auto_translate_mode_at() to Control 2026-03-22 17:56:46 +01:00
Giganzo
f3f7f156b3 Clarify show_focus_state_on_pointer_event description 2026-03-17 10:59:03 +01:00
Rémi Verschelde
1a69be88e2
Merge pull request #111819 from MewPurPur/democratize-cursor-shape
Add virtual `_get_cursor_shape()` method in Control
2026-03-16 23:41:08 +01:00
MewPurPur
64fcc13fc5 Add virtual _get_cursor_shape() method in Control 2026-03-16 22:12:39 +02:00
Rémi Verschelde
2759cbdc6c
Merge pull request #87081 from timoschwarzer/feature/control-render-transform
Add transform offset to Control nodes
2026-03-06 15:16:43 +01:00
Timo Schwarzer
c3d96f262f
Add offset transform to Control nodes 2026-03-05 22:55:49 +01:00
Pāvels Nadtočajevs
1306221592
Move accessibility methods/enums from DisplayServer to the AccessibilityServer dedicated singleton. 2026-03-02 13:48:29 +02:00
MadeScientist
3a61ca9452 Fix incorrect transform method reference in CanvasItem.get_screen_transform() documentation
The get_global_transform method of CanvasItem doesn't consider the canvas_transform, so when any camera is enabled, its return value may differ from get_screen_transform. Thus, we should use get_global_transform_with_canvas instead, which provides consistent results with or without cameras enabled.
2025-12-01 01:07:57 +08:00
Micky
be0c68845e Fix miscellaneous oddities around the class reference (part 6) 2025-11-25 21:20:57 +01:00
SirishaDuba
79fe28b456 Fix typo in Control enum description (MouseBehaviorRecursive) 2025-11-13 13:19:34 +05:30
kobewi
1be1bd15d8 Clarify notification call order 2025-11-11 15:41:56 +01:00
Thaddeus Crews
e870cd911b
Merge pull request #110895 from Giganzo/input-focus
Add setting for when to show the focus state for mouse input
2025-10-21 19:09:25 -05:00
Giganzo
e384085ca1 Add setting for when to show the focus state for mouse input 2025-10-07 14:26:14 +02:00
kobewi
618afcffa6 Add pivot_offset_ratio property to Control 2025-09-30 15:27:52 +02:00
Michael Alexsander
aeb3a45c97
Hide Control focus when given via mouse input 2025-09-19 13:43:29 -03:00
aidcoope
e3a6abd871 Fix typo in control node _make_custom_tooltip description. 2025-09-13 16:58:49 -04:00
Talkashie
bc7e68dfd1 Typos 2025-08-19 18:32:59 -05:00
Haoyu Qiu
0e5b06c26d Fix various errors in the class reference 2025-06-13 21:14:55 +08:00
Haoyu Qiu
4e20e33e21 Expose Node.can_auto_translate() 2025-06-11 11:26:43 +08:00
Pāvels Nadtočajevs
aff5b413aa
Move some accessibility properties from Node to Control 2025-06-08 16:25:28 +03:00
kobewi
13f642d959
Replace XML codeblock spaces with tabs 2025-06-06 14:35:38 +02:00
Haoyu Qiu
1e82bafa3a Remove redundant info on the enum types used 2025-06-04 08:21:47 +08:00
Haoyu Qiu
e22540bc0b Improve description of Control.scale 2025-05-16 15:31:08 +08:00
Thaddeus Crews
113ef4df78
Merge pull request #105357 from MewPurPur/tweak-get-cursor-shape-doc
Improve get_cursor_shape() documentation
2025-04-27 19:21:11 -05:00
MewPurPur
6a19128a1a Improve get_cursor_shape() documentation 2025-04-13 20:11:46 +03:00
kit
d16e8b7ca4 Fix and rename mouse filter recursive behavior
and focus mode recursive behavior.
2025-04-09 23:45:03 -04:00
Thaddeus Crews
e6a61b1ecc
Merge pull request #76829 from bruvzg/ac_kit_direct
Implement screen reader support using AccessKit library.
2025-04-08 12:32:47 -05:00
Pāvels Nadtočajevs
b106dfd4f9
Base accessibility API. 2025-04-08 20:14:28 +03:00
Micky
7603945d14 Fix *even* more miscellaneous oddities around the class reference 2025-04-07 17:37:08 +02:00
DE-YU_H14
a49ca33a7f Implement properties that recursively disables children's focus & mouse filter.
Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2025-03-07 22:34:58 +08:00
Hugo Locurcio
e05f0a45f6 Improve documentation on forcing right-to-left layout in Control 2025-02-12 02:20:31 +01:00
Hugo Locurcio
65c795eb35
Clarify the behavior of Control.layout_direction in the documentation 2025-02-11 16:56:22 +01:00
Rémi Verschelde
f37fd1c3f2
Merge pull request #99238 from Calinou/doc-node2d-no-z-index
Update Z Index property location in Node2D class reference
2024-11-29 22:47:11 +01:00
Haoyu Qiu
fb5a4bac6e Improve documentation for tooltip-related methods 2024-11-26 10:04:51 +08:00
Thaddeus Crews
ec01ad65fd Merge pull request #99620 from tetrapod00/doc-control-children
Docs: Update Control class to properly reflect behavior of Themes on Control Children
2024-11-25 13:22:20 -06:00
tetrapod00
13b565c64d Docs: Update Control class to properly reflect behavior of Themes on Control Children
Document fact that themes only propagate to control children
(not Node2D, etc). Wording is copied from Theme docs.
Also clarifies line somewhat.

Co-Authored-By: Allyson Chan <allysonn.chann@gmail.com>
2024-11-24 10:30:02 -08:00
Hugo Locurcio
d683ea4772 Update Z Index property location in Node2D class reference
The Z Index property is in CanvasItem since Godot 4.0, so it's shared among
Node2D and Control.
2024-11-15 15:02:10 +01:00
Micky
eaebb3f864 Fix more miscellaneous oddities around the class reference 2024-11-12 17:44:45 +01:00
Thaddeus Crews
2c31bd767c
Merge pull request #99020 from Mickeon/documentation-example-pruning-2
Clean up more `[b]Example:[/b]` lines from the class reference
2024-11-12 09:28:02 -06:00
Thaddeus Crews
e66d9988a6
Merge pull request #95774 from Mickeon/documentation-miscellaneous-oddities
Fix miscellaneous oddities around the class reference
2024-11-12 09:27:47 -06:00
Micky
932b1c434c Clean up more [b]Example:[/b] lines from the class reference 2024-11-11 12:05:34 +01:00
Micky
5c5460b026 Fix many untagged true/false/null in the documentation 2024-11-10 11:26:39 +01:00
Clay John
a3080477ac
Merge pull request #98281 from timothyqiu/custom-tooltip-atm
Don't override auto translate mode of custom tooltip
2024-10-27 19:25:37 -07:00
Thaddeus Crews
422535ee86
Merge pull request #97966 from mh114/mh114-fix-control-doc-typo
Fix a documentation typo in `Control._drop_data()` C#-example.
2024-10-25 13:03:56 -05:00
Haoyu Qiu
6424b201e2 Don't override auto translate mode of custom tooltip 2024-10-25 16:13:45 +08:00
Haoyu Qiu
009446a277 Add System Locale layout direction for Control and Window 2024-10-17 07:52:07 +08:00