7#if defined(TARGET_LINUX) && !defined(TARGET_RASPBERRY_PI_LEGACY)
8typedef struct _XIM *
XIM;
9typedef struct _XIC *
XIC;
35#ifdef TARGET_RASPBERRY_PI
78 static void pollEvents();
91 bool getWindowShouldClose();
92 void setWindowShouldClose();
101 std::shared_ptr<ofBaseRenderer> & renderer();
103 GLFWwindow* getGLFWWindow();
107 glm::vec2 getWindowSize();
108 glm::vec2 getScreenSize();
109 glm::vec2 getWindowPosition();
111 void setWindowTitle(std::string title);
112 void setWindowPosition(
int x,
int y);
113 void setWindowShape(
int w,
int h);
120 void setFullscreen(
bool fullscreen);
121 void toggleFullscreen();
123 void enableSetupScreen();
124 void disableSetupScreen();
126 void setVerticalSync(
bool bSync);
128 void setClipboardString(
const std::string& text);
129 std::string getClipboardString();
131 int getPixelScreenCoordScale();
138 static void listVideoModes();
139 static void listMonitors();
140 bool isWindowIconified();
141 bool isWindowActive();
142 bool isWindowResizeable();
143 void iconify(
bool bIconify);
147 OF_DEPRECATED_MSG(
"use ofGLFWWindowSettings to create the window instead",
void setNumSamples(
int samples));
148 OF_DEPRECATED_MSG(
"use ofGLFWWindowSettings to create the window instead",
void setDoubleBuffering(
bool doubleBuff));
149 OF_DEPRECATED_MSG(
"use ofGLFWWindowSettings to create the window instead",
void setColorBits(
int r,
int g,
int b));
150 OF_DEPRECATED_MSG(
"use ofGLFWWindowSettings to create the window instead",
void setAlphaBits(
int a));
151 OF_DEPRECATED_MSG(
"use ofGLFWWindowSettings to create the window instead",
void setDepthBits(
int depth));
152 OF_DEPRECATED_MSG(
"use ofGLFWWindowSettings to create the window instead",
void setStencilBits(
int stencil));
153 OF_DEPRECATED_MSG(
"use ofGLFWWindowSettings to create the window instead",
void setMultiDisplayFullscreen(
bool bMultiFullscreen));
155#if defined(TARGET_LINUX) && !defined(TARGET_RASPBERRY_PI_LEGACY)
160 void setWindowIcon(
const std::string & path);
161 void setWindowIcon(
const ofPixels & iconPixels);
164#if defined(TARGET_LINUX) && !defined(TARGET_OPENGLES)
165 GLXContext getGLXContext();
168#if defined(TARGET_LINUX) && defined(TARGET_OPENGLES)
174#if defined(TARGET_OSX)
175 void * getNSGLContext();
176 void * getCocoaWindow();
179#if defined(TARGET_WIN32)
180 HGLRC getWGLContext();
181 HWND getWin32Window();
186 static void mouse_cb(GLFWwindow* windowP_,
int button,
int state,
int mods);
187 static void motion_cb(GLFWwindow* windowP_,
double x,
double y);
188 static void entry_cb(GLFWwindow* windowP_,
int entered);
189 static void keyboard_cb(GLFWwindow* windowP_,
int key,
int scancode,
int action,
int mods);
190 static void char_cb(GLFWwindow* windowP_, uint32_t key);
191 static void resize_cb(GLFWwindow* windowP_,
int w,
int h);
192 static void framebuffer_size_cb(GLFWwindow* windowP_,
int w,
int h);
193 static void exit_cb(GLFWwindow* windowP_);
194 static void scroll_cb(GLFWwindow* windowP_,
double x,
double y);
195 static void drop_cb(GLFWwindow* windowP_,
int numFiles,
const char** dropString);
196 static void error_cb(
int errorCode,
const char* errorDescription);
200 #if defined(TARGET_LINUX) && !defined(TARGET_RASPBERRY_PI_LEGACY)
205 std::unique_ptr<ofCoreEvents> coreEvents;
206 std::shared_ptr<ofBaseRenderer> currentRenderer;
211 bool bEnableSetupScreen;
212 int windowW, windowH;
213 int currentW, currentH;
214 float pixelScreenCoordScale;
221 int nFramesSinceWindowResized;
222 bool bWindowNeedsShowing;
224 #ifdef TARGET_RASPBERRY_PI
225 bool needsResizeCheck =
false;
230 int getCurrentMonitor();
240 LONG lExStyle, lStyle;
Definition ofAppBaseWindow.h:117
Definition ofAppBaseWindow.h:103
virtual void setup(const ofWindowSettings &settings)=0
Definition ofAppGLFWWindow.h:62
static bool allowsMultiWindow()
Definition ofAppGLFWWindow.h:76
OF_DEPRECATED_MSG("use ofGLFWWindowSettings to create the window instead", void setNumSamples(int samples))
void * getWindowContext()
Definition ofAppGLFWWindow.h:104
OF_DEPRECATED_MSG("use ofGLFWWindowSettings to create the window instead", void setAlphaBits(int a))
ofGLFWWindowSettings getSettings()
Definition ofAppGLFWWindow.h:105
static void loop()
Definition ofAppGLFWWindow.h:74
ofAppGLFWWindow & operator=(ofAppGLFWWindow &w)=delete
OF_DEPRECATED_MSG("use ofGLFWWindowSettings to create the window instead", void setDepthBits(int depth))
OF_DEPRECATED_MSG("use ofGLFWWindowSettings to create the window instead", void setMultiDisplayFullscreen(bool bMultiFullscreen))
OF_DEPRECATED_MSG("use ofGLFWWindowSettings to create the window instead", void setStencilBits(int stencil))
static bool doesLoop()
Definition ofAppGLFWWindow.h:75
static bool needsPolling()
Definition ofAppGLFWWindow.h:77
OF_DEPRECATED_MSG("use ofGLFWWindowSettings to create the window instead", void setDoubleBuffering(bool doubleBuff))
OF_DEPRECATED_MSG("use ofGLFWWindowSettings to create the window instead", void setColorBits(int r, int g, int b))
ofAppGLFWWindow(ofAppGLFWWindow &w)=delete
Definition ofBaseApp.h:14
Definition ofEvents.h:326
Definition ofWindowSettings.h:120
Definition ofAppGLFWWindow.h:22
int monitor
Definition ofAppGLFWWindow.h:54
bool stereo
Definition ofAppGLFWWindow.h:48
int depthBits
Definition ofAppGLFWWindow.h:46
int redBits
Definition ofAppGLFWWindow.h:42
bool doubleBuffering
Definition ofAppGLFWWindow.h:41
int stencilBits
Definition ofAppGLFWWindow.h:47
int greenBits
Definition ofAppGLFWWindow.h:43
bool iconified
Definition ofAppGLFWWindow.h:50
ofGLFWWindowSettings()
Definition ofAppGLFWWindow.h:25
bool multiMonitorFullScreen
Definition ofAppGLFWWindow.h:55
ofGLFWWindowSettings(const ofGLWindowSettings &settings)
Definition ofAppGLFWWindow.h:31
bool decorated
Definition ofAppGLFWWindow.h:51
bool resizable
Definition ofAppGLFWWindow.h:52
bool visible
Definition ofAppGLFWWindow.h:49
int blueBits
Definition ofAppGLFWWindow.h:44
bool transparent
Definition ofAppGLFWWindow.h:53
int numSamples
Definition ofAppGLFWWindow.h:38
int alphaBits
Definition ofAppGLFWWindow.h:45
std::shared_ptr< ofAppBaseWindow > shareContextWith
Definition ofAppGLFWWindow.h:56
Definition ofWindowSettings.h:92
A class representing a collection of pixels.
Definition ofPixels.h:170
A class representing a 2D rectangle.
Definition ofRectangle.h:87
void * EGLSurface
Definition ofAppEGLWindow.h:29
struct _XIM * XIM
Definition ofAppEGLWindow.h:19
void * EGLContext
Definition ofAppEGLWindow.h:30
unsigned long Window
Definition ofAppEGLWindow.h:21
void * EGLDisplay
Definition ofAppEGLWindow.h:27
struct _XDisplay Display
Definition ofAppEGLWindow.h:23
struct _XIC * XIC
Definition ofAppEGLWindow.h:20
ofPixels_< unsigned char > ofPixels
Definition ofAppGLFWWindow.h:17
ofOrientation
Used to represent the available screen orientations.
Definition ofWindowSettings.h:25
ofWindowMode
Used to represent the available windowing modes for the application.
Definition ofWindowSettings.h:8