mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
operator bool
This commit is contained in:
parent
539737278b
commit
1fc71a28e8
@ -24,6 +24,17 @@ is_valid() const {
|
||||
return _is_valid;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: TextFont::operator bool
|
||||
// Access: Published
|
||||
// Description: Returns true if the font is valid and ready to use,
|
||||
// false otherwise.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE TextFont::
|
||||
operator bool () const {
|
||||
return is_valid();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: TextFont::get_line_height
|
||||
// Access: Published
|
||||
|
@ -70,6 +70,7 @@ PUBLISHED:
|
||||
|
||||
|
||||
INLINE bool is_valid() const;
|
||||
INLINE operator bool () const;
|
||||
INLINE float get_line_height() const;
|
||||
INLINE void set_line_height(float line_height);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user