Minsky
getContext.h
Go to the documentation of this file.
1
/*
2
@copyright Steve Keen 2021
3
@author Russell Standish
4
This file is part of Minsky.
5
6
Minsky is free software: you can redistribute it and/or modify it
7
under the terms of the GNU General Public License as published by
8
the Free Software Foundation, either version 3 of the License, or
9
(at your option) any later version.
10
11
Minsky is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
15
16
You should have received a copy of the GNU General Public License
17
along with Minsky. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
20
#ifndef GETCONTEXT_H
21
#define GETCONTEXT_H
22
#include <Carbon/Carbon.h>
23
#include <cairo/cairo.h>
24
#include <functional>
25
26
namespace
minsky
27
{
28
struct
ViewImpl;
29
class
WindowInformation;
30
31
struct
NSContext
32
{
33
std::unique_ptr<ViewImpl>
impl
;
34
NSContext
(
void
* nativeHandle,
int
xoffs,
int
yoffs,
int
width,
int
height,
WindowInformation
&);
35
~NSContext
();
36
void
requestRedraw
();
37
NSContext
(
const
NSContext
&)=
delete
;
38
NSContext
(
NSContext
&&);
39
void
operator=
(
const
NSContext
&)=
delete
;
40
};
41
}
42
#endif
minsky::WindowInformation
Definition:
windowInformation.h:68
minsky::NSContext::operator=
void operator=(const NSContext &)=delete
minsky::NSContext::NSContext
NSContext(void *nativeHandle, int xoffs, int yoffs, int width, int height, WindowInformation &)
Definition:
getContext.cc:71
minsky::NSContext::requestRedraw
void requestRedraw()
Definition:
getContext.cc:100
minsky::NSContext
Definition:
getContext.h:31
minsky
Creation and access to the minskyTCL_obj object, which has code to record whenever Minsky's state cha...
Definition:
constMap.h:22
minsky::NSContext::~NSContext
~NSContext()
minsky::NSContext::impl
std::unique_ptr< ViewImpl > impl
Definition:
getContext.h:33
model
getContext.h
Generated on Tue Mar 18 2025 13:00:34 for Minsky by
1.8.14