diff options
| author | Manolo Gouy <Manolo> | 2016-04-15 14:18:37 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-04-15 14:18:37 +0000 |
| commit | 7508a033c508bb05b315bcb701941f35f8f9a764 (patch) | |
| tree | 25b23a94fabe9b0bbfac058f2a19107c6a5b56f1 /src/Fl_cocoa.mm | |
| parent | 3f64e2b28d3556a1ea316fe6ae73eabf454f1fa8 (diff) | |
Continue moving to Fl_System_Driver the platform_dependent implementations of member functions of the Fl class.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11614 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_cocoa.mm')
| -rw-r--r-- | src/Fl_cocoa.mm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 9720977e3..dfc28741f 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -1920,7 +1920,7 @@ void Fl_Cocoa_Screen_Driver::screen_work_area(int &X, int &Y, int &W, int &H, in /* * get the current mouse pointer world coordinates */ -void Fl::get_mouse(int &x, int &y) +void Fl_Cocoa_Screen_Driver::get_mouse(int &x, int &y) { fl_open_display(); NSPoint pt = [NSEvent mouseLocation]; @@ -3114,7 +3114,7 @@ void Fl_Cocoa_Window_Driver::wait_for_expose() /* * returns pointer to the filename, or null if name ends with ':' */ -const char *fl_filename_name( const char *name ) +const char *Fl_Darwin_System_Driver::filename_name( const char *name ) { const char *p, *q; if (!name) return (0); @@ -3379,7 +3379,7 @@ static void resize_selection_buffer(int len, int clipboard) { * len: size of selected data * type: always "plain/text" for now */ -void Fl::copy(const char *stuff, int len, int clipboard, const char *type) { +void Fl_Darwin_System_Driver::copy(const char *stuff, int len, int clipboard, const char *type) { if (!stuff || len<0) return; if (clipboard >= 2) clipboard = 1; // Only on X11 do multiple clipboards make sense. @@ -4268,7 +4268,7 @@ int Fl_Cocoa_Window_Driver::decorated_h() } // clip the graphics context to rounded corners -void Fl_X::clip_to_rounded_corners(CGContextRef gc, int w, int h) { +static void clip_to_rounded_corners(CGContextRef gc, int w, int h) { const CGFloat radius = 5; CGContextMoveToPoint(gc, 0, 0); CGContextAddLineToPoint(gc, 0, h - radius); @@ -4294,7 +4294,7 @@ void Fl_Cocoa_Window_Driver::draw_layer_to_context(CALayer *layer, CGContextRef { #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6 CGContextSaveGState(gc); - Fl_X::clip_to_rounded_corners(gc, w, h); + clip_to_rounded_corners(gc, w, h); CGContextSetRGBFillColor(gc, .79, .79, .79, 1.); // equiv. to FL_DARK1 CGContextFillRect(gc, CGRectMake(0, 0, w, h)); CGContextSetShouldAntialias(gc, true); @@ -4322,7 +4322,7 @@ void Fl_Cocoa_Window_Driver::capture_titlebar_and_borders(Fl_Shared_Image*& top, } else { CGImageRef img = Fl_X::CGImage_from_window_rect(pWindow, 0, -htop, w(), htop); CGContextSaveGState(auxgc); - Fl_X::clip_to_rounded_corners(auxgc, w(), htop); + clip_to_rounded_corners(auxgc, w(), htop); CGContextDrawImage(auxgc, CGRectMake(0, 0, w(), htop), img); CGContextRestoreGState(auxgc); CFRelease(img); |
