summaryrefslogtreecommitdiff
path: root/src/drivers/Darwin/Fl_Darwin_System_Driver.H
diff options
context:
space:
mode:
authormaxim nikonov <maxim.nikonov@hqo.co>2026-02-05 15:21:34 +0500
committermaxim nikonov <maxim.nikonov@hqo.co>2026-02-05 15:21:34 +0500
commitdb214d1145e46d527a46d1fc2519548d2c4d23f1 (patch)
treecf0fd9922e4d54f6beb63888f9b28c8e2a787bdf /src/drivers/Darwin/Fl_Darwin_System_Driver.H
parent75fc94d6c71fe686f6dde5b41ad91cba2f6bdd6f (diff)
wip: fork
Diffstat (limited to 'src/drivers/Darwin/Fl_Darwin_System_Driver.H')
-rw-r--r--src/drivers/Darwin/Fl_Darwin_System_Driver.H85
1 files changed, 0 insertions, 85 deletions
diff --git a/src/drivers/Darwin/Fl_Darwin_System_Driver.H b/src/drivers/Darwin/Fl_Darwin_System_Driver.H
deleted file mode 100644
index 7dd0ae6da..000000000
--- a/src/drivers/Darwin/Fl_Darwin_System_Driver.H
+++ /dev/null
@@ -1,85 +0,0 @@
-//
-// Definition of Apple Darwin system driver
-// for the Fast Light Tool Kit (FLTK).
-//
-// Copyright 2010-2021 by Bill Spitzak and others.
-//
-// This library is free software. Distribution and use rights are outlined in
-// the file "COPYING" which should have been included with this file. If this
-// file is missing or damaged, see the license at:
-//
-// https://www.fltk.org/COPYING.php
-//
-// Please see the following page on how to report bugs and issues:
-//
-// https://www.fltk.org/bugs.php
-//
-
-/**
- \file Fl_Darwin_System_Driver.H
- \brief Definition of Apple Darwin system driver.
- */
-
-#ifndef FL_DARWIN_SYSTEM_DRIVER_H
-#define FL_DARWIN_SYSTEM_DRIVER_H
-
-#include "../Posix/Fl_Posix_System_Driver.H"
-#include <stdlib.h>
-#include <unistd.h>
-
-/*
- Move everything here that manages the system interface.
-
- There is exactly one system driver.
-
- - filename and pathname management
- - directory and file access
- - system time and system timer
- - multithreading
- */
-
-class Fl_Darwin_System_Driver : public Fl_Posix_System_Driver
-{
-public:
- Fl_Darwin_System_Driver();
- int single_arg(const char *arg) FL_OVERRIDE;
- int arg_and_value(const char *name, const char *value) FL_OVERRIDE;
- int clocale_vprintf(FILE *output, const char *format, va_list args) FL_OVERRIDE;
- int clocale_vsnprintf(char *output, size_t output_size, const char *format, va_list args) FL_OVERRIDE;
- int clocale_vsscanf(const char *input, const char *format, va_list args) FL_OVERRIDE;
- static void *get_carbon_function(const char *name);
- static int calc_mac_os_version(); // computes the fl_mac_os_version global variable
- static unsigned short *compute_macKeyLookUp();
-
- int filename_list(const char *d, dirent ***list,
- int (*sort)(struct dirent **, struct dirent **),
- char *errmsg=NULL, int errmsg_sz=0) FL_OVERRIDE;
- int open_uri(const char *uri, char *msg, int msglen) FL_OVERRIDE;
- int need_test_shortcut_extra() FL_OVERRIDE {return 1;}
- int file_browser_load_filesystem(Fl_File_Browser *browser, char *filename, int lname, Fl_File_Icon *icon) FL_OVERRIDE;
- void newUUID(char *uuidBuffer) FL_OVERRIDE;
- char *preference_rootnode(Fl_Preferences *prefs, Fl_Preferences::Root root, const char *vendor,
- const char *application) FL_OVERRIDE;
- const char *local_to_latin1(const char *t, int n) FL_OVERRIDE;
- const char *latin1_to_local(const char *t, int n) FL_OVERRIDE;
- const char *local_to_mac_roman(const char *t, int n) FL_OVERRIDE;
- const char *mac_roman_to_local(const char *t, int n) FL_OVERRIDE;
- void tree_draw_expando_button(int x, int y, bool state, bool active) FL_OVERRIDE;
- int tree_connector_style() FL_OVERRIDE;
- const char *filename_name(const char *buf) FL_OVERRIDE;
- void add_fd(int fd, int when, Fl_FD_Handler cb, void* = 0) FL_OVERRIDE;
- void add_fd(int fd, Fl_FD_Handler cb, void* = 0) FL_OVERRIDE;
- void remove_fd(int, int when) FL_OVERRIDE;
- void remove_fd(int) FL_OVERRIDE;
- void open_callback(void (*)(const char *)) FL_OVERRIDE;
- const char *shift_name() FL_OVERRIDE;
- const char *meta_name() FL_OVERRIDE;
- const char *alt_name() FL_OVERRIDE;
- const char *control_name() FL_OVERRIDE;
- Fl_Sys_Menu_Bar_Driver *sys_menu_bar_driver() FL_OVERRIDE;
- double wait(double time_to_wait) FL_OVERRIDE;
- int ready() FL_OVERRIDE;
- int filename_relative(char *to, int tolen, const char *dest_dir, const char *base_dir) FL_OVERRIDE;
-};
-
-#endif // FL_DARWIN_SYSTEM_DRIVER_H