Blender
V4.3
source
blender
editors
interface
view2d_intern.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2023 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
11
#pragma once
12
13
#include "
DNA_vec_types.h
"
14
15
struct
bContext
;
16
struct
View2D
;
17
18
struct
View2DScrollers
{
19
/* focus bubbles */
20
int
vert_min
,
vert_max
;
/* vertical scroll-bar */
21
int
hor_min
,
hor_max
;
/* horizontal scroll-bar */
22
24
rcti
hor
,
vert
;
25
};
26
30
void
view2d_scrollers_calc
(
View2D
*v2d,
const
rcti
*mask_custom,
View2DScrollers
*r_scrollers);
31
35
void
view2d_totRect_set_resize
(
View2D
*v2d,
int
width,
int
height,
bool
resize);
36
37
bool
view2d_edge_pan_poll
(
bContext
*C);
38
43
float
view2d_page_size_y
(
const
View2D
&v2d);
DNA_vec_types.h
View2DScrollers
Definition
view2d_intern.hh:18
View2DScrollers::hor
rcti hor
Definition
view2d_intern.hh:24
View2DScrollers::vert_min
int vert_min
Definition
view2d_intern.hh:20
View2DScrollers::vert
rcti vert
Definition
view2d_intern.hh:24
View2DScrollers::vert_max
int vert_max
Definition
view2d_intern.hh:20
View2DScrollers::hor_min
int hor_min
Definition
view2d_intern.hh:21
View2DScrollers::hor_max
int hor_max
Definition
view2d_intern.hh:21
View2D
Definition
DNA_view2d_types.h:16
bContext
Definition
blenkernel/intern/context.cc:61
rcti
Definition
DNA_vec_types.h:68
view2d_totRect_set_resize
void view2d_totRect_set_resize(View2D *v2d, int width, int height, bool resize)
Definition
view2d.cc:973
view2d_page_size_y
float view2d_page_size_y(const View2D &v2d)
Definition
view2d.cc:77
view2d_scrollers_calc
void view2d_scrollers_calc(View2D *v2d, const rcti *mask_custom, View2DScrollers *r_scrollers)
Definition
view2d.cc:1386
view2d_edge_pan_poll
bool view2d_edge_pan_poll(bContext *C)
Definition
view2d_edge_pan.cc:32
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0