Trait gtk::prelude::ScrollableExt [−][src]
pub trait ScrollableExt: 'static {
Show methods
fn border(&self) -> Option<Border>;
fn hadjustment(&self) -> Option<Adjustment>;
fn hscroll_policy(&self) -> ScrollablePolicy;
fn vadjustment(&self) -> Option<Adjustment>;
fn vscroll_policy(&self) -> ScrollablePolicy;
fn set_hadjustment<P: IsA<Adjustment>>(&self, hadjustment: Option<&P>);
fn set_hscroll_policy(&self, policy: ScrollablePolicy);
fn set_vadjustment<P: IsA<Adjustment>>(&self, vadjustment: Option<&P>);
fn set_vscroll_policy(&self, policy: ScrollablePolicy);
fn connect_hadjustment_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_hscroll_policy_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_vadjustment_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_vscroll_policy_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}Expand description
Trait containing all Scrollable methods.
Implementors
IconView, Layout, Scrollable, TextView, ToolPalette, TreeView, Viewport
Required methods
Returns the size of a non-scrolling border around the outside of the scrollable. An example for this would be treeview headers. GTK+ can use this information to display overlayed graphics, like the overshoot indication, at the right position.
Returns
true if border has been set
border
return location for the results
fn hadjustment(&self) -> Option<Adjustment>
fn hadjustment(&self) -> Option<Adjustment>fn hscroll_policy(&self) -> ScrollablePolicy
fn hscroll_policy(&self) -> ScrollablePolicyfn vadjustment(&self) -> Option<Adjustment>
fn vadjustment(&self) -> Option<Adjustment>fn vscroll_policy(&self) -> ScrollablePolicy
fn vscroll_policy(&self) -> ScrollablePolicyfn set_hadjustment<P: IsA<Adjustment>>(&self, hadjustment: Option<&P>)
fn set_hadjustment<P: IsA<Adjustment>>(&self, hadjustment: Option<&P>)fn set_hscroll_policy(&self, policy: ScrollablePolicy)
fn set_hscroll_policy(&self, policy: ScrollablePolicy)Sets the ScrollablePolicy to determine whether
horizontal scrolling should start below the minimum width or
below the natural width.
policy
the horizontal ScrollablePolicy
fn set_vadjustment<P: IsA<Adjustment>>(&self, vadjustment: Option<&P>)
fn set_vadjustment<P: IsA<Adjustment>>(&self, vadjustment: Option<&P>)fn set_vscroll_policy(&self, policy: ScrollablePolicy)
fn set_vscroll_policy(&self, policy: ScrollablePolicy)Sets the ScrollablePolicy to determine whether
vertical scrolling should start below the minimum height or
below the natural height.
policy
the vertical ScrollablePolicy
fn connect_hadjustment_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerIdfn connect_hscroll_policy_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerIdfn connect_vadjustment_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerIdfn connect_vscroll_policy_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId