Files
wxExtend/include/wxex/icon.h
Simon Rozman fd16ef2909 Add wxIconEx
This simplifies loading DPI-aware icons.

Signed-off-by: Simon Rozman <simon@rozman.si>
2025-11-04 15:48:19 +01:00

28 lines
576 B
C++
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
SPDX-License-Identifier: GPL-3.0-or-later
Copyright © 2025 Amebis
*/
#pragma once
#include "common.h"
#include <codeanalysis\warnings.h>
#pragma warning(push)
#pragma warning(disable: WXWIDGETS_CODE_ANALYSIS_WARNINGS)
#include <wx/msw/icon.h>
#pragma warning(pop)
///
/// Icon for DPI aware applications
///
class wxIconEx : public wxIcon
{
public:
wxIconEx(const wxString& name,
wxBitmapType type = wxICON_DEFAULT_TYPE,
int desiredWidth = -1, int desiredHeight = -1,
wxWindowBase *window = nullptr);
};