panda3d.core.PGFrameStyle

from panda3d.core import PGFrameStyle
class PGFrameStyle

Inheritance diagram

Inheritance diagram of PGFrameStyle

__init__() → None
__init__(copy: PGFrameStyle) → None
assign(copy: PGFrameStyle) → PGFrameStyle
Return type

PGFrameStyle

setType(type: Type) → None

Sets the basic type of frame.

getType() → Type

Returns the basic type of frame.

Return type

Type

setColor(color: LColor) → None

Sets the dominant color of the frame.

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

Sets the dominant color of the frame.

getColor() → LColor

Returns the dominant color of the frame.

Return type

LColor

setTexture(texture: Texture) → None

Specifies a texture that should be applied to the frame.

hasTexture() → bool

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

getTexture() → Texture

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

Return type

Texture

clearTexture() → None

Removes the texture from the frame.

setWidth(width: LVecBase2) → None

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) → None

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.

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.

Return type

LVecBase2

setUvWidth(uv_width: LVecBase2) → None

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.

setUvWidth(u: float, v: float) → None

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.

getUvWidth() → LVecBase2

See setUvWidth().

Return type

LVecBase2

setVisibleScale(visible_scale: LVecBase2) → None

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) → None

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.

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.

Return type

LVecBase2

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.

Return type

LVecBase4

output(out: ostream) → None
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