Skip to content

GlyphItemIter intialization #36

Closed
gtk-rs/pango
#161
@velyan

Description

@velyan

Hey 👋

I'm having some trouble using the GlyphItemIter interface. I can't figure out how to instantiate it.

The Pango interface suggests passing an uninitialized variable to pango_glyph_item_iter_init_start, but I'm not sure how to achieve this in Rust.

I tried making a fix by adding the following method to the GlyphItemIter impl block:

    pub fn new_start() -> GlyphItemIter {
        unsafe { GlyphItemIter(Boxed::uninitialized()) }
    }

but I get a panick with the message not yet implemented at runtime.

Any ideas what I might be missing?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions