2020-03-22 17:13:23 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
|
|
|
|
|
*
|
2021-04-22 05:24:48 -03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-03-22 17:13:23 -03:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <AK/Forward.h>
|
|
|
|
|
#include <LibGUI/Forward.h>
|
|
|
|
|
|
|
|
|
|
namespace GUI {
|
|
|
|
|
|
|
|
|
|
class DisplayLink {
|
|
|
|
|
public:
|
|
|
|
|
static i32 register_callback(Function<void(i32)>);
|
|
|
|
|
static bool unregister_callback(i32 callback_id);
|
|
|
|
|
|
2022-02-25 07:39:33 -03:00
|
|
|
static void notify(Badge<ConnectionToWindowServer>);
|
2020-03-22 17:13:23 -03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|