Crate qt_gui

source ·
Expand description

Bindings for QtGui library.

This crate was generated using cpp_to_rust.

This is work in progress, so the API will significantly change in the future. Some methods are missing, and some are inconvenient to use. Some methods are unsafe even though they are not marked as unsafe. Users must carefully track ownership of the objects, as usual Rust guarantees do not take effect. This will hopefully improve in the future. Please report any issues to the issue tracker.

This crate was generated for Qt 5.8.0. If Qt compatibility guarantees take effect, it should be compatible with future minor releases and with past and future patch releases, but API added in future releases won’t be available. The crate is not compatible with past minor Qt releases. If you need to use a Qt version incompatible with this crate, use qt_generator to generate crates for your Qt version.

Refer to qt_core crate documentation for general information about Qt crates. Note that if you use qt_widgets, you should use qt_widgets::application::Application as the application object, and if you use qt_gui but not qt_widgets, you should use qt_gui::gui_application::GuiApplication.

Re-exports

pub extern crate cpp_utils;
pub extern crate libc;
pub extern crate qt_core;

Modules

The QAbstractTextDocumentLayout class is an abstract base class used to implement custom layouts for QTextDocuments.

Entities from QAbstractUndoItem C++ header

The QAccessible class provides enums and static functions related to accessibility.

The QAccessibleActionInterface class implements support for invocable actions in the interface.

The QAccessibleEditableTextInterface class implements support for objects with editable text.

The QAccessibleEvent class is the base class for accessibility notifications.

The QAccessibleInterface class defines an interface that exposes information about accessible objects.

The QAccessibleObject class implements parts of the QAccessibleInterface for QObjects.

The QAccessiblePlugin class provides an abstract base class for plugins provinding accessibility information for user interface elements.

The QAccessibleStateChangeEvent notfies the accessibility framework that the state of an object has changed.

The QAccessibleTableCellInterface class implements support for the IAccessibleTable2 Cell interface.

The QAccessibleTableInterface class implements support for the IAccessibleTable2 interface.

The QAccessibleTableModelChangeEvent signifies a change in a table, list, or tree where cells are added or removed. If the change affected a number of rows, firstColumn and lastColumn will return -1. Likewise for columns, the row functions may return -1.

The QAccessibleTextCursorEvent class notifies of cursor movements.

The QAccessibleTextInsertEvent class notifies of text being inserted.

The QAccessibleTextInterface class implements support for text handling.

The QAccessibleTextRemoveEvent class notifies of text being deleted.

QAccessibleTextSelectionEvent signals a change in the text selection of an object.

The QAccessibleTextUpdateEvent class notifies about text changes. This is for accessibles that support editable text such as line edits. This event occurs for example when a portion of selected text gets replaced by pasting a new text or in override mode of editors.

The QAccessibleValueChangeEvent describes a change in value for an accessible object.

The QAccessibleValueInterface class implements support for objects that manipulate a value.

The QActionEvent class provides an event that is generated when a QAction is added, removed, or changed.

Entities from QApplicationStateChangeEvent C++ header

The QBackingStore class provides a drawing area for QWindow.

The QBitmap class provides monochrome (1-bit depth) pixmaps.

The QBrush class defines the fill pattern of shapes drawn by QPainter.

The QClipboard class provides access to the window system clipboard.

The QCloseEvent class contains parameters that describe a close event.

The QColor class provides colors based on RGB, HSV or CMYK values.

The QConicalGradient class is used in combination with QBrush to specify a conical gradient brush.

The QContextMenuEvent class contains parameters that describe a context menu event.

The QCursor class provides a mouse cursor with an arbitrary shape.

The QDesktopServices class provides methods for accessing common desktop services.

The QDoubleValidator class provides range checking of floating-point numbers.

The QDrag class provides support for MIME-based drag and drop data transfer.

The QDragEnterEvent class provides an event which is sent to a widget when a drag and drop action enters it.

The QDragLeaveEvent class provides an event that is sent to a widget when a drag and drop action leaves it.

The QDragMoveEvent class provides an event which is sent while a drag and drop action is in progress.

The QDropEvent class provides an event which is sent when a drag and drop action is completed.

The QEnterEvent class contains parameters that describe an enter event.

The QExposeEvent class contains event parameters for expose events.

The QFileOpenEvent class provides an event that will be sent when there is a request to open a file or a URL.

The QFocusEvent class contains event parameters for widget focus events.

The QFont class specifies a font used for drawing text.

The QFontDatabase class provides information about the fonts available in the underlying window system.

The QFontInfo class provides general information about fonts.

The QFontMetrics class provides font metrics information.

The QFontMetricsF class provides font metrics information.

The QGenericPlugin class is an abstract base class for plugins.

The QGenericPluginFactory class creates plugin drivers.

The QGlyphRun class provides direct access to the internal glyphs in a font.

The QGradient class is used in combination with QBrush to specify gradient fills.

