WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

Graphics and Widgets

The following are interfaces for handling graphics and fonts as well as a few special widgets. The implementations of these interfaces are different depending on the user's platform, although the interfaces are the same.

Jump to:


Fonts

These interfaces are used for handling fonts. You can use them to get installed fonts.

nsIFontCatalogEntry
nsIFontCatalogService
nsIFontEnumerator
nsIFontList
nsIFontPackageHandler
nsIFontPackageProxy
nsIFontPackageService

@mozilla.org/gfx/fontenumerator;1
@mozilla.org/gfx/fontlist;1
@mozilla.org/gfx/fontmetrics;1
@mozilla.org/gfx/xfontcatalogservice;1


Printing

Some printing related interfaces, mainly for getting and setting the list of installed printers and print options, which would be used by a Page Setup dialog.

nsIPrintOptions
nsIPrintSession
nsIPrintSessionX
nsIPrintSettings
nsIPrintSettingsMac
nsIPrintSettingsService
nsIPrintSettingsWin
nsIPrintSettingsX
nsIPrinterEnumerator

@mozilla.org/gfx/printerenumerator;1
@mozilla.org/gfx/printsession;1
@mozilla.org/gfx/printsettings-service;1


General Interfaces

Some general graphics related interfaces. The nsIScreen and nsIScreenManager can be used to get display related information. The nsISound interface can be used to play audio files.

nsIFilePicker
nsIFileView
nsIRollupListener
nsIScreen
nsIScreenManager
nsIScriptableRegion
nsISound
nsIToolkit
nsPIWidgetCocoa

General Components

Some general graphics related components.

@mozilla.org/gfx/blender;1
@mozilla.org/gfx/decidecontext/ps;1
@mozilla.org/gfx/decidecontext/xprint;1
@mozilla.org/gfx/devicecontext;1
@mozilla.org/gfx/devicecontextspec;1
@mozilla.org/gfx/devicecontextspecfactory;1
@mozilla.org/gfx/region/gtk;1
@mozilla.org/gfx/region/nsThebes;1
@mozilla.org/gfx/region;1
@mozilla.org/gfx/renderingcontext;1
@mozilla.org/gfx/screenmanager;1
@mozilla.org/svg/rect;1
@mozilla.org/svg/renderer;1?tech=CAIRO

Widgets

Components used to implement specific widgets.

@mozilla.org/filepicker/fileview;1
@mozilla.org/filepicker;1
@mozilla.org/sound;1
@mozilla.org/widget/appshell/gtk;1
@mozilla.org/widget/bidikeyboard;1
@mozilla.org/widget/htmlformatconverter/gtk;1
@mozilla.org/widget/htmlformatconverter;1
@mozilla.org/widget/label/gtk;1
@mozilla.org/widget/lookandfeel/gtk;1
@mozilla.org/widget/lookandfeel;1
@mozilla.org/widget/menu/mac;1
@mozilla.org/widget/menubar/mac;1
@mozilla.org/widget/menuitem/mac;1
@mozilla.org/widget/native-key-bindings;1?type=editor
@mozilla.org/widget/native-key-bindings;1?type=input
@mozilla.org/widget/native-key-bindings;1?type=textarea
@mozilla.org/widget/toolkit/gtk;1
@mozilla.org/widget/toolkit/mac;1
@mozilla.org/widget/window/gtk;1
@mozilla.org/widgets/button/gtk;1
@mozilla.org/widgets/checkbutton/gtk;1
@mozilla.org/widgets/child_window/gtk;1
@mozilla.org/widgets/childwindow/mac;1
@mozilla.org/widgets/horizscroll/gtk;1
@mozilla.org/widgets/popup/mac;1
@mozilla.org/widgets/textwidget/gtk;1
@mozilla.org/widgets/vertscroll/gtk;1
@mozilla.org/widgets/window/gtk;1
@mozilla.org/widgets/window/mac;1

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com