Struct xpcom::interfaces::nsIBaseWindow
[−]
[src]
#[repr(C)]pub struct nsIBaseWindow { /* fields omitted */ }
interface nsIBaseWindow : nsISupports
/**
* The nsIBaseWindow describes a generic window and basic operations that
* can be performed on it. This is not to be a complete windowing interface
* but rather a common set that nearly all windowed objects support.
*/
Methods
impl nsIBaseWindow
[src]
pub fn coerce<T: nsIBaseWindowCoerce>(&self) -> &T
[src]
Cast this nsIBaseWindow
to one of its base interfaces.
impl nsIBaseWindow
[src]
pub const eRepaint: i64
eRepaint: i64 = 1
/**
* The 'flags' argument to setPositionAndSize is a set of these bits.
*/
pub const eDelayResize: i64
eDelayResize: i64 = 2
pub unsafe fn Create(&self) -> nsresult
[src]
void create ();
pub unsafe fn Destroy(&self) -> nsresult
[src]
void destroy ();
pub unsafe fn SetPosition(&self, x: int32_t, y: int32_t) -> nsresult
[src]
void setPosition (in long x, in long y);
pub unsafe fn SetPositionDesktopPix(&self, x: int32_t, y: int32_t) -> nsresult
[src]
void setPositionDesktopPix (in long x, in long y);
pub unsafe fn GetPosition(&self, x: *mut int32_t, y: *mut int32_t) -> nsresult
[src]
void getPosition (out long x, out long y);
pub unsafe fn SetSize(
&self,
cx: int32_t,
cy: int32_t,
fRepaint: bool
) -> nsresult
[src]
&self,
cx: int32_t,
cy: int32_t,
fRepaint: bool
) -> nsresult
void setSize (in long cx, in long cy, in boolean fRepaint);
pub unsafe fn GetSize(&self, cx: *mut int32_t, cy: *mut int32_t) -> nsresult
[src]
void getSize (out long cx, out long cy);
pub unsafe fn SetPositionAndSize(
&self,
x: int32_t,
y: int32_t,
cx: int32_t,
cy: int32_t,
flags: uint32_t
) -> nsresult
[src]
&self,
x: int32_t,
y: int32_t,
cx: int32_t,
cy: int32_t,
flags: uint32_t
) -> nsresult
void setPositionAndSize (in long x, in long y, in long cx, in long cy, in unsigned long flags);
pub unsafe fn GetPositionAndSize(
&self,
x: *mut int32_t,
y: *mut int32_t,
cx: *mut int32_t,
cy: *mut int32_t
) -> nsresult
[src]
&self,
x: *mut int32_t,
y: *mut int32_t,
cx: *mut int32_t,
cy: *mut int32_t
) -> nsresult
void getPositionAndSize (out long x, out long y, out long cx, out long cy);
pub unsafe fn Repaint(&self, force: bool) -> nsresult
[src]
/**
* Tell the window to repaint itself
* @param aForce - if true, repaint immediately
* if false, the window may defer repainting as it sees fit.
*/
void repaint (in boolean force);
pub unsafe fn GetParentNativeWindow(
&self,
aParentNativeWindow: *mut nativeWindow
) -> nsresult
[src]
&self,
aParentNativeWindow: *mut nativeWindow
) -> nsresult
attribute nativeWindow parentNativeWindow;
pub unsafe fn SetParentNativeWindow(
&self,
aParentNativeWindow: nativeWindow
) -> nsresult
[src]
&self,
aParentNativeWindow: nativeWindow
) -> nsresult
attribute nativeWindow parentNativeWindow;
pub unsafe fn GetNativeHandle(&self, aNativeHandle: &mut nsAString) -> nsresult
[src]
readonly attribute DOMString nativeHandle;
pub unsafe fn GetVisibility(&self, aVisibility: *mut bool) -> nsresult
[src]
attribute boolean visibility;
pub unsafe fn SetVisibility(&self, aVisibility: bool) -> nsresult
[src]
attribute boolean visibility;
pub unsafe fn GetEnabled(&self, aEnabled: *mut bool) -> nsresult
[src]
attribute boolean enabled;
pub unsafe fn SetEnabled(&self, aEnabled: bool) -> nsresult
[src]
attribute boolean enabled;
pub unsafe fn GetUnscaledDevicePixelsPerCSSPixel(
&self,
aUnscaledDevicePixelsPerCSSPixel: *mut c_double
) -> nsresult
[src]
&self,
aUnscaledDevicePixelsPerCSSPixel: *mut c_double
) -> nsresult
readonly attribute double unscaledDevicePixelsPerCSSPixel;
pub unsafe fn GetDevicePixelsPerDesktopPixel(
&self,
aDevicePixelsPerDesktopPixel: *mut c_double
) -> nsresult
[src]
&self,
aDevicePixelsPerDesktopPixel: *mut c_double
) -> nsresult
readonly attribute double devicePixelsPerDesktopPixel;
pub unsafe fn SetFocus(&self) -> nsresult
[src]
/**
* Give the window focus.
*/
void setFocus ();
pub unsafe fn GetTitle(&self, aTitle: &mut nsAString) -> nsresult
[src]
attribute AString title;
pub unsafe fn SetTitle(&self, aTitle: &nsAString) -> nsresult
[src]
attribute AString title;
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 nsIBaseWindow
[src]
const IID: nsIID
IID: nsIID = nsID(3395507497, 43383, 17746, [155, 138, 102, 24, 126, 84, 216, 130])
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 nsIBaseWindow
[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 nsIBaseWindow
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.