File tree Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -83,17 +83,12 @@ impl Rect2i {
83
83
}
84
84
85
85
/// The end of the `Rect2i` calculated as `position + size`.
86
- ///
87
- /// _Godot equivalent: `Rect2i.size` property_
88
- #[ doc( alias = "size" ) ]
89
86
#[ inline]
90
87
pub const fn end ( self ) -> Vector2i {
91
88
Vector2i :: new ( self . position . x + self . size . x , self . position . y + self . size . y )
92
89
}
93
90
94
- /// Set size based on desired end-point.
95
- ///
96
- /// _Godot equivalent: `Rect2i.size` property_
91
+ /// Set end of the `Rect2i`, updating `size = end - position`.
97
92
#[ inline]
98
93
pub fn set_end ( & mut self , end : Vector2i ) {
99
94
self . size = end - self . position
@@ -110,8 +105,7 @@ impl Rect2i {
110
105
111
106
/// Returns `true` if this `Rect2i` completely encloses another one.
112
107
///
113
- /// Any `Rect2i` encloses itself, i.e. an enclosed `Rect2i` does is not required to be a
114
- /// proper sub-rect.
108
+ /// Any `Rect2i` encloses itself, i.e. an enclosed `Rect2i` does is not required to be a proper sub-rect.
115
109
#[ inline]
116
110
pub const fn encloses ( self , other : Self ) -> bool {
117
111
self . assert_nonnegative ( ) ;
Original file line number Diff line number Diff line change @@ -294,10 +294,11 @@ impl<T: GodotClass> Gd<T> {
294
294
295
295
/// Returns the dynamic class name of the object as `StringName`.
296
296
///
297
- /// This method retrieves the class name of the object at runtime, which can be different from [`T::class_name()`] if derived
298
- /// classes are involved.
297
+ /// This method retrieves the class name of the object at runtime, which can be different from [`T::class_name()`][GodotClass::class_name]
298
+ /// if derived classes are involved.
299
299
///
300
- /// Unlike [`Object::get_class()`], this returns `StringName` instead of `GString` and needs no `Inherits<Object>` bound.
300
+ /// Unlike [`Object::get_class()`][crate::classes::Object::get_class], this returns `StringName` instead of `GString` and needs no
301
+ /// `Inherits<Object>` bound.
301
302
pub ( crate ) fn dynamic_class_string ( & self ) -> StringName {
302
303
unsafe {
303
304
StringName :: new_with_string_uninit ( |ptr| {
You can’t perform that action at this time.
0 commit comments