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:
parent
d8388f30c8
commit
21e353980f
6 changed files with 133 additions and 3 deletions
|
@ -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); }
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue