Softanza
DémarrerEnglish
Softanza
La bibliothèque se documente elle-même · Interface et réactif

stzPanel

64 méthodes propres · 7 formes avec extensions, rangées sous leur méthode

la source: base/gui/stzPanel.ring(s'ouvre dans un nouvel onglet) · Toutes les classes · La référence du domaine : Interface et réactif

Sous chaque méthode, ses extensions (Q CS XT Z ZZ IB W U) : en gras et cochée, elle existe ; barrée, elle n'existe pas. Les extensions et leur sens

Aucune méthode de cette classe n'est exécutée sur cette page : la classe touche aux fichiers, au réseau, aux processus, à l'horloge, au hasard ou au son, et un exemple exécuté ici ne serait que l'exemple de ses effets. Chaque méthode porte l'explication que la bibliothèque donne d'elle-même.

Méthode
Explication, telle que la source la porte
init
(sans commentaire dans la source : le nom se lit comme une phrase) initaucune extension
Id_
identityaucune extension
Width
(sans commentaire dans la source : le nom se lit comme une phrase) widthaucune extension
Height
(sans commentaire dans la source : le nom se lit comme une phrase) heightaucune extension
IsAlive
(sans commentaire dans la source : le nom se lit comme une phrase) is aliveaucune extension
LoadMarkup
the document -------------------------------------------------------- Markup as a STRING, because markup is emitted. See the header.QCSXTZZZIBWU
HasDocument
(sans commentaire dans la source : le nom se lit comme une phrase) has documentaucune extension
Layout
Lay out. Cheap when nothing changed: G0 measured a still frame at 1/362 of a dirty one, and 500 still frames re-compiled zero geometry.QCSXTZZZIBWU
Resize
(sans commentaire dans la source : le nom se lit comme une phrase) resizeQCSXTZZZIBWU
SetTime
RmlUi's clock, driven by the caller -- so a test frame is deterministic instead of depending on when it ran.aucune extension
Record
the geometry -------------------------------------------------------- Lay out if needed, then record the triangles. Called for you by DrawInto and by Verts/Indices; a caller driving its own frame loop may call it directly.aucune extension
Verts
Flat x, y, r, g, b, a per vertex -- pixel space, channels 0..255.aucune extension
Indices
Flat 0-based triangle indices.aucune extension
TriangleCount
Same as Record: the geometry -------------------------------------------------------- Lay out if needed, then record the triangles. Called for you by DrawInto and by Verts/Indices; a caller driving its own frame loop may call it directly.aucune extension
Counters
The last two are G2's, and they are the phase's own gauge. G0 measured 988 GetStringWidth calls per re-layout, unmemoized by RmlUi; at ~1 us per real shape that is ~1 ms/frame before a glyph is drawn, so the plan made a width cache a PRECONDITION. widthCalls is what RmlUi asked for and shapeCalls is what actually reached the shaper -- the gap between them is the cache doing its job, and if they ever converge the precondition has silently lapsed.aucune extension
WidthCalls
(sans commentaire dans la source : le nom se lit comme une phrase) width callsaucune extension
ShapeCalls
(sans commentaire dans la source : le nom se lit comme une phrase) shape callsaucune extension
WidthCacheHits
(sans commentaire dans la source : le nom se lit comme une phrase) width cache hitsaucune extension
TextMeshes
That is not hypothetical: registering one font family twice used to free the id the existing faces pointed at, so widths came back -1, the quads were zero-wide, RmlUi culled them, and whichever panel had been built first lost its text. Two panels sharing a font is all it took, and every single-panel guard stayed green. The invariant lives here now so the next such bug is a failing number, not a screenshot.aucune extension
GenerateCalls
(sans commentaire dans la source : le nom se lit comme une phrase) generate callsaucune extension
TextDraws
(sans commentaire dans la source : le nom se lit comme une phrase) text drawsaucune extension
TextIsWhole
TRUE when every generated string became geometry.aucune extension
DroppedTexturedDraws
(sans commentaire dans la source : le nom se lit comme une phrase) dropped textured drawsaucune extension
IgnoredScissors
(sans commentaire dans la source : le nom se lit comme une phrase) ignored scissorsaucune extension
UseFont
Answers an stzFont for the caller to paint with, or NULL on refusal.QCSXTZZZIBWU
FontCount
(sans commentaire dans la source : le nom se lit comme une phrase) font countaucune extension
FontFor
The stzFont this panel paints a recorded command with. Matching is by the engine font id the command carries -- not by family name, which a fallback may have changed under us.aucune extension
PointerMovedTo
EVENTS ARE DRAINED, NEVER DISPATCHED. RmlUi routes and bubbles, the engine writes down what arrived, and Events() hands over the list. A callback per event would re-enter Haro from inside a C++ dispatch, which is not safe, and the house has already settled this shape twice: the display list and the text commands.aucune extension
PointerPressed
(sans commentaire dans la source : le nom se lit comme une phrase) pointer pressedaucune extension
PointerReleased
(sans commentaire dans la source : le nom se lit comme une phrase) pointer releasedaucune extension
ClickAt
The whole gesture, because a click is a press AND a release and a caller that forgets the second one gets a button stuck down.aucune extension
PointerLeft
(sans commentaire dans la source : le nom se lit comme une phrase) pointer leftaucune extension
KeyPressed
(sans commentaire dans la source : le nom se lit comme une phrase) key pressedaucune extension
TypeText
(sans commentaire dans la source : le nom se lit comme une phrase) type textaucune extension
ElementAt
The element under a point, by name. "" when the point hits nothing that carries a name -- a fair answer, not a failure.aucune extension
FromWindow
the conversions, named at the boundary ------------------------------ A window's pixels are the panel's when the panel fills the window, which is the case stzWindow.Draw arranges. Named anyway: the reader of a frame loop should see WHERE the space changes.aucune extension
FromTexture
A panel hanging in a 3D scene is hit by a RAY, and what the caller has after the intersection is a texture coordinate. This is the whole of the in-scene input mapping (§6's tier): uv in, panel pixels out. v is flipped because a texture's origin is bottom-left and a panel's is top-left -- the one place that difference is stated, so no caller has to remember it.aucune extension
SetTextOf
The difference is measurable, and the guard measures it: after a rebuild every string is generated again; after a set, only the ones that actually changed are. GenerateCalls() reports both. One element's words. The value is DATA -- it is escaped at the seam, so a model holding "<span>" cannot inject markup into a document the court already passed.QCSXTZZZIBWU
SetStyleOf
An EMPTY value removes the property, handing the element back to the stylesheet. Without that, a binding that had fired once could never be undone.QCSXTZZZIBWU
ClearStyleOf
(sans commentaire dans la source : le nom se lit comme une phrase) clear style ofaucune extension
FocusOn
Rule 80 (Keyboard Sovereignty) is `machine` tier, so this is legally required rather than polish. RmlUi owns the traversal -- tab order in document order, and a spatial heuristic for directional moves -- and what is added here is the QUERY and the COUNTED refusal.aucune extension
ClearFocus
(sans commentaire dans la source : le nom se lit comme une phrase) clear focusaucune extension
Focused
The focused element's name, or "" when nothing is focused.aucune extension
FocusNext
TRUE when focus MOVED. A refusal at the end of a ring is a real answer, not an error, so it answers FALSE rather than raising.aucune extension
FocusPrevious
(sans commentaire dans la source : le nom se lit comme une phrase) focus previousaucune extension
FocusUp
Directional moves, for an arrow key or a gamepad stick. RmlUi picks the target by a spatial heuristic, which is what the WAI-ARIA APG contract wants inside a composite widget.aucune extension
FocusDown
(sans commentaire dans la source : le nom se lit comme une phrase) focus downaucune extension
FocusLeft
(sans commentaire dans la source : le nom se lit comme une phrase) focus leftaucune extension
FocusRight
(sans commentaire dans la source : le nom se lit comme une phrase) focus rightaucune extension
TabRing
A ring is a CYCLE, and this enters it wherever focus currently sits: RmlUi resumes tabbing from the last focused element even after a blur, so calling this with `cancel` focused answers the same cycle rotated. The SET and the ORDER are stable; the entry point is not. Call it before touching focus if the first stop matters -- as the guard does.aucune extension
Events
The SOURCE is the frame §7 chose to surface, and it earns its place: Rule 80 makes "reachable by a human keyboard" materially different from "something dispatched a click", and G4 needs an assistive activation distinguishable from a pointer one.aucune extension
ClearEvents
(sans commentaire dans la source : le nom se lit comme une phrase) clear eventsaucune extension
EventsDropped
What the bounded queue threw away. A caller that stops draining stops receiving, and this is how it finds out.aucune extension
EventCount
(sans commentaire dans la source : le nom se lit comme une phrase) event countaucune extension
EventsFor
Every event whose target is one named element.aucune extension
Texts
Text crosses as COMMANDS, not as quads. RmlUi asked our font engine for the string; the engine recorded the request instead of rasterizing it, and the canvas draws it with the same shaper. That is why this plane owns no glyph atlas and no second rasterizer.aucune extension
TextCount
(sans commentaire dans la source : le nom se lit comme une phrase) text countaucune extension
BoxOf
The laid-out box of one element: [x, y, w, h], in panel pixels. Empty when there is no such element -- an absence, not a raise, since asking about an element that may not exist is a fair question.aucune extension
LastEngineMessage
(sans commentaire dans la source : le nom se lit comme une phrase) last engine messageaucune extension
DrawInto
output -------------------------------------------------------------- Put the panel's triangles into a canvas. The canvas decides what happens next -- ToSVG() with no device, ToPNG() with one, a window, or a texture mapped onto a quad in a 3D scene. The panel does not know and must not care.QCSXTZZZIBWU
ToCanvas
The panel as a picture, on the tier this machine can reach. A canvas is made, drawn into and answered -- so the caller gets ToSVG/ToPNG/ Show without assembling anything.aucune extension
ToSVG
(sans commentaire dans la source : le nom se lit comme une phrase) to svgaucune extension
ToPNG
(sans commentaire dans la source : le nom se lit comme une phrase) to pngaucune extension
Free
(sans commentaire dans la source : le nom se lit comme une phrase) freeaucune extension