9class SimpleForm :
public Form {
12 std::unique_ptr<SimpleFormImpl> impl;
15 using Callback = std::function<void(
Player&,
int, FormCancelReason)>;
16 using ButtonCallback = std::function<void(
Player&)>;
20 LLNDAPI
explicit SimpleForm(std::string
const& title, std::string
const& content = {});
22 LLAPI ~SimpleForm()
override;
24 LLAPI SimpleForm& setTitle(std::string
const& title);
26 LLAPI SimpleForm& setContent(std::string
const& content);
28 LLAPI SimpleForm& appendHeader(std::string
const& text);
30 LLAPI SimpleForm& appendLabel(std::string
const& text);
32 LLAPI SimpleForm& appendDivider();
44 std::string
const& text,
45 std::string
const& imageData,
46 std::string
const& imageType,
47 ButtonCallback callback = {}
57 LLAPI SimpleForm&
appendButton(std::string
const& text, ButtonCallback callback = {});
66 LLAPI SimpleForm&
sendTo(
Player& player, Callback callback = Callback());
68 LLAPI SimpleForm& sendUpdate(
Player& player, Callback callback = Callback());