Public Member Functions | |
| mixed | InitAsGroup (mixed parentwidget, mixed params) |
| mixed | InitAsSpritePanel (mixed parentwidget, mixed params, mixed bVertexBufferDynamic, mixed bVertexCol) |
| mixed | XMLCreate (mixed xmlnode) |
| see also lib.gui.xml.lua | |
| mixed | SetID (mixed id) |
| mixed | GetChildByID (mixed id) |
| mixed | FindChildByName (mixed name) |
| mixed | CreateChildOrContentChild (mixed classname, mixed...) |
| mixed | CreateContentChild (mixed classname, mixed...) |
| mixed | _CreateChild (mixed classname, mixed...) |
| internal method, use CreateChild instead | |
| mixed | SetRenderGroup2D (mixed rendergroup2d) |
| baseclass-handle for controlling the widget, setpos,hit-test/bounds-calc etc... | |
| mixed | SetLayouter (mixed layouter) |
| mixed | SetParent (mixed parentwidget) |
| mixed | ForAllChilds (mixed fun) |
| mixed | GetChild (mixed index) |
| mixed | GetWidgetUnderRelPos (mixed relx, mixed rely) |
| mixed | GetWidgetUnderPos (mixed x, mixed y) |
| coordinates absolute, returns self as well if hit | |
| mixed | HitTest (mixed x, mixed y) |
| old name : IsUnderPos | |
| mixed | SetVisible (mixed bVal) |
| mixed | SetHitTestIfInvis (mixed bVal) |
| if set to true, the hittest is performed even if the element is invis, default off | |
| mixed | SetConsumeChildHit (mixed bVal) |
| if set to true, the hittest reports self as being hit even if childs are hit, not needed for notifiers, as they pass themselves to the parent | |
| mixed | SetIgnoreBBoxHit (mixed bVal) |
| old name:mbIgnoreMouseOver, if this is true, hittest for self will fail unless a bitmask is set, but childs are still tested, default:false | |
| mixed | SetIgnoreChildHits (mixed bVal) |
| childs are not tested, e.g. tooltips | |
| mixed | SetBitMask (mixed bitmask) |
| bitmask | |
| mixed | SetClip (mixed l, mixed t, mixed r, mixed b) |
| relative to own position | |
| mixed | SetSize (mixed w, mixed h) |
| mixed | SetPos (mixed x, mixed y, mixed z) |
| in relative coords | |
| mixed | SetLeftTop (mixed x, mixed y) |
| mixed | ThemeModifyInitParams (mixed parentwidget, mixed params) |
| mixed | StartMouseMove (mixed keywatch, mixed move_fun, mixed move_fun_param, mixed end_fun, mixed mx0, mixed my0) |
| mixed | AddToDestroyList (mixed o) |
| o:Destroy() will be called on all things in this list at widget destruction | |
| mixed | RemoveFromDestroyList (mixed o) |
| mixed | RenderToTexture (mixed w, mixed h, mixed r, mixed g, mixed b, mixed a) |
Definition at line 491 of file lua_pseudo_code.cpp.
| mixed gWidgetPrototype::Base::InitAsGroup | ( | mixed | parentwidget, | |
| mixed | params | |||
| ) | [inline] |
Definition at line 493 of file lua_pseudo_code.cpp.
| mixed gWidgetPrototype::Base::InitAsSpritePanel | ( | mixed | parentwidget, | |
| mixed | params, | |||
| mixed | bVertexBufferDynamic, | |||
| mixed | bVertexCol | |||
| ) | [inline] |
Definition at line 495 of file lua_pseudo_code.cpp.
| mixed gWidgetPrototype::Base::XMLCreate | ( | mixed | xmlnode | ) | [inline] |
| mixed gWidgetPrototype::Base::SetID | ( | mixed | id | ) | [inline] |
Definition at line 500 of file lua_pseudo_code.cpp.
| mixed gWidgetPrototype::Base::GetChildByID | ( | mixed | id | ) | [inline] |
Definition at line 502 of file lua_pseudo_code.cpp.
| mixed gWidgetPrototype::Base::FindChildByName | ( | mixed | name | ) | [inline] |
Definition at line 504 of file lua_pseudo_code.cpp.
| mixed gWidgetPrototype::Base::CreateChildOrContentChild | ( | mixed | classname, | |
| mixed... | ||||
| ) | [inline] |
Definition at line 506 of file lua_pseudo_code.cpp.
| mixed gWidgetPrototype::Base::CreateContentChild | ( | mixed | classname, | |
| mixed... | ||||
| ) | [inline] |
Definition at line 508 of file lua_pseudo_code.cpp.
| mixed gWidgetPrototype::Base::_CreateChild | ( | mixed | classname, | |
| mixed... | ||||
| ) | [inline] |
| mixed gWidgetPrototype::Base::SetRenderGroup2D | ( | mixed | rendergroup2d | ) | [inline] |
baseclass-handle for controlling the widget, setpos,hit-test/bounds-calc etc...
Definition at line 514 of file lua_pseudo_code.cpp.
| mixed gWidgetPrototype::Base::SetLayouter | ( | mixed | layouter | ) | [inline] |
Definition at line 516 of file lua_pseudo_code.cpp.
| mixed gWidgetPrototype::Base::SetParent | ( | mixed | parentwidget | ) | [inline] |
Definition at line 518 of file lua_pseudo_code.cpp.
| mixed gWidgetPrototype::Base::ForAllChilds | ( | mixed | fun | ) | [inline] |
fun is called for all children in order (see GetChild()), if it returns a result that evaluates to true, iteration ends and the result is returned you shouldn't add/delete childs during iteration
Definition at line 522 of file lua_pseudo_code.cpp.
| mixed gWidgetPrototype::Base::GetChild | ( | mixed | index | ) | [inline] |
see also GetChildCount(), index is ONE-based (1..n, first is 1) ordered back-to-front, e.g. the last one is in the foreground
Definition at line 526 of file lua_pseudo_code.cpp.
| mixed gWidgetPrototype::Base::GetWidgetUnderRelPos | ( | mixed | relx, | |
| mixed | rely | |||
| ) | [inline] |
Definition at line 528 of file lua_pseudo_code.cpp.
| mixed gWidgetPrototype::Base::GetWidgetUnderPos | ( | mixed | x, | |
| mixed | y | |||
| ) | [inline] |
coordinates absolute, returns self as well if hit
Definition at line 531 of file lua_pseudo_code.cpp.
| mixed gWidgetPrototype::Base::HitTest | ( | mixed | x, | |
| mixed | y | |||
| ) | [inline] |
| mixed gWidgetPrototype::Base::SetVisible | ( | mixed | bVal | ) | [inline] |
Definition at line 536 of file lua_pseudo_code.cpp.
| mixed gWidgetPrototype::Base::SetHitTestIfInvis | ( | mixed | bVal | ) | [inline] |
if set to true, the hittest is performed even if the element is invis, default off
Definition at line 539 of file lua_pseudo_code.cpp.
| mixed gWidgetPrototype::Base::SetConsumeChildHit | ( | mixed | bVal | ) | [inline] |
if set to true, the hittest reports self as being hit even if childs are hit, not needed for notifiers, as they pass themselves to the parent
Definition at line 542 of file lua_pseudo_code.cpp.
| mixed gWidgetPrototype::Base::SetIgnoreBBoxHit | ( | mixed | bVal | ) | [inline] |
old name:mbIgnoreMouseOver, if this is true, hittest for self will fail unless a bitmask is set, but childs are still tested, default:false
Definition at line 545 of file lua_pseudo_code.cpp.
| mixed gWidgetPrototype::Base::SetIgnoreChildHits | ( | mixed | bVal | ) | [inline] |
| mixed gWidgetPrototype::Base::SetBitMask | ( | mixed | bitmask | ) | [inline] |
| mixed gWidgetPrototype::Base::SetClip | ( | mixed | l, | |
| mixed | t, | |||
| mixed | r, | |||
| mixed | b | |||
| ) | [inline] |
| mixed gWidgetPrototype::Base::SetSize | ( | mixed | w, | |
| mixed | h | |||
| ) | [inline] |
set forced bounds, if they are set, GetRelBounds will be independent from the bounds calculated in c++ from the visuals useful for layouting, boxes and similar to remain consistent, it must be ensured that GetSize() always equals the last SetSize() most widget types have to react to this by implementing t:on_set_size(w,h)
Definition at line 560 of file lua_pseudo_code.cpp.
| mixed gWidgetPrototype::Base::SetPos | ( | mixed | x, | |
| mixed | y, | |||
| mixed | z | |||
| ) | [inline] |
| mixed gWidgetPrototype::Base::SetLeftTop | ( | mixed | x, | |
| mixed | y | |||
| ) | [inline] |
Definition at line 565 of file lua_pseudo_code.cpp.
| mixed gWidgetPrototype::Base::ThemeModifyInitParams | ( | mixed | parentwidget, | |
| mixed | params | |||
| ) | [inline] |
should be called at the start of init for themable widgets parentwidget : allows css like hierarchy conditions (img inside table...) DEFINE : all css/theme params are capsuled inside params.style TODO : theme can request widget class here and modify param
Definition at line 571 of file lua_pseudo_code.cpp.
| mixed gWidgetPrototype::Base::StartMouseMove | ( | mixed | keywatch, | |
| mixed | move_fun, | |||
| mixed | move_fun_param, | |||
| mixed | end_fun, | |||
| mixed | mx0, | |||
| mixed | my0 | |||
| ) | [inline] |
mousemove, moves until keywatch=key_mouse1 is released e.g. dialogs, not really drag&drop.. see also old lib.movedialog.lua move_fun : can be nil, if set, x,y = move_fun(x,y,param) for widget:SetPos(), can be used as constraint if move_fun doesn't return anything, SetPos is not called, useful if position is set inside move_fun no need to transform coordinates, as the offset to GetPos() at initial call is used mx0,my0 can be used for custom offset, e.g. gLastMouseDownX,gLastMouseDownY
Definition at line 578 of file lua_pseudo_code.cpp.
| mixed gWidgetPrototype::Base::AddToDestroyList | ( | mixed | o | ) | [inline] |
o:Destroy() will be called on all things in this list at widget destruction
Definition at line 581 of file lua_pseudo_code.cpp.
| mixed gWidgetPrototype::Base::RemoveFromDestroyList | ( | mixed | o | ) | [inline] |
Definition at line 583 of file lua_pseudo_code.cpp.
| mixed gWidgetPrototype::Base::RenderToTexture | ( | mixed | w, | |
| mixed | h, | |||
| mixed | r, | |||
| mixed | g, | |||
| mixed | b, | |||
| mixed | a | |||
| ) | [inline] |
renders the current widget + childs into a newly created texture with size w,h and returns the texture name (name_texture) and texture object (tex) r,g,b,a : viewport background colour
Definition at line 588 of file lua_pseudo_code.cpp.
1.5.6