3 #if !defined __ZtObject_H
9 #include <zm/InfoLine.H>
12 #include <zm/ZPixelCoord.H>
13 #include <zm/ZNaturalCoord.H>
66 ZDimension dim, ZGroupId nid);
70 ZGroupId nxid, ZGroupId nyid);
89 Logic is_horizontal ()
const;
92 float x_p2n (
int pcoord)
const;
93 float y_p2n (
int pcoord)
const;
94 int x_n2p (
float ncoord)
const;
95 int y_n2p (
float ncoord)
const;
103 float nx[2],
float ny[2])
const;
105 int px[2],
int py[2])
const;
111 float cx[2],
float cy[2])
const;
147 virtual ZInputStatus
input (
const XEvent* xev);
150 virtual void show ();
153 virtual void hide ();
160 virtual Logic
belong (
int px,
int py)
const;
171 virtual const char*
class_id ()
const;
178 void wePutMsg (
int elevel,
const char* s);
181 void weFormatMsg (
int elevel,
const char* format, ...);
184 void put_msg (
int elevel,
const char* format, va_list val);
187 void format_msg (
int elevel,
const char* format, ...);
221 void construct (
ZtMain* pManager);
262 return !!seldom_flag;
272 return !!changes_flag;
294 return !!hidden_flag;
Logic is_vertical() const
ZNCoordSlave * pnx
Definition: ZtObject.H:225
ZtMain * get_manager() const
float belong_eps
Definition: ZtObject.H:207
ZNCoordSlave * pny
Definition: ZtObject.H:226
virtual ZInputStatus input(const XEvent *xev)
void wePutMsg(int elevel, const char *s)
virtual Logic belong(int px, int py) const
virtual void can_hear_events(Logic flag)
void set_info_lines(InfoLine *il)
virtual const char * class_id() const
InfoLine * get_info_lines() const
Definition: ZPixelCoord.H:102
ZNCoordSlave & nx() const
InfoLine * pInfoLine
Definition: ZtObject.H:198
Definition: InfoLine.H:51
Logic is_seldom_redraw() const
Definition: ZtObject.H:260
void seldom_redraw(Logic flag)
Logic clip_rect_by_rect(float rcx[2], float rcy[2]) const
Definition: ZtObject.H:57
void put_msg(int elevel, const char *format, va_list val)
ZtObject(ZtMain *pManager, ZGroupId pxid, ZGroupId pyid)
Logic is_hidden() const
Definition: ZtObject.H:292
virtual void extent_rect(ZRect &res)
Logic is_deaf() const
Definition: ZtObject.H:281
void weFormatMsg(int elevel, const char *format,...)
void format_msg(int elevel, const char *format,...)
ZPCoordSlave px
Definition: ZtObject.H:203
Definition: ZNaturalCoord.H:88
ZtMain * manager
Definition: ZtObject.H:228
virtual void prepare_xywh()
ZPCoordSlave py
Definition: ZtObject.H:204
Logic is_changed() const
Definition: ZtObject.H:270
Logic clip_line_by_rect(float sx[2], float sy[2]) const