acme
Foundational cross-platform layer of the ca2 framework
Toggle main menu visibility
Loading...
Searching...
No Matches
aaa_2.h
1
// Created by Camilo Sasuke Thomas Borregaard Soerensen on 05/01/18.
2
#pragma once
3
4
5
6
7
#ifndef WINDOWS
8
9
10
#ifndef higher_byte
11
#define higher_byte(x) (((x) >> 8) & 0x00ff)
12
#endif
13
14
15
#ifndef HIWORD
16
#define HIWORD(x) (((x) >> 16) & 0x0000ffff)
17
#endif
18
19
20
#ifndef LOWORD
21
#define LOWORD(x) ((x) & 0x0000ffff)
22
#endif
23
24
25
#ifndef MAKEWORD
26
#define MAKEWORD(lo, hi) (((lo) & 0xff) | (((hi) << 8) & 0xff00))
27
#endif
28
29
30
#define SWAPWORD(x) MAKEWORD(higher_byte(x), lower_byte(x))
31
#define SWAPLONG(x) make_int(SWAPWORD(HIWORD(x)), SWAPWORD(LOWORD(x)))
32
33
34
#endif
35
36
37
//CLASS_DECL_ACME string get_command_line();
38
CLASS_DECL_ACME
bool
is_verbose();
39
40
41
#if defined(MACOS)
42
43
#include "acme/operating_system/ansi/_.h"
44
#include "acme/operating_system/apple/_.h"
45
#include "acme/operating_system/macos/_.h"
46
47
#elif defined(APPLE_IOS)
48
49
#include "acme/operating_system/ansi/_.h"
50
#include "acme/operating_system/apple/_.h"
51
#include "acme/operating_system/ios/_.h"
52
53
#elif defined(LINUX)
54
55
//#include "acme/operating_system/cairo/_.h"
56
//#include "acme/operating_system/ansi/_.h"
57
//#include "acme/operating_system/linux/_.h"
58
59
#elif defined(FREEBSD)
60
61
//#include "acme/operating_system/cairo/_.h"
62
//#include "acme/operating_system/ansi/_.h"
63
//#include "acme/operating_system/linux/_.h"
64
65
#elif defined(UNIVERSAL_WINDOWS)
66
67
#include "acme/operating_system/ansi/_.h"
68
#include "acme/operating_system/windows_common/_.h"
69
#include "acme/operating_system/universal_windows/_.h"
70
71
#elif defined(WINDOWS_DESKTOP)
72
73
#include "acme/operating_system/ansi/_.h"
74
#include "acme/operating_system/windows_common/_.h"
75
#include "acme/operating_system/windows/_.h"
76
77
#elif defined(__ANDROID__)
78
79
#include "acme/operating_system/ansi/_.h"
80
#include "acme/operating_system/android/_.h"
81
82
#elif defined(SOLARIS)
83
84
#include "acme/operating_system/ansi/_.h"
85
#include "acme/operating_system/solaris/_.h"
86
87
#else
88
89
#error "The operating system wasn't expected."
90
91
#endif
92
93
template
<
typename
PRED >
94
inline
bool
predicate_Sleep(::i32 iTime, PRED pred);
95
96
CLASS_DECL_ACME
void
press_any_key_to_exit(const ::scoped_string & scopedstr =
nullptr
);
97
98
//void adapt_font_name(string & str);
99
100
101
102
103
104
//CLASS_DECL_ACME void defer_dock_application(i32_bool bDock);
105
106
107
108
CLASS_DECL_ACME
string
get_current_login_name();
109
110
111
#if defined(WINDOWS)
112
113
114
CLASS_DECL_ACME _locale_t get_c_locale();
115
116
117
#else
118
119
120
CLASS_DECL_ACME locale_t get_c_locale();
121
122
#endif
123
124
125
#include "time.h"
126
127
128
129
130
#include "parallelization.h"
131
132
133
//#ifdef
134
//
135
//CLASS_DECL_ACME iptr get_window_long_ptr(::windowing::window * pwindow, ::i32 iIndex);
136
//CLASS_DECL_ACME iptr set_window_long_ptr(::windowing::window * pwindow, ::i32 iIndex, iptr i);
137
138
139
#include "user.h"
140
141
142
#include "file.h"
143
144
145
//CLASS_DECL_ACME enum_dialog_result message_box_for_console(const ::scoped_string & scopedstr, const ::scoped_string & scopedstrTitle, const ::enum_message_box& emessagebox);
146
147
//CLASS_DECL_ACME void is_directory(const ::file::path & path);
148
149
//CLASS_DECL_ACME void file_exists(const ::file::path & path);
150
151
//CLASS_DECL_ACME void create_directory_path(const ::file::path & path);
152
153
//CLASS_DECL_ACME void create_directory(const ::file::path & path);
154
155
//CLASS_DECL_ACME void file_delete(const ::file::path & path);
156
157
158
enum
enum_command_system
159
{
160
161
e_command_system_none = 0,
162
e_command_system_inline_log = 1,
163
164
};
165
166
167
#include "acme/prototype/duration/_.h"
168
169
170
CLASS_DECL_ACME
void
command_system(
string
& strOutput,
string
& strError, ::i32 & iExitCode, const ::scoped_string & scopedstr, enum_command_system ecommandsystem = e_command_system_none, const ::duration & durationTimeout = ::duration::infinite());
171
172
CLASS_DECL_ACME ::atom
auto
pmessageboxpayload = __initialize_new ::message_box_payload(
::particle
* pparticle, const ::scoped_string & scopedstrMessage, const ::scoped_string & scopedstrTitle =
nullptr
, enum_message_box emessagebox = ::user::e_message_box_ok);
173
174
send(pmessageboxpayload);
175
176
#include "_c.h"
177
178
179
particle
Definition
particle.h:95
operating_system
aaa_2.h
Generated by
1.17.0