ROOT
master
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
4
/*************************************************************************
5
* Copyright (C) 1995-2023, Rene Brun and Fons Rademakers. *
6
* All rights reserved. *
7
* *
8
* For the licensing terms see $ROOTSYS/LICENSE. *
9
* For the list of contributors see $ROOTSYS/README/CREDITS. *
10
*************************************************************************/
11
12
#include "
gui_handler.h
"
13
14
#import <Cocoa/Cocoa.h>
15
16
#include "include/cef_browser.h"
17
18
void
GuiHandler::PlatformInit
()
19
{
20
}
21
22
void
GuiHandler::PlatformTitleChange
(
CefRefPtr<CefBrowser>
browser
,
const
CefString
&title)
23
{
24
NSView
*view = (
NSView
*)
browser
->GetHost()->GetWindowHandle();
25
NSWindow
*window = [view window];
26
std::string
titleStr
(title);
27
NSString
*str = [
NSString
stringWithUTF8String
:
titleStr
.c_str()];
28
[window
setTitle
:str];
29
}
30
31
bool
GuiHandler::PlatformResize
(
CefRefPtr<CefBrowser>
,
int
,
int
)
32
{
33
return
false
;
34
}
TRangeDynCast
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Definition
TCollection.h:359
GuiHandler::PlatformResize
static bool PlatformResize(CefRefPtr< CefBrowser > browser, int width, int height)
Definition
gui_handler_linux.cxx:121
GuiHandler::PlatformTitleChange
void PlatformTitleChange(CefRefPtr< CefBrowser > browser, const CefString &title)
Definition
gui_handler_linux.cxx:116
GuiHandler::PlatformInit
static void PlatformInit()
Definition
gui_handler_linux.cxx:112
NSView
NSWindow
ROOT::Detail::TRangeCast
Definition
TCollection.h:312
gui_handler.h
gui
cefdisplay
src
gui_handler_mac.mm
ROOTmaster - Reference Guide Generated on Mon Jul 6 2026 16:05:09 (GVA Time) using Doxygen 1.10.0