Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
39
Src/Plugins/Library/ml_pmp/IconStore.h
Normal file
39
Src/Plugins/Library/ml_pmp/IconStore.h
Normal file
|
@ -0,0 +1,39 @@
|
|||
#pragma once
|
||||
#include "..\..\General\gen_ml/ml_ipc_0313.h"
|
||||
#include <vector>
|
||||
|
||||
class IconStore
|
||||
{
|
||||
public:
|
||||
IconStore();
|
||||
~IconStore();
|
||||
|
||||
int GetPlaylistIcon();
|
||||
int GetVideoIcon();
|
||||
int GetDeviceIcon();
|
||||
int GetQueueIcon(int iconIndex = 0);
|
||||
int GetResourceIcon(HINSTANCE module, const wchar_t *name);
|
||||
void ReleaseResourceIcon(int iconIndex);
|
||||
|
||||
private:
|
||||
int RegisterResourceIcon(HINSTANCE module, const wchar_t *name);
|
||||
|
||||
private:
|
||||
typedef struct ResourceIcon
|
||||
{
|
||||
size_t ref;
|
||||
int index;
|
||||
wchar_t *name;
|
||||
HINSTANCE module;
|
||||
} ResourceIcon;
|
||||
|
||||
int playlist_icon_index;
|
||||
int video_icon_index;
|
||||
int device_icon_index;
|
||||
int queue_icon_index[4];
|
||||
int active_queue_icon[4];
|
||||
|
||||
std::vector<ResourceIcon> iconList;
|
||||
};
|
||||
|
||||
extern IconStore icon_store;
|
Loading…
Add table
Add a link
Reference in a new issue