org.codetome.zircon.internal.font.FontRegionCache.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zircon Show documentation
Show all versions of zircon Show documentation
Zircon is a terminal emulator which targets multiple GUI platforms and designed specifically for game developers.
The newest version!
package org.codetome.zircon.internal.font
import org.codetome.zircon.api.TextCharacter
import java.util.*
/**
* This cache is responsible for caching font regions. A font region is basically
* an image representing a character graphically.
*/
interface FontRegionCache {
/**
* Retrieves a font region by a [TextCharacter] if present.
*/
fun retrieveIfPresent(textCharacter: TextCharacter): Optional
/**
* Caches the given region for a [TextCharacter].
*/
fun store(textCharacter: TextCharacter, region: R)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy