We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea68a23 commit df8feabCopy full SHA for df8feab
gdk4/src/rectangle.rs
@@ -23,17 +23,33 @@ impl Rectangle {
23
self.inner.x
24
}
25
26
+ pub fn set_x(&mut self, x: i32) {
27
+ self.inner.x = x;
28
+ }
29
+
30
pub fn y(&self) -> i32 {
31
self.inner.y
32
33
34
+ pub fn set_y(&mut self, y: i32) {
35
+ self.inner.y = y;
36
37
38
pub fn width(&self) -> i32 {
39
self.inner.width
40
41
42
+ pub fn set_width(&mut self, width: i32) {
43
+ self.inner.width = width;
44
45
46
pub fn height(&self) -> i32 {
47
self.inner.height
48
49
50
+ pub fn set_height(&mut self, height: i32) {
51
+ self.inner.height = height;
52
53
54
55
impl fmt::Debug for Rectangle {
0 commit comments