# qooxdoo

Home » Manual (v2.0.1) » qx.Desktop » Widget

# Widget

This is the base class for all widgets.

## Features

- Integration with event system
- Focus handling
- Drag and drop
- Auto sizing
- Theming
- Tool tips
- Context menus
- Visibility handling
- Sub widget management

## Description

The widget is the base class for all qooxdoo widgets. It contains the widget system's core functionality.

## Diagram

A widget consists of at least three HTML elements. The container element, which is added to the parent widget, has two child Elements: The "decoration" element and the "content" element. The decoration element has a lower z-Index and contains markup to render the widget's background and border using an implementation of `qx.ui.decoration.IDecorator`. The content element is positioned inside the "container" element to respect paddings and contains the "real" widget element.

## Demos

There are no explicit widget demos since the widget is typically sub classed.

## API

Here is a link to the API of the Widget:
qx.ui.core.Widget