struct ImGui::ImFontAtlas

Included Modules

Defined in:

obj.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new : ImFontAtlas #

[View source]

Instance Method Detail

def add_custom_rect_font_glyph(font : ImFont, id : ImWchar, width : Int32, height : Int32, advance_x : Float32, offset : ImVec2 = ImVec2.new(0, 0)) : Int32 #

[View source]
def add_custom_rect_regular(width : Int32, height : Int32) : Int32 #

[View source]
def add_font(font_cfg : ImFontConfig) : ImFont #

[View source]
def add_font_default(font_cfg : ImFontConfig | Nil = nil) : ImFont #

[View source]
def add_font_from_file_ttf(filename : String, size_pixels : Float32, font_cfg : ImFontConfig | Nil = nil, glyph_ranges : Pointer(ImWchar) = Pointer(ImWchar).null) : ImFont #

[View source]
def add_font_from_memory_compressed_base85_ttf(compressed_font_data_base85 : String, size_pixels : Float32, font_cfg : ImFontConfig | Nil = nil, glyph_ranges : Pointer(ImWchar) = Pointer(ImWchar).null) : ImFont #

[View source]
def add_font_from_memory_compressed_ttf(compressed_font_data : Pointer(Void), compressed_font_data_size : Int32, size_pixels : Float32, font_cfg : ImFontConfig | Nil = nil, glyph_ranges : Pointer(ImWchar) = Pointer(ImWchar).null) : ImFont #

[View source]
def add_font_from_memory_ttf(font_data : Pointer(Void), font_data_size : Int32, size_pixels : Float32, font_cfg : ImFontConfig | Nil = nil, glyph_ranges : Pointer(ImWchar) = Pointer(ImWchar).null) : ImFont #

[View source]
def build : Bool #

[View source]
def calc_custom_rect_uv(rect : ImFontAtlasCustomRect) : Tuple(ImGui::ImVec2, ImGui::ImVec2) #

[View source]
def clear : Void #

[View source]
def clear_fonts : Void #

[View source]
def clear_input_data : Void #

[View source]
def clear_tex_data : Void #

[View source]
def config_data : ImVector(LibImGui::ImFontConfig) #

[View source]
def config_data=(config_data : ImVector(LibImGui::ImFontConfig)) #

[View source]
def custom_rects : ImVector(LibImGui::ImFontAtlasCustomRect) #

[View source]
def custom_rects=(custom_rects : ImVector(LibImGui::ImFontAtlasCustomRect)) #

[View source]
def flags : ImFontAtlasFlags #

[View source]
def flags=(flags : ImFontAtlasFlags) #

[View source]
def font_builder_flags : UInt32 #

[View source]
def font_builder_flags=(font_builder_flags : UInt32) #

[View source]
def font_builder_io : ImFontBuilderIO | Nil #

[View source]
def font_builder_io=(font_builder_io : ImFontBuilderIO | Nil) #

[View source]
def fonts : ImVector(ImFont) #

[View source]
def fonts=(fonts : ImVector(ImFont)) #

[View source]
def get_custom_rect_by_index(index : Int32) : ImFontAtlasCustomRect #

[View source]
def get_glyph_ranges_chinese_full : Pointer(ImWchar) #

[View source]
def get_glyph_ranges_chinese_simplified_common : Pointer(ImWchar) #

[View source]
def get_glyph_ranges_cyrillic : Pointer(ImWchar) #

[View source]
def get_glyph_ranges_default : Pointer(ImWchar) #

[View source]
def get_glyph_ranges_greek : Pointer(ImWchar) #

[View source]
def get_glyph_ranges_japanese : Pointer(ImWchar) #

[View source]
def get_glyph_ranges_korean : Pointer(ImWchar) #

[View source]
def get_glyph_ranges_thai : Pointer(ImWchar) #

[View source]
def get_glyph_ranges_vietnamese : Pointer(ImWchar) #

[View source]
def get_mouse_cursor_tex_data(cursor : ImGuiMouseCursor) : Tuple(Bool, ImGui::ImVec2, ImGui::ImVec2, Slice(ImGui::ImVec2), Slice(ImGui::ImVec2)) #

[View source]
def get_tex_data_as_alpha8 : Tuple(Pointer(LibC::UChar), LibC::Int, LibC::Int, LibC::Int) #

[View source]
def get_tex_data_as_rgba32 : Tuple(Pointer(LibC::UChar), LibC::Int, LibC::Int, LibC::Int) #

[View source]
def is_built : Bool #

[View source]
def locked : Bool #

[View source]
def locked=(locked : Bool) #

[View source]
def pack_id_lines : Int32 #

[View source]
def pack_id_lines=(pack_id_lines : Int32) #

[View source]
def pack_id_mouse_cursors : Int32 #

[View source]
def pack_id_mouse_cursors=(pack_id_mouse_cursors : Int32) #

[View source]
def set_tex_id(id : ImTextureID) : Void #

[View source]
def tex_desired_width : Int32 #

[View source]
def tex_desired_width=(tex_desired_width : Int32) #

[View source]
def tex_glyph_padding : Int32 #

[View source]
def tex_glyph_padding=(tex_glyph_padding : Int32) #

[View source]
def tex_height : Int32 #

[View source]
def tex_height=(tex_height : Int32) #

[View source]
def tex_id : ImTextureID #

[View source]
def tex_id=(tex_id : ImTextureID) #

[View source]
def tex_pixels_alpha8 : Pointer(LibC::UChar) #

[View source]
def tex_pixels_alpha8=(tex_pixels_alpha8 : Pointer(LibC::UChar)) #

[View source]
def tex_pixels_rgba32 : Pointer(UInt32) #

[View source]
def tex_pixels_rgba32=(tex_pixels_rgba32 : Pointer(UInt32)) #

[View source]
def tex_pixels_use_colors : Bool #

[View source]
def tex_pixels_use_colors=(tex_pixels_use_colors : Bool) #

[View source]
def tex_ready : Bool #

[View source]
def tex_ready=(tex_ready : Bool) #

[View source]
def tex_uv_lines : Slice(ImVec4) #

[View source]
def tex_uv_lines=(tex_uv_lines : Slice(ImVec4)) #

[View source]
def tex_uv_scale : ImVec2 #

[View source]
def tex_uv_scale=(tex_uv_scale : ImVec2) #

[View source]
def tex_uv_white_pixel : ImVec2 #

[View source]
def tex_uv_white_pixel=(tex_uv_white_pixel : ImVec2) #

[View source]
def tex_width : Int32 #

[View source]
def tex_width=(tex_width : Int32) #

[View source]
def to_unsafe : Pointer(T) #

[View source]
def user_data : Pointer(Void) #

[View source]
def user_data=(user_data : Pointer(Void)) #

[View source]