mirror of
https://github.com/elasota/Aerofoil.git
synced 2026-03-01 13:25:23 +00:00
25 lines
440 B
C
25 lines
440 B
C
|
|
#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;
|
||
|
|
};
|
||
|
|
}
|