Bump version to 24.04.3.4
[LibreOffice.git] / libreofficekit / qa / gtktiledviewer / gtv-calc-header-bar.hxx
bloba1a4d37a31cfe52b35c6ae8f8fe302fbc400087f
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #ifndef GTV_CALC_HEADER_BAR_H
11 #define GTV_CALC_HEADER_BAR_H
13 #include <gtk/gtk.h>
15 #include <boost/property_tree/ptree_fwd.hpp>
17 G_BEGIN_DECLS
19 #define GTV_TYPE_CALC_HEADER_BAR (gtv_calc_header_bar_get_type())
20 #define GTV_CALC_HEADER_BAR(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GTV_TYPE_CALC_HEADER_BAR, GtvCalcHeaderBar))
21 #define GTV_IS_CALC_HEADER_BAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GTV_TYPE_CALC_HEADER_BAR))
22 #define GTV_CALC_HEADER_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GTV_TYPE_CALC_HEADER_BAR, GtvCalcHeaderBarClass))
23 #define GTV_IS_CALC_HEADER_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GTV_TYPE_CALC_HEADER_BAR))
24 #define GTV_CALC_HEADER_BAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTV_TYPE_CALC_HEADER_BAR, GtvCalcHeaderBarClass))
26 struct GtvCalcHeaderBar
28 GtkDrawingArea parent;
29 /// Height for row bar, width for column bar.
30 int m_nSizePixel;
31 /// Left/top position for the column/row bar -- initially 0, then may grow due to scrolling.
32 int m_nPositionPixel;
35 struct GtvCalcHeaderBarClass
37 GtkDrawingAreaClass parentClass;
40 GType gtv_calc_header_bar_get_type (void) G_GNUC_CONST;
42 enum CalcHeaderType { ROW, COLUMN, CORNER, NONE };
44 GtkWidget* gtv_calc_header_bar_new();
46 void gtv_calc_header_bar_configure(GtvCalcHeaderBar* bar, const boost::property_tree::ptree* values);
48 int gtv_calc_header_bar_get_pos_pixel(GtvCalcHeaderBar* bar);
50 int gtv_calc_header_bar_get_size_pixel(GtvCalcHeaderBar* bar);
52 void gtv_calc_header_bar_set_type_and_width(GtvCalcHeaderBar* bar, CalcHeaderType eType);
54 G_END_DECLS
56 #endif /* GTV_CALC_HEADER_BAR_H */
58 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */