Skip to content

gui_scroll_panel without title bar #23

Description

@zisuyriz

In the C version of raygui, some functions like GuiPanel and GuiScrollPanel allow passing NULL for the text parameter, in which case it won't draw the title bar of the panel.

I'd like to use gui_scroll_panel in the V version without a title bar but the text parameter is a string so it doesn't seem possible. Passing an empty string draws an empty title bar instead of not drawing it at all.

My current workaround is to create a new function:

fn gui_scroll_panel_no_title(bounds raylib.Rectangle, content raylib.Rectangle, scroll &raylib.Vector2, view &raylib.Rectangle) int {
	return C.GuiScrollPanel(bounds, &char(0), content, scroll, view)
}

Is there a better way to do it?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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