QGIS API Documentation
3.43.0-Master (3ee7834ace6)
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
z
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Symbols
3
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
Files
File List
File Members
All
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
n
o
p
q
r
s
t
u
w
Typedefs
3
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
y
Loading...
Searching...
No Matches
src
core
layout
qgspagesizeregistry.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgspagesizeregistry.h
3
--------------------
4
begin : June 2017
5
copyright : (C) 2017 by Nyall Dawson
6
email : nyall dot dawson at gmail dot com
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#ifndef QGSPAGESIZEREGISTRY_H
19
#define QGSPAGESIZEREGISTRY_H
20
21
#include "
qgslayoutsize.h
"
22
#include <QString>
23
#include <QSizeF>
24
#include <QList>
25
31
class
CORE_EXPORT
QgsPageSize
32
{
33
34
public
:
35
36
QgsPageSize
();
37
42
QgsPageSize
(
const
QString &name,
const
QgsLayoutSize
&size,
const
QString &displayName = QString() );
43
47
QgsPageSize
(
const
QgsLayoutSize
&size );
48
50
QString
name
;
51
53
QgsLayoutSize
size
;
54
56
QString
displayName
;
57
58
bool
operator==
(
const
QgsPageSize
&other )
const
;
59
bool
operator!=
(
const
QgsPageSize
&other )
const
;
60
};
31
class
CORE_EXPORT
QgsPageSize
{
…
};
61
71
class
CORE_EXPORT
QgsPageSizeRegistry
72
{
73
public
:
74
78
QgsPageSizeRegistry
();
79
83
void
add(
const
QgsPageSize
&size );
84
88
QList< QgsPageSize > entries()
const
;
89
94
QList< QgsPageSize > find(
const
QString &name )
const
;
95
103
QString find(
const
QgsLayoutSize
&size )
const
;
104
110
bool
decodePageSize(
const
QString &
string
,
QgsPageSize
&size )
const
;
111
112
private
:
113
114
QList< QgsPageSize > mPageSizes;
115
};
71
class
CORE_EXPORT
QgsPageSizeRegistry
{
…
};
116
117
#endif
//QGSPAGESIZEREGISTRY_H
QgsLayoutSize
This class provides a method of storing sizes, consisting of a width and height, for use in QGIS layo...
Definition
qgslayoutsize.h:41
QgsPageSizeRegistry
A registry for known page sizes.
Definition
qgspagesizeregistry.h:72
QgsPageSize
A named page size for layouts.
Definition
qgspagesizeregistry.h:32
QgsPageSize::displayName
QString displayName
Translated page name.
Definition
qgspagesizeregistry.h:56
QgsPageSize::name
QString name
Name of page size.
Definition
qgspagesizeregistry.h:50
QgsPageSize::size
QgsLayoutSize size
Page size.
Definition
qgspagesizeregistry.h:53
operator==
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
Definition
qgsfeatureiterator.h:433
operator!=
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
Definition
qgsfeatureiterator.h:438
qgslayoutsize.h
Generated on Mon Mar 24 2025 21:55:38 for QGIS API Documentation by
1.9.8