/* *ThisSourceCodeFormissubjecttothetermsoftheMozillaPublic *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* ConveniencefunctioncombiningtheSetPositionandSetSizeintoonecall. Alsoismoreefficientthancallingboth.
*/ void setPositionAndSize(in long x, in long y, in long cx, in long cy,
in unsignedlong flags);
/* ConveniencefunctioncombiningtheGetPositionandGetSizeintoonecall. Alsoismoreefficientthancallingboth.
*/ void getPositionAndSize(out long x, out long y, out long cx, out long cy);
%{C++
mozilla::LayoutDeviceIntRect GetPositionAndSize() {
int32_t x = 0, y = 0, w = 0, h = 0;
GetPositionAndSize(&x, &y, &w, &h); return mozilla::LayoutDeviceIntRect(x, y, w, h);
}
%}
/** *Getsthedimensionsofthewindow.Thecallermaypassnullptrforany *valueitisuninterestedinreceiving. * *@paramaDimensionKindSpecifieswhetherthedimensionsareinreference *totheinnerorouterdimensions. *@paramaXLefthandcorneroftheouterarea;ornullptr. *@paramaYTopcorneroftheouterarea;ornullptr. *@paramaCXWidthoftheinnerorouterarea;ornullptr. *@paramaCYHeightoftheinnerorouterarea;ornullptr. * *Note:Innerpositionisnotsupported. * *@seeDimensionRequest
*/
[noscript] void getDimensions(in DimensionKind aDimensionKind, out long aX, out long aY, out long aCX, out long aCY);
%{C++
mozilla::LayoutDeviceIntRect GetDimensions(mozilla::DimensionKind aDimensionKind) {
int32_t x = 0, y = 0, w = 0, h = 0;
GetDimensions(aDimensionKind, &x, &y, &w, &h); return mozilla::LayoutDeviceIntRect(x, y, w, h);
}
%}
%{C++ // The number of device pixels per CSS pixel used on this window's current // screen at the default full zoom level. // // This is the widget scale _plus_ the OS zoom scale if appropriate. // Implemented in AppWindow.cpp
mozilla::CSSToLayoutDeviceScale UnscaledDevicePixelsPerCSSPixel();
%}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.