Module: Imlib2::Cache

# Imlib2::Cache (Module)

In: | imlib2.c

## Methods

flush_font_cache font font= font_cache font_cache= get_font_cache get_image_cache image image= image_cache image_cache= set_font_cache set_image_cache

## Public Class methods

flush_font_cache()

Flush and return the new size (in bytes) of the application-wide font cache.

Example:

      new_size = Imlib2::Cache::flush_font_cache

font()

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

font=(p1)

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

font_cache()

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

font_cache=(p1)

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

get_font_cache()

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

get_image_cache()

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

image()

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

image=(p1)

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

image_cache()

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

image_cache=(p1)

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

set_font_cache(p1)

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

set_image_cache(p1)

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

[Validate]