[][src]Trait gtk::ScrollableExt

pub trait ScrollableExt: 'static {
    fn get_border(&self) -> Option<Border>;
fn get_hadjustment(&self) -> Option<Adjustment>;
fn get_hscroll_policy(&self) -> ScrollablePolicy;
fn get_vadjustment(&self) -> Option<Adjustment>;
fn get_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_property_hadjustment_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_hscroll_policy_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_vadjustment_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_vscroll_policy_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Trait containing all Scrollable methods.

Implementors

IconView, Layout, Scrollable, TextView, ToolPalette, TreeView, Viewport

Required methods

fn get_border(&self) -> Option<Border>

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.

Feature: v3_16

border

return location for the results

Returns

true if border has been set

fn get_hadjustment(&self) -> Option<Adjustment>

Retrieves the Adjustment used for horizontal scrolling.

Returns

horizontal Adjustment.

fn get_hscroll_policy(&self) -> ScrollablePolicy

Gets the horizontal ScrollablePolicy.

Returns

The horizontal ScrollablePolicy.

fn get_vadjustment(&self) -> Option<Adjustment>

Retrieves the Adjustment used for vertical scrolling.

Returns

vertical Adjustment.

fn get_vscroll_policy(&self) -> ScrollablePolicy

Gets the vertical ScrollablePolicy.

Returns

The vertical ScrollablePolicy.

fn set_hadjustment<P: IsA<Adjustment>>(&self, hadjustment: Option<&P>)

Sets the horizontal adjustment of the Scrollable.

hadjustment

a Adjustment

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>)

Sets the vertical adjustment of the Scrollable.

vadjustment

a Adjustment

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_property_hadjustment_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

fn connect_property_hscroll_policy_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

fn connect_property_vadjustment_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

fn connect_property_vscroll_policy_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

Loading content...

Implementors

impl<O: IsA<Scrollable>> ScrollableExt for O[src]

Loading content...