mirror of
https://github.com/LNH-team/pico-launcher.git
synced 2026-06-02 09:06:54 +02:00
Initial commit
This commit is contained in:
21
arm9/source/gui/views/DialogView.h
Normal file
21
arm9/source/gui/views/DialogView.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
#include "ViewContainer.h"
|
||||
#include "DialogType.h"
|
||||
|
||||
/// @brief View meant to be displayed as a dialog on top of other content.
|
||||
class DialogView : public ViewContainer
|
||||
{
|
||||
public:
|
||||
/// @brief Gets the type of dialog.
|
||||
/// @return The type of dialog.
|
||||
virtual DialogType GetDialogType() const = 0;
|
||||
|
||||
/// @brief Moves the focus to this dialog.
|
||||
/// @param focusManager The focus manager to use.
|
||||
virtual void Focus(FocusManager& focusManager) = 0;
|
||||
|
||||
/// @brief Gets the area of the screen that will be fully covered by
|
||||
/// this dialog for the purpose of culling views behind it.
|
||||
/// @return A rectangle that is fully covered by the dialog.
|
||||
virtual Rectangle GetFullyCoveredArea() const = 0;
|
||||
};
|
||||
Reference in New Issue
Block a user