newstruc.h 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*
  2. * Create dynamic new structures of various types
  3. *
  4. * Copyright 1998 Bertho A. Stultiens
  5. *
  6. * This library is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 2.1 of the License, or (at your option) any later version.
  10. *
  11. * This library is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public
  17. * License along with this library; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  19. */
  20. #ifndef __WRC_NEWSTRUC_H
  21. #define __WRC_NEWSTRUC_H
  22. #include "wrctypes.h"
  23. dialog_t *new_dialog(void);
  24. name_id_t *new_name_id(void);
  25. menu_t *new_menu(void);
  26. menu_item_t *new_menu_item(void);
  27. control_t *new_control(void);
  28. icon_t *new_icon(void);
  29. cursor_t *new_cursor(void);
  30. versioninfo_t *new_versioninfo(void);
  31. ver_value_t *new_ver_value(void);
  32. ver_block_t *new_ver_block(void);
  33. stt_entry_t *new_stt_entry(void);
  34. accelerator_t *new_accelerator(void);
  35. event_t *new_event(void);
  36. raw_data_t *new_raw_data(void);
  37. lvc_t *new_lvc(void);
  38. res_count_t *new_res_count(void);
  39. string_t *new_string(void);
  40. toolbar_item_t *new_toolbar_item(void);
  41. ani_any_t *new_ani_any(void);
  42. resource_t *new_resource(enum res_e t, void *res, int memopt, language_t *lan);
  43. version_t *new_version(DWORD v);
  44. characts_t *new_characts(DWORD c);
  45. language_t *new_language(int id, int sub);
  46. language_t *dup_language(language_t *l);
  47. version_t *dup_version(version_t *v);
  48. characts_t *dup_characts(characts_t *c);
  49. html_t *new_html(raw_data_t *rd, int *memopt);
  50. rcdata_t *new_rcdata(raw_data_t *rd, int *memopt);
  51. font_id_t *new_font_id(int size, string_t *face, int weight, int italic);
  52. user_t *new_user(name_id_t *type, raw_data_t *rd, int *memopt);
  53. font_t *new_font(raw_data_t *rd, int *memopt);
  54. fontdir_t *new_fontdir(raw_data_t *rd, int *memopt);
  55. icon_group_t *new_icon_group(raw_data_t *rd, int *memopt);
  56. cursor_group_t *new_cursor_group(raw_data_t *rd, int *memopt);
  57. ani_curico_t *new_ani_curico(enum res_e type, raw_data_t *rd, int *memopt);
  58. bitmap_t *new_bitmap(raw_data_t *rd, int *memopt);
  59. ver_words_t *new_ver_words(int i);
  60. ver_words_t *add_ver_words(ver_words_t *w, int i);
  61. messagetable_t *new_messagetable(raw_data_t *rd, int *memopt);
  62. dlginit_t *new_dlginit(raw_data_t *rd, int *memopt);
  63. void copy_raw_data(raw_data_t *dst, raw_data_t *src, unsigned int offs, int len);
  64. int *new_int(int i);
  65. stringtable_t *new_stringtable(lvc_t *lvc);
  66. toolbar_t *new_toolbar(int button_width, int button_Height, toolbar_item_t *items, int nitems);
  67. style_pair_t *new_style_pair(style_t *style, style_t *exstyle);
  68. style_t *new_style(DWORD or_mask, DWORD and_mask);
  69. #endif