Back to index

nux  3.0.0
Classes | Namespaces | Defines | Typedefs | Enumerations | Functions
Utils.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  nux::DrawAreaContext

Namespaces

namespace  nux
 The Writer singleton is responsible for controlling where the logging message go.

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 ()

Class Documentation

struct nux::DrawAreaContext

Definition at line 101 of file Utils.h.

Class Members
int height
int height_clipregion
int width
int width_clipregion
int x
int x_clipregion
int y
int y_clipregion

Define Documentation

#define IN_BOUNDS (   x,
  lo,
  hi 
)    ((x) >= (lo) && (x) <= (hi))

Definition at line 28 of file Utils.h.

#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))

Definition at line 33 of file Utils.h.