Mercurial > dwindows
comparison dw.h @ 2205:a43a3f80ed32
GTK: Changes to include both dw_(int_)init() functions with deprecated.
This allows binary-wise for both old style resource apps and GResource ones
to function with the same library. Which one is used depends on whether
DW_INCLUDE_DEPRECATED is defined at compile time. Some more thought needs
to be given to whether DW_INCLUDE_DEPRECATED should be included in the
dwindows-config --cflags because apps expecting GResources will fail to
compile with DW_INCLUDE_DEPRECATED defined, due to the dw_init() macro.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 29 Nov 2020 08:31:47 +0000 |
parents | b86ae2abb3b3 |
children | 7677e1083d07 |
comparison
equal
deleted
inserted
replaced
2204:b86ae2abb3b3 | 2205:a43a3f80ed32 |
---|---|
1640 void API dw_box_pack_start(HWND box, HWND item, int width, int height, int hsize, int vsize, int pad); | 1640 void API dw_box_pack_start(HWND box, HWND item, int width, int height, int hsize, int vsize, int pad); |
1641 void API dw_box_pack_end(HWND box, HWND item, int width, int height, int hsize, int vsize, int pad); | 1641 void API dw_box_pack_end(HWND box, HWND item, int width, int height, int hsize, int vsize, int pad); |
1642 void API dw_box_pack_at_index(HWND box, HWND item, int index, int width, int height, int hsize, int vsize, int pad); | 1642 void API dw_box_pack_at_index(HWND box, HWND item, int index, int width, int height, int hsize, int vsize, int pad); |
1643 HWND API dw_box_unpack_at_index(HWND box, int index); | 1643 HWND API dw_box_unpack_at_index(HWND box, int index); |
1644 int API dw_box_unpack(HWND handle); | 1644 int API dw_box_unpack(HWND handle); |
1645 int API dw_init(int newthread, int argc, char *argv[]); | |
1645 #ifdef DW_INCLUDE_DEPRECATED_RESOURCES | 1646 #ifdef DW_INCLUDE_DEPRECATED_RESOURCES |
1646 int API dw_int_init(DWResources *res, int newthread, int *argc, char **argv[]); | 1647 int API dw_int_init(DWResources *res, int newthread, int *argc, char **argv[]); |
1647 #define dw_init(a, b, c) dw_int_init(&_resources, a, &b, &c) | 1648 #define dw_init(a, b, c) dw_int_init(&_resources, a, &b, &c) |
1648 #else | |
1649 int API dw_init(int newthread, int argc, char *argv[]); | |
1650 #endif | 1649 #endif |
1651 void API dw_main(void); | 1650 void API dw_main(void); |
1652 void API dw_main_quit(void); | 1651 void API dw_main_quit(void); |
1653 void API dw_main_sleep(int seconds); | 1652 void API dw_main_sleep(int seconds); |
1654 void API dw_main_iteration(void); | 1653 void API dw_main_iteration(void); |