Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
KW_Texture*KW_CreateTileFrameTexture(KW_RenderDriver* renderer, KW_Surface* tileset, int startcolumn, int startline, int w, int h, KW_bool stretchcenter, KW_bool stretchsides)