2 * @defgroup Caches Caches
4 * These are functions which let one fine-tune some cache values for
5 * Elementary applications, thus allowing for performance adjustments.
11 * @brief Flush all caches.
13 * Frees all data that was in cache and is not currently being used to reduce
14 * memory usage. This frees Edje's, Evas' and Eet's cache. This is equivalent
15 * to calling all of the following functions:
16 * @li edje_file_cache_flush()
17 * @li edje_collection_cache_flush()
18 * @li eet_clearcache()
19 * @li evas_image_cache_flush()
20 * @li evas_font_cache_flush()
21 * @li evas_render_dump()
22 * @note Evas caches are flushed for every canvas associated with a window.
27 // XXX: rename: elm_cache_all_flush()
28 EAPI void elm_all_flush(void);
31 * Get the configured cache flush interval time
33 * This gets the globally configured cache flush interval time, in
36 * @return The cache flush interval time
39 * @see elm_all_flush()
41 EAPI int elm_cache_flush_interval_get(void);
44 * Set the configured cache flush interval time
46 * This sets the globally configured cache flush interval time, in ticks
48 * @param size The cache flush interval time
51 * @see elm_all_flush()
53 EAPI void elm_cache_flush_interval_set(int size);
56 * Set the configured cache flush interval time for all applications on the
59 * This sets the globally configured cache flush interval time -- in ticks
60 * -- for all applications on the display.
62 * @param size The cache flush interval time
65 // XXX: deprecate and replace with elm_config_all_flush()
66 EAPI void elm_cache_flush_interval_all_set(int size);
69 * Get the configured cache flush enabled state
71 * This gets the globally configured cache flush state - if it is enabled
72 * or not. When cache flushing is enabled, elementary will regularly
73 * (see elm_cache_flush_interval_get() ) flush caches and dump data out of
74 * memory and allow usage to re-seed caches and data in memory where it
75 * can do so. An idle application will thus minimise its memory usage as
76 * data will be freed from memory and not be re-loaded as it is idle and
77 * not rendering or doing anything graphically right now.
79 * @return The cache flush state
82 * @see elm_all_flush()
84 EAPI Eina_Bool elm_cache_flush_enabled_get(void);
87 * Set the configured cache flush enabled state
89 * This sets the globally configured cache flush enabled state.
91 * @param enabled The cache flush enabled state
94 * @see elm_all_flush()
96 EAPI void elm_cache_flush_enabled_set(Eina_Bool enabled);
99 * Set the configured cache flush enabled state for all applications on the
102 * This sets the globally configured cache flush enabled state for all
103 * applications on the display.
105 * @param enabled The cache flush enabled state
108 // XXX: deprecate and replace with elm_config_all_flush()
109 EAPI void elm_cache_flush_enabled_all_set(Eina_Bool enabled);
112 * Get the configured font cache size
114 * This gets the globally configured font cache size, in bytes.
116 * @return The font cache size
119 EAPI int elm_font_cache_get(void);
122 * Set the configured font cache size
124 * This sets the globally configured font cache size, in bytes
126 * @param size The font cache size
129 EAPI void elm_font_cache_set(int size);
132 * Set the configured font cache size for all applications on the
135 * This sets the globally configured font cache size -- in bytes
136 * -- for all applications on the display.
138 * @param size The font cache size
141 // XXX: deprecate and replace with elm_config_all_flush()
142 EAPI void elm_font_cache_all_set(int size);
145 * Get the configured image cache size
147 * This gets the globally configured image cache size, in bytes
149 * @return The image cache size
152 EAPI int elm_image_cache_get(void);
155 * Set the configured image cache size
157 * This sets the globally configured image cache size, in bytes
159 * @param size The image cache size
162 EAPI void elm_image_cache_set(int size);
165 * Set the configured image cache size for all applications on the
168 * This sets the globally configured image cache size -- in bytes
169 * -- for all applications on the display.
171 * @param size The image cache size
174 // XXX: deprecate and replace with elm_config_all_flush()
175 EAPI void elm_image_cache_all_set(int size);
178 * Get the configured edje file cache size.
180 * This gets the globally configured edje file cache size, in number
183 * @return The edje file cache size
186 EAPI int elm_edje_file_cache_get(void);
189 * Set the configured edje file cache size
191 * This sets the globally configured edje file cache size, in number
194 * @param size The edje file cache size
197 EAPI void elm_edje_file_cache_set(int size);
200 * Set the configured edje file cache size for all applications on the
203 * This sets the globally configured edje file cache size -- in number
204 * of files -- for all applications on the display.
206 * @param size The edje file cache size
209 // XXX: deprecate and replace with elm_config_all_flush()
210 EAPI void elm_edje_file_cache_all_set(int size);
213 * Get the configured edje collections (groups) cache size.
215 * This gets the globally configured edje collections cache size, in
216 * number of collections.
218 * @return The edje collections cache size
221 EAPI int elm_edje_collection_cache_get(void);
224 * Set the configured edje collections (groups) cache size
226 * This sets the globally configured edje collections cache size, in
227 * number of collections.
229 * @param size The edje collections cache size
232 EAPI void elm_edje_collection_cache_set(int size);
235 * Set the configured edje collections (groups) cache size for all
236 * applications on the display
238 * This sets the globally configured edje collections cache size -- in
239 * number of collections -- for all applications on the display.
241 * @param size The edje collections cache size
244 // XXX: deprecate and replace with elm_config_all_flush()
245 EAPI void elm_edje_collection_cache_all_set(int size);
247 EAPI void elm_cache_all_flush(void);
248 >>>>>>> remotes/origin/upstream