struct ImGui::ImFontGlyphRangesBuilder

Overview

struct ImFontGlyphRangesBuilder

Included Modules

Defined in:

obj.cr
types.cr

Constructors

Instance Method Summary

Instance methods inherited from module ImGui::StructType

to_unsafe to_unsafe

Constructor Detail

def self.new(used_chars : LibImGui::ImVectorInternal) #

[View source]
def self.new : ImFontGlyphRangesBuilder #

[View source]

Instance Method Detail

def add_char(c : ImWchar) : Void #

[View source]
def add_ranges(ranges : Pointer(ImWchar)) : Void #

Add ranges, e.g. builder.AddRanges(ImFontAtlas::GetGlyphRangesDefault()) to force add all of ASCII/Latin+Ext

ImFontGlyphRangesBuilder::AddRanges()


[View source]
def add_text(text : Bytes | String) : Void #

Add string (each character of the UTF-8 string are added)

ImFontGlyphRangesBuilder::AddText()


[View source]
def build_ranges : ImVector #

[View source]
def clear : Void #

[View source]
def get_bit(n : LibC::SizeT) : Bool #

Get bit n in the array

ImFontGlyphRangesBuilder::GetBit()


[View source]
def set_bit(n : LibC::SizeT) : Void #

Set bit n in the array

ImFontGlyphRangesBuilder::SetBit()


[View source]
def used_chars : ImVector(UInt32) #

Store 1-bit per Unicode code point (0=unused, 1=used)


[View source]
def used_chars=(used_chars : LibImGui::ImVectorInternal) #

[View source]
def used_chars=(used_chars : ImVector(UInt32)) #

[View source]