Flags.h File Reference


Typedefs

typedef int Flags
typedef Flags Align

Enumerations

enum  {
  NO_FLAGS, ALIGN_TOP, ALIGN_BOTTOM, ALIGN_LEFT,
  ALIGN_RIGHT, ALIGN_CENTER, ALIGN_INSIDE, ALIGN_CLIP,
  ALIGN_WRAP, ALIGN_MASK, ALIGN_POSITIONMASK, ALIGN_TOPLEFT,
  ALIGN_BOTTOMLEFT, ALIGN_TOPRIGHT, ALIGN_BOTTOMRIGHT, ALIGN_CENTERLEFT,
  ALIGN_CENTERRIGHT, ALIGN_INSIDE_TOP, ALIGN_INSIDE_BOTTOM, ALIGN_INSIDE_LEFT,
  ALIGN_INSIDE_TOPLEFT, ALIGN_INSIDE_BOTTOMLEFT, ALIGN_INSIDE_RIGHT, ALIGN_INSIDE_TOPRIGHT,
  ALIGN_INSIDE_BOTTOMRIGHT, ALIGN_MENU, ALIGN_BROWSER, INACTIVE,
  OUTPUT, STATE, SELECTED, INVISIBLE,
  HIGHLIGHT, CHANGED, COPIED_LABEL, RAW_LABEL,
  LAYOUT_VERTICAL, TAB_TO_FOCUS, CLICK_TO_FOCUS, INACTIVE_R,
  FOCUSED, PUSHED, RESIZE_NONE, RESIZE_FIT,
  RESIZE_FILL, OPENED
}

Detailed Description


Typedef Documentation

typedef Flags Align
 

For back compatability with fltk1.1

typedef int Flags
 

Type returned by Widget::flags() and passed to Box and many other drawing functions.


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
ALIGN_TOP  Label is centered above widget.
ALIGN_BOTTOM  Label is centered below widget.
ALIGN_LEFT  Label is to left of widget.
ALIGN_RIGHT  Label is to right of widget.
ALIGN_CENTER  (0) The label is centered inside widget
ALIGN_INSIDE  Label is inside widget, image centered.
ALIGN_CLIP  The label is clipped to the widget.
ALIGN_WRAP  The label is word-wrapped.
ALIGN_MASK  Used to split align() from flags().
ALIGN_POSITIONMASK  Used to split align() from flags().
ALIGN_TOPLEFT  Label is left-justified above widget.
ALIGN_BOTTOMLEFT  Label is left-justified below widget.
ALIGN_TOPRIGHT  Label is right-justified above widget.
ALIGN_BOTTOMRIGHT  Label is right-justified below widget.
ALIGN_CENTERLEFT  Label is centered in space left of widget.
ALIGN_CENTERRIGHT  Label is centered in space left of widget.
ALIGN_INSIDE_TOP  Label is inside widget at top.
ALIGN_INSIDE_BOTTOM  Label is inside widget at bottom.
ALIGN_INSIDE_LEFT  Label is inside widget at left.
ALIGN_INSIDE_TOPLEFT  Label is inside widget at top left.
ALIGN_INSIDE_BOTTOMLEFT  Label is inside widget at bottom left.
ALIGN_INSIDE_RIGHT  Label is inside widget at right.
ALIGN_INSIDE_TOPRIGHT  Label is inside widget at top right.
ALIGN_INSIDE_BOTTOMRIGHT  Label is inside widget bottom right.
ALIGN_MENU  Label is inside widget bottom right.
ALIGN_BROWSER  Label is inside widget bottom right.
INACTIVE  !active()
OUTPUT  does not get events, draw text colors
STATE  state(), value() for buttons
SELECTED  chosen in browser/menu, draw selected colors
INVISIBLE  !visible(), draw_frame()
HIGHLIGHT  draw highlighted
CHANGED  value changed since last callback
COPIED_LABEL  copy_label() was called
RAW_LABEL  don't interpret & or @ in label
LAYOUT_VERTICAL  Pack puts this widget vertical.
TAB_TO_FOCUS  Widget::tab_to_focus();.
CLICK_TO_FOCUS  Widget::click_to_focus().
INACTIVE_R  draw it grayed-out
FOCUSED  draw with keyboard focus
PUSHED  draw pushed-in
RESIZE_NONE  default behavior
RESIZE_FIT  proportionnaly resize img in widget
RESIZE_FILL  resize img to fill the widget
OPENED  opened browser hierarchy parent


Sun Jan 7 00:55:16 2007. FLTK ©2006 Bill Spitzak and others.
Permission is granted to reproduce this manual or any portion for any purpose, provided this copyright and permission notice are preserved.