|
Albert
|
Go to the source code of this file.
Namespaces | |
| namespace | albert |
Functions | |
| QIcon | albert::qIcon (std::unique_ptr< albert::Icon > icon) |
| Returns a QIcon using icon as icon engine. | |
| std::unique_ptr< Icon > | albert::iconFromUrl (const QString &url) |
| Returns a built-in icon for the given url. | |
| std::unique_ptr< Icon > | albert::iconFromUrls (const QStringList &urls) |
| Returns a built-in icon for the given urls. | |
Image icon | |
| std::unique_ptr< Icon > | albert::makeImageIcon (const QString &path) |
| Returns an icon from an image file at path. | |
| std::unique_ptr< Icon > | albert::makeImageIcon (const std::filesystem::path &path) |
| Returns an icon from an image file at path. | |
File type icon | |
| std::unique_ptr< Icon > | albert::makeFileTypeIcon (const QString &path) |
| Returns an icon representing the file type of the file at path. | |
| std::unique_ptr< Icon > | albert::makeFileTypeIcon (const std::filesystem::path &path) |
| Returns an icon representing the file type of the file at path. | |
Theme icon (XDG) | |
| std::unique_ptr< Icon > | albert::makeThemeIcon (const QString &icon_name) |
| Returns an icon from the current icon theme with the given icon_name. | |
Grapheme icon | |
| const QBrush & | albert::graphemeIconDefaultColor () |
| Returns the default color (black). | |
| double | albert::graphemeIconDefaultScalar () |
| Returns the default scaling factor (1.0). | |
| std::unique_ptr< Icon > | albert::makeGraphemeIcon (const QString &grapheme, double scalar=graphemeIconDefaultScalar(), const QBrush &color=graphemeIconDefaultColor()) |
| Returns an icon rendering the given grapheme, scaled by scalar and colored with color. | |
Rect icon | |
| const QBrush & | albert::rectIconDefaultColor () |
| Returns the default color (black). | |
| const QBrush & | albert::rectIconDefaultBorderColor () |
| Returns the default border color (black). | |
| double | albert::rectIconDefaultRadius () |
| Returns the default border radius (1.0). | |
| int | albert::rectIconDefaultBorderWidth () |
| Returns the default border width (0). | |
| std::unique_ptr< Icon > | albert::makeRectIcon (const QBrush &color=rectIconDefaultColor(), double radius=rectIconDefaultRadius(), int border_width=rectIconDefaultBorderWidth(), const QBrush &border_color=rectIconDefaultBorderColor()) |
| Returns a simple rectangular icon with the given color, radius, border_width and border_color. | |
Iconified icon | |
| const QBrush & | albert::iconifiedIconDefaultColor () |
| Returns the default background color (a top down gradient from white to some darker white). | |
| double | albert::iconifiedIconDefaultBorderRadius () |
| Returns the default relative radius 1.0. | |
| int | albert::iconifiedIconDefaultBorderWidth () |
| Returns the default border width (1). | |
| const QBrush & | albert::iconifiedIconDefaultBorderColor () |
| Returns the default border color (a gradient slightly darker than the default background). | |
| std::unique_ptr< Icon > | albert::makeIconifiedIcon (std::unique_ptr< Icon > src, const QBrush &color=iconifiedIconDefaultColor(), double border_radius=iconifiedIconDefaultBorderRadius(), int border_width=iconifiedIconDefaultBorderWidth(), const QBrush &border_color=iconifiedIconDefaultBorderColor()) |
| Returns an iconified src. | |
Composed icon | |
| double | albert::composedIconDefaultSize () |
| Returns the default relative size 0.7. | |
| double | albert::composedIconDefaultPos1 () |
| Returns the default relative position 0.0 of the first item. | |
| double | albert::composedIconDefaultPos2 () |
| Returns the default relative position 1.0 of the second item. | |
| std::unique_ptr< Icon > | albert::makeComposedIcon (std::unique_ptr< Icon > src1, std::unique_ptr< Icon > src2, double size1=composedIconDefaultSize(), double size2=composedIconDefaultSize(), double x1=composedIconDefaultPos1(), double y1=composedIconDefaultPos1(), double x2=composedIconDefaultPos2(), double y2=composedIconDefaultPos2()) |
| Returns a composed icon of src1 and src2. | |
Standard icon (QStyle standard pixmap) | |
| enum | albert::StandardIconType |
| This enum describes the available standard icons. More... | |
| std::unique_ptr< Icon > | albert::makeStandardIcon (StandardIconType type) |
| Returns a standard icon for the given type. | |