mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 23:00:42 +00:00
Add some initial widget functionality (prefs partly working)
This commit is contained in:
24
PortabilityLayer/PLIconWidget.h
Normal file
24
PortabilityLayer/PLIconWidget.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
|
||||
#include "PLWidgets.h"
|
||||
#include "PLHandle.h"
|
||||
|
||||
namespace PortabilityLayer
|
||||
{
|
||||
class PixMapImpl;
|
||||
|
||||
class IconWidget final : public WidgetSpec<IconWidget>
|
||||
{
|
||||
public:
|
||||
IconWidget(const WidgetBasicState &state);
|
||||
~IconWidget() override;
|
||||
|
||||
bool Init(const WidgetBasicState &state) override;
|
||||
|
||||
void DrawControl(DrawSurface *surface) override;
|
||||
|
||||
private:
|
||||
THandle<PixMapImpl> m_iconImage;
|
||||
THandle<PixMapImpl> m_iconMask;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user