/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #ifndef INCLUDED_VCL_INC_IMAGE_H #define INCLUDED_VCL_INC_IMAGE_H #include #include class SalGraphics; class ImplImage { private: BitmapChecksum maBitmapChecksum; /// if non-empty: cached original size of maStockName else Size of maBitmap Size maSizePixel; /// If set - defines the bitmap via images.zip* OUString maStockName; /// rare case of dynamically created Image contents std::unique_ptr mxMetaFile; /// Original bitmap - or cache of a potentially scaled bitmap BitmapEx maBitmapEx; BitmapEx maDisabledBitmapEx; bool loadStockAtScale(SalGraphics* pGraphics, BitmapEx &rBitmapEx); public: ImplImage(const BitmapEx& rBitmapEx); ImplImage(const GDIMetaFile& rMetaFile); ImplImage(OUString aStockName); bool isStock() const { return maStockName.getLength() > 0; } const OUString & getStock() const { return maStockName; } /// get size in co-ordinates not scaled for HiDPI Size getSizePixel(); /// Legacy - the original bitmap BitmapEx const & getBitmapEx(bool bDisabled = false); /// Taking account of HiDPI scaling BitmapEx const & getBitmapExForHiDPI(bool bDisabled, SalGraphics* pGraphics); bool isEqual(const ImplImage &ref) const; bool isSizeEmpty() const { return maSizePixel == Size(); } }; #endif // INCLUDED_VCL_INC_IMAGE_H /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ tro/collabora/co-2021'>distro/collabora/co-2021 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2023-09-19The name is macOS since 2016Andras Timar
2023-09-12attempt to fix macos jenkins hangs - part 3Patrick Luby
2023-09-10attempt to fix macos jenkins hangs - part 2Patrick Luby
2023-09-10attempt to fix macos jenkins hangsNoel Grandin
2023-06-26attempted fix for sporadic hang on macosNoel Grandin
2023-01-13Related: tdf#152703 Eliminate potential blocking during live resizePatrick Luby
2023-01-11rename BitmapEx::GetAlpha to GetAlphaMaskNoel Grandin
2022-12-22Fix typoAndrea Gelmini
2022-12-13tdf#151700 Display native print panel even if there are no printersPatrick Luby
2022-12-11Related: tdf#146842 Convert SkiaSalBitmap to QuartzSalBitmapPatrick Luby
2022-12-07tdf#151894 Pre-init NSSpellCHecker to avoid SolarMutex deadlockStephan Bergmann
2022-11-22use an alternative macOS themeing approach to support dark-modeCaolán McNamara
2022-09-19Rename MouseNotifyEvent to NotifyEventTypeSamuel Mehrbrodt
2021-10-29Use non-deprecated names for bits and constantsTor Lillqvist
2021-10-06drop 'using namespace std' in vcl (MacOs/ios), blindlyJulien Nabet
2021-09-28gives names to all the Idles and TasksNoel Grandin
2021-09-04tdf#144289 invert / disable default OpenGL supportJan-Marek Glogowski
2021-08-23Removed duplicated includesAndrea Gelmini
2021-08-23add CreateCGImage() variant for Mac/SkiaLuboš Luňák
2021-08-23first WIP version of mac skia SalGraphics backendLuboš Luňák
2021-04-26drop mask from BitmapExNoel Grandin
2021-03-28drop operator bool and operator! from Bitmap and BitmapExNoel
2021-03-03drop TransparentType::Color usageNoel Grandin
2021-01-27NSApplication's appearance property exists in macOS 10.14 and later onlyTor Lillqvist
2021-01-20Fix typosAndrea Gelmini
2021-01-17tdf#138122 Add window scaling for retina displays on macOSThorsten Wagner
2020-12-14Fix and clean up SalAbort implementations on macOS and WindowsStephan Bergmann
2020-06-26vcl: split off QueueInfo to own filesChris Sherlock
2020-01-06Removed redundant semicolonsAndrea Gelmini
2019-12-06loplugin:external (macOS)Stephan Bergmann
2019-11-15loplugin:fakebool and loplugin:consttobool (macOS)Stephan Bergmann
2019-11-01Workaround for crash on macOS Catalina at least when built with Xcode 11Tor Lillqvist