stock_pixmap.h 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. /*
  2. * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
  3. * Copyright (C) 1999-2006 Hiroyuki Yamamoto and the Claws Mail team
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  18. */
  19. #ifndef __STOCK_PIXMAP_H__
  20. #define __STOCK_PIXMAP_H__
  21. #include <glib.h>
  22. #include <gtk/gtkwidget.h>
  23. typedef enum
  24. {
  25. STOCK_PIXMAP_ADDR_ONE,
  26. STOCK_PIXMAP_ADDR_TWO,
  27. STOCK_PIXMAP_ADDRESS,
  28. STOCK_PIXMAP_ADDRESS_BOOK,
  29. STOCK_PIXMAP_ADDRESS_SEARCH,
  30. STOCK_PIXMAP_BOOK,
  31. STOCK_PIXMAP_CATEGORY,
  32. STOCK_PIXMAP_CHECKBOX_OFF,
  33. STOCK_PIXMAP_CHECKBOX_ON,
  34. STOCK_PIXMAP_CHECK_SPELLING,
  35. STOCK_PIXMAP_CLIP,
  36. STOCK_PIXMAP_CLIP_KEY,
  37. STOCK_PIXMAP_CLIP_GPG_SIGNED,
  38. STOCK_PIXMAP_CLOSE,
  39. STOCK_PIXMAP_COMPLETE,
  40. STOCK_PIXMAP_CONTINUE,
  41. STOCK_PIXMAP_DELETED,
  42. STOCK_PIXMAP_DIR_CLOSE,
  43. STOCK_PIXMAP_DIR_CLOSE_HRM,
  44. STOCK_PIXMAP_DIR_OPEN,
  45. STOCK_PIXMAP_DIR_OPEN_HRM,
  46. STOCK_PIXMAP_DIR_CLOSE_MARK,
  47. STOCK_PIXMAP_DIR_CLOSE_HRM_MARK,
  48. STOCK_PIXMAP_DIR_OPEN_MARK,
  49. STOCK_PIXMAP_DIR_OPEN_HRM_MARK,
  50. STOCK_PIXMAP_DOWN_ARROW,
  51. STOCK_PIXMAP_UP_ARROW,
  52. STOCK_PIXMAP_EDIT_EXTERN,
  53. STOCK_PIXMAP_ERROR,
  54. STOCK_PIXMAP_EXEC,
  55. STOCK_PIXMAP_FORWARDED,
  56. STOCK_PIXMAP_GROUP,
  57. STOCK_PIXMAP_IGNORETHREAD,
  58. STOCK_PIXMAP_INBOX_CLOSE,
  59. STOCK_PIXMAP_INBOX_CLOSE_HRM,
  60. STOCK_PIXMAP_INBOX_OPEN,
  61. STOCK_PIXMAP_INBOX_OPEN_HRM,
  62. STOCK_PIXMAP_INBOX_CLOSE_MARK,
  63. STOCK_PIXMAP_INBOX_CLOSE_HRM_MARK,
  64. STOCK_PIXMAP_INBOX_OPEN_MARK,
  65. STOCK_PIXMAP_INBOX_OPEN_HRM_MARK,
  66. STOCK_PIXMAP_INSERT_FILE,
  67. STOCK_PIXMAP_INTERFACE,
  68. STOCK_PIXMAP_JPILOT,
  69. STOCK_PIXMAP_KEY,
  70. STOCK_PIXMAP_LDAP,
  71. STOCK_PIXMAP_LINEWRAP_CURRENT,
  72. STOCK_PIXMAP_LINEWRAP_ALL,
  73. STOCK_PIXMAP_LOCKED,
  74. STOCK_PIXMAP_MAIL,
  75. STOCK_PIXMAP_MAIL_ATTACH,
  76. STOCK_PIXMAP_MAIL_COMPOSE,
  77. STOCK_PIXMAP_MAIL_FORWARD,
  78. STOCK_PIXMAP_MAIL_RECEIVE,
  79. STOCK_PIXMAP_MAIL_RECEIVE_ALL,
  80. STOCK_PIXMAP_MAIL_REPLY,
  81. STOCK_PIXMAP_MAIL_REPLY_TO_ALL,
  82. STOCK_PIXMAP_MAIL_REPLY_TO_AUTHOR,
  83. STOCK_PIXMAP_MAIL_SEND,
  84. STOCK_PIXMAP_MAIL_SEND_QUEUE,
  85. STOCK_PIXMAP_MAIL_SIGN,
  86. STOCK_PIXMAP_MARK,
  87. STOCK_PIXMAP_NEW,
  88. STOCK_PIXMAP_NEWS_COMPOSE,
  89. STOCK_PIXMAP_OUTBOX_CLOSE,
  90. STOCK_PIXMAP_OUTBOX_CLOSE_HRM,
  91. STOCK_PIXMAP_OUTBOX_OPEN,
  92. STOCK_PIXMAP_OUTBOX_OPEN_HRM,
  93. STOCK_PIXMAP_OUTBOX_CLOSE_MARK,
  94. STOCK_PIXMAP_OUTBOX_CLOSE_HRM_MARK,
  95. STOCK_PIXMAP_OUTBOX_OPEN_MARK,
  96. STOCK_PIXMAP_OUTBOX_OPEN_HRM_MARK,
  97. STOCK_PIXMAP_REPLIED,
  98. STOCK_PIXMAP_PASTE,
  99. STOCK_PIXMAP_PREFERENCES,
  100. STOCK_PIXMAP_PROPERTIES,
  101. STOCK_PIXMAP_QUEUE_CLOSE,
  102. STOCK_PIXMAP_QUEUE_CLOSE_HRM,
  103. STOCK_PIXMAP_QUEUE_OPEN,
  104. STOCK_PIXMAP_QUEUE_OPEN_HRM,
  105. STOCK_PIXMAP_TRASH_OPEN,
  106. STOCK_PIXMAP_TRASH_OPEN_HRM,
  107. STOCK_PIXMAP_TRASH_CLOSE,
  108. STOCK_PIXMAP_TRASH_CLOSE_HRM,
  109. STOCK_PIXMAP_QUEUE_CLOSE_MARK,
  110. STOCK_PIXMAP_QUEUE_CLOSE_HRM_MARK,
  111. STOCK_PIXMAP_QUEUE_OPEN_MARK,
  112. STOCK_PIXMAP_QUEUE_OPEN_HRM_MARK,
  113. STOCK_PIXMAP_TRASH_OPEN_MARK,
  114. STOCK_PIXMAP_TRASH_OPEN_HRM_MARK,
  115. STOCK_PIXMAP_TRASH_CLOSE_MARK,
  116. STOCK_PIXMAP_TRASH_CLOSE_HRM_MARK,
  117. STOCK_PIXMAP_UNREAD,
  118. STOCK_PIXMAP_VCARD,
  119. STOCK_PIXMAP_ONLINE,
  120. STOCK_PIXMAP_OFFLINE,
  121. STOCK_PIXMAP_NOTICE_WARN, /* small warning */
  122. STOCK_PIXMAP_NOTICE_ERROR, /* small error */
  123. STOCK_PIXMAP_NOTICE_NOTE, /* small message */
  124. STOCK_PIXMAP_QUICKSEARCH, /* quicksearch pixmap */
  125. STOCK_PIXMAP_GPG_SIGNED,
  126. STOCK_PIXMAP_DRAFTS_CLOSE,
  127. STOCK_PIXMAP_DRAFTS_OPEN,
  128. STOCK_PIXMAP_DRAFTS_CLOSE_MARK,
  129. STOCK_PIXMAP_DRAFTS_OPEN_MARK,
  130. STOCK_PIXMAP_MIME_TEXT_PLAIN,
  131. STOCK_PIXMAP_MIME_TEXT_HTML,
  132. STOCK_PIXMAP_MIME_APPLICATION,
  133. STOCK_PIXMAP_MIME_IMAGE,
  134. STOCK_PIXMAP_MIME_AUDIO,
  135. STOCK_PIXMAP_MIME_TEXT_ENRICHED,
  136. STOCK_PIXMAP_MIME_UNKNOWN,
  137. STOCK_PIXMAP_PRIVACY_SIGNED,
  138. STOCK_PIXMAP_PRIVACY_PASSED,
  139. STOCK_PIXMAP_PRIVACY_FAILED,
  140. STOCK_PIXMAP_PRIVACY_UNKNOWN,
  141. STOCK_PIXMAP_PRIVACY_EXPIRED,
  142. STOCK_PIXMAP_PRIVACY_WARN,
  143. STOCK_PIXMAP_PRIVACY_EMBLEM_ENCRYPTED,
  144. STOCK_PIXMAP_PRIVACY_EMBLEM_SIGNED,
  145. STOCK_PIXMAP_PRIVACY_EMBLEM_PASSED,
  146. STOCK_PIXMAP_PRIVACY_EMBLEM_FAILED,
  147. STOCK_PIXMAP_PRIVACY_EMBLEM_WARN,
  148. STOCK_PIXMAP_MIME_MESSAGE,
  149. STOCK_PIXMAP_CLAWS_MAIL_ICON,
  150. STOCK_PIXMAP_READ,
  151. STOCK_PIXMAP_TRASH,
  152. STOCK_PIXMAP_CLAWS_MAIL_LOGO,
  153. STOCK_PIXMAP_DIR_NOSELECT,
  154. STOCK_PIXMAP_SPAM,
  155. STOCK_PIXMAP_SPAM_BTN,
  156. STOCK_PIXMAP_HAM_BTN,
  157. STOCK_PIXMAP_MOVED,
  158. STOCK_PIXMAP_COPIED,
  159. STOCK_PIXMAP_EMPTY, /* last entry */
  160. N_STOCK_PIXMAPS
  161. } StockPixmap;
  162. typedef enum {
  163. OVERLAY_NONE,
  164. OVERLAY_TOP_LEFT,
  165. OVERLAY_TOP_CENTER,
  166. OVERLAY_TOP_RIGHT,
  167. OVERLAY_MID_LEFT,
  168. OVERLAY_MID_CENTER,
  169. OVERLAY_MID_RIGHT,
  170. OVERLAY_BOTTOM_LEFT,
  171. OVERLAY_BOTTOM_CENTER,
  172. OVERLAY_BOTTOM_RIGHT
  173. } OverlayPosition;
  174. GtkWidget *stock_pixmap_widget (GtkWidget *window,
  175. StockPixmap icon);
  176. gint stock_pixbuf_gdk (GtkWidget *window, StockPixmap icon,
  177. GdkPixbuf **pixbuf);
  178. gint stock_pixmap_gdk (GtkWidget *window,
  179. StockPixmap icon,
  180. GdkPixmap **pixmap,
  181. GdkBitmap **mask);
  182. GList *stock_pixmap_themes_list_new (void);
  183. void stock_pixmap_themes_list_free (GList *list);
  184. gchar *stock_pixmap_get_name (StockPixmap icon);
  185. StockPixmap stock_pixmap_get_icon (gchar *file);
  186. GtkWidget *stock_pixmap_widget_with_overlay (GtkWidget *window,
  187. StockPixmap icon,
  188. StockPixmap overlay,
  189. OverlayPosition pos,
  190. gint border_x,
  191. gint border_y);
  192. #endif /* __STOCK_PIXMAP_H__ */