ROOT
v6-34
Reference Guide
Loading...
Searching...
No Matches
gui_handler_mac.mm
Go to the documentation of this file.
1
// Author: Sergey Linev <S.Linev@gsi.de>
2
// Date: 2017-06-29
3
// Warning: This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
4
5
/*************************************************************************
6
* Copyright (C) 1995-2023, Rene Brun and Fons Rademakers. *
7
* All rights reserved. *
8
* *
9
* For the licensing terms see $ROOTSYS/LICENSE. *
10
* For the list of contributors see $ROOTSYS/README/CREDITS. *
11
*************************************************************************/
12
13
#include "
gui_handler.h
"
14
15
#import <Cocoa/Cocoa.h>
16
17
#include "include/cef_browser.h"
18
19
20
bool
GuiHandler::PlatformInit
()
21
{
22
return
false
;
// MAC not yet support ozone and headless mode
23
}
24
25
void
GuiHandler::PlatformTitleChange
(
CefRefPtr<CefBrowser>
browser
,
const
CefString
&title)
26
{
27
NSView
*view = (
NSView
*)
browser
->GetHost()->GetWindowHandle();
28
NSWindow
*window = [view window];
29
std::string
titleStr
(title);
30
NSString
*str = [
NSString
stringWithUTF8String
:
titleStr
.c_str()];
31
[window
setTitle
:str];
32
}
33
34
bool
GuiHandler::PlatformResize
(
CefRefPtr<CefBrowser>
,
int
,
int
)
35
{
36
return
false
;
37
}
TRangeDynCast
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Definition
TCollection.h:358
GuiHandler::PlatformResize
static bool PlatformResize(CefRefPtr< CefBrowser > browser, int width, int height)
Definition
gui_handler_linux.cxx:127
GuiHandler::PlatformTitleChange
void PlatformTitleChange(CefRefPtr< CefBrowser > browser, const CefString &title)
Definition
gui_handler_linux.cxx:122
GuiHandler::PlatformInit
static bool PlatformInit()
Definition
gui_handler_linux.cxx:117
NSView
NSWindow
ROOT::Detail::TRangeCast
Definition
TCollection.h:311
gui_handler.h
gui
cefdisplay
src
gui_handler_mac.mm
ROOT v6-34 - Reference Guide Generated on Sat Jan 25 2025 14:39:22 (GVA Time) using Doxygen 1.10.0