|
LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
|
Type-safe conversion utilities for wxWidgets API interactions. More...
#include <algorithm>#include <climits>#include <cstddef>#include <cstdint>#include <stdexcept>
Go to the source code of this file.
Namespaces | |
| namespace | wx_utils |
Functions | |
| long | wx_utils::to_wx_long (size_t value) noexcept |
| Safely convert size_t to long for wxWidgets APIs. | |
| int | wx_utils::to_wx_int (size_t value) noexcept |
| Safely convert size_t to int for wxWidgets APIs. | |
| unsigned int | wx_utils::to_wx_uint (size_t value) noexcept |
| Safely convert size_t to unsigned int for wxWidgets APIs. | |
| size_t | wx_utils::from_wx_long (long value) noexcept |
| Safely convert long to size_t. | |
| size_t | wx_utils::from_wx_int (int value) noexcept |
| Safely convert int to size_t. | |
| size_t | wx_utils::from_wx_uint (unsigned int value) noexcept |
| Safely convert unsigned int to size_t. | |
| unsigned int | wx_utils::int_to_uint (int value) noexcept |
| Safely convert int to unsigned int for wxWidgets APIs. | |
| int | wx_utils::uint_to_int (unsigned int value) noexcept |
| Safely convert unsigned int to int for wxWidgets APIs. | |
| int | wx_utils::to_model_index (size_t value) noexcept |
| Safely convert size_t to int for IModel interface. | |
| void | wx_utils::validate_int_range (size_t value) |
| Validate that a size_t value fits in an int. | |
| void | wx_utils::validate_long_range (size_t value) |
| Validate that a size_t value fits in a long. | |
Type-safe conversion utilities for wxWidgets API interactions.
This header provides helper functions to safely convert between standard C++ types (size_t, int) and wxWidgets-specific types (long, unsigned int) while avoiding compiler warnings and ensuring safety.