[−][src]Trait gtk::prelude::LayoutExt
Required methods
fn get_bin_window(&self) -> Option<Window>
fn get_size(&self) -> (u32, u32)
Gets the size that has been set on the layout, and that determines the total extents of the layout’s scrollbar area. See gtk_layout_set_size ().
width
location to store the width set on
self
, or None
height
location to store the height set on
self
, or None
fn move_<P: IsA<Widget>>(&self, child_widget: &P, x: i32, y: i32)
fn put<P: IsA<Widget>>(&self, child_widget: &P, x: i32, y: i32)
Adds child_widget
to self
, at position (x
,y
).
self
becomes the new parent container of child_widget
.
child_widget
child widget
x
X position of child widget
y
Y position of child widget
fn set_size(&self, width: u32, height: u32)
Sets the size of the scrollable area of the layout.
width
width of entire scrollable area
height
height of entire scrollable area
fn get_property_height(&self) -> u32
fn set_property_height(&self, height: u32)
fn get_property_width(&self) -> u32
fn set_property_width(&self, width: u32)
fn get_child_x<T: IsA<Widget>>(&self, item: &T) -> i32
fn set_child_x<T: IsA<Widget>>(&self, item: &T, x: i32)
fn get_child_y<T: IsA<Widget>>(&self, item: &T) -> i32
fn set_child_y<T: IsA<Widget>>(&self, item: &T, y: i32)
fn connect_property_height_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_width_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
Implementors
impl<O: IsA<Layout>> LayoutExt for O
[src]
fn get_bin_window(&self) -> Option<Window>
[src]
fn get_size(&self) -> (u32, u32)
[src]
fn move_<P: IsA<Widget>>(&self, child_widget: &P, x: i32, y: i32)
[src]
fn put<P: IsA<Widget>>(&self, child_widget: &P, x: i32, y: i32)
[src]
fn set_size(&self, width: u32, height: u32)
[src]
fn get_property_height(&self) -> u32
[src]
fn set_property_height(&self, height: u32)
[src]
fn get_property_width(&self) -> u32
[src]
fn set_property_width(&self, width: u32)
[src]
fn get_child_x<T: IsA<Widget>>(&self, item: &T) -> i32
[src]
fn set_child_x<T: IsA<Widget>>(&self, item: &T, x: i32)
[src]
fn get_child_y<T: IsA<Widget>>(&self, item: &T) -> i32
[src]
fn set_child_y<T: IsA<Widget>>(&self, item: &T, y: i32)
[src]
fn connect_property_height_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_width_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId