Debian Codegraph @

debian/missing-sources/pango/src/rectangle.rs

raw symbols SCIP
1 // Take a look at the license at the top of the repository in the LICENSE file.
2
3 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc fmt/;
4
5 use craterust-analyzer cargo pango 0.22.0 crate/::ffirust-analyzer cargo pango-sys 0.22.0 crate/;
6 use glibrust-analyzer cargo glib 0.22.0 crate/::translaterust-analyzer cargo glib 0.22.0 translate/::*;
7
8 glibrust-analyzer cargo glib 0.22.0 crate/::wrapperrust-analyzer cargo glib 0.22.0 wrapper/wrapper!! {
9 #[doc(alias = "PangoRectangle")]
10 pub struct Rectanglerust-analyzer cargo pango 0.22.0 rectangle/Rectangle#(BoxedInline<ffirust-analyzer cargo pango-sys 0.22.0 crate/::PangoRectanglerust-analyzer cargo pango-sys 0.22.0 PangoRectangle#>);
11 }
12
13 impl Rectanglerust-analyzer cargo pango 0.22.0 rectangle/Rectangle# {
14 #[inline]
15 pub fn newrust-analyzer cargo pango 0.22.0 rectangle/impl#[Rectangle]new().(x: i32, y: i32, width: i32, height: i32) -> Selfrust-analyzer cargo pango 0.22.0 rectangle/impl#[Rectangle] {
16 unsafe {
17 Selfrust-analyzer cargo pango 0.22.0 rectangle/impl#[Rectangle]::unsafe_fromrust-analyzer cargo pango 0.22.0 rectangle/impl#[Rectangle][`UnsafeFrom<pango_sys::PangoRectangle>`]unsafe_from().(ffirust-analyzer cargo pango-sys 0.22.0 crate/::PangoRectanglerust-analyzer cargo pango-sys 0.22.0 PangoRectangle# {
18 xrust-analyzer cargo pango-sys 0.22.0 PangoRectangle#x.,
19 yrust-analyzer cargo pango-sys 0.22.0 PangoRectangle#y.,
20 widthrust-analyzer cargo pango-sys 0.22.0 PangoRectangle#width.,
21 heightrust-analyzer cargo pango-sys 0.22.0 PangoRectangle#height.,
22 })
23 }
24 }
25
26 #[inline]
27 pub fn xrust-analyzer cargo pango 0.22.0 rectangle/impl#[Rectangle]x().(&self) -> i32 {
28 self.innerrust-analyzer cargo pango 0.22.0 rectangle/Rectangle#inner..xrust-analyzer cargo pango-sys 0.22.0 PangoRectangle#x.
29 }
30
31 #[inline]
32 pub fn set_xrust-analyzer cargo pango 0.22.0 rectangle/impl#[Rectangle]set_x().(&mut self, x: i32) {
33 self.innerrust-analyzer cargo pango 0.22.0 rectangle/Rectangle#inner..xrust-analyzer cargo pango-sys 0.22.0 PangoRectangle#x. = x;
34 }
35
36 #[inline]
37 pub fn yrust-analyzer cargo pango 0.22.0 rectangle/impl#[Rectangle]y().(&self) -> i32 {
38 self.innerrust-analyzer cargo pango 0.22.0 rectangle/Rectangle#inner..yrust-analyzer cargo pango-sys 0.22.0 PangoRectangle#y.
39 }
40
41 #[inline]
42 pub fn set_yrust-analyzer cargo pango 0.22.0 rectangle/impl#[Rectangle]set_y().(&mut self, y: i32) {
43 self.innerrust-analyzer cargo pango 0.22.0 rectangle/Rectangle#inner..yrust-analyzer cargo pango-sys 0.22.0 PangoRectangle#y. = y;
44 }
45
46 #[inline]
47 pub fn widthrust-analyzer cargo pango 0.22.0 rectangle/impl#[Rectangle]width().(&self) -> i32 {
48 self.innerrust-analyzer cargo pango 0.22.0 rectangle/Rectangle#inner..widthrust-analyzer cargo pango-sys 0.22.0 PangoRectangle#width.
49 }
50
51 #[inline]
52 pub fn set_widthrust-analyzer cargo pango 0.22.0 rectangle/impl#[Rectangle]set_width().(&mut self, width: i32) {
53 self.innerrust-analyzer cargo pango 0.22.0 rectangle/Rectangle#inner..widthrust-analyzer cargo pango-sys 0.22.0 PangoRectangle#width. = width;
54 }
55
56 #[inline]
57 pub fn heightrust-analyzer cargo pango 0.22.0 rectangle/impl#[Rectangle]height().(&self) -> i32 {
58 self.innerrust-analyzer cargo pango 0.22.0 rectangle/Rectangle#inner..heightrust-analyzer cargo pango-sys 0.22.0 PangoRectangle#height.
59 }
60
61 #[inline]
62 pub fn set_heightrust-analyzer cargo pango 0.22.0 rectangle/impl#[Rectangle]set_height().(&mut self, height: i32) {
63 self.innerrust-analyzer cargo pango 0.22.0 rectangle/Rectangle#inner..heightrust-analyzer cargo pango-sys 0.22.0 PangoRectangle#height. = height;
64 }
65 }
66
67 impl fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc fmt/::Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Debug# for Rectanglerust-analyzer cargo pango 0.22.0 rectangle/Rectangle# {
68 fn fmtrust-analyzer cargo pango 0.22.0 rectangle/impl#[Rectangle][Debug]fmt().(&self, f: &mut fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc fmt/::Formatterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Formatter#) -> fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc fmt/::Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Result# {
69 f.debug_structrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/impl#[`Formatter<'a>`]debug_struct().("Rectangle")
70 .fieldrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/builders/impl#[`DebugStruct<'a, 'b>`]field().("x", &self.xrust-analyzer cargo pango 0.22.0 rectangle/impl#[Rectangle]x().())
71 .fieldrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/builders/impl#[`DebugStruct<'a, 'b>`]field().("y", &self.yrust-analyzer cargo pango 0.22.0 rectangle/impl#[Rectangle]y().())
72 .fieldrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/builders/impl#[`DebugStruct<'a, 'b>`]field().("width", &self.widthrust-analyzer cargo pango 0.22.0 rectangle/impl#[Rectangle]width().())
73 .fieldrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/builders/impl#[`DebugStruct<'a, 'b>`]field().("height", &self.heightrust-analyzer cargo pango 0.22.0 rectangle/impl#[Rectangle]height().())
74 .finishrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/builders/impl#[`DebugStruct<'a, 'b>`]finish().()
75 }
76 }