PGFrameStyle
from panda3d.core import PGFrameStyle
- class PGFrameStyle
Bases:
Inheritance diagram
-
enum Type
-
enumerator T_none = 0
-
enumerator T_flat = 1
-
enumerator T_bevel_out = 2
-
enumerator T_bevel_in = 3
-
enumerator T_groove = 4
-
enumerator T_ridge = 5
-
enumerator T_texture_border = 6
-
enumerator T_none = 0
- __init__()
- __init__(copy: PGFrameStyle)
- assign(copy: PGFrameStyle) PGFrameStyle
- clear_texture()
Removes the texture from the frame.
- get_internal_frame(frame: LVecBase4) LVecBase4
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() Texture
Returns the texture that has been applied to the frame, or NULL if no texture has been applied.
- get_type() Type
Returns the basic type of frame.
- get_uv_width() LVecBase2
See
set_uv_width()
.
- get_visible_scale() LVecBase2
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() LVecBase2
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.
- set_type(type: Type)
Sets the basic type of frame.
- set_uv_width(uv_width: LVecBase2)
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_uv_width(u: float, v: float)
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(visible_scale: LVecBase2)
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_visible_scale(x: float, y: float)
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.
-
enum Type