Struct xpcom::interfaces::nsILayoutHistoryState
[−]
[src]
#[repr(C)]pub struct nsILayoutHistoryState { /* fields omitted */ }
interface nsILayoutHistoryState : nsISupports
Methods
impl nsILayoutHistoryState
[src]
pub fn coerce<T: nsILayoutHistoryStateCoerce>(&self) -> &T
[src]
Cast this nsILayoutHistoryState
to one of its base interfaces.
impl nsILayoutHistoryState
[src]
pub unsafe fn GetHasStates(&self, aHasStates: *mut bool) -> nsresult
[src]
/**
* Whether this LayoutHistoryState contains any PresStates.
*/
readonly attribute boolean hasStates;
pub unsafe fn GetKeys(
&self,
aCount: *mut uint32_t,
aKeys: *mut *mut *const c_char
) -> nsresult
[src]
&self,
aCount: *mut uint32_t,
aKeys: *mut *mut *const c_char
) -> nsresult
/**
* Get the keys of all PresStates held by this LayoutHistoryState.
* Note: Check hasStates first.
*/
void getKeys ([optional] out uint32_t aCount, [array, size_is (aCount), retval] out string aKeys);
pub unsafe fn GetPresState(
&self,
aKey: &nsACString,
aScrollX: *mut c_float,
aScrollY: *mut c_float,
aAllowScrollOriginDowngrade: *mut bool,
aRes: *mut c_float,
aScaleToRes: *mut bool
) -> nsresult
[src]
&self,
aKey: &nsACString,
aScrollX: *mut c_float,
aScrollY: *mut c_float,
aAllowScrollOriginDowngrade: *mut bool,
aRes: *mut c_float,
aScaleToRes: *mut bool
) -> nsresult
void getPresState (in ACString aKey, out float aScrollX, out float aScrollY, out boolean aAllowScrollOriginDowngrade, out float aRes, out boolean aScaleToRes);
pub unsafe fn AddNewPresState(
&self,
aKey: &nsACString,
aScrollX: c_float,
aScrollY: c_float,
aAllowScrollOriginDowngrade: bool,
aRes: c_float,
aScaleToRes: bool
) -> nsresult
[src]
&self,
aKey: &nsACString,
aScrollX: c_float,
aScrollY: c_float,
aAllowScrollOriginDowngrade: bool,
aRes: c_float,
aScaleToRes: bool
) -> nsresult
/**
* Constructs a new nsPresState object based on the supplied data
* and adds it to the LayoutHistoryState.
*/
void addNewPresState (in ACString aKey, in float aScrollX, in float aScrollY, in boolean aAllowScrollOriginDowngrade, in float aRes, in boolean aScaleToRes);
Methods from Deref<Target = nsISupports>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsILayoutHistoryState
[src]
const IID: nsIID
IID: nsIID = nsID(2935127219, 19961, 20203, [176, 176, 172, 86, 207, 134, 29, 4])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[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 nsILayoutHistoryState
[src]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsILayoutHistoryState
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.