Panda3D
dynamicTextPage.I
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file dynamicTextPage.I
10  * @author drose
11  * @date 2002-02-09
12  */
13 
14 /**
15  * Returns the size of the page (texture), in pixels.
16  */
17 INLINE const LVecBase2i &DynamicTextPage::
18 get_size() const {
19  return _size;
20 }
21 
22 /**
23  * Returns the x size of the page (texture), in pixels.
24  */
25 INLINE int DynamicTextPage::
26 get_x_size() const {
27  return _size.get_x();
28 }
29 
30 /**
31  * Returns the y size of the page (texture), in pixels.
32  */
33 INLINE int DynamicTextPage::
34 get_y_size() const {
35  return _size.get_y();
36 }
37 
38 /**
39  * Returns true if the page has no glyphs, false otherwise.
40  */
41 INLINE bool DynamicTextPage::
42 is_empty() const {
43  return _glyphs.empty();
44 }