PGFrameStyle

from panda3d.core import PGFrameStyle
class PGFrameStyle

Bases:

Inheritance diagram

Inheritance diagram of PGFrameStyle

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
__init__()
__init__(copy: PGFrameStyle)
assign(copy: PGFrameStyle) PGFrameStyle
clearTexture()

Removes the texture from the frame.

getColor() LColor

Returns the dominant color of the frame.

getInternalFrame(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.

getTexture() Texture

Returns the texture that has been applied to the frame, or NULL if no texture has been applied.

getType() Type

Returns the basic type of frame.

getUvWidth() LVecBase2

See setUvWidth().

getVisibleScale() 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.

getWidth() 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.

hasTexture() bool

Returns true if a texture has been applied to the frame.

output(out: ostream)
setColor(color: LColor)

Sets the dominant color of the frame.

setColor(r: float, g: float, b: float, a: float)

Sets the dominant color of the frame.

setTexture(texture: Texture)

Specifies a texture that should be applied to the frame.

setType(type: Type)

Sets the basic type of frame.

setUvWidth(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 setWidth().

setUvWidth(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 setWidth().

setVisibleScale(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.

setVisibleScale(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.

setWidth(width: LVecBase2)

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.

setWidth(x: float, y: float)

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.