avatar comps

This commit is contained in:
Green Sky 2023-08-01 18:02:42 +02:00
parent 65d253afea
commit 86426781d0
No known key found for this signature in database
2 changed files with 14 additions and 1 deletions

View File

@ -3,6 +3,7 @@
#include "./contact_model3.hpp"
#include <string>
#include <vector>
// fwd
struct ContactModel3I;
@ -44,7 +45,17 @@ namespace Contact::Components {
// (display)alias
// avatar
struct AvatarMemory {
// RGBA
std::vector<uint8_t> data;
uint64_t width;
uint64_t height;
};
struct AvatarFile {
std::string file_path;
};
// status
struct ConnectionState {

View File

@ -22,6 +22,8 @@ DEFINE_COMP_ID(Contact::Components::Parent)
DEFINE_COMP_ID(Contact::Components::ParentOf)
DEFINE_COMP_ID(Contact::Components::ContactModel)
DEFINE_COMP_ID(Contact::Components::Name)
DEFINE_COMP_ID(Contact::Components::AvatarMemory)
DEFINE_COMP_ID(Contact::Components::AvatarFile)
DEFINE_COMP_ID(Contact::Components::ConnectionState)
DEFINE_COMP_ID(Contact::Components::StatusMessage)