Panda3D
Loading...
Searching...
No Matches
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 */
17INLINE const LVecBase2i &DynamicTextPage::
18get_size() const {
19 return _size;
20}
21
22/**
23 * Returns the x size of the page (texture), in pixels.
24 */
25INLINE int DynamicTextPage::
26get_x_size() const {
27 return _size.get_x();
28}
29
30/**
31 * Returns the y size of the page (texture), in pixels.
32 */
33INLINE int DynamicTextPage::
34get_y_size() const {
35 return _size.get_y();
36}
37
38/**
39 * Returns true if the page has no glyphs, false otherwise.
40 */
41INLINE bool DynamicTextPage::
42is_empty() const {
43 return _glyphs.empty();
44}