/* * Copyright (c) 2023, Torsten Engelmann * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include namespace GUI { class DynamicWidgetContainerControls : public GUI::Widget { C_OBJECT_ABSTRACT(DynamicWidgetContainerControls) public: static ErrorOr> try_create(); virtual ~DynamicWidgetContainerControls() override = default; RefPtr get_collapse_button() { return find_descendant_of_type_named("collapse_button"); } RefPtr get_expand_button() { return find_descendant_of_type_named("expand_button"); } RefPtr get_detach_button() { return find_descendant_of_type_named("detach_button"); } RefPtr get_event_dispatcher() { return find_descendant_of_type_named("section_label"); } private: DynamicWidgetContainerControls() = default; }; }