Path: blob/main_old/util/display/DisplayWindow.h
1693 views
//1// Copyright 2020 The ANGLE Project Authors. All rights reserved.2// Use of this source code is governed by a BSD-style license that can be3// found in the LICENSE file.4//56// DisplayWindow.h: Definition of the implementation of OSWindow for Linux Display78#ifndef UTIL_DISPLAY_WINDOW_H_9#define UTIL_DISPLAY_WINDOW_H_1011#include <string>12#include "util/OSWindow.h"13#include "util/util_export.h"1415struct SimpleDisplayWindow16{17uint16_t width;18uint16_t height;19};2021class ANGLE_UTIL_EXPORT DisplayWindow : public OSWindow22{23public:24DisplayWindow();25DisplayWindow(int visualId);26~DisplayWindow() override;2728void disableErrorMessageDialog() override;29void destroy() override;3031void resetNativeWindow() override;32EGLNativeWindowType getNativeWindow() const override;33EGLNativeDisplayType getNativeDisplay() const override;3435void messageLoop() override;3637void setMousePosition(int x, int y) override;38bool setOrientation(int width, int height) override;39bool setPosition(int x, int y) override;40bool resize(int width, int height) override;41void setVisible(bool isVisible) override;4243void signalTestEvent() override;4445private:46bool initializeImpl(const std::string &name, int width, int height) override;47SimpleDisplayWindow mWindow;48};4950#endif // UTIL_DISPLAY_WINDOW_H_515253