2010-10-14 08:27:31 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-06-21 14:30:25 +01:00
|
|
|
/*
|
|
|
|
* 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 .
|
|
|
|
*/
|
2007-04-11 17:07:19 +00:00
|
|
|
|
2013-10-23 19:10:20 +02:00
|
|
|
#ifndef INCLUDED_VCL_SALGTYPE_HXX
|
|
|
|
#define INCLUDED_VCL_SALGTYPE_HXX
|
2007-04-11 17:07:19 +00:00
|
|
|
|
2015-10-16 17:15:50 -05:00
|
|
|
#include <sal/types.h>
|
2016-05-10 09:55:14 +02:00
|
|
|
#include <o3tl/typed_flags_set.hxx>
|
2018-03-14 11:11:02 +02:00
|
|
|
#include <tools/color.hxx>
|
2015-10-16 17:15:50 -05:00
|
|
|
|
2015-11-19 11:51:47 +00:00
|
|
|
enum class DeviceFormat {
|
|
|
|
NONE = -1,
|
|
|
|
DEFAULT = 0,
|
|
|
|
BITMASK = 1,
|
|
|
|
#ifdef IOS
|
|
|
|
GRAYSCALE = 8
|
|
|
|
#endif
|
|
|
|
};
|
2015-11-17 13:03:23 +00:00
|
|
|
|
2018-03-14 11:11:02 +02:00
|
|
|
constexpr ::Color SALCOLOR_NONE ( 0xFF, 0xFF, 0xFF, 0xFF );
|
2007-04-11 17:07:19 +00:00
|
|
|
|
|
|
|
// must equal to class Point
|
|
|
|
struct SalPoint
|
|
|
|
{
|
2018-04-07 11:45:13 +02:00
|
|
|
long mnX;
|
|
|
|
long mnY;
|
2007-04-11 17:07:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef const SalPoint* PCONSTSALPOINT;
|
|
|
|
|
|
|
|
struct SalTwoRect
|
|
|
|
{
|
2018-04-07 11:45:13 +02:00
|
|
|
long mnSrcX;
|
|
|
|
long mnSrcY;
|
|
|
|
long mnSrcWidth;
|
|
|
|
long mnSrcHeight;
|
|
|
|
long mnDestX;
|
|
|
|
long mnDestY;
|
|
|
|
long mnDestWidth;
|
|
|
|
long mnDestHeight;
|
2014-11-20 14:14:30 +01:00
|
|
|
|
2018-04-07 11:45:13 +02:00
|
|
|
SalTwoRect(long nSrcX, long nSrcY, long nSrcWidth, long nSrcHeight,
|
|
|
|
long nDestX, long nDestY, long nDestWidth, long nDestHeight)
|
2014-11-24 10:10:11 +00:00
|
|
|
: mnSrcX(nSrcX), mnSrcY(nSrcY), mnSrcWidth(nSrcWidth), mnSrcHeight(nSrcHeight)
|
|
|
|
, mnDestX(nDestX), mnDestY(nDestY), mnDestWidth(nDestWidth), mnDestHeight(nDestHeight)
|
2014-11-20 14:14:30 +01:00
|
|
|
{
|
|
|
|
}
|
2007-04-11 17:07:19 +00:00
|
|
|
};
|
|
|
|
|
2016-05-10 09:47:59 +02:00
|
|
|
enum class SalROPColor {
|
|
|
|
N0, N1, Invert
|
|
|
|
};
|
2007-04-11 17:07:19 +00:00
|
|
|
|
2016-05-10 09:55:14 +02:00
|
|
|
enum class SalInvert {
|
|
|
|
NONE = 0x00,
|
|
|
|
Highlight = 0x01,
|
|
|
|
N50 = 0x02,
|
|
|
|
TrackFrame = 0x04
|
|
|
|
};
|
|
|
|
namespace o3tl
|
|
|
|
{
|
|
|
|
template<> struct typed_flags<SalInvert> : is_typed_flags<SalInvert, 0x07> {};
|
|
|
|
}
|
2007-04-11 17:07:19 +00:00
|
|
|
|
2013-10-23 19:10:20 +02:00
|
|
|
#endif // INCLUDED_VCL_SALGTYPE_HXX
|
2010-10-14 08:27:31 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|