The QGuiApplication class manages the GUI application's control flow and main settings.

The QHelpEvent class provides an event that is used to request helpful information about a particular point in a widget.

The QHideEvent class provides an event which is sent after a widget is hidden.

The QHoverEvent class contains parameters that describe a mouse event.

The QIcon class provides scalable icons in different modes and states.

The QIconDragEvent class indicates that a main icon drag has begun.

The QIconEngine class provides an abstract base class for QIcon renderers.

The QIconEnginePlugin class provides an abstract base for custom QIconEngine plugins.

The QImage class provides a hardware-independent image representation that allows direct access to the pixel data, and can be used as a paint device.

The QImageIOHandler class defines the common image I/O interface for all image formats in Qt.

The QImageIOPlugin class defines an interface for writing an image format plugin.

The QImageReader class provides a format independent interface for reading images from files or other devices.

The QImageWriter class provides a format independent interface for writing images to files or other devices.

The QInputEvent class is the base class for events that describe user input.

The QInputMethod class provides access to the active text input method.

The QInputMethodEvent class provides parameters for input method events.

The QInputMethodQueryEvent class provides an event sent by the input context to input objects.

The QIntValidator class provides a validator that ensures a string contains a valid integer within a specified range.

The QKeyEvent class describes a key event.

The QKeySequence class encapsulates a key sequence as used by shortcuts.

The QLinearGradient class is used in combination with QBrush to specify a linear gradient brush.

The QList class is a template class that provides lists.

The QMatrix class specifies 2D transformations of a coordinate system.

The QMatrix4x4 class represents a 4x4 transformation matrix in 3D space.

The QMouseEvent class contains parameters that describe a mouse event.

The QMoveEvent class contains event parameters for move events.

The QMovie class is a convenience class for playing movies with QImageReader.

The QNativeGestureEvent class contains parameters that describe a gesture event.

The QOffscreenSurface class represents an offscreen surface in the underlying platform.

The QOpenGLBuffer class provides functions for creating and managing OpenGL buffer objects.

The QOpenGLContext class represents a native OpenGL context, enabling OpenGL rendering on a QSurface.

The QOpenGLContextGroup class represents a group of contexts sharing OpenGL resources.

The QOpenGLDebugLogger enables logging of OpenGL debugging messages.

The QOpenGLDebugMessage class wraps an OpenGL debug message.

The QOpenGLExtraFunctions class provides cross-platform access to the OpenGL ES 3.0 and 3.1 API.

The QOpenGLFramebufferObject class encapsulates an OpenGL framebuffer object.

The QOpenGLFramebufferObjectFormat class specifies the format of an OpenGL framebuffer object.

The QOpenGLFunctions class provides cross-platform access to the OpenGL ES 2.0 API.

The QOpenGLPaintDevice class enables painting to an OpenGL context using QPainter.

The QOpenGLPixelTransferOptions class describes the pixel storage modes that affect the unpacking of pixels during texture upload.

The QOpenGLShader class allows OpenGL shaders to be compiled.

The QOpenGLShaderProgram class allows OpenGL shader programs to be linked and used.

The QOpenGLTexture class encapsulates an OpenGL texture object.

The QOpenGLTextureBlitter class provides a convenient way to draw textured quads via OpenGL.

The QOpenGLTimeMonitor class wraps a sequence of OpenGL timer query objects.

The QOpenGLTimerQuery class wraps an OpenGL timer query object.

Entities from QOpenGLVersionFunctions C++ header

The QOpenGLVersionProfile class represents the version and if applicable the profile of an OpenGL context.

The QOpenGLVertexArrayObject class wraps an OpenGL Vertex Array Object.

The QOpenGLWindow class is a convenience subclass of QWindow to perform OpenGL painting.

Describes the size, orientation and margins of a page.

The QPageSize class describes the size and name of a defined page size

The QPagedPaintDevice class is a represents a paintdevice that supports multiple pages.

The QPaintDevice class is the base class of objects that can be painted on with QPainter.

Convenience subclass of QWindow that is also a QPaintDevice.

The QPaintEngine class provides an abstract definition of how QPainter draws to a given device on a given platform.

The QPaintEngineState class provides information about the active paint engine's current state.

The QPaintEvent class contains event parameters for paint events.

The QPainter class performs low-level painting on widgets and other paint devices.

The QPainterPath class provides a container for painting operations, enabling graphical shapes to be constructed and reused.

The QPainterPathStroker class is used to generate fillable outlines for a given painter path.

The QPair class is a template class that stores a pair of items.

The QPalette class contains color groups for each widget state.

The QPdfWriter class is a class to generate PDFs that can be used as a paint device.

The QPen class defines how a QPainter should draw lines and outlines of shapes.

The QPicture class is a paint device that records and replays QPainter commands.

The QPictureFormatPlugin class provides an abstract base for custom picture format plugins.

The QPictureIO class contains parameters for loading and saving pictures.

QPixelFormat is a class for describing different pixel layouts in graphics buffers

