mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
Add some initial widget functionality (prefs partly working)
This commit is contained in:
21
PortabilityLayer/PLButtonWidget.h
Normal file
21
PortabilityLayer/PLButtonWidget.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
|
||||
#include "PascalStr.h"
|
||||
#include "PLWidgets.h"
|
||||
|
||||
namespace PortabilityLayer
|
||||
{
|
||||
class ButtonWidget final : public WidgetSpec<ButtonWidget>
|
||||
{
|
||||
public:
|
||||
explicit ButtonWidget(const WidgetBasicState &state);
|
||||
|
||||
bool Init(const WidgetBasicState &state) override;
|
||||
|
||||
WidgetHandleState_t ProcessEvent(Window *window, const TimeTaggedVOSEvent &evt);
|
||||
|
||||
private:
|
||||
bool m_haveMouseDown;
|
||||
PascalStr<255> m_text;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user