summaryrefslogtreecommitdiff
path: root/src/Fl_cocoa.mm
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2016-02-10 19:49:35 +0000
committerMatthias Melcher <fltk@matthiasm.com>2016-02-10 19:49:35 +0000
commite83bc2527fd412bc235f1f8743659e31b12bdc31 (patch)
tree8c807e8b0c7af5f8ec1c67da1eec8e17bf4ad963 /src/Fl_cocoa.mm
parent478d6336200d18630abd0d77c512e28fb2b931d0 (diff)
Basic Screen Driver Structure. LIMBO!
Creating the basic structure for a screen driver system. OS X works X11 and WinAPI are in limbo and will be fixed in the next hour or so. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11148 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_cocoa.mm')
-rw-r--r--src/Fl_cocoa.mm9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
index c6d55206b..be0da7834 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -44,6 +44,7 @@ extern "C" {
#include <FL/Fl_Printer.H>
#include <FL/Fl_Copy_Surface.H>
#include "drivers/Quartz/Fl_Quartz_Graphics_Driver.h"
+#include "drivers/Cocoa/Fl_Cocoa_Screen_Driver.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
@@ -1849,7 +1850,7 @@ static void get_window_frame_sizes(int &bx, int &by, int &bt) {
/*
* smallest x coordinate in screen space of work area of menubar-containing display
*/
-int Fl::x() {
+int Fl_Cocoa_Screen_Driver::x() {
return int([[[NSScreen screens] objectAtIndex:0] visibleFrame].origin.x);
}
@@ -1857,7 +1858,7 @@ int Fl::x() {
/*
* smallest y coordinate in screen space of work area of menubar-containing display
*/
-int Fl::y() {
+int Fl_Cocoa_Screen_Driver::y() {
fl_open_display();
NSRect visible = [[[NSScreen screens] objectAtIndex:0] visibleFrame];
return int(main_screen_height - (visible.origin.y + visible.size.height));
@@ -1867,7 +1868,7 @@ int Fl::y() {
/*
* width of work area of menubar-containing display
*/
-int Fl::w() {
+int Fl_Cocoa_Screen_Driver::w() {
return int([[[NSScreen screens] objectAtIndex:0] visibleFrame].size.width);
}
@@ -1875,7 +1876,7 @@ int Fl::w() {
/*
* height of work area of menubar-containing display
*/
-int Fl::h() {
+int Fl_Cocoa_Screen_Driver::h() {
return int([[[NSScreen screens] objectAtIndex:0] visibleFrame].size.height);
}