14 #ifndef PGFRAMESTYLE_H 15 #define PGFRAMESTYLE_H 47 INLINE
void set_type(Type type);
48 INLINE Type get_type()
const;
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);
52 INLINE LColor get_color()
const;
54 INLINE
void set_texture(
Texture *texture);
55 INLINE
bool has_texture()
const;
56 INLINE
Texture *get_texture()
const;
57 INLINE
void clear_texture();
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;
63 INLINE
void set_uv_width(PN_stdfloat u, PN_stdfloat v);
64 INLINE
void set_uv_width(
const LVecBase2 &uv_width);
65 INLINE
const LVecBase2 &get_uv_width()
const;
67 INLINE
void set_visible_scale(PN_stdfloat x, PN_stdfloat y);
68 INLINE
void set_visible_scale(
const LVecBase2 &visible_scale);
69 INLINE
const LVecBase2 &get_visible_scale()
const;
71 LVecBase4 get_internal_frame(
const LVecBase4 &frame)
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;
95 INLINE std::ostream &operator << (std::ostream &out,
const PGFrameStyle &pfs);
96 std::ostream &operator << (std::ostream &out, PGFrameStyle::Type type);
A basic node of the scene graph or data graph.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...