The QPixmap class is an off-screen image representation that can be used as a paint device.

The QPixmapCache class provides an application-wide cache for pixmaps.

The QPlatformSurfaceEvent class is used to notify about native platform surface events.

QPointingDeviceUniqueId identifies a unique object, such as a tagged token or stylus, which is used with a pointing device.

The QPolygon class provides a vector of points using integer precision.

The QPolygonF class provides a vector of points using floating point precision.

The QQuaternion class represents a quaternion consisting of a vector and scalar.

The QRadialGradient class is used in combination with QBrush to specify a radial gradient brush.

QRasterWindow is a convenience class for using QPainter on a QWindow

The QRawFont class provides access to a single physical instance of a font.

The QRegExpValidator class is used to check a string against a regular expression.

The QRegion class specifies a clip region for a painter.

The QRegularExpressionValidator class is used to check a string against a regular expression.

The QResizeEvent class contains event parameters for resize events.

Entities from QRgb C++ header

The QRgba64 struct contains a 64-bit RGB color.

The QScreen class is used to query screen properties.

Entities from QScreenOrientationChangeEvent C++ header

The QScrollEvent class is sent when scrolling.

The QScrollPrepareEvent class is sent in preparation of scrolling.

The QSessionManager class provides access to the session manager.

The QSet class is a template class that provides a hash-table-based set.

The QShortcutEvent class provides an event which is generated when the user presses a key combination.

The QShowEvent class provides an event that is sent when a widget is shown.

Binding Qt signals to Rust closures or extern functions.

The QStandardItem class provides an item for use with the QStandardItemModel class.

The QStandardItemModel class provides a generic model for storing custom data.

The QStaticText class enables optimized drawing of text when the text and its layout is updated rarely.

The QStatusTipEvent class provides an event that is used to show messages in a status bar.

The QStyleHints class contains platform specific hints and settings.

The QSurface class is an abstraction of renderable surfaces in Qt.

The QSurfaceFormat class represents the format of a QSurface.

The QSyntaxHighlighter class allows you to define syntax highlighting rules, and in addition you can use the class to query a document's current formatting or user data.

The QTabletEvent class contains parameters that describe a Tablet event.

The QTextBlock class provides a container for text fragments in a QTextDocument.

The QTextBlockFormat class provides formatting information for blocks of text in a QTextDocument.

The QTextBlockGroup class provides a container for text blocks within a QTextDocument.

The QTextBlockUserData class is used to associate custom data with blocks of text.

The QTextCharFormat class provides formatting information for characters in a QTextDocument.

The QTextCursor class offers an API to access and modify QTextDocuments.

The QTextDocument class holds formatted text.

The QTextDocumentFragment class represents a piece of formatted text from a QTextDocument.

The QTextDocumentWriter class provides a format-independent interface for writing a QTextDocument to files or other devices.

The QTextFormat class provides formatting information for a QTextDocument.

The QTextFragment class holds a piece of text in a QTextDocument with a single QTextCharFormat.

The QTextFrame class represents a frame in a QTextDocument.

The QTextFrameFormat class provides formatting information for frames in a QTextDocument.

The QTextImageFormat class provides formatting information for images in a QTextDocument.

The QTextInlineObject class represents an inline object in a QAbstractTextDocumentLayout and its implementations.

The QTextItem class provides all the information required to draw text in a custom paint engine.

The QTextLayout class is used to lay out and render text.

The QTextLength class encapsulates the different types of length used in a QTextDocument.

The QTextLine class represents a line of text inside a QTextLayout.

The QTextList class provides a decorated list of items in a QTextDocument.

The QTextListFormat class provides formatting information for lists in a QTextDocument.

The QTextObject class is a base class for different kinds of objects that can group parts of a QTextDocument together.

The QTextObjectInterface class allows drawing of custom text objects in QTextDocuments.

The QTextOption class provides a description of general rich text properties.

The QTextTable class represents a table in a QTextDocument.

The QTextTableCell class represents the properties of a cell in a QTextTable.

The QTextTableCellFormat class provides formatting information for table cells in a QTextDocument.

The QTextTableFormat class provides formatting information for tables in a QTextDocument.

Entities from QToolBarChangeEvent C++ header

The QTouchDevice class describes the device from which touch events originate.

The QTouchEvent class contains parameters that describe a touch event.

The QTransform class specifies 2D transformations of a coordinate system.

The QValidator class provides validation of input text.

The QVector class is a template class that provides a dynamic array.

The QVector2D class represents a vector or vertex in 2D space.

The QVector3D class represents a vector or vertex in 3D space.

The QVector4D class represents a vector or vertex in 4D space.

The QWhatsThisClickedEvent class provides an event that can be used to handle hyperlinks in a "What's This?" text.

The QWheelEvent class contains parameters that describe a wheel event.

The QWindow class represents a window in the underlying windowing system.

The QWindowStateChangeEvent class provides the window state before a window state change.