Panda3D
|
#include <pandadoc.hpp>
Public Types | |
enum | Type { T_none = 0 , T_flat = 1 , T_bevel_out = 2 , T_bevel_in = 3 , T_groove = 4 , T_ridge = 5 , T_texture_border = 6 } |
Public Member Functions | |
__init__ () | |
__init__ (const PGFrameStyle copy) | |
clearTexture () | |
Removes the texture from the frame. More... | |
LColor | getColor () |
Returns the dominant color of the frame. More... | |
LVecBase4 | getInternalFrame (const LVecBase4 frame) |
Computes the size of the internal frame, given the indicated external frame, appropriate for this kind of frame style. More... | |
Texture | getTexture () |
Returns the texture that has been applied to the frame, or NULL if no texture has been applied. More... | |
PGFrameStyle::Type | getType () |
Returns the basic type of frame. More... | |
const LVecBase2 | getUvWidth () |
See set_uv_width(). More... | |
const LVecBase2 | getVisibleScale () |
Returns the scale factor on the visible representation of the frame, in the X and Y directions. More... | |
const LVecBase2 | getWidth () |
Returns the width parameter, which has meaning only for certain frame types. More... | |
bool | hasTexture () |
Returns true if a texture has been applied to the frame. More... | |
PGFrameStyle | operator= (const PGFrameStyle copy) |
output (Ostream out) | |
setColor (const LColor color) | |
Sets the dominant color of the frame. More... | |
setColor (float r, float g, float b, float a) | |
Sets the dominant color of the frame. More... | |
setTexture (Texture texture) | |
Specifies a texture that should be applied to the frame. More... | |
setType (PGFrameStyle::Type type) | |
Sets the basic type of frame. More... | |
setUvWidth (const LVecBase2 uv_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. More... | |
setUvWidth (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. More... | |
setVisibleScale (const LVecBase2 visible_scale) | |
Sets a scale factor on the visible representation of the frame, in the X and Y directions. More... | |
setVisibleScale (float x, float y) | |
Sets a scale factor on the visible representation of the frame, in the X and Y directions. More... | |
setWidth (const LVecBase2 width) | |
Sets the width parameter, which has meaning only for certain frame types. More... | |
setWidth (float x, float y) | |
Sets the width parameter, which has meaning only for certain frame types. More... | |
enum Type |
__init__ | ( | ) |
__init__ | ( | const PGFrameStyle | copy | ) |
clearTexture | ( | ) |
Removes the texture from the frame.
LColor getColor | ( | ) |
Returns the dominant color of the 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.
Texture getTexture | ( | ) |
Returns the texture that has been applied to the frame, or NULL if no texture has been applied.
PGFrameStyle::Type getType | ( | ) |
Returns the basic type of frame.
const LVecBase2 getUvWidth | ( | ) |
See set_uv_width().
const LVecBase2 getVisibleScale | ( | ) |
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.
const LVecBase2 getWidth | ( | ) |
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.
bool hasTexture | ( | ) |
Returns true if a texture has been applied to the frame.
PGFrameStyle operator= | ( | const PGFrameStyle | copy | ) |
output | ( | Ostream | out | ) |
setColor | ( | const LColor | color | ) |
Sets the dominant color of the frame.
setColor | ( | float | r, |
float | g, | ||
float | b, | ||
float | a | ||
) |
Sets the dominant color of the frame.
setTexture | ( | Texture | texture | ) |
Specifies a texture that should be applied to the frame.
setType | ( | PGFrameStyle::Type | type | ) |
Sets the basic type of frame.
setUvWidth | ( | const LVecBase2 | uv_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.
setUvWidth | ( | 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.
setVisibleScale | ( | const LVecBase2 | visible_scale | ) |
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 | ( | 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.
setWidth | ( | const LVecBase2 | width | ) |
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 | ( | 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.