[][src]Trait glk::traits::Unicode

pub trait Unicode {
    fn buffer_to_lower_case_uni(
        &mut self,
        buf: &mut [u32],
        numchars: u32
    ) -> u32;
fn buffer_to_upper_case_uni(
        &mut self,
        buf: &mut [u32],
        numchars: u32
    ) -> u32;
fn buffer_to_title_case_uni(
        &mut self,
        buf: &mut [u32],
        numchars: u32,
        lowerrest: u32
    ) -> u32;
fn put_char_uni(&mut self, ch: u32);
fn put_buffer_uni(&mut self, buf: &[u32]);
fn put_char_stream_uni(&mut self, str: strid_t, ch: u32);
fn put_buffer_stream_uni(&mut self, str: strid_t, buf: &[u32]);
fn get_char_stream_uni(&mut self, str: strid_t) -> i32;
fn get_buffer_stream_uni(&mut self, str: strid_t, buf: &mut [u32]) -> u32;
fn get_line_stream_uni(&mut self, str: strid_t, buf: &mut [u32]) -> u32;
fn stream_open_file_uni(
        &mut self,
        fileref: frefid_t,
        fmode: filemode,
        rock: u32
    ) -> strid_t;
fn stream_open_memory_uni(
        &mut self,
        buf: &mut RetainableBuffer<u32>,
        fmode: filemode,
        rock: u32
    ) -> strid_t;
fn request_char_event_uni(&mut self, win: winid_t);
fn request_line_event_uni(
        &mut self,
        win: winid_t,
        buf: &mut RetainableBuffer<u32>,
        initlen: u32
    ); }

GLK_MODULE_UNICODE

Required methods

fn buffer_to_lower_case_uni(&mut self, buf: &mut [u32], numchars: u32) -> u32

Convert a buffer to lower-case.

fn buffer_to_upper_case_uni(&mut self, buf: &mut [u32], numchars: u32) -> u32

Convert a buffer to upper-case.

fn buffer_to_title_case_uni(
    &mut self,
    buf: &mut [u32],
    numchars: u32,
    lowerrest: u32
) -> u32

Convert a buffer to title-case (effectively capitalizes the first letter of the buffer).

fn put_char_uni(&mut self, ch: u32)

Write one unicode character to current stream.

fn put_buffer_uni(&mut self, buf: &[u32])

Write a buffer of unicode characters to current stream.

  • @note put_string_uni ends up at this call too.

fn put_char_stream_uni(&mut self, str: strid_t, ch: u32)

Write unicode character to arbitrary stream.

fn put_buffer_stream_uni(&mut self, str: strid_t, buf: &[u32])

Write a buffer of unicode characters to arbitrary stream.

  • @note put_string_stream_uni ends up at this call too.

fn get_char_stream_uni(&mut self, str: strid_t) -> i32

Read one unicode character from a stream.

fn get_buffer_stream_uni(&mut self, str: strid_t, buf: &mut [u32]) -> u32

Read a buffer of unicode characters from a stream.

fn get_line_stream_uni(&mut self, str: strid_t, buf: &mut [u32]) -> u32

Read a line of unicode characters from a stream.

fn stream_open_file_uni(
    &mut self,
    fileref: frefid_t,
    fmode: filemode,
    rock: u32
) -> strid_t

Open a file in unicode mode.

fn stream_open_memory_uni(
    &mut self,
    buf: &mut RetainableBuffer<u32>,
    fmode: filemode,
    rock: u32
) -> strid_t

Open a memory stream in unicode mode. Each character is represented as a 32-bit integer.

fn request_char_event_uni(&mut self, win: winid_t)

Request a character input event returning unicode.

fn request_line_event_uni(
    &mut self,
    win: winid_t,
    buf: &mut RetainableBuffer<u32>,
    initlen: u32
)

Request a line input event returning unicode.

Loading content...

Implementors

Loading content...