nux-0.9.48

Nux/Utils.h File Reference

Go to the source code of this file.

Data Structures

struct  nux::DrawAreaContext

Namespaces

namespace  nux

Defines

#define IN_BOUNDS(x, lo, hi)   ( (x) >= (lo) && (x) <= (hi) )
#define PT_IN_BOX(x, y, lo_x, hi_x, lo_y, hi_y)   ( IN_BOUNDS(x,lo_x,hi_x) && IN_BOUNDS(y,lo_y,hi_y) )

Typedefs

typedef Rect nux::Geometry

Enumerations

enum  nux::EventCycleStatus {
  nux::eSolveNone = (0L), nux::eMouseEventSolved = (1L), nux::eKeyEventSolved = (1L) << 1, nux::eDoNotProcess = (1L) << 2,
  nux::EVENT_CYCLE_EXCLUSIVE = (1L) << 3, nux::EVENT_CYCLE_EXCLUSIVE_CONTINUE = (1L) << 4, nux::EVENT_CYCLE_SOLVED = (1L) << 5, nux::EVENT_CYCLE_DO_NOT_PROCESS = (1L) << 6,
  nux::EVENT_CYCLE_RESET_AREA_STATE = (1L) << 7
}
enum  nux::PositionPolicy {
  nux::ePositionLeft, nux::ePositionRight, nux::ePositionCenter, nux::ePositionFull,
  nux::ePositionProportional
}
enum  nux::SizePolicy { nux::eSizeFixed, nux::eSizeResizeable }
enum  nux::ShapeCornerType {
  nux::eCornerNone = 0, nux::eCornerTopLeft = (1L), nux::eCornerTopRight = (1L << 1), nux::eCornerBottomLeft = (1L << 2),
  nux::eCornerBottomRight = (1L << 3), nux::eAllCorners = eCornerTopLeft | eCornerTopRight | eCornerBottomLeft | eCornerBottomRight
}
enum  nux::TextureAlignment {
  nux::eTACenter, nux::eTALeft, nux::eTARight, nux::eTATop,
  nux::eTABottom
}
enum  nux::VerticalAlignment { nux::eVACenter, nux::eVATop, nux::eVABottom }
enum  nux::HorizontalAlignment { nux::eHACenter, nux::eHALeft, nux::eHARight }

Functions

bool nux::IsMouseOwned ()

Define Documentation

#define IN_BOUNDS (   x,
  lo,
  hi 
)    ( (x) >= (lo) && (x) <= (hi) )
#define PT_IN_BOX (   x,
  y,
  lo_x,
  hi_x,
  lo_y,
  hi_y 
)    ( IN_BOUNDS(x,lo_x,hi_x) && IN_BOUNDS(y,lo_y,hi_y) )