guimaker Class Reference

file : ../lugre/lua/lib.guimaker.lua (this is just a pseudo class used for grouping global functions) More...

List of all members.

Static Public Member Functions

static mixed MakeSOC (mixed parent, mixed x, mixed y)
 sorted overlay container (keeps zorder from beeing optimized away by render-state sorting)
static mixed MakeRROC (mixed parent, mixed matname)
 robrenderable
static mixed MakeWidgetFromArr (mixed parent, mixed arr, mixed stylesetname)
static mixed MakeTableDlg (mixed rows, mixed x, mixed y, mixed bClosable, mixed bCellsAlwaysHaveMaxW, mixed stylesetname, mixed stylename)
 constructs a dialog from a "rows" array, each row is an array of "cols", each col is a paramter array for guimaker.MakeWidgetFromArr
static mixed LayoutTableDlg (mixed dialog, mixed rootwidget)
 recalculates widget positions in table
static mixed MakeBorderPanel (mixed parent, mixed x, mixed y, mixed cx, mixed cy, mixed col, mixed stylesetname, mixed stylename)
static mixed Button_HilightOn (mixed widget)
static mixed Button_HilightOff (mixed widget)
static mixed MakeButton (mixed parent, mixed x, mixed y, mixed cx, mixed cy, mixed col, mixed stylesetname)
static mixed MakeText (mixed parent, mixed x, mixed y, mixed text, mixed charh, mixed col, mixed fontname)
static mixed MakeWrappedClippedText (mixed parent, mixed x, mixed y, mixed width, mixed height, mixed text, mixed charh, mixed col, mixed center, mixed div, mixed fontname)
static mixed MakeClippedText (mixed parent, mixed x, mixed y, mixed width, mixed height, mixed text, mixed charh, mixed col, mixed center, mixed div, mixed fontname)
static mixed MakeAutoScaledButton (mixed parent, mixed x, mixed y, mixed text, mixed charh, mixed backcol, mixed textcol, mixed stylesetname)
static mixed RescaleAutoScaledButton (mixed widget, mixed forcew)
static mixed SetAutoScaledButtonText (mixed widget, mixed text)
static mixed SetAutoScaledButtonBackCol (mixed widget, mixed backcol)
static mixed MakePlane (mixed parent, mixed mat, mixed x, mixed y, mixed cx, mixed cy)
static mixed MakePage (mixed pagenum)
 Creates a new Gumppage.
static mixed WrapWidget (mixed udata)
static mixed WidgetGetLTWH (mixed widget)
 returns left,top,width,height in ABSOLUTE(derived) coords
static mixed WidgetGetLTRB (mixed widget)
 returns left,top,right,bottom in ABSOLUTE coords
static mixed WidgetArrGetLTRB (mixed arr)
static mixed DialogGetLTRB (mixed dialog)
 returns left,top,right,bottom in ABSOLUTE(derived) coords
static mixed WidgetArrGetLTWH (mixed arr)
static mixed DialogGetLTWH (mixed dialog)
 returns left,top,width,height in ABSOLUTE(derived) coords
static mixed WidgetHelper_Destroy (mixed self)
 self = widget
static mixed WidgetHelper_CreateChild (mixed self)
 self = parent = widget
static mixed WidgetHelper_CreateWidget (mixed dialog)
 self = parent = dialog
static mixed WidgetHelper_DestroyDialog (mixed dialog)
static mixed DialogPrepareResize (mixed dialog)
static mixed DialogResizeMinimize (mixed dialog)
 set dialog size to dialog.resize_min_total_x,y
static mixed DialogResizeDelta (mixed dialog, mixed dx, mixed dy)
 adds dx,dy to dialog size
static mixed WidgetHelper_UpdateClip (mixed self, mixed L, mixed T, mixed R, mixed B)
 coordinates and sizes are in pixels
static mixed WidgetHelper_SetPartUVTile (mixed self, mixed part, mixed texturesize, mixed x, mixed y, mixed cx, mixed cy)
 coordinates and sizes are in pixels
static mixed WidgetHelper_SetUVBorderMatrix (mixed self, mixed texturesize, mixed x, mixed y, mixed cx1, mixed cy1, mixed cx2, mixed cy2, mixed cx3, mixed cy3)
 cx1+cx2+cx3 is total cx of the 3x3 matrix, coordinates and sizes are in pixels
static mixed SetDialogAlpha (mixed dialog, mixed a)
 TODO: transparency doesn't work right now - check why!


Detailed Description

file : ../lugre/lua/lib.guimaker.lua (this is just a pseudo class used for grouping global functions)

Definition at line 4873 of file lua_pseudo_code.cpp.


