File: MenuSection.cpp

package info (click to toggle)
jazz2-native 3.5.0-1
  • links: PTS, VCS
  • area: contrib
  • in suites:
  • size: 16,836 kB
  • sloc: cpp: 172,557; xml: 113; python: 36; makefile: 5; sh: 2
file content (29 lines) | stat: -rw-r--r-- 492 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#pragma once

#include "MenuSection.h"

using namespace Jazz2::Input;

namespace Jazz2::UI::Menu
{
	MenuSection::MenuSection()
		: _root(nullptr) {}

	MenuSection::~MenuSection() {}

	Recti MenuSection::GetClipRectangle(const Recti& contentBounds) {
		return {};
	}

	void MenuSection::OnShow(IMenuContainer* root) {
		_root = root;
	}

	void MenuSection::OnHide() {
		_root = nullptr;
	}

	NavigationFlags MenuSection::GetNavigationFlags() const {
		return NavigationFlags::AllowAll;
	}
}