Play-/Source/ui_win32/FrameDebugger/PixelBufferViewOverlay.h
2018-04-30 21:01:23 +01:00

40 lines
914 B
C++

#pragma once
#include "win32/Window.h"
#include "win32/Button.h"
#include "win32/ComboBox.h"
#include <memory>
#include <vector>
class CPixelBufferViewOverlay : public Framework::Win32::CWindow
{
public:
typedef std::vector<std::string> StringList;
enum COMMANDS
{
COMMAND_SAVE = 1,
COMMAND_FIT = 2,
COMMAND_PIXELBUFFER_CHANGED = 3
};
CPixelBufferViewOverlay(HWND);
CPixelBufferViewOverlay(const CPixelBufferViewOverlay&) = delete;
virtual ~CPixelBufferViewOverlay() = default;
CPixelBufferViewOverlay& operator=(const CPixelBufferViewOverlay&) = delete;
void SetPixelBufferTitles(StringList);
int GetSelectedPixelBufferIndex();
void SetSelectedPixelBufferIndex(int);
protected:
long OnCommand(unsigned short, unsigned short, HWND) override;
private:
Framework::Win32::CButton m_saveButton;
Framework::Win32::CButton m_fitButton;
Framework::Win32::CComboBox m_pixelBufferComboBox;
};