API 参考
正在准备搜索索引…

ImGui.ListClipper_IncludeItemByIndex

  • 让列表裁剪器包含指定条目,不受可见性限制。

    参数

    self

    此方法操作的 ImGuiListClipper 句柄。

    item_index
    number

    要包含或定位到的从零开始的项索引,须在裁剪器项数范围内。

    返回值

    void

    如需让项目不受可见性限制而始终包含在裁剪结果中,请在首次 ListClipper_Step(self) 之前调用 ListClipper_IncludeItemByIndex(self, item_index) 或 ListClipper_IncludeItemsByIndex(self, item_begin, item_end)。

    (由于某些项目的对齐/内边距,显示范围的任一端可能额外包含一个项目。)

    源码与继承

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0