Member Function Documentation

static mixed guimaker::MakeSOC ( mixed  parent,
mixed  x,
mixed  y 
) [inline, static]

sorted overlay container (keeps zorder from beeing optimized away by render-state sorting)

Definition at line 4876 of file lua_pseudo_code.cpp.

static mixed guimaker::MakeRROC ( mixed  parent,
mixed  matname 
) [inline, static]

robrenderable

Definition at line 4879 of file lua_pseudo_code.cpp.

static mixed guimaker::MakeWidgetFromArr ( mixed  parent,
mixed  arr,
mixed  stylesetname 
) [inline, static]

---------------------------------------- ----- table layout ---------------------------------------- constructs a widget as child of "parent" from paramter array "arr", the content of "arr" is copyed to the widget

Definition at line 4885 of file lua_pseudo_code.cpp.

static mixed guimaker::MakeTableDlg ( mixed  rows,
mixed  x,
mixed  y,
mixed  bClosable,
mixed  bCellsAlwaysHaveMaxW,
mixed  stylesetname,
mixed  stylename 
) [inline, static]

constructs a dialog from a "rows" array, each row is an array of "cols", each col is a paramter array for guimaker.MakeWidgetFromArr

Definition at line 4888 of file lua_pseudo_code.cpp.

static mixed guimaker::LayoutTableDlg ( mixed  dialog,
mixed  rootwidget 
) [inline, static]

recalculates widget positions in table

Definition at line 4891 of file lua_pseudo_code.cpp.

static mixed guimaker::MakeBorderPanel ( mixed  parent,
mixed  x,
mixed  y,
mixed  cx,
mixed  cy,
mixed  col,
mixed  stylesetname,
mixed  stylename 
) [inline, static]

Definition at line 4893 of file lua_pseudo_code.cpp.

static mixed guimaker::Button_HilightOn ( mixed  widget  )  [inline, static]

function guimaker.Button_HilightOn (widget) widget:SetUVBorderMatrix(32, 0,16, 2,2, 12,12, 2,2) end function guimaker.Button_HilightOff (widget) widget:SetUVBorderMatrix(32, 0, 0, 2,2, 12,12, 2,2) end

Definition at line 4897 of file lua_pseudo_code.cpp.

static mixed guimaker::Button_HilightOff ( mixed  widget  )  [inline, static]

Definition at line 4899 of file lua_pseudo_code.cpp.

static mixed guimaker::MakeButton ( mixed  parent,
mixed  x,
mixed  y,
mixed  cx,
mixed  cy,
mixed  col,
mixed  stylesetname 
) [inline, static]

Definition at line 4901 of file lua_pseudo_code.cpp.

static mixed guimaker::MakeText ( mixed  parent,
mixed  x,
mixed  y,
mixed  text,
mixed  charh,
mixed  col,
mixed  fontname 
) [inline, static]

Definition at line 4903 of file lua_pseudo_code.cpp.

static mixed guimaker::MakeWrappedClippedText ( mixed  parent,
mixed  x,
mixed  y,
mixed  width,
mixed  height,
mixed  text,
mixed  charh,
mixed  col,
mixed  center,
mixed  div,
mixed  fontname 
) [inline, static]

Definition at line 4905 of file lua_pseudo_code.cpp.

static mixed guimaker::MakeClippedText ( mixed  parent,
mixed  x,
mixed  y,
mixed  width,
mixed  height,
mixed  text,
mixed  charh,
mixed  col,
mixed  center,
mixed  div,
mixed  fontname 
) [inline, static]

Definition at line 4907 of file lua_pseudo_code.cpp.

static mixed guimaker::MakeAutoScaledButton ( mixed  parent,
mixed  x,
mixed  y,
mixed  text,
mixed  charh,
mixed  backcol,
mixed  textcol,
mixed  stylesetname 
) [inline, static]

Definition at line 4909 of file lua_pseudo_code.cpp.

static mixed guimaker::RescaleAutoScaledButton ( mixed  widget,
mixed  forcew 
) [inline, static]

Definition at line 4911 of file lua_pseudo_code.cpp.

static mixed guimaker::SetAutoScaledButtonText ( mixed  widget,
mixed  text 
) [inline, static]

Definition at line 4913 of file lua_pseudo_code.cpp.

static mixed guimaker::SetAutoScaledButtonBackCol ( mixed  widget,
mixed  backcol 
) [inline, static]

Definition at line 4915 of file lua_pseudo_code.cpp.

static mixed guimaker::MakePlane ( mixed  parent,
mixed  mat,
mixed  x,
mixed  y,
mixed  cx,
mixed  cy 
) [inline, static]

