PGFrameStyle
from panda3d.core import PGFrameStyle
- class PGFrameStyle
Bases:
DTOOL_SUPER_BASE
Inheritance diagram
- TBevelIn = 3
- TBevelOut = 2
- TFlat = 1
- TGroove = 4
- TNone = 0
- TRidge = 5
- TTextureBorder = 6
- T_bevel_in = 3
- T_bevel_out = 2
- T_flat = 1
- T_groove = 4
- T_none = 0
- T_ridge = 5
- T_texture_border = 6
- __init__(*args, **kwargs)
- assign()
C++ Interface: assign(const PGFrameStyle self, const PGFrameStyle copy)
- clearTexture()
C++ Interface: clear_texture(const PGFrameStyle self)
- /**
Removes the texture from the frame.
*/
- clear_texture()
C++ Interface: clear_texture(const PGFrameStyle self)
- /**
Removes the texture from the frame.
*/
- color
- getColor()
C++ Interface: get_color(PGFrameStyle self)
- /**
Returns the dominant color of the frame.
*/
- getInternalFrame()
C++ Interface: get_internal_frame(PGFrameStyle self, const LVecBase4f frame)
- /**
Computes the size of the internal frame, given the indicated external
frame, appropriate for this kind of frame style. This simply subtracts the
border width for those frame styles that include a border.
*/
- getTexture()
C++ Interface: get_texture(PGFrameStyle self)
- /**
Returns the texture that has been applied to the frame, or NULL if no
texture has been applied.
*/
- getVisibleScale()
C++ Interface: get_visible_scale(PGFrameStyle self)
- /**
Returns the scale factor on the visible representation of the frame, in the
X and Y directions. If this scale factor is other than 1, it will affect
the size of the visible frame representation within the actual frame
border.
*/
- getWidth()
C++ Interface: get_width(PGFrameStyle self)
- /**
Returns the width parameter, which has meaning only for certain frame
types. For instance, this is the width of the bevel for T_bevel_in or
T_bevel_out. The units are in screen units.
*/
- get_color()
C++ Interface: get_color(PGFrameStyle self)
- /**
Returns the dominant color of the frame.
*/
- get_internal_frame()
C++ Interface: get_internal_frame(PGFrameStyle self, const LVecBase4f frame)
- /**
Computes the size of the internal frame, given the indicated external
frame, appropriate for this kind of frame style. This simply subtracts the
border width for those frame styles that include a border.
*/
- get_texture()
C++ Interface: get_texture(PGFrameStyle self)
- /**
Returns the texture that has been applied to the frame, or NULL if no
texture has been applied.
*/
- get_visible_scale()
C++ Interface: get_visible_scale(PGFrameStyle self)
- /**
Returns the scale factor on the visible representation of the frame, in the
X and Y directions. If this scale factor is other than 1, it will affect
the size of the visible frame representation within the actual frame
border.
*/
- get_width()
C++ Interface: get_width(PGFrameStyle self)
- /**
Returns the width parameter, which has meaning only for certain frame
types. For instance, this is the width of the bevel for T_bevel_in or
T_bevel_out. The units are in screen units.
*/
- hasTexture()
C++ Interface: has_texture(PGFrameStyle self)
- /**
Returns true if a texture has been applied to the frame.
*/
- has_texture()
C++ Interface: has_texture(PGFrameStyle self)
- /**
Returns true if a texture has been applied to the frame.
*/
- setColor()
C++ Interface: set_color(const PGFrameStyle self, const LVecBase4f color) set_color(const PGFrameStyle self, float r, float g, float b, float a)
- setTexture()
C++ Interface: set_texture(const PGFrameStyle self, Texture texture)
- /**
Specifies a texture that should be applied to the frame.
*/
- setType()
C++ Interface: set_type(const PGFrameStyle self, int type)
- /**
Sets the basic type of frame.
*/
- setUvWidth()
C++ Interface: set_uv_width(const PGFrameStyle self, const LVecBase2f uv_width) set_uv_width(const PGFrameStyle self, float u, float v)
- /**
Sets the uv_width parameter, which indicates the amount of the texture that
is consumed by the inner bevel–the width in texture space of the amount
indicated by set_width.
*/
- /**
Sets the uv_width parameter, which indicates the amount of the texture that
is consumed by the inner bevel–the width in texture space of the amount
indicated by set_width.
*/
- setVisibleScale()
C++ Interface: set_visible_scale(const PGFrameStyle self, const LVecBase2f visible_scale) set_visible_scale(const PGFrameStyle self, float x, float y)
- /**
Sets a scale factor on the visible representation of the frame, in the X
and Y directions. If this scale factor is other than 1, it will affect the
size of the visible frame representation within the actual frame border.
*/
- /**
Sets a scale factor on the visible representation of the frame, in the X
and Y directions. If this scale factor is other than 1, it will affect the
size of the visible frame representation within the actual frame border.
*/
- setWidth()
C++ Interface: set_width(const PGFrameStyle self, const LVecBase2f width) set_width(const PGFrameStyle self, float x, float y)
- /**
Sets the width parameter, which has meaning only for certain frame types.
For instance, this is the width of the bevel for T_bevel_in or T_bevel_out.
The units are in screen units.
*/
- /**
Sets the width parameter, which has meaning only for certain frame types.
For instance, this is the width of the bevel for T_bevel_in or T_bevel_out.
The units are in screen units.
*/
- set_color()
C++ Interface: set_color(const PGFrameStyle self, const LVecBase4f color) set_color(const PGFrameStyle self, float r, float g, float b, float a)
- set_texture()
C++ Interface: set_texture(const PGFrameStyle self, Texture texture)
- /**
Specifies a texture that should be applied to the frame.
*/
- set_type()
C++ Interface: set_type(const PGFrameStyle self, int type)
- /**
Sets the basic type of frame.
*/
- set_uv_width()
C++ Interface: set_uv_width(const PGFrameStyle self, const LVecBase2f uv_width) set_uv_width(const PGFrameStyle self, float u, float v)
- /**
Sets the uv_width parameter, which indicates the amount of the texture that
is consumed by the inner bevel–the width in texture space of the amount
indicated by set_width.
*/
- /**
Sets the uv_width parameter, which indicates the amount of the texture that
is consumed by the inner bevel–the width in texture space of the amount
indicated by set_width.
*/
- set_visible_scale()
C++ Interface: set_visible_scale(const PGFrameStyle self, const LVecBase2f visible_scale) set_visible_scale(const PGFrameStyle self, float x, float y)
- /**
Sets a scale factor on the visible representation of the frame, in the X
and Y directions. If this scale factor is other than 1, it will affect the
size of the visible frame representation within the actual frame border.
*/
- /**
Sets a scale factor on the visible representation of the frame, in the X
and Y directions. If this scale factor is other than 1, it will affect the
size of the visible frame representation within the actual frame border.
*/
- set_width()
C++ Interface: set_width(const PGFrameStyle self, const LVecBase2f width) set_width(const PGFrameStyle self, float x, float y)
- /**
Sets the width parameter, which has meaning only for certain frame types.
For instance, this is the width of the bevel for T_bevel_in or T_bevel_out.
The units are in screen units.
*/
- /**
Sets the width parameter, which has meaning only for certain frame types.
For instance, this is the width of the bevel for T_bevel_in or T_bevel_out.
The units are in screen units.
*/
- texture
- type
- uv_width
- visible_scale
- width