mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:37:35 +00:00
LibGUI: Add opacity to ImageWidget
This commit is contained in:
parent
0e63141a19
commit
bf432f8a3a
2 changed files with 17 additions and 2 deletions
|
@ -48,6 +48,9 @@ public:
|
|||
void animate();
|
||||
void load_from_file(const StringView&);
|
||||
|
||||
int opacity_percent() const { return m_opacity_percent; }
|
||||
void set_opacity_percent(int percent);
|
||||
|
||||
Function<void()> on_click;
|
||||
|
||||
protected:
|
||||
|
@ -65,6 +68,8 @@ private:
|
|||
size_t m_current_frame_index { 0 };
|
||||
size_t m_loops_completed { 0 };
|
||||
NonnullRefPtr<Core::Timer> m_timer;
|
||||
|
||||
int m_opacity_percent { 100 };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue