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

Adds id,info,state to SquishyBox. Used in BoxSelector. More...

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

List of all members.

Public Member Functions

 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

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

Adds id,info,state to SquishyBox. Used in BoxSelector.

StrIconSelector, for instance, redefines this to also hold a label and an icon.


Member Data Documentation

unsigned int Laxkit::SelBox::state

Holds pointer state related to the box.

This will hold LAX_ON, LAX_OFF, LAX_GRAY, which is then or'd with LAX_MOUSEIN and LAX_CCUR. LAX_CCUR is used to indicate where key actions are directed to.

Referenced by Laxkit::IconSelector::drawbox(), Laxkit::BoxSelector::Event(), Laxkit::BoxSelector::MouseMove(), Laxkit::BoxSelector::SelectN(), and Laxkit::BoxSelector::togglebox().


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

Mon Feb 17 2014 11:52:59, Laxkit