daRg
module ‘daRg’
Source file: prog/gameLibs/daRg/elementRef.cpp
Usage:
let { KBD_BIT_CAPS_LOCK, KBD_BIT_NUM_LOCK, KBD_BIT_SCROLL_LOCK, PANEL_ANCHOR_NONE, PANEL_ANCHOR_SCENE, PANEL_ANCHOR_VRSPACE, PANEL_ANCHOR_HEAD, PANEL_ANCHOR_LEFTHAND, PANEL_ANCHOR_RIGHTHAND, PANEL_ANCHOR_ENTITY, PANEL_GEOMETRY_NONE, PANEL_GEOMETRY_RECTANGLE, PANEL_RC_NONE, PANEL_RC_FACE_LEFT_HAND, PANEL_RC_FACE_RIGHT_HAND, PANEL_RC_FACE_HEAD, PANEL_RC_FACE_HEAD_LOCK_Y, PANEL_RC_FACE_ENTITY, PANEL_RENDER_CAST_SHADOW, PANEL_RENDER_OPAQUE, PANEL_RENDER_ALWAYS_ON_TOP, GuiScene, SceneConfig, anim_start, anim_request_stop, anim_skip, anim_skip_delay, set_kb_focus, capture_kb_focus, calc_comp_size, move_mouse_cursor, get_mouse_cursor_pos, resolve_button_id, gui_scene, FLOW_PARENT_RELATIVE, FLOW_HORIZONTAL, FLOW_VERTICAL, ALIGN_LEFT, ALIGN_TOP, ALIGN_RIGHT, ALIGN_BOTTOM, ALIGN_CENTER, VECTOR_WIDTH, VECTOR_COLOR, VECTOR_FILL_COLOR, VECTOR_MID_COLOR, VECTOR_OUTER_LINE, VECTOR_CENTER_LINE, VECTOR_INNER_LINE, VECTOR_TM_OFFSET, VECTOR_TM_SCALE, VECTOR_LINE, VECTOR_LINE_INDENT_PX, VECTOR_LINE_INDENT_PCT, VECTOR_ELLIPSE, VECTOR_SECTOR, VECTOR_RECTANGLE, VECTOR_POLY, VECTOR_INVERSE_POLY, VECTOR_OPACITY, VECTOR_LINE_DASHED, VECTOR_NOP, VECTOR_QUADS, FFT_NONE, FFT_SHADOW, FFT_GLOW, FFT_BLUR, FFT_OUTLINE, O_HORIZONTAL, O_VERTICAL, TOVERFLOW_CLIP, TOVERFLOW_CHAR, TOVERFLOW_WORD, TOVERFLOW_LINE, DIR_UP, DIR_DOWN, DIR_LEFT, DIR_RIGHT, EVENT_BREAK, EVENT_CONTINUE, GESTURE_DETECTOR_DRAG, GESTURE_DETECTOR_PINCH, GESTURE_DETECTOR_ROTATE, Linear, InQuad, OutQuad, InOutQuad, InCubic, OutCubic, InOutCubic, InQuintic, OutQuintic, InOutQuintic, InQuart, OutQuart, InOutQuart, InSine, OutSine, InOutSine, InCirc, OutCirc, InOutCirc, InExp, OutExp, InOutExp, InElastic, OutElastic, InOutElastic, InBack, OutBack, InOutBack, InBounce, OutBounce, InOutBounce, InOutBezier, CosineFull, InStep, OutStep, Blink, DoubleBlink, BlinkSin, BlinkCos, Discrete8, Shake4, Shake6, S_KB_FOCUS, S_HOVER, S_TOP_HOVER, S_ACTIVE, S_MOUSE_ACTIVE, S_KBD_ACTIVE, S_HOTKEY_ACTIVE, S_TOUCH_ACTIVE, S_JOYSTICK_ACTIVE, S_VR_ACTIVE, S_DRAG, MR_NONE, MR_T, MR_R, MR_B, MR_L, MR_LT, MR_RT, MR_LB, MR_RB, MR_AREA, FMT_NO_WRAP, FMT_KEEP_SPACES, FMT_IGNORE_TAGS, FMT_HIDE_ELLIPSIS, FMT_AS_IS, DEVID_KEYBOARD, DEVID_MOUSE, DEVID_JOYSTICK, DEVID_TOUCH, DEVID_VR, KEEP_ASPECT_NONE, KEEP_ASPECT_FIT, KEEP_ASPECT_FILL, AXIS_L_THUMB_H, AXIS_L_THUMB_V, AXIS_R_THUMB_H, AXIS_R_THUMB_V, AXIS_L_TRIGGER, AXIS_R_TRIGGER, AXIS_LR_TRIGGER, XMB_STOP, XMB_CONTINUE, R_PROCESSED, SIZE_TO_CONTENT, Fonts, AnimProp, color, bgColor, fgColor, fillColor, borderColor, opacity, rotate, scale, translate, fValue, picSaturate, brightness, Behaviors, ScrollHandler, JoystickAxisObservable, ElemGroup, Behavior, Picture, Immediate, FormattedText, IGenVideoPlayer, IGenSound, DragAndDropState, EventDataRect, MouseClickEventData, HotkeyEventData, HoverEventData, MoveToAreaTarget, Color, sw, sh, flex, fontH, pw, ph, elemw, elemh, locate_element_source, get_element_info, get_font_metrics, resolve_button, setFontDefHt, getFontDefHt, getFontInitialHt, calc_str_box, LottieAnimation, ElementRef } = require("daRg")
or:
from "daRg" import *
//'daRg' exports:
{
const KBD_BIT_CAPS_LOCK
const KBD_BIT_NUM_LOCK
const KBD_BIT_SCROLL_LOCK
const PANEL_ANCHOR_NONE
const PANEL_ANCHOR_SCENE
const PANEL_ANCHOR_VRSPACE
const PANEL_ANCHOR_HEAD
const PANEL_ANCHOR_LEFTHAND
const PANEL_ANCHOR_RIGHTHAND
const PANEL_ANCHOR_ENTITY
const PANEL_GEOMETRY_NONE
const PANEL_GEOMETRY_RECTANGLE
const PANEL_RC_NONE
const PANEL_RC_FACE_LEFT_HAND
const PANEL_RC_FACE_RIGHT_HAND
const PANEL_RC_FACE_HEAD
const PANEL_RC_FACE_HEAD_LOCK_Y
const PANEL_RC_FACE_ENTITY
const PANEL_RENDER_CAST_SHADOW
const PANEL_RENDER_OPAQUE
const PANEL_RENDER_ALWAYS_ON_TOP
class GuiScene
class SceneConfig
function anim_start()
function anim_request_stop()
function anim_skip()
function anim_skip_delay()
function set_kb_focus()
function capture_kb_focus()
function calc_comp_size(arg0): null or table or closure_and_nativeclosure or class_instance or class -> _undocumented_
function move_mouse_cursor(arg0, arg1, ...): any_type, bool, any_type -> _undocumented_
function get_mouse_cursor_pos(arg0, ...): class_instance, any_type -> _undocumented_
function resolve_button_id(arg0): string -> _undocumented_
value gui_scene
const FLOW_PARENT_RELATIVE
const FLOW_HORIZONTAL
const FLOW_VERTICAL
const ALIGN_LEFT
const ALIGN_TOP
const ALIGN_RIGHT
const ALIGN_BOTTOM
const ALIGN_CENTER
const VECTOR_WIDTH
const VECTOR_COLOR
const VECTOR_FILL_COLOR
const VECTOR_MID_COLOR
const VECTOR_OUTER_LINE
const VECTOR_CENTER_LINE
const VECTOR_INNER_LINE
const VECTOR_TM_OFFSET
const VECTOR_TM_SCALE
const VECTOR_LINE
const VECTOR_LINE_INDENT_PX
const VECTOR_LINE_INDENT_PCT
const VECTOR_ELLIPSE
const VECTOR_SECTOR
const VECTOR_RECTANGLE
const VECTOR_POLY
const VECTOR_INVERSE_POLY
const VECTOR_OPACITY
const VECTOR_LINE_DASHED
const VECTOR_NOP
const VECTOR_QUADS
const FFT_NONE
const FFT_SHADOW
const FFT_GLOW
const FFT_BLUR
const FFT_OUTLINE
const O_HORIZONTAL
const O_VERTICAL
const TOVERFLOW_CLIP
const TOVERFLOW_CHAR
const TOVERFLOW_WORD
const TOVERFLOW_LINE
const DIR_UP
const DIR_DOWN
const DIR_LEFT
const DIR_RIGHT
const EVENT_BREAK
const EVENT_CONTINUE
const GESTURE_DETECTOR_DRAG
const GESTURE_DETECTOR_PINCH
const GESTURE_DETECTOR_ROTATE
const Linear
const InQuad
const OutQuad
const InOutQuad
const InCubic
const OutCubic
const InOutCubic
const InQuintic
const OutQuintic
const InOutQuintic
const InQuart
const OutQuart
const InOutQuart
const InSine
const OutSine
const InOutSine
const InCirc
const OutCirc
const InOutCirc
const InExp
const OutExp
const InOutExp
const InElastic
const OutElastic
const InOutElastic
const InBack
const OutBack
const InOutBack
const InBounce
const OutBounce
const InOutBounce
const InOutBezier
const CosineFull
const InStep
const OutStep
const Blink
const DoubleBlink
const BlinkSin
const BlinkCos
const Discrete8
const Shake4
const Shake6
const S_KB_FOCUS
const S_HOVER
const S_TOP_HOVER
const S_ACTIVE
const S_MOUSE_ACTIVE
const S_KBD_ACTIVE
const S_HOTKEY_ACTIVE
const S_TOUCH_ACTIVE
const S_JOYSTICK_ACTIVE
const S_VR_ACTIVE
const S_DRAG
const MR_NONE
const MR_T
const MR_R
const MR_B
const MR_L
const MR_LT
const MR_RT
const MR_LB
const MR_RB
const MR_AREA
const FMT_NO_WRAP
const FMT_KEEP_SPACES
const FMT_IGNORE_TAGS
const FMT_HIDE_ELLIPSIS
const FMT_AS_IS
const DEVID_KEYBOARD
const DEVID_MOUSE
const DEVID_JOYSTICK
const DEVID_TOUCH
const DEVID_VR
const KEEP_ASPECT_NONE
const KEEP_ASPECT_FIT
const KEEP_ASPECT_FILL
const AXIS_L_THUMB_H
const AXIS_L_THUMB_V
const AXIS_R_THUMB_H
const AXIS_R_THUMB_V
const AXIS_L_TRIGGER
const AXIS_R_TRIGGER
const AXIS_LR_TRIGGER
const XMB_STOP
const XMB_CONTINUE
const R_PROCESSED
const SIZE_TO_CONTENT
value Fonts
enum AnimProp
value color
value bgColor
value fgColor
value fillColor
value borderColor
value opacity
value rotate
value scale
value translate
value fValue
value picSaturate
value brightness
table Behaviors
class ScrollHandler
class JoystickAxisObservable
class ElemGroup
class Behavior
class Picture
class Immediate
class FormattedText
class IGenVideoPlayer
class IGenSound
class DragAndDropState
class EventDataRect
class MouseClickEventData
class HotkeyEventData
class HoverEventData
class MoveToAreaTarget
function Color(arg0, arg1, arg2, arg3, ...): integer_or_float, integer_or_float, integer_or_float, integer_or_float, any_type -> _undocumented_
function sw()
function sh()
function flex(arg0, ...): integer_or_float, any_type -> _undocumented_
function fontH(arg0): integer_or_float -> _undocumented_
function pw(arg0): integer_or_float -> _undocumented_
function ph(arg0): integer_or_float -> _undocumented_
function elemw(arg0): integer_or_float -> _undocumented_
function elemh(arg0): integer_or_float -> _undocumented_
function locate_element_source(arg0): class_instance -> _undocumented_
function get_element_info(arg0): class_instance -> _undocumented_
function get_font_metrics(arg0, ...): integer, any_type -> _undocumented_
function resolve_button(fontId, fontHt): integer, float -> table
function setFontDefHt(font_name, pix_ht): string, integer -> bool
function getFontDefHt(font_name): string -> integer
function getFontInitialHt(font_name): string -> integer
function calc_str_box(element_or_text, element_or_style): string|closure_and_nativeclosure|table, table|closure_and_nativeclosure|null -> array
class LottieAnimation
class ElementRef
}
- const KBD_BIT_CAPS_LOCK = 1
- const KBD_BIT_NUM_LOCK = 2
- const KBD_BIT_SCROLL_LOCK = 4
- const PANEL_ANCHOR_NONE = int
- const PANEL_ANCHOR_SCENE = int
- const PANEL_ANCHOR_VRSPACE = int
- const PANEL_ANCHOR_HEAD = int
- const PANEL_ANCHOR_LEFTHAND = int
- const PANEL_ANCHOR_RIGHTHAND = int
- const PANEL_ANCHOR_ENTITY = int
- const PANEL_GEOMETRY_NONE = int
- const PANEL_GEOMETRY_RECTANGLE = int
- const PANEL_RC_NONE = int
- const PANEL_RC_FACE_LEFT_HAND = int
- const PANEL_RC_FACE_RIGHT_HAND = int
- const PANEL_RC_FACE_HEAD = int
- const PANEL_RC_FACE_HEAD_LOCK_Y = int
- const PANEL_RC_FACE_ENTITY = int
- const PANEL_RENDER_CAST_SHADOW = int
- const PANEL_RENDER_OPAQUE = int
- const PANEL_RENDER_ALWAYS_ON_TOP = int
class GuiScene
- method GuiScene.setUpdateHandler(arg0, arg1)
- Arguments:
arg0 (
class_instance()
) – autodoc from typemask/paramscheckarg1 (
closure_and_nativeclosure or null()
) – autodoc from typemask/paramscheck
nparamscheck:2
typecheck mask: class_instance, closure_and_nativeclosure or null
- method GuiScene.setShutdownHandler(arg0, arg1)
- Arguments:
arg0 (
class_instance()
) – autodoc from typemask/paramscheckarg1 (
closure_and_nativeclosure or null()
) – autodoc from typemask/paramscheck
nparamscheck:2
typecheck mask: class_instance, closure_and_nativeclosure or null
- Arguments:
arg0 (
class_instance()
) – autodoc from typemask/paramscheckarg1 (
closure_and_nativeclosure or null()
) – autodoc from typemask/paramscheck
nparamscheck:2
typecheck mask: class_instance, closure_and_nativeclosure or null
- method GuiScene.addPanel(arg0, arg1, arg2)
- Arguments:
arg0 (
class_instance()
) – autodoc from typemask/paramscheckarg1 (
integer()
) – autodoc from typemask/paramscheckarg2 (
closure_and_nativeclosure or table()
) – autodoc from typemask/paramscheck
nparamscheck:3
typecheck mask: class_instance, integer, closure_and_nativeclosure or table
- method GuiScene.removePanel(arg0, arg1)
- Arguments:
arg0 (
class_instance()
) – autodoc from typemask/paramscheckarg1 (
integer()
) – autodoc from typemask/paramscheck
nparamscheck:2
typecheck mask: class_instance, integer
- method GuiScene.mark_panel_dirty(arg0, arg1)
- Arguments:
arg0 (
class_instance()
) – autodoc from typemask/paramscheckarg1 (
integer()
) – autodoc from typemask/paramscheck
nparamscheck:2
typecheck mask: class_instance, integer
- method GuiScene.setXmbFocus(arg0, arg1, ...)
- Arguments:
arg0 (
class_instance()
) – autodoc from typemask/paramscheckarg1 (
null or table()
) – autodoc from typemask/paramscheck... (
any_type()
) – this function accepts unlimited arguments
nparamscheck:-2
typecheck mask: class_instance, null or table
- method GuiScene.getCompAABBbyKey()
- method GuiScene.setConfigProps(arg0, arg1)
- Arguments:
arg0 (
any_type()
) – autodoc from typemask/paramscheckarg1 (
table()
) – autodoc from typemask/paramscheck
nparamscheck:2
typecheck mask: any_type, table
- method GuiScene.haveActiveCursorOnPanels()
- method GuiScene.clearTimer()
- property GuiScene.config
readonly
- method GuiScene.getAllObservables()
- property GuiScene.cursorPresent
readonly
- property GuiScene.cursorOverStickScroll
readonly
- property GuiScene.cursorOverClickable
readonly
- property GuiScene.hoveredClickableInfo
readonly
- property GuiScene.keyboardLayout
readonly
- property GuiScene.keyboardLocks
readonly
- property GuiScene.updateCounter
readonly
- property GuiScene.circleButtonAsAction
readonly
- property GuiScene.xmbMode
readonly
- method GuiScene.getJoystickAxis()
- method GuiScene.enableInput()
- method GuiScene.forceCursorActive(arg0, arg1)
- Arguments:
arg0 (
class_instance()
) – autodoc from typemask/paramscheckarg1 (
bool or null()
) – autodoc from typemask/paramscheck
nparamscheck:2
typecheck mask: class_instance, bool or null
/;
#define V(x) .Var(#x, &SceneConfig::x)
class SceneConfig
Sqrat::Class<SceneConfig, Sqrat::NoConstructor<SceneConfig>> sqSceneConfig(sqvm, “SceneConfig”); sqSceneConfig
- var SceneConfig.defaultFont
.SquirrelProp(“defaultFont”, SceneConfig::getDefaultFontId, SceneConfig::setDefaultFontId)
- var SceneConfig.defaultFontSize
.SquirrelProp(“defaultFontSize”, SceneConfig::getDefaultFontSize, SceneConfig::setDefaultFontSize)
- var SceneConfig.kbCursorControl
V(kbCursorControl)
- var SceneConfig.gamepadCursorControl
V(gamepadCursorControl)
- var SceneConfig.gamepadCursorSpeed
V(gamepadCursorSpeed)
- var SceneConfig.gamepadCursorHoverMaxTime
V(gamepadCursorHoverMaxTime)
- var SceneConfig.gamepadCursorAxisV
V(gamepadCursorAxisV)
- var SceneConfig.gamepadCursorAxisH
V(gamepadCursorAxisH)
- var gamepadCursorHoverMinMul
V(gamepadCursorHoverMinMul)
- var SceneConfig.gamepadCursorHoverMaxMul
V(gamepadCursorHoverMaxMul)
- var SceneConfig.gamepadCursorDeadZone
V(gamepadCursorDeadZone)
- var SceneConfig.gamepadCursorNonLin
V(gamepadCursorNonLin)
- var SceneConfig.reportNestedWatchedUpdate
V(reportNestedWatchedUpdate)
- var SceneConfig.joystickScrollAxisH
V(joystickScrollAxisH)
- var SceneConfig.joystickScrollAxisV
V(joystickScrollAxisV)
- var SceneConfig.clickRumbleEnabled
V(clickRumbleEnabled)
- var SceneConfig.clickRumbleLoFreq
V(clickRumbleLoFreq)
- var SceneConfig.clickRumbleHiFreq
V(clickRumbleHiFreq)
- var SceneConfig.clickRumbleDuration
V(clickRumbleDuration)
- var SceneConfig.dirPadRepeatDelay
V(dirPadRepeatDelay)
- var SceneConfig.dirPadRepeatTime
V(dirPadRepeatTime)
- var SceneConfig.useDefaultCursor
V(useDefaultCursor)
- var SceneConfig.defaultCursor
V(defaultCursor)
- var SceneConfig.clickPriority
V(actionClickByBehavior) .Prop(“defSceneBgColor”, &SceneConfig::getDefSceneBgColor, &SceneConfig::setDefSceneBgColor) .Prop(“defTextColor”, &SceneConfig::getDefTextColor, &SceneConfig::setDefTextColor) .SquirrelFunc(“setClickButtons”, &SceneConfig::setClickButtons, 2, “xa”) .SquirrelFunc(“getClickButtons”, &SceneConfig::getClickButtons, 1, “x”)
/*
- function anim_start()
- function anim_request_stop()
- function anim_skip()
- function anim_skip_delay()
- function set_kb_focus()
- function capture_kb_focus()
- function calc_comp_size(arg0)
- Arguments:
arg0 (
null or table or closure_and_nativeclosure or class_instance or class()
) – autodoc from typemask/paramscheck
nparamscheck:2
typecheck mask: any_type, null or table or closure_and_nativeclosure or class_instance or class
- function move_mouse_cursor(arg0, arg1, ...)
- Arguments:
arg0 (
any_type()
) – autodoc from typemask/paramscheckarg1 (
bool()
) – autodoc from typemask/paramscheck... (
any_type()
) – this function accepts unlimited arguments
nparamscheck:-2
typecheck mask: any_type, any_type, bool
- function get_mouse_cursor_pos(arg0, ...)
- Arguments:
arg0 (
class_instance()
) – autodoc from typemask/paramscheck... (
any_type()
) – this function accepts unlimited arguments
nparamscheck:-1
typecheck mask: any_type, class_instance
- function resolve_button_id(arg0)
- Arguments:
arg0 (
string()
) – autodoc from typemask/paramscheck
nparamscheck:2
typecheck mask: any_type, string
- gui_scene = instance of GuiScene
type: GuiScene
/;
moduleMgr->addNativeModule(“daRg”, dargModuleExports);
}
} // namespace darg
- const FLOW_PARENT_RELATIVE
- const FLOW_HORIZONTAL
- const FLOW_VERTICAL
- const ALIGN_LEFT = ALIGN_LEFT
- const ALIGN_TOP = ALIGN_TOP
- const ALIGN_RIGHT = ALIGN_RIGHT
- const ALIGN_BOTTOM = ALIGN_BOTTOM
- const ALIGN_CENTER = ALIGN_CENTER
- const VECTOR_WIDTH
- const VECTOR_COLOR
- const VECTOR_FILL_COLOR
- const VECTOR_MID_COLOR
- const VECTOR_OUTER_LINE
- const VECTOR_CENTER_LINE
- const VECTOR_INNER_LINE
- const VECTOR_TM_OFFSET
- const VECTOR_TM_SCALE
- const VECTOR_LINE
- const VECTOR_LINE_INDENT_PX
- const VECTOR_LINE_INDENT_PCT
- const VECTOR_ELLIPSE
- const VECTOR_SECTOR
- const VECTOR_RECTANGLE
- const VECTOR_POLY
- const VECTOR_INVERSE_POLY
- const VECTOR_OPACITY
- const VECTOR_LINE_DASHED
- const VECTOR_NOP
- const VECTOR_QUADS
- const FFT_NONE
- const FFT_SHADOW
- const FFT_GLOW
- const FFT_BLUR
- const FFT_OUTLINE
- const O_HORIZONTAL
- const O_VERTICAL
- const TOVERFLOW_CLIP
- const TOVERFLOW_CHAR
- const TOVERFLOW_WORD
- const TOVERFLOW_LINE
- const DIR_UP
- const DIR_DOWN
- const DIR_LEFT
- const DIR_RIGHT
- const EVENT_BREAK = GuiScene::EVENT_BREAK
- const EVENT_CONTINUE = GuiScene::EVENT_CONTINUE
- const GESTURE_DETECTOR_DRAG = GestureDetector::Type::DRAG
- const GESTURE_DETECTOR_PINCH = GestureDetector::Type::PINCH
- const GESTURE_DETECTOR_ROTATE = GestureDetector::Type::ROTATE
- const Linear
Easing function for prebuilt animations functions.
- const InQuad
Easing function for prebuilt animations functions.
- const OutQuad
Easing function for prebuilt animations functions.
- const InOutQuad
Easing function for prebuilt animations functions.
- const InCubic
Easing function for prebuilt animations functions.
- const OutCubic
Easing function for prebuilt animations functions.
- const InOutCubic
Easing function for prebuilt animations functions.
- const InQuintic
Easing function for prebuilt animations functions.
- const OutQuintic
Easing function for prebuilt animations functions.
- const InOutQuintic
Easing function for prebuilt animations functions.
- const InQuart
Easing function for prebuilt animations functions.
- const OutQuart
Easing function for prebuilt animations functions.
- const InOutQuart
Easing function for prebuilt animations functions.
- const InSine
Easing function for prebuilt animations functions.
- const OutSine
Easing function for prebuilt animations functions.
- const InOutSine
Easing function for prebuilt animations functions.
- const InCirc
Easing function for prebuilt animations functions.
- const OutCirc
Easing function for prebuilt animations functions.
- const InOutCirc
Easing function for prebuilt animations functions.
- const InExp
Easing function for prebuilt animations functions.
- const OutExp
Easing function for prebuilt animations functions.
- const InOutExp
Easing function for prebuilt animations functions.
- const InElastic
Easing function for prebuilt animations functions.
- const OutElastic
Easing function for prebuilt animations functions.
- const InOutElastic
Easing function for prebuilt animations functions.
- const InBack
Easing function for prebuilt animations functions.
- const OutBack
Easing function for prebuilt animations functions.
- const InOutBack
Easing function for prebuilt animations functions.
- const InBounce
Easing function for prebuilt animations functions.
- const OutBounce
Easing function for prebuilt animations functions.
- const InOutBounce
Easing function for prebuilt animations functions.
- const InOutBezier
Easing function for prebuilt animations functions.
- const CosineFull
Easing function for prebuilt animations functions.
- const InStep
Easing function for prebuilt animations functions.
- const OutStep
Easing function for prebuilt animations functions.
- const Blink
Easing function for prebuilt animations functions.
- const DoubleBlink
Easing function for prebuilt animations functions.
- const BlinkSin
Easing function for prebuilt animations functions.
- const BlinkCos
Easing function for prebuilt animations functions.
- const Discrete8
Easing function for prebuilt animations functions.
- const Shake4
Easing function for prebuilt animations functions.
- const Shake6
Easing function for prebuilt animations functions.
- const S_KB_FOCUS
State flag for keyboard focus.
- const S_HOVER
- const S_TOP_HOVER
- const S_ACTIVE
state flag for ‘pressed’ button.
- const S_MOUSE_ACTIVE
state flag for ‘pressed’ button with mouse.
- const S_KBD_ACTIVE
state flag for ‘pressed’ button with keyboard.
- const S_HOTKEY_ACTIVE
state flag for ‘pressed’ button with hotkey.
- const S_TOUCH_ACTIVE
state flag for pressed button with touch device.
- const S_JOYSTICK_ACTIVE
state flag for pressed button with joystick/gamepad device.
- const S_VR_ACTIVE
state flag for pressed button with VR controller.
- const S_DRAG
state flag for dragged state.
- const MR_NONE
.MOVE_RESIZE Beahvior constants, to define where was point started move or resize
- const MR_T
- const MR_R
- const MR_B
- const MR_L
- const MR_LT
- const MR_RT
- const MR_LB
- const MR_RB
- const MR_AREA
- const FMT_NO_WRAP
- const FMT_KEEP_SPACES
- const FMT_IGNORE_TAGS
- const FMT_HIDE_ELLIPSIS
- const FMT_AS_IS
- const DEVID_KEYBOARD
- const DEVID_MOUSE
- const DEVID_JOYSTICK
- const DEVID_TOUCH
- const DEVID_VR
- const KEEP_ASPECT_NONE
- const KEEP_ASPECT_FIT
- const KEEP_ASPECT_FILL
- const AXIS_L_THUMB_H
- const AXIS_L_THUMB_V
- const AXIS_R_THUMB_H
- const AXIS_R_THUMB_V
- const AXIS_L_TRIGGER
- const AXIS_R_TRIGGER
- const AXIS_LR_TRIGGER
- const XMB_STOP
- const XMB_CONTINUE
- const R_PROCESSED
- const SIZE_TO_CONTENT
- Fonts
enum AnimProp
- color
- bgColor
- fgColor
- fillColor
- borderColor
- opacity
- rotate
- scale
- translate
- fValue
- picSaturate
- brightness
/;
table Behaviors
- const Behaviors.Button
BHV(Button, bhv_button)
- const Behaviors.TextArea
BHV(TextArea, bhv_text_area)
- const Behaviors.TextInput
BHV(TextInput, bhv_text_input)
- const Behaviors.Slider
BHV(Slider, bhv_slider)
- const Behaviors.Pannable
BHV(Pannable, bhv_pannable)
- const Behaviors.Pannable2touch
BHV(Pannable2touch, bhv_pannable_2touch)
- const Behaviors.SwipeScroll
BHV(SwipeScroll, bhv_swipe_scroll)
- const Behaviors.MoveResize
BHV(MoveResize, bhv_move_resize)
- const Behaviors.ComboPopup
BHV(ComboPopup, bhv_combo_popup)
- const Behaviors.SmoothScrollStack
BHV(SmoothScrollStack, bhv_smooth_scroll_stack)
- const Behaviors.Marquee
BHV(Marquee, bhv_marquee)
- const Behaviors.WheelScroll
BHV(WheelScroll, bhv_wheel_scroll)
- const Behaviors.ScrollEvent
BHV(ScrollEvent, bhv_scroll_event)
- const Behaviors.InspectPicker
BHV(InspectPicker, bhv_inspect_picker)
- const Behaviors.RtPropUpdate
BHV(RtPropUpdate, bhv_rt_prop_update)
- const Behaviors.RecalcHandler
BHV(RecalcHandler, bhv_recalc_handler)
- const Behaviors.DragAndDrop
BHV(DragAndDrop, bhv_drag_and_drop)
- const Behaviors.FpsBar
BHV(FpsBar, bhv_fps_bar)
- const Behaviors.LatencyBar
BHV(LatencyBar, bhv_latency_bar)
- const Behaviors.OverlayTransparency
BHV(OverlayTransparency, bhv_overlay_transparency)
- const Behaviors.BoundToArea
place object inside an area (like placing tooltip under cursor BUT inside screen)
- const Behaviors.Movie
fields in component description:
- @code:
movie:string = <path to movie file in .ivf file format> loop:boolean = default true. Should video be looped sound:string = path to .mp3 sound file. By default movie file with .mp3 added (like “<video_file_name_with_ext>.mp3”.). enableSound:boolean = default true. Will play sound if sound track exists. Note: sound is not synced with video. onStart: function = optional callback, called when movie started onError: function = optional callback, called when playback failed to start onFinish: function = optional callback, called when movie finished/terminated (can be used to remove it from layout)
code@
Note
Note: sound is played only for one-shot video.
- const Behaviors.Parallax
- const Behaviors.PieMenu
- const Behaviors.TransitionSize
- const Behaviors.TrackMouse
- const Behaviors.MoveToArea
- const Behaviors.ProcessPointingInput
- const Behaviors.ProcessGesture
- const Behaviors.EatInput
- const Behaviors.TextAreaEdit
class ScrollHandler
- ScrollHandler()
nparamscheck:1
typecheck mask: class_instance
- method ScrollHandler.scrollToX()
- method ScrollHandler.scrollToY()
- method ScrollHandler.scrollToChildren()
- property ScrollHandler.elem
readonly
/;
class JoystickAxisObservable
Sqrat::DerivedClass<JoystickAxisObservable, BaseObservable> joyAxisObservable(sqvm, “JoystickAxisObservable”); joyAxisObservable //
.Prop(“value”, &JoystickAxisObservable::getValue) .Var(“resolution”, &JoystickAxisObservable::resolution) .Var(“deadzone”, &JoystickAxisObservable::deadzone)
/*
class ElemGroup
class Behavior
class Picture
- Picture(arg0)
- Arguments:
arg0 (
null or string()
) – autodoc from typemask/paramscheck
typecheck mask: any_type, null or string
class Immediate extends Picture
- Immediate(arg0)
- Arguments:
arg0 (
null or string()
) – autodoc from typemask/paramscheck
typecheck mask: any_type, null or string
class FormattedText
class IGenVideoPlayer
class IGenSound
class DragAndDropState
class EventDataRect
- EventDataRect.l
- EventDataRect.t
- EventDataRect.r
- EventDataRect.b
class MouseClickEventData
- property MouseClickEventData.targetRect
readonly
/; #undef V
class HotkeyEventData
Sqrat::Class<HotkeyEventData, Sqrat::DefaultAllocator<HotkeyEventData>> sqHotkeyEventData(sqvm, “HotkeyEventData”); sqHotkeyEventData.Prop(“targetRect”, &HotkeyEventData::getTargetRect);
class HoverEventData
Sqrat::Class<HoverEventData, Sqrat::DefaultAllocator<HoverEventData>> sqHoverEventData(sqvm, “HoverEventData”); sqHoverEventData.Prop(“targetRect”, &HoverEventData::getTargetRect);
Sqrat::Class<AllTransitionsConfig> sqTransitAll(sqvm, “TransitAll”); sqTransitAll.Ctor<const Sqrat::Object &>();
EditableText::bind_script(exports);
class MoveToAreaTarget
Sqrat::Class<BhvMoveToAreaTarget> sqBhvMoveToAreaTarget(sqvm, “BhvMoveToAreaTarget”); sqBhvMoveToAreaTarget //
.Func(“set”, &BhvMoveToAreaTarget::set) .Func(“clear”, &BhvMoveToAreaTarget::clear)
/*
- function Color(arg0, arg1, arg2, arg3, ...)
- Arguments:
arg0 (
integer_or_float()
) – autodoc from typemask/paramscheckarg1 (
integer_or_float()
) – autodoc from typemask/paramscheckarg2 (
integer_or_float()
) – autodoc from typemask/paramscheckarg3 (
integer_or_float()
) – autodoc from typemask/paramscheck... (
any_type()
) – this function accepts unlimited arguments
nparamscheck:-4
typecheck mask: any_type, integer_or_float, integer_or_float, integer_or_float, integer_or_float
- function sw()
- function sh()
- function flex(arg0, ...)
- Arguments:
arg0 (
integer_or_float()
) – autodoc from typemask/paramscheck... (
any_type()
) – this function accepts unlimited arguments
nparamscheck:-1
typecheck mask: any_type, integer_or_float
- function fontH(arg0)
- Arguments:
arg0 (
integer_or_float()
) – autodoc from typemask/paramscheck
nparamscheck:2
typecheck mask: any_type, integer_or_float
- function pw(arg0)
- Arguments:
arg0 (
integer_or_float()
) – autodoc from typemask/paramscheck
nparamscheck:2
typecheck mask: any_type, integer_or_float
- function ph(arg0)
- Arguments:
arg0 (
integer_or_float()
) – autodoc from typemask/paramscheck
nparamscheck:2
typecheck mask: any_type, integer_or_float
- function elemw(arg0)
- Arguments:
arg0 (
integer_or_float()
) – autodoc from typemask/paramscheck
nparamscheck:2
typecheck mask: any_type, integer_or_float
- function elemh(arg0)
- Arguments:
arg0 (
integer_or_float()
) – autodoc from typemask/paramscheck
nparamscheck:2
typecheck mask: any_type, integer_or_float
- function locate_element_source(arg0)
- Arguments:
arg0 (
class_instance()
) – autodoc from typemask/paramscheck
nparamscheck:2
typecheck mask: any_type, class_instance
- function get_element_info(arg0)
- Arguments:
arg0 (
class_instance()
) – autodoc from typemask/paramscheck
nparamscheck:2
typecheck mask: any_type, class_instance
- function get_font_metrics(arg0, ...)
- Arguments:
arg0 (
integer()
) – autodoc from typemask/paramscheck... (
any_type()
) – this function accepts unlimited arguments
nparamscheck:-2
typecheck mask: any_type, integer
- function resolve_button(fontId, fontHt)
- Arguments:
fontId (
integer()
) –fontHt (
float()
) – optional, default is _def_fontHt font height set in font
nparamscheck:2
typecheck mask: any_type, string
- Returns:
font_params
- Return type:
table
{
_def_fontHt : def height
fontHt : height
capsHt : height of H
lineSpacing : linespacing
ascent
descent
lowercaseHeight : height of x
}
@code
- function setFontDefHt(font_name, pix_ht)
- Arguments:
font_name (
string()
) –pix_ht (
integer()
) –
- Returns:
bool
- function getFontDefHt(font_name)
- Arguments:
font_name (
string()
) –
- Returns:
integer
- function getFontInitialHt(font_name)
- Arguments:
font_name (
string()
) –
- Returns:
integer
- function calc_str_box(element_or_text, element_or_style)
- Arguments:
element_or_text (
string|closure_and_nativeclosure|table()
) – should be string of text or darg component description with ‘text’ in itelement_or_style (
table|closure_and_nativeclosure|null()
) – optional, if first element is text, it should be provided with font properties
nparamscheck:-2
typecheck mask: any_type, string or table or closure_and_nativeclosure, table or closure_and_nativeclosure or null
- Returns:
return array of two objects with width and height of text
- Return type:
array
/;
register_constants(sqvm); register_fonts(exports); register_anim_props(sqvm);
register_std_behaviors(module_mgr);
register_rendobj_script_ids(sqvm);
Cursor::bind_script(exports); ElementRef::bind_script(sqvm); Sqrat::Class<Element, Sqrat::NoConstructor<Element>> sqElement(sqvm, “@Element”);
bind_das(exports);
Sqrat::Table dargDebug(sqvm);
class LottieAnimation extends Picture
- LottieAnimation(arg0)
- Arguments:
arg0 (
null or string()
) – autodoc from typemask/paramscheck
typecheck mask: any_type, null or string
class ElementRef
- method ElementRef.getCompDesc()
- method ElementRef.getScreenPosX(arg0)
- Arguments:
arg0 (
class_instance()
) – autodoc from typemask/paramscheck
nparamscheck:1
typecheck mask: class_instance
- method ElementRef.getScreenPosY(arg0)
- Arguments:
arg0 (
class_instance()
) – autodoc from typemask/paramscheck
nparamscheck:1
typecheck mask: class_instance
- method ElementRef.getWidth(arg0)
- Arguments:
arg0 (
class_instance()
) – autodoc from typemask/paramscheck
nparamscheck:1
typecheck mask: class_instance
- method ElementRef.getHeight(arg0)
- Arguments:
arg0 (
class_instance()
) – autodoc from typemask/paramscheck
nparamscheck:1
typecheck mask: class_instance
- method ElementRef.getContentWidth(arg0)
- Arguments:
arg0 (
class_instance()
) – autodoc from typemask/paramscheck
nparamscheck:1
typecheck mask: class_instance
- method ElementRef.getContentHeight(arg0)
- Arguments:
arg0 (
class_instance()
) – autodoc from typemask/paramscheck
nparamscheck:1
typecheck mask: class_instance
- method ElementRef.getScrollOffsX(arg0)
- Arguments:
arg0 (
class_instance()
) – autodoc from typemask/paramscheck
nparamscheck:1
typecheck mask: class_instance
- method ElementRef.getScrollOffsY(arg0)
- Arguments:
arg0 (
class_instance()
) – autodoc from typemask/paramscheck
nparamscheck:1
typecheck mask: class_instance
/; }
} // namespace darg