Struct xpcom::interfaces::nsIScrollable [] [src]

#[repr(C)]
pub struct nsIScrollable { /* fields omitted */ }

interface nsIScrollable : nsISupports

/**
 * The nsIScrollable is an interface that can be implemented by a control that
 * supports scrolling.  This is a generic interface without concern for the
 * type of content that may be inside.
 */

Methods

impl nsIScrollable
[src]

[src]

Cast this nsIScrollable to one of its base interfaces.

impl nsIScrollable
[src]

ScrollOrientation_X: i64 = 1
/**
   * Constants declaring the two scroll orientations a scrollbar can be in.
   * ScrollOrientation_X - Horizontal scrolling.  When passing this
   *         in to a method you are requesting or setting data for the
   *         horizontal scrollbar.
   * ScrollOrientation_Y - Vertical scrolling.  When passing this
   *         in to a method you are requesting or setting data for the
   *         vertical scrollbar.
   */

ScrollOrientation_Y: i64 = 2

Scrollbar_Auto: i64 = 1
/**
   * Constants declaring the states of the scrollbars.
   * ScrollPref_Auto - bars visible only when needed.
   * ScrollPref_Never - bars never visible, even when scrolling still possible.
   * ScrollPref_Always - bars always visible, even when scrolling is not possible
   */

Scrollbar_Never: i64 = 2

Scrollbar_Always: i64 = 3

[src]

/**
   * Get or set the default scrollbar state for all documents in
   * this shell.
   */

long getDefaultScrollbarPreferences (in long scrollOrientation);

[src]

void setDefaultScrollbarPreferences (in long scrollOrientation, in long scrollbarPref);

[src]

/**
   * Get information about whether the vertical and horizontal scrollbars are
   * currently visible.  If you are only interested in one of the visibility
   * settings pass nullptr in for the one you aren't interested in.
   */

void getScrollbarVisibility (out boolean verticalVisible, out boolean horizontalVisible);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIScrollable
[src]

IID: nsIID = nsID(889715859, 12606, 19020, [140, 168, 77, 14, 160, 249, 115, 21])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsIScrollable
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIScrollable
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.