Union::PlatformPlugin Class

class Union::PlatformPlugin

Abstract base class for plugins providing platform integration. More...

Header: #include <PlatformPlugin>
CMake: find_package(Union REQUIRED)
target_link_libraries(mytarget PRIVATE Union::Union)
Inherits: Union::Plugin

Public Functions

virtual QString defaultInputPlugin()
virtual QString defaultStyleName() = 0
virtual QIcon platformIcon(const QString &name, const QColor &color)
virtual bool smoothScroll()

Detailed Description

Member Function Documentation

[virtual] QString PlatformPlugin::defaultInputPlugin()

Returns the platform's default input plugin.

By default, this will return an empty string, which indicates all plugins should be searched for the default style name.

[pure virtual] QString PlatformPlugin::defaultStyleName()

Returns the platform's default style name.

[virtual] QIcon PlatformPlugin::platformIcon(const QString &name, const QColor &color)

Returns an icon from the platform.

This should return an icon matching name using color to recolor the icon, if recoloring is supported. The default implementation will return the result of QIcon::fromTheme() and does not support recoloring.

[virtual] bool PlatformPlugin::smoothScroll()

Returns whether smooth scrolling is enabled on this platform.

Enables/disables tweened scrollbars and inertial scrolling. Defaults to true