Files
tomato/src/chat_gui/image_viewer_popup.hpp
Green Sky 90a28d727b
Some checks failed
ContinuousDelivery / linux-ubuntu (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:arm64-v8a vcpkg_toolkit:arm64-android]) (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:armeabi-v7a vcpkg_toolkit:arm-neon-android]) (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:x86_64 vcpkg_toolkit:x64-android]) (push) Has been cancelled
ContinuousDelivery / windows (push) Has been cancelled
ContinuousDelivery / windows-asan (push) Has been cancelled
ContinuousIntegration / linux (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:arm64-v8a vcpkg_toolkit:arm64-android]) (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:armeabi-v7a vcpkg_toolkit:arm-neon-android]) (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:x86_64 vcpkg_toolkit:x64-android]) (push) Has been cancelled
ContinuousIntegration / macos (push) Has been cancelled
ContinuousIntegration / windows (push) Has been cancelled
ContinuousDelivery / dumpsyms (push) Has been cancelled
ContinuousDelivery / release (push) Has been cancelled
image viewer popup when clicking an image in a message
2025-03-17 22:52:31 +01:00

33 lines
585 B
C++

#pragma once
#include <solanaceae/message3/registry_message_model.hpp>
#include "./texture_cache_defs.hpp"
#include <entt/entity/registry.hpp>
#include <entt/entity/handle.hpp>
struct ImageViewerPopup {
MessageTextureCache& _mtc;
Message3Handle _m{};
float _scale {1.f};
bool _open_popup {false};
//void reset(void);
public:
ImageViewerPopup(MessageTextureCache& mtc);
// open popup with (image) message
//void view(ObjectHandle o);
void view(Message3Handle m);
// call this each frame
void render(float time_delta);
// TODO: events (destroy/update)
};