[][src]Crate druid

Simple data-oriented GUI.

Re-exports

pub use druid_shell as shell;
pub use druid_shell::kurbo;
pub use druid_shell::piet;
pub use unicode_segmentation;
pub use command::Command;
pub use command::Selector;
pub use localization::LocalizedString;
pub use menu::MenuDesc;

Modules

command

Custom commands.

localization

Localization handling.

menu

Menus.

theme

Theme keys and initial values.

widget

Common widgets.

Structs

AppLauncher

Handles initial setup of an application, and starts the runloop.

BaseState

Generic state for all widgets in the hierarchy.

BoxConstraints

Constraints for layout.

DelegateCtx

A context passed in to AppDelegate functions.

DruidHandler

The struct implements the druid-shell WinHandler trait.

Env

An environment passed down through all widget traversals.

EventCtx

A mutable context provided to event handling methods of widgets.

FileDialogOptions

Options for file dialogs.

HotKey

A description of a keyboard shortcut.

Key

A typed key.

KeyEvent

A keyboard event, generated on every key press and key release.

KeyModifiers

Keyboard modifier state, provided for events.

LayoutCtx

A context provided to layout handling methods of widgets.

LensWrap

A wrapper for its widget subtree to have access to a part of its parent's data.

MouseEvent

The state of the mouse for a click, mouse-up, or move event.

PaintCtx

A context passed to paint methods of widgets.

Region

A region of a widget, generally used to describe what needs to be drawn.

TimerToken

A token that uniquely identifies a running timer.

UpdateCtx

A mutable context provided to data update methods of widgets.

WheelEvent

A mouse wheel event.

WidgetPod

A container for one widget in the hierarchy.

Window

Per-window state not owned by user code.

WindowDesc

A description of a window to be instantiated.

WindowId

A unique identifier for a window.

Enums

ClipboardItem

An item on the system clipboard.

Cursor

Mouse cursors.

Event

An event, propagated downwards during event flow.

FileDialogType

Type of file dialog.

KeyCode

A platform-independent key identifier. This ignores things like the user's keyboard layout.

MouseButton

An indicator of which mouse button was pressed.

RawMods

A representation of the active modifier keys.

SysMods

A platform-agnostic representation of keyboard modifiers, for command handling.

Value

A dynamic type representing all values that can be stored in an environment.

Traits

AppDelegate

A type that provides hooks for handling and modifying top-level events.

Data

A trait used to represent value types.

Lens

A lens is a datatype that gives access to a part of a larger data structure.

Widget

The trait implemented by all widgets.

Type Definitions

BoxedWidget

Convenience type for dynamic boxed widget.

Derive Macros

Data
Lens