Flush and return the new size (in bytes) of the application-wide font cache.
Example:
new_size = Imlib2::Cache::flush_font_cache
static VALUE cache_flush_font(VALUE klass) {
imlib_flush_font_cache();
return cache_font(klass);
}
Return the size (in bytes) of the application-wide font cache.
Examples:
size = Imlib2::Cache::get_font_cache size = Imlib2::Cache::font_cache size = Imlib2::Cache::font
static VALUE cache_font(VALUE klass) {
UNUSED(klass);
return INT2FIX(imlib_get_font_cache_size());
}
Set the size (in bytes) of the application-wide font cache. Examples:
new_size = 8 * 1024 ** 2 # 8 megabytes Imlib2::Cache::set_font_cache new_size new_size = 8 * 1024 ** 2 # 8 megabytes Imlib2::Cache::font_cache = new_size new_size = 8 * 1024 ** 2 # 8 megabytes Imlib2::Cache::font = new_size
static VALUE cache_set_font(VALUE klass, VALUE val) {
UNUSED(klass);
imlib_set_font_cache_size(NUM2INT(val));
return Qtrue;
}
Return the size (in bytes) of the application-wide font cache.
Examples:
size = Imlib2::Cache::get_font_cache size = Imlib2::Cache::font_cache size = Imlib2::Cache::font
static VALUE cache_font(VALUE klass) {
UNUSED(klass);
return INT2FIX(imlib_get_font_cache_size());
}
Set the size (in bytes) of the application-wide font cache. Examples:
new_size = 8 * 1024 ** 2 # 8 megabytes Imlib2::Cache::set_font_cache new_size new_size = 8 * 1024 ** 2 # 8 megabytes Imlib2::Cache::font_cache = new_size new_size = 8 * 1024 ** 2 # 8 megabytes Imlib2::Cache::font = new_size
static VALUE cache_set_font(VALUE klass, VALUE val) {
UNUSED(klass);
imlib_set_font_cache_size(NUM2INT(val));
return Qtrue;
}
Return the size (in bytes) of the application-wide font cache.
Examples:
size = Imlib2::Cache::get_font_cache size = Imlib2::Cache::font_cache size = Imlib2::Cache::font
static VALUE cache_font(VALUE klass) {
UNUSED(klass);
return INT2FIX(imlib_get_font_cache_size());
}
Return the size (in bytes) of the application-wide image cache.
Examples:
size = Imlib2::Cache::get_image_cache size = Imlib2::Cache::image_cache size = Imlib2::Cache::image
static VALUE cache_image(VALUE klass) {
UNUSED(klass);
return INT2FIX(imlib_get_cache_size());
}
Return the size (in bytes) of the application-wide image cache.
Examples:
size = Imlib2::Cache::get_image_cache size = Imlib2::Cache::image_cache size = Imlib2::Cache::image
static VALUE cache_image(VALUE klass) {
UNUSED(klass);
return INT2FIX(imlib_get_cache_size());
}
Set the size (in bytes) of the application-wide image cache.
Examples:
new_size = 16 * 1024 ** 2 # 16 megabytes Imlib2::Cache::set_image_cache new_size new_size = 16 * 1024 ** 2 # 16 megabytes Imlib2::Cache::image_cache = new_size new_size = 16 * 1024 ** 2 # 16 megabytes Imlib2::Cache::image = new_size
static VALUE cache_set_image(VALUE klass, VALUE val) {
UNUSED(klass);
imlib_set_cache_size(NUM2INT(val));
return Qtrue;
}
Return the size (in bytes) of the application-wide image cache.
Examples:
size = Imlib2::Cache::get_image_cache size = Imlib2::Cache::image_cache size = Imlib2::Cache::image
static VALUE cache_image(VALUE klass) {
UNUSED(klass);
return INT2FIX(imlib_get_cache_size());
}
Set the size (in bytes) of the application-wide image cache.
Examples:
new_size = 16 * 1024 ** 2 # 16 megabytes Imlib2::Cache::set_image_cache new_size new_size = 16 * 1024 ** 2 # 16 megabytes Imlib2::Cache::image_cache = new_size new_size = 16 * 1024 ** 2 # 16 megabytes Imlib2::Cache::image = new_size
static VALUE cache_set_image(VALUE klass, VALUE val) {
UNUSED(klass);
imlib_set_cache_size(NUM2INT(val));
return Qtrue;
}
Set the size (in bytes) of the application-wide font cache. Examples:
new_size = 8 * 1024 ** 2 # 8 megabytes Imlib2::Cache::set_font_cache new_size new_size = 8 * 1024 ** 2 # 8 megabytes Imlib2::Cache::font_cache = new_size new_size = 8 * 1024 ** 2 # 8 megabytes Imlib2::Cache::font = new_size
static VALUE cache_set_font(VALUE klass, VALUE val) {
UNUSED(klass);
imlib_set_font_cache_size(NUM2INT(val));
return Qtrue;
}
Set the size (in bytes) of the application-wide image cache.
Examples:
new_size = 16 * 1024 ** 2 # 16 megabytes Imlib2::Cache::set_image_cache new_size new_size = 16 * 1024 ** 2 # 16 megabytes Imlib2::Cache::image_cache = new_size new_size = 16 * 1024 ** 2 # 16 megabytes Imlib2::Cache::image = new_size
static VALUE cache_set_image(VALUE klass, VALUE val) {
UNUSED(klass);
imlib_set_cache_size(NUM2INT(val));
return Qtrue;
}
Generated with the Darkfish Rdoc Generator 2.