Skip to content

Request: Function to retrieve bounds of window contents, pre-clipping. #694

@StrikerTheHedgefox

Description

@StrikerTheHedgefox

nk_window_get_content_region almost does what I need, but it unfortunately doesn't count any overspill if the content is larger than the window, meaning it caps out at the window size.

I need a version of this function that would allow me to get the real bounds of the content. It doesn't appear that Nuklear currently has a function that does this, and I'm unable to accurately calculate the width/height I need to perfectly resize the window to fit the inner contents without need of a scrollbar.

I'm trying to do this, essentially (this is buggy/broken code, just used to make an approximate mockup of what I'd use it for): https://shadowmavericks.com/files/ShareX/tfury_2024-09-20_16-25-29.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions