acme
Foundational cross-platform layer of the ca2 framework
Toggle main menu visibility
Loading...
Searching...
No Matches
internal.h
1
//
2
// c_os_cross_win_user_internal.h
3
// c
4
//
5
// Created by Snow Leopard User on 06/11/2011.
6
// Copyright 2011 __MyCompanyName__. All rights reserved.
7
//
8
9
#pragma once
10
11
12
#include "acme/_.h"
13
14
15
16
17
/*typedef struct tag_WINDOW
18
{
19
20
21
WindowRef m_windowref;
22
void * m_pnswindow;
23
24
25
26
} WINDOW, * LPWINDOW;
27
28
typedef LPWINDOW oswindow;
29
30
typedef ::i32 ::i32;
31
32
typedef struct tagRECT
33
{
34
::i32 left;
35
::i32 top;
36
::i32 right;
37
::i32 bottom;
38
} const i32_rectangle &, *PRECT, *NPRECT, *::i32_rectangle *;
39
40
typedef const i32_rectangle & * const i32_rectangle &;
41
42
43
44
#pragma once
45
*/
46
47
CGContextRef get_nswindow_cgcontext(oswindow pnswindow);
48
49
50
::i32_bool get_nswindow_rect(oswindow hwnd, ::i32_rectangle * prectangle);
51
52
53
54
inline ::i32 wxRound(::f64 x)
55
{
56
#if defined(HAVE_ROUND)
57
return ::i32(round(x));
58
#else
59
return
(::i32)(x < 0 ? x - 0.5 : x + 0.5);
60
#endif
61
}
62
63
64
65
66
CGColorRef cg_create_color(
color32_t
crText);
67
::i32_bool cg_release_color(CGColorRef colorref);
68
69
70
71
72
73
//
74
// c_os_win_user.h
75
// c
76
//
77
// Created by Camilo Sasuke Thomas Borregaard Soerensen on 12/30/11.
78
// Copyright (c) 2011 ca2 Desenvolvimento de Sofware Ltda. All rights reserved.
79
//
80
81
#pragma once
82
83
84
85
::i32_bool set_nswindow_frame(oswindow hwnd, const ::i32_rectangle & rectangle, ::i32 iDisplay);
86
::i32_bool size_nswindow(oswindow hwnd, ::i32 cx, ::i32 cy);
87
::i32_bool move_nswindow(oswindow hwnd, ::i32 x, ::i32 y);
color32_t
Definition
color32.h:12
operating_system
macos
internal.h
Generated by
1.17.0