Definition at line 4917 of file lua_pseudo_code.cpp.

static mixed guimaker::MakePage ( mixed  pagenum  )  [inline, static]

Creates a new Gumppage.

Definition at line 4920 of file lua_pseudo_code.cpp.

static mixed guimaker::WrapWidget ( mixed  udata  )  [inline, static]

Definition at line 4926 of file lua_pseudo_code.cpp.

static mixed guimaker::WidgetGetLTWH ( mixed  widget  )  [inline, static]

returns left,top,width,height in ABSOLUTE(derived) coords

Definition at line 4929 of file lua_pseudo_code.cpp.

static mixed guimaker::WidgetGetLTRB ( mixed  widget  )  [inline, static]

returns left,top,right,bottom in ABSOLUTE coords

Definition at line 4932 of file lua_pseudo_code.cpp.

static mixed guimaker::WidgetArrGetLTRB ( mixed  arr  )  [inline, static]

returns left,top,right,bottom in ABSOLUTE(derived) coords arr must be an array containing the widgets to be considered

Definition at line 4936 of file lua_pseudo_code.cpp.

static mixed guimaker::DialogGetLTRB ( mixed  dialog  )  [inline, static]

returns left,top,right,bottom in ABSOLUTE(derived) coords

Definition at line 4939 of file lua_pseudo_code.cpp.

static mixed guimaker::WidgetArrGetLTWH ( mixed  arr  )  [inline, static]

returns left,top,width,height in ABSOLUTE(derived) coords arr must be an array containing the widgets to be considered

Definition at line 4943 of file lua_pseudo_code.cpp.

static mixed guimaker::DialogGetLTWH ( mixed  dialog  )  [inline, static]

returns left,top,width,height in ABSOLUTE(derived) coords

Definition at line 4946 of file lua_pseudo_code.cpp.

static mixed guimaker::WidgetHelper_Destroy ( mixed  self  )  [inline, static]

self = widget

Definition at line 4949 of file lua_pseudo_code.cpp.

static mixed guimaker::WidgetHelper_CreateChild ( mixed  self  )  [inline, static]

self = parent = widget

Definition at line 4952 of file lua_pseudo_code.cpp.

static mixed guimaker::WidgetHelper_CreateWidget ( mixed  dialog  )  [inline, static]

self = parent = dialog

Definition at line 4955 of file lua_pseudo_code.cpp.

static mixed guimaker::WidgetHelper_DestroyDialog ( mixed  dialog  )  [inline, static]

Definition at line 4957 of file lua_pseudo_code.cpp.

static mixed guimaker::DialogPrepareResize ( mixed  dialog  )  [inline, static]

prepares a dialog for a resizing function, childs added after this call will not be considered TODO : won't work on nontrivial hierarchies

Definition at line 4961 of file lua_pseudo_code.cpp.

static mixed guimaker::DialogResizeMinimize ( mixed  dialog  )  [inline, static]

set dialog size to dialog.resize_min_total_x,y

Definition at line 4964 of file lua_pseudo_code.cpp.

static mixed guimaker::DialogResizeDelta ( mixed  dialog,
mixed  dx,
mixed  dy 
) [inline, static]

adds dx,dy to dialog size

Definition at line 4967 of file lua_pseudo_code.cpp.

static mixed guimaker::WidgetHelper_UpdateClip ( mixed  self,
mixed  L,
mixed  T,
mixed  R,
mixed  B 
) [inline, static]

coordinates and sizes are in pixels

Definition at line 4970 of file lua_pseudo_code.cpp.

static mixed guimaker::WidgetHelper_SetPartUVTile ( mixed  self,
mixed  part,
mixed  texturesize,
mixed  x,
mixed  y,
mixed  cx,
mixed  cy 
) [inline, static]

coordinates and sizes are in pixels

Definition at line 4973 of file lua_pseudo_code.cpp.

static mixed guimaker::WidgetHelper_SetUVBorderMatrix ( mixed  self,
mixed  texturesize,
mixed  x,
mixed  y,
mixed  cx1,
mixed  cy1,
mixed  cx2,
mixed  cy2,
mixed  cx3,
mixed  cy3 
) [inline, static]

cx1+cx2+cx3 is total cx of the 3x3 matrix, coordinates and sizes are in pixels

Definition at line 4976 of file lua_pseudo_code.cpp.

static mixed guimaker::SetDialogAlpha ( mixed  dialog,
mixed  a 
) [inline, static]

TODO: transparency doesn't work right now - check why!

Definition at line 4979 of file lua_pseudo_code.cpp.


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

Generated on Fri Mar 29 05:41:10 2013 for lua by  doxygen 1.5.6