Loading...
Searching...
No Matches
SplitPaneWidget.h
Go to the documentation of this file.
1// Copyright (c) 2025 Dave R. Smith.
2// Malena Framework — Licensed under PolyForm Noncommercial 1.0.0; commercial use requires a paid license. See LICENSE.
3
4#ifndef MALENA_SPLITPANEWIDGET_H
5#define MALENA_SPLITPANEWIDGET_H
6
7#pragma once
8
11
12namespace ml
13{
43 {
44 virtual ml::Core& getLeftPanel() = 0;
45 virtual ml::Core& getRightPanel() = 0;
46
47 virtual void fillLeft (ml::Panel& panel) { panel.addRef(getLeftPanel()); }
48 virtual void fillRight(ml::Panel& panel) { panel.addRef(getRightPanel()); }
49
50 virtual ~SplitPaneWidget() = default;
51 };
52
53} // namespace ml
54
55#endif // MALENA_SPLITPANEWIDGET_H
Virtual base class for all Malena framework objects.
Definition Core.h:97
A layout container that groups, positions, and draws a set of child components.
Definition Panel.h:44
void addRef(Core &child)
Alias for addUntracked(). Kept for compatibility.
#define MALENA_API
Definition Component.h:22
Interface for components that fill the left and right sides of a split-pane shell.
virtual void fillRight(ml::Panel &panel)
virtual ml::Core & getLeftPanel()=0
virtual void fillLeft(ml::Panel &panel)
virtual ~SplitPaneWidget()=default
virtual ml::Core & getRightPanel()=0