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.
26 // XXX: rename: elm_cache_all_flush()
27 EAPI void elm_all_flush(void);
30 * Get the configured cache flush interval time
32 * This gets the globally configured cache flush interval time, in
35 * @return The cache flush interval time
38 * @see elm_all_flush()
40 EAPI int elm_cache_flush_interval_get(void);
43 * Set the configured cache flush interval time
45 * This sets the globally configured cache flush interval time, in ticks
47 * @param size The cache flush interval time
50 * @see elm_all_flush()
52 EAPI void elm_cache_flush_interval_set(int size);
55 * Set the configured cache flush interval time for all applications on the
58 * This sets the globally configured cache flush interval time -- in ticks
59 * -- for all applications on the display.
61 * @param size The cache flush interval time
64 // XXX: deprecate and replace with elm_config_all_flush()
65 EAPI void elm_cache_flush_interval_all_set(int size);
68 * Get the configured cache flush enabled state
70 * This gets the globally configured cache flush state - if it is enabled
71 * or not. When cache flushing is enabled, elementary will regularly
72 * (see elm_cache_flush_interval_get() ) flush caches and dump data out of
73 * memory and allow usage to re-seed caches and data in memory where it
74 * can do so. An idle application will thus minimize its memory usage as
75 * data will be freed from memory and not be re-loaded as it is idle and
76 * not rendering or doing anything graphically right now.
78 * @return The cache flush state
81 * @see elm_all_flush()
83 EAPI Eina_Bool elm_cache_flush_enabled_get(void);
86 * Set the configured cache flush enabled state
88 * This sets the globally configured cache flush enabled state.
90 * @param enabled The cache flush enabled state
93 * @see elm_all_flush()
95 EAPI void elm_cache_flush_enabled_set(Eina_Bool enabled);
98 * Set the configured cache flush enabled state for all applications on the
101 * This sets the globally configured cache flush enabled state for all
102 * applications on the display.
104 * @param enabled The cache flush enabled state
107 // XXX: deprecate and replace with elm_config_all_flush()
108 EAPI void elm_cache_flush_enabled_all_set(Eina_Bool enabled);
111 * Get the configured font cache size
113 * This gets the globally configured font cache size, in bytes.
115 * @return The font cache size
118 EAPI int elm_font_cache_get(void);
121 * Set the configured font cache size
123 * This sets the globally configured font cache size, in bytes
125 * @param size The font cache size
128 EAPI void elm_font_cache_set(int size);
131 * Set the configured font cache size for all applications on the
134 * This sets the globally configured font cache size -- in bytes
135 * -- for all applications on the display.
137 * @param size The font cache size
140 // XXX: deprecate and replace with elm_config_all_flush()
141 EAPI void elm_font_cache_all_set(int size);
144 * Get the configured image cache size
146 * This gets the globally configured image cache size, in bytes
148 * @return The image cache size
151 EAPI int elm_image_cache_get(void);
154 * Set the configured image cache size
156 * This sets the globally configured image cache size, in bytes
158 * @param size The image cache size
161 EAPI void elm_image_cache_set(int size);
164 * Set the configured image cache size for all applications on the
167 * This sets the globally configured image cache size -- in bytes
168 * -- for all applications on the display.
170 * @param size The image cache size
173 // XXX: deprecate and replace with elm_config_all_flush()
174 EAPI void elm_image_cache_all_set(int size);
177 * Get the configured edje file cache size.
179 * This gets the globally configured edje file cache size, in number
182 * @return The edje file cache size
185 EAPI int elm_edje_file_cache_get(void);
188 * Set the configured edje file cache size
190 * This sets the globally configured edje file cache size, in number
193 * @param size The edje file cache size
196 EAPI void elm_edje_file_cache_set(int size);
199 * Set the configured edje file cache size for all applications on the
202 * This sets the globally configured edje file cache size -- in number
203 * of files -- for all applications on the display.
205 * @param size The edje file cache size
208 // XXX: deprecate and replace with elm_config_all_flush()
209 EAPI void elm_edje_file_cache_all_set(int size);
212 * Get the configured edje collections (groups) cache size.
214 * This gets the globally configured edje collections cache size, in
215 * number of collections.
217 * @return The edje collections cache size
220 EAPI int elm_edje_collection_cache_get(void);
223 * Set the configured edje collections (groups) cache size
225 * This sets the globally configured edje collections cache size, in
226 * number of collections.
228 * @param size The edje collections cache size
231 EAPI void elm_edje_collection_cache_set(int size);
234 * Set the configured edje collections (groups) cache size for all
235 * applications on the display
237 * This sets the globally configured edje collections cache size -- in
238 * number of collections -- for all applications on the display.
240 * @param size The edje collections cache size
243 // XXX: deprecate and replace with elm_config_all_flush()
244 EAPI void elm_edje_collection_cache_all_set(int size);