Panda3D
panda
src
text
dynamicTextPage.I
1
// Filename: dynamicTextPage.I
2
// Created by: drose (09Feb02)
3
//
4
////////////////////////////////////////////////////////////////////
5
//
6
// PANDA 3D SOFTWARE
7
// Copyright (c) Carnegie Mellon University. All rights reserved.
8
//
9
// All use of this software is subject to the terms of the revised BSD
10
// license. You should have received a copy of this license along
11
// with this source code in a file named "LICENSE."
12
//
13
////////////////////////////////////////////////////////////////////
14
15
16
////////////////////////////////////////////////////////////////////
17
// Function: DynamicTextPage::get_x_size
18
// Access: Published
19
// Description: Returns the x size of the page (texture), in pixels.
20
////////////////////////////////////////////////////////////////////
21
INLINE
int
DynamicTextPage::
22
get_x_size()
const
{
23
return
_x_size;
24
}
25
26
////////////////////////////////////////////////////////////////////
27
// Function: DynamicTextPage::get_y_size
28
// Access: Published
29
// Description: Returns the y size of the page (texture), in pixels.
30
////////////////////////////////////////////////////////////////////
31
INLINE
int
DynamicTextPage::
32
get_y_size()
const
{
33
return
_y_size;
34
}
35
36
37
////////////////////////////////////////////////////////////////////
38
// Function: DynamicTextPage::is_empty
39
// Access: Published
40
// Description: Returns true if the page has no glyphs, false
41
// otherwise.
42
////////////////////////////////////////////////////////////////////
43
INLINE
bool
DynamicTextPage::
44
is_empty()
const
{
45
return
_glyphs.empty();
46
}
Generated on Wed May 17 2017 23:47:16 for Panda3D by
1.8.13