Laxkit  0.0.7.1
Public Member Functions | Public Attributes
Laxkit::IconBox Class Reference

Internal node type for IconSelector. More...

Inheritance diagram for Laxkit::IconBox:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 IconBox (const char *nlabel, LaxImage *img, int nid)
virtual ~IconBox ()
 Destructor, deletes the label, and calls dec_count() on image and bwimage.
virtual int SetBox (const char *nlabel, LaxImage *img, LaxImage *bw)
 Set the label and images to the given label and images.
- Public Member Functions inherited from Laxkit::SelBox
 SelBox (int xx, int yy, int ww, int hh, int nid)
 SelBox (int nid=0)
- Public Member Functions inherited from Laxkit::SquishyBox
 SquishyBox (unsigned int nflags, int nx, int nw, int npw, int nws, int nwg, int nhalign, int nhgap, int ny, int nh, int nph, int nhs, int nhg, int nvalign, int nvgap)
 SquishyBox Constructor.
virtual int hideBox (int yeshide)
 hideBox(0) makes the box visible, otherwise, make it hidden. Returns state after call.
virtual int hidden ()
 Return whether the box is hidden or not.
virtual int WrapToExtent ()
 Sets this->pw,s,g/ph,s,g to be the sum of the metrics of the boxes in list.
virtual void sync (int xx, int yy, int ww, int hh)
 Sync the box to x,y,w,h.
virtual void sync ()
 Sync the box to the already set values of x,y,w,h.
virtual int x ()
virtual int w ()
virtual int pw ()
virtual int ws ()
virtual int wg ()
virtual int halign ()
virtual int hgap ()
virtual int y ()
virtual int h ()
virtual int ph ()
virtual int hs ()
virtual int hg ()
virtual int valign ()
virtual int vgap ()
virtual int x (int val)
virtual int w (int val)
virtual int pw (int val)
virtual int ws (int val)
virtual int wg (int val)
virtual int halign (int val)
virtual int hgap (int val)
virtual int y (int val)
virtual int h (int val)
virtual int ph (int val)
virtual int hs (int val)
virtual int hg (int val)
virtual int valign (int val)
virtual int vgap (int val)
virtual int fpenalty ()
virtual int fpenalty (int val)
virtual int lpenalty ()
virtual int lpenalty (int val)

Public Attributes

charlabel
LaxImageimage
LaxImagebwimage
- Public Attributes inherited from Laxkit::SelBox
unsigned int state
 Holds pointer state related to the box.
int info
 Extra information that might be useful for this box.
int id
 An identifying number for this particular box.
int mousecount
 How many mice are inside the box.
- Public Attributes inherited from Laxkit::SquishyBox
int m [14]
int pad
 Pad placed around a box, which can be where a bevel or window border would go.
int padinset
 Pad to inset the child boxes.
int fpen
 The penalty in the flow direction.
int lpen
 The penalty perpendicular to the flow direction.
unsigned long flags

Detailed Description

Internal node type for IconSelector.

Holds an icon, possibly a black and white version of the icon, and a label.


Constructor & Destructor Documentation

Laxkit::IconBox::IconBox ( const char nlabel,
LaxImage img,
int  nid 
)

Does NOT call inc_count() on img. Transfers pointer to image via SetBox().

References SetBox().


Member Function Documentation

int Laxkit::IconBox::SetBox ( const char nlabel,
LaxImage img,
LaxImage bw 
)
virtual

Set the label and images to the given label and images.

Return 0 on success. This does not alter the metric info.

Does NOT Call inc_count() on the new images, but DOES call dec_count() on the old image and bwimage.

References Laxkit::anObject::dec_count(), and makestr().

Referenced by IconBox().


The documentation for this class was generated from the following files:

Mon Feb 17 2014 11:52:59, Laxkit