Open3D (C++ API)  0.17.0
Loading...
Searching...
No Matches
Native.h
Go to the documentation of this file.
1// ----------------------------------------------------------------------------
2// - Open3D: www.open3d.org -
3// ----------------------------------------------------------------------------
4// Copyright (c) 2018-2023 www.open3d.org
5// SPDX-License-Identifier: MIT
6// ----------------------------------------------------------------------------
7
8#pragma once
9
10#include <string>
11#include <vector>
12
13#include "FileDialog.h"
14
15struct GLFWwindow;
16
17namespace open3d {
18namespace visualization {
19namespace gui {
20
21void* GetNativeDrawable(GLFWwindow* glfw_window);
22// Note that Windows cannot post an expose event so it must draw immediately.
23// Therefore this function cannot be called while drawing.
24void PostNativeExposeEvent(GLFWwindow* glfw_window);
25void ShowNativeAlert(const char* message);
26
27#ifdef __APPLE__
29void SetNativeMenubar(void* menubar);
30#endif // __APPLE_
31
32#if defined(__APPLE__) || defined(_WIN32)
35 const std::string& path,
36 const std::vector<std::pair<std::string, std::string>>& filters,
37 std::function<void(const char*)> on_ok,
38 std::function<void()> on_cancel);
39#endif // __APPLE__ || _WIN32
40
41} // namespace gui
42} // namespace visualization
43} // namespace open3d
Mode
Definition FileDialog.h:26
void SetNativeMenubar(void *menubar)
Definition NativeMacOS.mm:131
void PostNativeExposeEvent(GLFWwindow *glfw_window)
Definition NativeLinux.cpp:24
void ShowNativeAlert(const char *message)
Definition NativeLinux.cpp:37
void MacTransformIntoApp()
Definition NativeMacOS.mm:43
void * GetNativeDrawable(GLFWwindow *glfw_window)
Definition NativeLinux.cpp:20
void ShowNativeFileDialog(FileDialog::Mode type, const std::string &path, const std::vector< std::pair< std::string, std::string > > &filters, std::function< void(const char *)> on_ok, std::function< void()> on_cancel)
Definition NativeMacOS.mm:136
Definition PinholeCameraIntrinsic.cpp:16