ModelIndex.h 324 B

12345678910111213141516171819
  1. /*
  2. * Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. namespace WebView {
  8. struct ModelIndex {
  9. bool is_valid() const { return row != -1 && column != -1; }
  10. int row { -1 };
  11. int column { -1 };
  12. void const* internal_data { nullptr };
  13. };
  14. }