2010-10-27 12:30:13 +01: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:11:19 +00:00
|
|
|
|
2015-12-12 00:47:12 +02:00
|
|
|
#ifndef INCLUDED_VCL_INC_SPIN_HXX
|
|
|
|
#define INCLUDED_VCL_INC_SPIN_HXX
|
2007-04-11 17:11:19 +00:00
|
|
|
|
2015-05-06 12:51:15 +09:00
|
|
|
#include <vcl/window.hxx>
|
|
|
|
|
2017-03-30 20:27:55 +02:00
|
|
|
namespace tools { class Rectangle; }
|
2007-04-11 17:11:19 +00:00
|
|
|
|
2016-02-18 14:42:39 +00:00
|
|
|
// Draw Spinners as found in a SpinButton. Some themes like gtk3 will draw +- elements here,
|
|
|
|
// so these are only suitable in the context of SpinButtons
|
2015-05-06 12:51:15 +09:00
|
|
|
void ImplDrawSpinButton(vcl::RenderContext& rRenderContext, vcl::Window* pWindow,
|
2017-03-30 20:27:55 +02:00
|
|
|
const tools::Rectangle& rUpperRect, const tools::Rectangle& rLowerRect,
|
2015-05-06 12:51:15 +09:00
|
|
|
bool bUpperIn, bool bLowerIn, bool bUpperEnabled = true, bool bLowerEnabled = true,
|
|
|
|
bool bHorz = false, bool bMirrorHorz = false);
|
2007-04-11 17:11:19 +00:00
|
|
|
|
2016-02-18 14:42:39 +00:00
|
|
|
// Draw Up/Down buttons suitable for use in any context
|
|
|
|
void ImplDrawUpDownButtons(vcl::RenderContext& rRenderContext,
|
2017-03-30 20:27:55 +02:00
|
|
|
const tools::Rectangle& rUpperRect, const tools::Rectangle& rLowerRect,
|
2016-08-25 13:46:39 +02:00
|
|
|
bool bUpperIn, bool bLowerIn, bool bUpperEnabled, bool bLowerEnabled,
|
|
|
|
bool bHorz, bool bMirrorHorz = false);
|
2016-02-18 14:42:39 +00:00
|
|
|
|
|
|
|
|
2015-12-12 00:47:12 +02:00
|
|
|
#endif // INCLUDED_VCL_INC_SPIN_HXX
|
2010-10-27 12:30:13 +01:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|