29class EXPCL_PANDA_PGUI PGFrameStyle {
31 INLINE PGFrameStyle();
32 INLINE PGFrameStyle(
const PGFrameStyle ©);
33 INLINE
void operator = (
const PGFrameStyle ©);
35 INLINE ~PGFrameStyle();
50 INLINE
void set_color(PN_stdfloat r, PN_stdfloat g, PN_stdfloat b, PN_stdfloat a);
51 INLINE
void set_color(
const LColor &color);
59 INLINE
void set_width(PN_stdfloat x, PN_stdfloat y);
60 INLINE
void set_width(
const LVecBase2 &width);
61 INLINE
const LVecBase2 &
get_width()
const;
73 void output(std::ostream &out)
const;
76 bool xform(
const LMatrix4 &mat);
81 PT(
PandaNode) generate_flat_geom(
const LVecBase4 &frame);
82 PT(
PandaNode) generate_bevel_geom(
const LVecBase4 &frame,
bool in);
83 PT(
PandaNode) generate_groove_geom(
const LVecBase4 &frame,
bool in);
84 PT(
PandaNode) generate_texture_border_geom(
const LVecBase4 &frame);
88 UnalignedLVecBase4 _color;
92 LVecBase2 _visible_scale;
95INLINE std::ostream &operator << (std::ostream &out,
const PGFrameStyle &pfs);
96std::ostream &operator << (std::ostream &out, PGFrameStyle::Type type);
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
void set_type(Type type)
Sets the basic type of frame.
bool xform(const LMatrix4 &mat)
Applies the indicated transform to the FrameStyle.
void set_texture(Texture *texture)
Specifies a texture that should be applied to the frame.
const LVecBase2 & get_visible_scale() const
Returns the scale factor on the visible representation of the frame, in the X and Y directions.
Type get_type() const
Returns the basic type of frame.
void set_visible_scale(PN_stdfloat x, PN_stdfloat y)
Sets a scale factor on the visible representation of the frame, in the X and Y directions.
LColor get_color() const
Returns the dominant color of the frame.
void set_uv_width(PN_stdfloat u, PN_stdfloat v)
Sets the uv_width parameter, which indicates the amount of the texture that is consumed by the inner ...
void set_color(PN_stdfloat r, PN_stdfloat g, PN_stdfloat b, PN_stdfloat a)
Sets the dominant color of the frame.
NodePath generate_into(const NodePath &parent, const LVecBase4 &frame, int sort=0)
Generates geometry representing a frame of the indicated size, and parents it to the indicated node,...
bool has_texture() const
Returns true if a texture has been applied to the frame.
LVecBase4 get_internal_frame(const LVecBase4 &frame) const
Computes the size of the internal frame, given the indicated external frame, appropriate for this kin...
const LVecBase2 & get_width() const
Returns the width parameter, which has meaning only for certain frame types.
void clear_texture()
Removes the texture from the frame.
Texture * get_texture() const
Returns the texture that has been applied to the frame, or NULL if no texture has been applied.
void set_width(PN_stdfloat x, PN_stdfloat y)
Sets the width parameter, which has meaning only for certain frame types.
const LVecBase2 & get_uv_width() const
See set_uv_width().
A basic node of the scene graph or data graph.
Represents a texture object, which is typically a single 2-d image but may also represent a 1-d or 3-...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.