1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:28:12 +00:00

LibWeb: Add basic implementation of progress bar element

This commit is contained in:
Rafał Babiarz 2022-02-16 19:12:54 +01:00 committed by Tim Flynn
parent d8388f30c8
commit 21e353980f
6 changed files with 133 additions and 3 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2020, the SerenityOS developers.
* Copyright (c) 2020-2022, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
@ -16,6 +16,19 @@ public:
HTMLProgressElement(DOM::Document&, QualifiedName);
virtual ~HTMLProgressElement() override;
virtual RefPtr<Layout::Node> create_layout_node(NonnullRefPtr<CSS::StyleProperties>) override;
double value() const;
void set_value(double);
double max() const;
void set_max(double value);
double position() const;
private:
bool is_determinate() const { return has_attribute(HTML::AttributeNames::value); }
};
}