Tunning Functions

Tunning Functions. More...


Functions

void dfrm_setx (void *dfrm, int ind, int x)
 Sets the x-coordinate of an object.
void dfrm_sety (void *dfrm, int ind, int y)
 Sets the y-coordinate of an object.
void dfrm_setw (void *dfrm, int ind, int w)
 Sets the width of an object.
void dfrm_seth (void *dfrm, int ind, int h)
 Sets the height of an object.
void dfrm_setstate (void *dfrm, int ind, int state, int val)
 Sets the ob_state of an object.
void dfrm_setflags (void *dfrm, int ind, int flags, int val)
 Sets the ob_flags of an object.


Detailed Description

Tunning Functions.

Functions which place _exactly_ objects.


Function Documentation

void dfrm_setflags ( void *  dfrm,
int  ind,
int  flags,
int  val 
)

Sets the ob_flags of an object.

Parameters:
dfrm form pointer,
ind object index,
flags ob_flags to change,
val new value for ob_flags :
  • 0 set bits to 0,
  • 1 set bits to 1,
  • -1 inverse bits,

References dfrm_thumb::root.

Referenced by mt_dfrm_new_slider(), and mt_dfrm_thumb_add().

void dfrm_seth ( void *  dfrm,
int  ind,
int  h 
)

Sets the height of an object.

Parameters:
dfrm form pointer,
ind object index,
h new height (negative value is converted in semi-width of character text).

References dfrm_adjust_size().

Referenced by mt_dfrm_new_texture(), and mt_dfrm_thumb_add().

void dfrm_setstate ( void *  dfrm,
int  ind,
int  state,
int  val 
)

Sets the ob_state of an object.

Parameters:
dfrm form pointer,
ind object index,
state ob_state to change,
val new value for ob_state :
  • 0 set bits to 0,
  • 1 set bits to 1,
  • -1 inverse bits,

References dfrm_thumb::root.

Referenced by mt_dfrm_new_dmenu(), mt_dfrm_new_slider(), and mt_dfrm_new_texture().

void dfrm_setw ( void *  dfrm,
int  ind,
int  w 
)

Sets the width of an object.

Parameters:
dfrm form pointer,
ind object index,
w new width (negative value is converted in semi-width of character text).

References dfrm_adjust_size().

Referenced by mt_dfrm_new_texture().

void dfrm_setx ( void *  dfrm,
int  ind,
int  x 
)

Sets the x-coordinate of an object.

Parameters:
dfrm form pointer,
ind object index,
x new x-coordinate (negative value is converted in semi-width of character text).

References dfrm_adjust_size().

void dfrm_sety ( void *  dfrm,
int  ind,
int  y 
)

Sets the y-coordinate of an object.

Parameters:
dfrm form pointer,
ind object index,
y new y-coordinate (negative value is converted in semi-width of character text).

References dfrm_adjust_size().


Generated on Thu Dec 23 18:55:34 2010 for Dynamic Forms by  doxygen 1.5.8