OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
IconManager.hpp File Reference
#include <string>
#include <vector>
#include <memory>
#include "imgui/imgui.h"
#include "slic3r/GUI/GLTexture.hpp"
Include dependency graph for IconManager.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Slic3r::GUI::IconManager
 Keep texture with icons for UI Manage texture live -> create and destruct texture by live of icon shared pointers. More...
struct  Slic3r::GUI::IconManager::InitType
struct  Slic3r::GUI::IconManager::Icon
 Data for render texture with icon. More...

Namespaces

namespace  Slic3r
 |/ Copyright (c) Prusa Research 2020 - 2023 Enrico Turri @enricoturri1966 |/ |/ PrusaSlicer is released under the terms of the AGPLv3 or higher |/
namespace  Slic3r::GUI

Functions

void Slic3r::GUI::draw (const IconManager::Icon &icon, const ImVec2 &size=ImVec2(0, 0), const ImVec4 &tint_col=ImVec4(1, 1, 1, 1), const ImVec4 &border_col=ImVec4(0, 0, 0, 0))
 Draw imgui image with icon.
bool Slic3r::GUI::clickable (const IconManager::Icon &icon, const IconManager::Icon &icon_hover)
 Draw icon which change on hover.
bool Slic3r::GUI::button (const IconManager::Icon &activ, const IconManager::Icon &hover, const IconManager::Icon &disable, bool disabled=false)
 Use icon as button with 3 states activ hover and disabled.

Class Documentation

◆ Slic3r::GUI::IconManager::InitType

struct Slic3r::GUI::IconManager::InitType
Collaboration diagram for Slic3r::GUI::IconManager::InitType:
Class Members
string filepath
ImVec2 size
RasterType type = RasterType::color