mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 12:09:36 +00:00
Partial editbox support for high scores
This commit is contained in:
@@ -17,11 +17,30 @@ namespace PortabilityLayer
|
||||
void SetString(const PLPasStr &str) override;
|
||||
PLPasStr GetString() const override;
|
||||
|
||||
void GainFocus() override;
|
||||
void LoseFocus() override;
|
||||
|
||||
WidgetHandleState_t ProcessEvent(const TimeTaggedVOSEvent &evt) override;
|
||||
|
||||
bool HandlesTickEvents() const;
|
||||
|
||||
private:
|
||||
static const unsigned int kCaratBlinkRate = 20;
|
||||
|
||||
void OnTick() override;
|
||||
void Redraw();
|
||||
|
||||
void HandleCharacter(uint8_t keyChar, const uint32_t numRepeatsRequested);
|
||||
void HandleBackspace(const uint32_t numRepeatsRequested);
|
||||
void HandleForwardDelete(const uint32_t numRepeatsRequested);
|
||||
|
||||
uint8_t *m_chars;
|
||||
size_t m_capacity;
|
||||
size_t m_length;
|
||||
size_t m_selStartChar;
|
||||
size_t m_selEndChar;
|
||||
|
||||
bool m_hasFocus;
|
||||
uint16_t m_caratTimer;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user