2 * Copyright (c) 2017 TOYOTA MOTOR CORPORATION
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef LIBWINDOWMANAGER_H
18 #define LIBWINDOWMANAGER_H
22 class LibWindowmanager {
27 LibWindowmanager(const LibWindowmanager &) = delete;
28 LibWindowmanager &operator=(const LibWindowmanager &) = delete;
30 using handler_fun = std::function<void(const char *)>;
43 int init(int port, char const *token);
46 int requestSurface(const char *label);
47 int activateSurface(const char *label);
48 int deactivateSurface(const char *label);
49 int endDraw(const char *label);
51 void set_event_handler(enum EventType et, handler_fun f);
58 #endif // LIBWINDOWMANAGER_H