> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# ImGuiWindow.SliderInt

> Adds an integer slider to the window. The label, value, minimum, and maximum arguments are required. When the user changes the slider, the callback receives the updated integer value.

<div className="real-function-page">
  ```lua theme={null}
  ImGuiWindow.SliderInt(window: ImGuiWindow, label: string, value: integer, minimum: integer, maximum: integer, onChange: (number) -> ()): ImGuiWindow
  ```

  ## Argumentos

  <ParamField path={"window"} type={"ImGuiWindow"} required>
    ImGuiWindow returned by imgui.create. If the object is invalid or has already been destroyed, the method raises a Lua error.
  </ParamField>

  <ParamField path={"label"} type={"string"} required>
    Slider label required to be a string.
  </ParamField>

  <ParamField path={"value"} type={"integer"} required>
    Initial slider value required to be an integer and stored as the current int value.
  </ParamField>

  <ParamField path={"minimum"} type={"integer"} required>
    Minimum value required to be an integer and passed to an integer slider.
  </ParamField>

  <ParamField path={"maximum"} type={"integer"} required>
    Maximum value required to be an integer and passed to an integer slider.
  </ParamField>

  <ParamField path={"onChange"} type={"(number) -> ()"} required>
    Callback called with the updated integer value when the slider changes.
  </ParamField>

  ## Retornos

  <ResponseField name={"window"} type={"ImGuiWindow"}>
    The same ImGuiWindow object, allowing chained method calls.
  </ResponseField>

  ## Tipos

  ### ImGuiWindow

  Identificador retornado por imgui.create. Os métodos de construção de controle retornam o mesmo identificador para que as chamadas possam ser encadeadas.

  | Name               | Type                                                                                                                                            | Required | Descrição                                                                                                    |
  | ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------ |
  | `Button`           | `(label: string, onClick: () -> ()) -> ImGuiWindow`                                                                                             | Yes      | Acrescenta um botão e invoca o retorno de chamada após um clique.                                            |
  | `Checkbox`         | `(label: string, checked: any, onChange: (boolean) -> ()) -> ImGuiWindow`                                                                       | Yes      | Acrescenta uma caixa de seleção inicializada no estado fornecido.                                            |
  | `CollapsingHeader` | `(label: string, content: (ImGuiWindow) -> ()) -> ImGuiWindow`                                                                                  | Yes      | Agrupa controles anexados pelo retorno de chamada de conteúdo abaixo de um cabeçalho recolhido.              |
  | `ColorPicker`      | `(label: string, red: number?, green: number?, blue: number?, alpha: number?, onChange: (number, number, number, number) -> ()) -> ImGuiWindow` | Yes      | Acrescenta um editor RGBA; os componentes de cores omitidos são padronizados como 1,0.                       |
  | `InputText`        | `(label: string, text: string?, onChange: (string) -> ()) -> ImGuiWindow`                                                                       | Yes      | Acrescenta uma entrada de texto de linha única; o texto inicial omitido é padronizado como uma string vazia. |
  | `SameLine`         | `() -> ImGuiWindow`                                                                                                                             | Yes      | Coloca o próximo controle na mesma linha.                                                                    |
  | `Separator`        | `() -> ImGuiWindow`                                                                                                                             | Yes      | Acrescenta um separador horizontal.                                                                          |
  | `SliderFloat`      | `(label: string, value: number, minimum: number, maximum: number, onChange: (number) -> ()) -> ImGuiWindow`                                     | Yes      | Acrescenta um controle deslizante de ponto flutuante.                                                        |
  | `SliderInt`        | `(label: string, value: integer, minimum: integer, maximum: integer, onChange: (number) -> ()) -> ImGuiWindow`                                  | Yes      | Acrescenta um controle deslizante inteiro.                                                                   |
  | `Text`             | `(text: string) -> ImGuiWindow`                                                                                                                 | Yes      | Acrescenta texto não interativo.                                                                             |
  | `destroy`          | `() -> ()`                                                                                                                                      | Yes      | Remove a janela e libera seus retornos de chamada registrados.                                               |
</div>
