linuxOS_D21X/source/artinchip/awtk-ui/awtk/src/base/widget_consts.h

1729 lines
33 KiB
C
Raw Normal View History

2024-11-29 08:23:11 +00:00
/**
* File: widget_consts.h
* Author: AWTK Develop Team
* Brief: widget property names
*
* Copyright (c) 2018 - 2023 Guangzhou ZHIYUAN Electronics Co.,Ltd.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* License file for more details.
*
*/
/**
* History:
* ================================================================
* 2018-04-19 Li XianJing <xianjimli@hotmail.com> created
*
*/
#ifndef TK_WIDGET_CONSTS_H
#define TK_WIDGET_CONSTS_H
#include "base/types_def.h"
BEGIN_C_DECLS
/*widget props*/
/**
* @enum widget_prop_t
* @annotation ["scriptable", "string"]
* @prefix WIDGET_PROP_
*
*/
/**
* @const WIDGET_PROP_EXEC
* 便MVVM通过属性来控制动画
*/
#define WIDGET_PROP_EXEC "exec"
/**
* @const WIDGET_PROP_X
* X坐标
*/
#define WIDGET_PROP_X "x"
/**
* @const WIDGET_PROP_Y
* Y坐标
*/
#define WIDGET_PROP_Y "y"
/**
* @const WIDGET_PROP_W
*
*/
#define WIDGET_PROP_W "w"
/**
* @const WIDGET_PROP_H
*
*/
#define WIDGET_PROP_H "h"
/**
* @const WIDGET_PROP_MAX_H
*
*/
#define WIDGET_PROP_MAX_H "max_h"
/**
* @const WIDGET_PROP_DESIGN_W
*
*/
#define WIDGET_PROP_DESIGN_W "design_w"
/**
* @const WIDGET_PROP_DESIGN_H
*
*/
#define WIDGET_PROP_DESIGN_H "design_h"
/**
* @const WIDGET_PROP_AUTO_SCALE_CHILDREN_X
* x坐标
*/
#define WIDGET_PROP_AUTO_SCALE_CHILDREN_X "auto_scale_children_x"
/**
* @const WIDGET_PROP_AUTO_SCALE_CHILDREN_Y
* y坐标
*/
#define WIDGET_PROP_AUTO_SCALE_CHILDREN_Y "auto_scale_children_y"
/**
* @const WIDGET_PROP_AUTO_SCALE_CHILDREN_W
*
*/
#define WIDGET_PROP_AUTO_SCALE_CHILDREN_W "auto_scale_children_w"
/**
* @const WIDGET_PROP_AUTO_SCALE_CHILDREN_H
*
*/
#define WIDGET_PROP_AUTO_SCALE_CHILDREN_H "auto_scale_children_h"
/**
* @const WIDGET_PROP_INPUTING
* inputing
*/
#define WIDGET_PROP_INPUTING "inputing"
/**
* @const WIDGET_PROP_ALWAYS_ON_TOP
* always on top
*/
#define WIDGET_PROP_ALWAYS_ON_TOP "always_on_top"
/**
* @const WIDGET_PROP_CARET_X
* caret x
*/
#define WIDGET_PROP_CARET_X "caret_x"
/**
* @const WIDGET_PROP_CARET_Y
* caret y
*/
#define WIDGET_PROP_CARET_Y "caret_y"
/**
* @const WIDGET_PROP_LINE_HEIGHT
*
*/
#define WIDGET_PROP_LINE_HEIGHT "line_height"
/**
* @const WIDGET_PROP_DIRTY_RECT_TOLERANCE
*
*/
#define WIDGET_PROP_DIRTY_RECT_TOLERANCE "dirty_rect_tolerance"
/**
* @const WIDGET_PROP_BIDI
* bidi type(rtl,ltr,auto,wrtl,wltr,lro,rlo)
*/
#define WIDGET_PROP_BIDI "bidi"
/**
* @const WIDGET_PROP_CANVAS
* Canvas
*/
#define WIDGET_PROP_CANVAS "canvas"
/**
* @const WIDGET_PROP_LOCALIZE_OPTIONS
* Canvas
*/
#define WIDGET_PROP_LOCALIZE_OPTIONS "localize_options"
/**
* @const WIDGET_PROP_NATIVE_WINDOW
* Native Window
*/
#define WIDGET_PROP_NATIVE_WINDOW "native_window"
/**
* @const WIDGET_PROP_HIGHLIGHT
* dialog highlight
*/
#define WIDGET_PROP_HIGHLIGHT "highlight"
/**
* @const WIDGET_PROP_BAR_SIZE
* slider中的bar的的宽度或高度
*/
#define WIDGET_PROP_BAR_SIZE "bar_size"
/**
* @const WIDGET_PROP_OPACITY
*
*/
#define WIDGET_PROP_OPACITY "opacity"
/**
* @const WIDGET_PROP_MIN_W
*
*/
#define WIDGET_PROP_MIN_W "min_w"
/**
* @const WIDGET_PROP_MAX_W
*
*/
#define WIDGET_PROP_MAX_W "max_w"
/**
* @const WIDGET_PROP_AUTO_ADJUST_SIZE
*
*/
#define WIDGET_PROP_AUTO_ADJUST_SIZE "auto_adjust_size"
/**
* @const WIDGET_PROP_SINGLE_INSTANCE
*
*/
#define WIDGET_PROP_SINGLE_INSTANCE "single_instance"
/**
* @const WIDGET_PROP_STRONGLY_FOCUS
* focusable控件时
*/
#define WIDGET_PROP_STRONGLY_FOCUS "strongly_focus"
/**
* @const WIDGET_PROP_CHILDREN_LAYOUT
*
*/
#define WIDGET_PROP_CHILDREN_LAYOUT "children_layout"
/**
* @const WIDGET_PROP_LAYOUT
* ()
*/
#define WIDGET_PROP_LAYOUT "layout"
/**
* @const WIDGET_PROP_SELF_LAYOUT
*
*/
#define WIDGET_PROP_SELF_LAYOUT "self_layout"
/**
* @const WIDGET_PROP_LAYOUT_W
* layout宽度
*/
#define WIDGET_PROP_LAYOUT_W "layout_w"
/**
* @const WIDGET_PROP_LAYOUT_H
* layout高度
*/
#define WIDGET_PROP_LAYOUT_H "layout_h"
/**
* @const WIDGET_PROP_VIRTUAL_W
*
*/
#define WIDGET_PROP_VIRTUAL_W "virtual_w"
/**
* @const WIDGET_PROP_VIRTUAL_H
*
*/
#define WIDGET_PROP_VIRTUAL_H "virtual_h"
/**
* @const WIDGET_PROP_LOADING
*
*/
#define WIDGET_PROP_LOADING "loading"
/**
* @const WIDGET_PROP_NAME
*
*/
#define WIDGET_PROP_NAME "name"
/**
* @const WIDGET_PROP_TYPE
*
*/
#define WIDGET_PROP_TYPE "type"
/**
* @const WIDGET_PROP_CLOSABLE
*
*/
#define WIDGET_PROP_CLOSABLE "closable"
/**
* @const WIDGET_PROP_POINTER_CURSOR
*
*/
#define WIDGET_PROP_POINTER_CURSOR "pointer_cursor"
/**
* @const WIDGET_PROP_VALUE
*
*/
#define WIDGET_PROP_VALUE "value"
/**
* @const WIDGET_PROP_EASY_TOUCH_MODE
* (spinbox)
*/
#define WIDGET_PROP_EASY_TOUCH_MODE "easy_touch_mode"
/**
* @const WIDGET_PROP_RADIO
* CheckButton是否单选
*/
#define WIDGET_PROP_RADIO "radio"
/**
* @const WIDGET_PROP_REVERSE
*
*/
#define WIDGET_PROP_REVERSE "reverse"
/**
* @const WIDGET_PROP_LENGTH
*
*/
#define WIDGET_PROP_LENGTH "length"
/**
* @const WIDGET_PROP_LINE_WRAP
*
*/
#define WIDGET_PROP_LINE_WRAP "line_wrap"
/**
* @const WIDGET_PROP_WORD_WRAP
*
*/
#define WIDGET_PROP_WORD_WRAP "word_wrap"
/**
* @const WIDGET_PROP_ELLIPSES
*
*/
#define WIDGET_PROP_ELLIPSES "ellipses"
/**
* @const WIDGET_PROP_TEXT
*
*/
#define WIDGET_PROP_TEXT "text"
/**
* @const WIDGET_PROP_TR_TEXT
*
*/
#define WIDGET_PROP_TR_TEXT "tr_text"
/**
* @const WIDGET_PROP_STYLE
* style
*/
#define WIDGET_PROP_STYLE "style"
/**
* @const WIDGET_PROP_ENABLE
*
*/
#define WIDGET_PROP_ENABLE "enable"
/**
* @const WIDGET_PROP_FEEDBACK
*
*/
#define WIDGET_PROP_FEEDBACK "feedback"
/**
* @const WIDGET_PROP_FLOATING
* floating布局
*/
#define WIDGET_PROP_FLOATING "floating"
/**
* @const WIDGET_PROP_MARGIN
*
*/
#define WIDGET_PROP_MARGIN "margin"
/**
* @const WIDGET_PROP_SPACING
*
*/
#define WIDGET_PROP_SPACING "spacing"
/**
* @const WIDGET_PROP_LEFT_MARGIN
*
*/
#define WIDGET_PROP_LEFT_MARGIN "left_margin"
/**
* @const WIDGET_PROP_RIGHT_MARGIN
*
*/
#define WIDGET_PROP_RIGHT_MARGIN "right_margin"
/**
* @const WIDGET_PROP_TOP_MARGIN
*
*/
#define WIDGET_PROP_TOP_MARGIN "top_margin"
/**
* @const WIDGET_PROP_BOTTOM_MARGIN
*
*/
#define WIDGET_PROP_BOTTOM_MARGIN "bottom_margin"
/**
* @const WIDGET_PROP_STEP
*
*/
#define WIDGET_PROP_STEP "step"
/**
* @const WIDGET_PROP_VISIBLE
*
*/
#define WIDGET_PROP_VISIBLE "visible"
/**
* @const WIDGET_PROP_SENSITIVE
*
*/
#define WIDGET_PROP_SENSITIVE "sensitive"
/**
* @const WIDGET_PROP_APPLET_NAME
* (applet)
*/
#define WIDGET_PROP_APPLET_NAME "applet_name"
/**
* @const WIDGET_PROP_ANIMATION
*
*/
#define WIDGET_PROP_ANIMATION "animation"
/**
* @const WIDGET_PROP_ANIM_HINT
*
*/
#define WIDGET_PROP_ANIM_HINT "anim_hint"
/**
* @const WIDGET_PROP_FULLSCREEN
*
*/
#define WIDGET_PROP_FULLSCREEN "fullscreen"
/**
* @const WIDGET_PROP_DISABLE_ANIM
*
*/
#define WIDGET_PROP_DISABLE_ANIM "disable_anim"
/**
* @const WIDGET_PROP_OPEN_ANIM_HINT
*
*/
#define WIDGET_PROP_OPEN_ANIM_HINT "open_anim_hint"
/**
* @const WIDGET_PROP_CLOSE_ANIM_HINT
*
*/
#define WIDGET_PROP_CLOSE_ANIM_HINT "close_anim_hint"
/**
* @const WIDGET_PROP_MIN
*
*/
#define WIDGET_PROP_MIN "min"
/**
* @const WIDGET_PROP_ACTION_TEXT
* action按钮的文本
*/
#define WIDGET_PROP_ACTION_TEXT "action_text"
/**
* @const WIDGET_PROP_TIPS
*
*/
#define WIDGET_PROP_TIPS "tips"
/**
* @const WIDGET_PROP_TR_TIPS
*
*/
#define WIDGET_PROP_TR_TIPS "tr_tips"
/**
* @const WIDGET_PROP_INPUT_TYPE
*
*/
#define WIDGET_PROP_INPUT_TYPE "input_type"
/**
* @const WIDGET_PROP_KEYBOARD
*
*/
#define WIDGET_PROP_KEYBOARD "keyboard"
/**
* @const WIDGET_PROP_DEFAULT_FOCUSED_CHILD
* ()
*/
#define WIDGET_PROP_DEFAULT_FOCUSED_CHILD "default_focused_child"
/**
* @const WIDGET_PROP_READONLY
*
*/
#define WIDGET_PROP_READONLY "readonly"
/**
* @const WIDGET_PROP_CANCELABLE
*
*/
#define WIDGET_PROP_CANCELABLE "cancelable"
/**
* @const WIDGET_PROP_PASSWORD_VISIBLE
*
*/
#define WIDGET_PROP_PASSWORD_VISIBLE "password_visible"
/**
* @const WIDGET_PROP_ACTIVE
* active状态
*/
#define WIDGET_PROP_ACTIVE "active"
/**
* @const WIDGET_PROP_CURR_PAGE
*
*/
#define WIDGET_PROP_CURR_PAGE "curr_page"
/**
* @const WIDGET_PROP_PAGE_MAX_NUMBER
*
*/
#define WIDGET_PROP_PAGE_MAX_NUMBER "page_max_number"
/**
* @const WIDGET_PROP_VERTICAL
*
*/
#define WIDGET_PROP_VERTICAL "vertical"
/**
* @const WIDGET_PROP_SHOW_TEXT
*
*/
#define WIDGET_PROP_SHOW_TEXT "show_text"
/**
* @const WIDGET_PROP_XOFFSET
* X方向的偏移 get_offset get_offset
* docs/how_to_use_offset_in_custom_widget.md
*/
#define WIDGET_PROP_XOFFSET "xoffset"
/**
* @const WIDGET_PROP_YOFFSET
* Y方向的偏移 get_offset get_offset
* docs/how_to_use_offset_in_custom_widget.md
*/
#define WIDGET_PROP_YOFFSET "yoffset"
/**
* @const WIDGET_PROP_ALIGN_V
*
*/
#define WIDGET_PROP_ALIGN_V "align_v"
/**
* @const WIDGET_PROP_ALIGN_H
*
*/
#define WIDGET_PROP_ALIGN_H "align_h"
/**
* @const WIDGET_PROP_AUTO_PLAY
*
*/
#define WIDGET_PROP_AUTO_PLAY "auto_play"
/**
* @const WIDGET_PROP_LOOP
*
*/
#define WIDGET_PROP_LOOP "loop"
/**
* @const WIDGET_PROP_RUNNING
* ()
*/
#define WIDGET_PROP_RUNNING "running"
/**
* @const WIDGET_PROP_AUTO_FIX
*
*/
#define WIDGET_PROP_AUTO_FIX "auto_fix"
/**
* @const WIDGET_PROP_SELECT_NONE_WHEN_FOCUSED
*
*/
#define WIDGET_PROP_SELECT_NONE_WHEN_FOCUSED "select_none_when_focused"
/**
* @const WIDGET_PROP_OPEN_IM_WHEN_FOCUSED
*
*/
#define WIDGET_PROP_OPEN_IM_WHEN_FOCUSED "open_im_when_focused"
/**
* @const WIDGET_PROP_CLOSE_IM_WHEN_BLURED
*
*/
#define WIDGET_PROP_CLOSE_IM_WHEN_BLURED "close_im_when_blured"
/**
* @const WIDGET_PROP_X_MIN
* X最小值
*/
#define WIDGET_PROP_X_MIN "x_min"
/**
* @const WIDGET_PROP_X_MAX
* X最大值
*/
#define WIDGET_PROP_X_MAX "x_max"
/**
* @const WIDGET_PROP_Y_MIN
* Y最小值
*/
#define WIDGET_PROP_Y_MIN "y_min"
/**
* @const WIDGET_PROP_Y_MAX
* Y最大值
*/
#define WIDGET_PROP_Y_MAX "y_max"
/**
* @const WIDGET_PROP_MAX
*
*/
#define WIDGET_PROP_MAX "max"
/**
* @const WIDGET_PROP_GRAB_KEYS
*
*/
#define WIDGET_PROP_GRAB_KEYS "grab_keys"
/**
* @const WIDGET_PROP_ROW
*
*/
#define WIDGET_PROP_ROW "row"
/**
* @const WIDGET_PROP_STATE_FOR_STYLE
*
*/
#define WIDGET_PROP_STATE_FOR_STYLE "state_for_style"
/**
* @const WIDGET_PROP_THEME
*
*/
#define WIDGET_PROP_THEME "theme"
/**
* @const WIDGET_PROP_STAGE
* window stage
*/
#define WIDGET_PROP_STAGE "stage"
/**
* @const WIDGET_PROP_IMAGE_MANAGER
*
*/
#define WIDGET_PROP_IMAGE_MANAGER "image_manager"
/**
* @const WIDGET_PROP_ASSETS_MANAGER
*
*/
#define WIDGET_PROP_ASSETS_MANAGER "assets_manager"
/**
* @const WIDGET_PROP_LOCALE_INFO
* locale_info
*/
#define WIDGET_PROP_LOCALE_INFO "locale_info"
/**
* @const WIDGET_PROP_FONT_MANAGER
*
*/
#define WIDGET_PROP_FONT_MANAGER "font_manager"
/**
* @const WIDGET_PROP_THEME_OBJ
*
*/
#define WIDGET_PROP_THEME_OBJ "theme_obj"
/**
* @const WIDGET_PROP_DEFAULT_THEME_OBJ
*
*/
#define WIDGET_PROP_DEFAULT_THEME_OBJ "default_theme_obj"
/**
* @const WIDGET_PROP_ITEM_WIDTH
*
*/
#define WIDGET_PROP_ITEM_WIDTH "item_width"
/**
* @const WIDGET_PROP_ITEM_HEIGHT
*
*/
#define WIDGET_PROP_ITEM_HEIGHT "item_height"
/**
* @const WIDGET_PROP_DEFAULT_ITEM_HEIGHT
*
*/
#define WIDGET_PROP_DEFAULT_ITEM_HEIGHT "default_item_height"
/**
* @const WIDGET_PROP_XSLIDABLE
* X方向是否可拖动
*/
#define WIDGET_PROP_XSLIDABLE "xslidable"
/**
* @const WIDGET_PROP_YSLIDABLE
* Y方向是否可拖动
*/
#define WIDGET_PROP_YSLIDABLE "yslidable"
/**
* @const WIDGET_PROP_REPEAT
*
*/
#define WIDGET_PROP_REPEAT "repeat"
/**
* @const WIDGET_PROP_LONG_PRESS_TIME
* (ms)
*/
#define WIDGET_PROP_LONG_PRESS_TIME "long_press_time"
/**
* @const WIDGET_PROP_ENABLE_LONG_PRESS
*
*/
#define WIDGET_PROP_ENABLE_LONG_PRESS "enable_long_press"
/**
* @const WIDGET_PROP_ENABLE_PREVIEW
*
*/
#define WIDGET_PROP_ENABLE_PREVIEW "enable_preview"
/**
* @const WIDGET_PROP_CLICK_THROUGH
* 穿
*/
#define WIDGET_PROP_CLICK_THROUGH "click_through"
/**
* @const WIDGET_PROP_ANIMATABLE
*
*/
#define WIDGET_PROP_ANIMATABLE "animatable"
/**
* @const WIDGET_PROP_AUTO_HIDE
*
*/
#define WIDGET_PROP_AUTO_HIDE "auto_hide"
/**
* @const WIDGET_PROP_AUTO_HIDE_SCROLL_BAR
*
*/
#define WIDGET_PROP_AUTO_HIDE_SCROLL_BAR "auto_hide_scroll_bar"
/**
* @const WIDGET_PROP_IMAGE
*
*/
#define WIDGET_PROP_IMAGE "image"
/**
* @const WIDGET_PROP_FORMAT
*
*/
#define WIDGET_PROP_FORMAT "format"
/**
* @const WIDGET_PROP_DRAW_TYPE
*
*/
#define WIDGET_PROP_DRAW_TYPE "draw_type"
/**
* @const WIDGET_PROP_SELECTABLE
*
*/
#define WIDGET_PROP_SELECTABLE "selectable"
/**
* @const WIDGET_PROP_CLICKABLE
*
*/
#define WIDGET_PROP_CLICKABLE "clickable"
/**
* @const WIDGET_PROP_SCALE_X
* X方向缩放比例
*/
#define WIDGET_PROP_SCALE_X "scale_x"
/**
* @const WIDGET_PROP_SCALE_Y
* Y方向缩放比例
*/
#define WIDGET_PROP_SCALE_Y "scale_y"
/**
* @const WIDGET_PROP_ANCHOR_X
* x锚点
*/
#define WIDGET_PROP_ANCHOR_X "anchor_x"
/**
* @const WIDGET_PROP_ANCHOR_Y
* y锚点
*/
#define WIDGET_PROP_ANCHOR_Y "anchor_y"
/**
* @const WIDGET_PROP_ROTATION
* ()
*/
#define WIDGET_PROP_ROTATION "rotation"
/**
* @const WIDGET_PROP_COMPACT
*
*/
#define WIDGET_PROP_COMPACT "compact"
/**
* @const WIDGET_PROP_SCROLLABLE
*
*/
#define WIDGET_PROP_SCROLLABLE "scrollable"
/**
* @const WIDGET_PROP_ICON
*
*/
#define WIDGET_PROP_ICON "icon"
/**
* @const WIDGET_PROP_OPTIONS
*
*/
#define WIDGET_PROP_OPTIONS "options"
/**
* @const WIDGET_PROP_SELECTED
*
*/
#define WIDGET_PROP_SELECTED "selected"
/**
* @const WIDGET_PROP_CHECKED
*
*/
#define WIDGET_PROP_CHECKED "checked"
/**
* @const WIDGET_PROP_ACTIVE_ICON
* active状态下的图标
*/
#define WIDGET_PROP_ACTIVE_ICON "active_icon"
/**
* @const WIDGET_PROP_LOAD_UI
* UI名字
*/
#define WIDGET_PROP_LOAD_UI "load_ui"
/**
* @const WIDGET_PROP_OPEN_WINDOW
*
*/
#define WIDGET_PROP_OPEN_WINDOW "open_window"
/**
* @const WIDGET_PROP_THEME_OF_POPUP
* ComboBox打开弹出窗口的主题
*/
#define WIDGET_PROP_THEME_OF_POPUP "theme_of_popup"
/**
* @const WIDGET_PROP_SELECTED_INDEX
*
*/
#define WIDGET_PROP_SELECTED_INDEX "selected_index"
/**
* @const WIDGET_PROP_CLOSE_WHEN_CLICK
*
*/
#define WIDGET_PROP_CLOSE_WHEN_CLICK "close_when_click"
/**
* @const WIDGET_PROP_CLOSE_WHEN_CLICK_OUTSIDE
*
*/
#define WIDGET_PROP_CLOSE_WHEN_CLICK_OUTSIDE "close_when_click_outside"
/**
* @const WIDGET_PROP_CLOSE_WHEN_TIMEOUT
*
*/
#define WIDGET_PROP_CLOSE_WHEN_TIMEOUT "close_when_timeout"
/**
* @const WIDGET_PROP_LINE_GAP
*
*/
#define WIDGET_PROP_LINE_GAP "line_gap"
/**
* @const WIDGET_PROP_BG_COLOR
* (使color tile)
*/
#define WIDGET_PROP_BG_COLOR "bg_color"
/**
* @const WIDGET_PROP_BORDER_COLOR
* (使color tile)
*/
#define WIDGET_PROP_BORDER_COLOR "border_color"
/**
* @const WIDGET_PROP_DELAY
* ()
*/
#define WIDGET_PROP_DELAY "delay"
/**
* @const WIDGET_PROP_IS_KEYBOARD
*
*/
#define WIDGET_PROP_IS_KEYBOARD "is_keyboard"
/**
* @const WIDGET_PROP_FOCUSED
*
*/
#define WIDGET_PROP_FOCUSED "focused"
/**
* @const WIDGET_PROP_FOCUS
* (focused)
*/
#define WIDGET_PROP_FOCUS "focus"
/**
* @const WIDGET_PROP_FOCUSABLE
*
*/
#define WIDGET_PROP_FOCUSABLE "focusable"
/**
* @const WIDGET_PROP_WITH_FOCUS_STATE
* (style支持焦点状态)
*/
#define WIDGET_PROP_WITH_FOCUS_STATE "with_focus_state"
/**
* @const WIDGET_PROP_MOVE_FOCUS_PREV_KEY
*
*/
#define WIDGET_PROP_MOVE_FOCUS_PREV_KEY "move_focus_prev_key"
/**
* @const WIDGET_PROP_MOVE_FOCUS_NEXT_KEY
*
*/
#define WIDGET_PROP_MOVE_FOCUS_NEXT_KEY "move_focus_next_key"
/**
* @const WIDGET_PROP_MOVE_FOCUS_UP_KEY
*
*/
#define WIDGET_PROP_MOVE_FOCUS_UP_KEY "move_focus_up_key"
/**
* @const WIDGET_PROP_MOVE_FOCUS_DOWN_KEY
*
*/
#define WIDGET_PROP_MOVE_FOCUS_DOWN_KEY "move_focus_down_key"
/**
* @const WIDGET_PROP_MOVE_FOCUS_LEFT_KEY
*
*/
#define WIDGET_PROP_MOVE_FOCUS_LEFT_KEY "move_focus_left_key"
/**
* @const WIDGET_PROP_MOVE_FOCUS_RIGHT_KEY
*
*/
#define WIDGET_PROP_MOVE_FOCUS_RIGHT_KEY "move_focus_right_key"
/**
* @const WIDGET_PROP_ROWS
*
*/
#define WIDGET_PROP_ROWS "rows"
/**
* @const WIDGET_PROP_SHOW_GRID
* 线
*/
#define WIDGET_PROP_SHOW_GRID "show_grid"
/**
* @const WIDGET_PROP_COLUMNS_DEFINITION
*
*/
#define WIDGET_PROP_COLUMNS_DEFINITION "columns_definition"
/**
* @const WIDGET_PROP_DRAG_THRESHOLD
*
*/
#define WIDGET_PROP_DRAG_THRESHOLD "drag_threshold"
/**
* @const WIDGET_PROP_ANIMATING_TIME
*
*/
#define WIDGET_PROP_ANIMATING_TIME "animating_time"
/**
* @const WIDGET_PROP_ANIMATE_PREFIX
*
*/
#define WIDGET_PROP_ANIMATE_PREFIX "animate:"
/**
* @const WIDGET_PROP_ANIMATE_ANIMATING_TIME
*
*/
#define WIDGET_PROP_ANIMATE_ANIMATING_TIME "animate:animating_time"
/**
* @const WIDGET_PROP_DIRTY_RECT
*
*/
#define WIDGET_PROP_DIRTY_RECT "dirty_rect"
/**
* @enum widget_type_t
* @annotation ["scriptable", "string"]
* @prefix WIDGET_TYPE_
*
*/
/**
* @const WIDGET_TYPE_NONE
*
*/
#define WIDGET_TYPE_NONE "widget"
/**
* @const WIDGET_TYPE_WINDOW_MANAGER
*
*/
#define WIDGET_TYPE_WINDOW_MANAGER "window_manager"
/**
* @const WIDGET_TYPE_NORMAL_WINDOW
*
*/
#define WIDGET_TYPE_NORMAL_WINDOW "window"
/**
* @const WIDGET_TYPE_OVERLAY
* overlay窗口
*/
#define WIDGET_TYPE_OVERLAY "overlay"
/**
* @const WIDGET_TYPE_TOOL_BAR
*
*/
#define WIDGET_TYPE_TOOL_BAR "tool_bar"
/**
* @const WIDGET_TYPE_DIALOG
*
*/
#define WIDGET_TYPE_DIALOG "dialog"
/**
* @const WIDGET_TYPE_POPUP
*
*/
#define WIDGET_TYPE_POPUP "popup"
/**
* @const WIDGET_TYPE_SYSTEM_BAR
* system bar window
*/
#define WIDGET_TYPE_SYSTEM_BAR "system_bar"
/**
* @const WIDGET_TYPE_SYSTEM_BAR_BOTTOM
* system bar window ato bottom
*/
#define WIDGET_TYPE_SYSTEM_BAR_BOTTOM "system_bar_bottom"
/**
* @const WIDGET_TYPE_SPRITE
*
*/
#define WIDGET_TYPE_SPRITE "sprite"
/**
* @const WIDGET_TYPE_KEYBOARD
*
*/
#define WIDGET_TYPE_KEYBOARD "keyboard"
/**
* @const WIDGET_TYPE_DND
*
*/
#define WIDGET_TYPE_DND "dnd"
/**
* @const WIDGET_TYPE_LABEL
*
*/
#define WIDGET_TYPE_LABEL "label"
/**
* @const WIDGET_TYPE_BUTTON
*
*/
#define WIDGET_TYPE_BUTTON "button"
/**
* @const WIDGET_TYPE_IMAGE
*
*/
#define WIDGET_TYPE_IMAGE "image"
/**
* @const WIDGET_TYPE_ICON
*
*/
#define WIDGET_TYPE_ICON "icon"
/**
* @const WIDGET_TYPE_EDIT
*
*/
#define WIDGET_TYPE_EDIT "edit"
/**
* @const WIDGET_TYPE_PROGRESS_BAR
*
*/
#define WIDGET_TYPE_PROGRESS_BAR "progress_bar"
/**
* @const WIDGET_TYPE_GROUP_BOX
*
*/
#define WIDGET_TYPE_GROUP_BOX "group_box"
/**
* @const WIDGET_TYPE_CHECK_BUTTON
*
*/
#define WIDGET_TYPE_CHECK_BUTTON "check_button"
/**
* @const WIDGET_TYPE_RADIO_BUTTON
*
*/
#define WIDGET_TYPE_RADIO_BUTTON "radio_button"
/**
* @const WIDGET_TYPE_DIALOG_TITLE
*
*/
#define WIDGET_TYPE_DIALOG_TITLE "dialog_title"
/**
* @const WIDGET_TYPE_DIALOG_CLIENT
*
*/
#define WIDGET_TYPE_DIALOG_CLIENT "dialog_client"
/**
* @const WIDGET_TYPE_SLIDER
*
*/
#define WIDGET_TYPE_SLIDER "slider"
/**
* @const WIDGET_TYPE_VIEW
*
*/
#define WIDGET_TYPE_VIEW "view"
/**
* @const WIDGET_TYPE_PAGE
* page控件
*/
#define WIDGET_TYPE_PAGE "page"
/**
* @const WIDGET_TYPE_COMBO_BOX
*
*/
#define WIDGET_TYPE_COMBO_BOX "combo_box"
/**
* @const WIDGET_TYPE_COMBO_BOX_ITEM
*
*/
#define WIDGET_TYPE_COMBO_BOX_ITEM "combo_box_item"
/**
* @const WIDGET_TYPE_SLIDE_VIEW
*
*/
#define WIDGET_TYPE_SLIDE_VIEW "slide_view"
/**
* @const WIDGET_TYPE_SLIDE_INDICATOR
*
*/
#define WIDGET_TYPE_SLIDE_INDICATOR "slide_indicator"
/**
* @const WIDGET_TYPE_SLIDE_INDICATOR_ARC
*
*/
#define WIDGET_TYPE_SLIDE_INDICATOR_ARC "slide_indicator_arc"
/**
* @const WIDGET_TYPE_PAGES
*
*/
#define WIDGET_TYPE_PAGES "pages"
/**
* @const WIDGET_TYPE_TAB_BUTTON
*
*/
#define WIDGET_TYPE_TAB_BUTTON "tab_button"
/**
* @const WIDGET_TYPE_TAB_CONTROL
*
*/
#define WIDGET_TYPE_TAB_CONTROL "tab_control"
/**
* @const WIDGET_TYPE_TAB_BUTTON_GROUP
*
*/
#define WIDGET_TYPE_TAB_BUTTON_GROUP "tab_button_group"
/**
* @const WIDGET_TYPE_BUTTON_GROUP
*
*/
#define WIDGET_TYPE_BUTTON_GROUP "button_group"
/**
* @const WIDGET_TYPE_CANDIDATES
*
*/
#define WIDGET_TYPE_CANDIDATES "candidates"
/**
* @const WIDGET_TYPE_SPIN_BOX
*
*/
#define WIDGET_TYPE_SPIN_BOX "spin_box"
/**
* @const WIDGET_TYPE_DRAGGER
*
*/
#define WIDGET_TYPE_DRAGGER "dragger"
/**
* @const WIDGET_TYPE_SCROLL_BAR
*
*/
#define WIDGET_TYPE_SCROLL_BAR "scroll_bar"
/**
* @const WIDGET_TYPE_SCROLL_BAR_DESKTOP
*
*/
#define WIDGET_TYPE_SCROLL_BAR_DESKTOP "scroll_bar_d"
/**
* @const WIDGET_TYPE_SCROLL_BAR_MOBILE
*
*/
#define WIDGET_TYPE_SCROLL_BAR_MOBILE "scroll_bar_m"
/**
* @const WIDGET_TYPE_SCROLL_VIEW
*
*/
#define WIDGET_TYPE_SCROLL_VIEW "scroll_view"
/**
* @const WIDGET_TYPE_LIST_VIEW
*
*/
#define WIDGET_TYPE_LIST_VIEW "list_view"
/**
* @const WIDGET_TYPE_LIST_VIEW_H
*
*/
#define WIDGET_TYPE_LIST_VIEW_H "list_view_h"
/**
* @const WIDGET_TYPE_LIST_ITEM
*
*/
#define WIDGET_TYPE_LIST_ITEM "list_item"
/**
* @const WIDGET_TYPE_COLOR_PICKER
*
*/
#define WIDGET_TYPE_COLOR_PICKER "color_picker"
/**
* @const WIDGET_TYPE_COLOR_COMPONENT
*
*/
#define WIDGET_TYPE_COLOR_COMPONENT "color_component"
/**
* @const WIDGET_TYPE_COLOR_TILE
*
*/
#define WIDGET_TYPE_COLOR_TILE "color_tile"
/**
* @const WIDGET_TYPE_CLIP_VIEW
*
*/
#define WIDGET_TYPE_CLIP_VIEW "clip_view"
/**
* @const WIDGET_TYPE_RICH_TEXT
*
*/
#define WIDGET_TYPE_RICH_TEXT "rich_text"
/**
* @const WIDGET_TYPE_APP_BAR
* AppBar控件
*/
#define WIDGET_TYPE_APP_BAR "app_bar"
/**
* @const WIDGET_TYPE_GRID
*
*/
#define WIDGET_TYPE_GRID "grid"
/**
* @const WIDGET_TYPE_GRID_ITEM
*
*/
#define WIDGET_TYPE_GRID_ITEM "grid_item"
/**
* @const WIDGET_TYPE_ROW
*
*/
#define WIDGET_TYPE_ROW "row"
/**
* @const WIDGET_TYPE_COLUMN
*
*/
#define WIDGET_TYPE_COLUMN "column"
/**
* @const WIDGET_TYPE_CALIBRATION_WIN
*
*/
#define WIDGET_TYPE_CALIBRATION_WIN "calibration_win"
/**
* @enum window_stage_t
* @annotation ["scriptable"]
* @prefix WINDOW_STAGE_
*
*/
typedef enum _window_stage_t {
/**
* @const WINDOW_STAGE_NONE
*
*/
WINDOW_STAGE_NONE = 0,
/**
* @const WINDOW_STAGE_LOADED
* UI资源加载完成
*/
WINDOW_STAGE_LOADED,
/**
* @const WINDOW_STAGE_CREATED
*
*/
WINDOW_STAGE_CREATED,
/**
* @const WINDOW_STAGE_OPENED
* ()
*/
WINDOW_STAGE_OPENED,
/**
* @const WINDOW_STAGE_CLOSED
*
*/
WINDOW_STAGE_CLOSED,
/**
* @const WINDOW_STAGE_SUSPEND
*
*/
WINDOW_STAGE_SUSPEND
} window_stage_t;
/**
* @enum window_closable_t
* @annotation ["scriptable"]
* @prefix WINDOW_CLOSABLE_
* closable常量定义
*/
typedef enum _window_closable_t {
/**
* @const WINDOW_CLOSABLE_YES
*
*/
WINDOW_CLOSABLE_YES = 0,
/**
* @const WINDOW_CLOSABLE_NO
*
*/
WINDOW_CLOSABLE_NO,
/**
* @const WINDOW_CLOSABLE_CONFIRM
*
*/
WINDOW_CLOSABLE_CONFIRM
} window_closable_t;
/**
* @enum widget_state_t
* @annotation ["scriptable", "string"]
* @prefix WIDGET_STATE_
*
*
*
*/
/**
* @const WIDGET_STATE_NONE
*
*/
#define WIDGET_STATE_NONE ""
/**
* @const WIDGET_STATE_NORMAL
*
*/
#define WIDGET_STATE_NORMAL "normal"
/**
* @const WIDGET_STATE_ACTIVATED
* 3/5keys模式时()
*/
#define WIDGET_STATE_ACTIVATED "activated"
/**
* @const WIDGET_STATE_CHANGED
*
*/
#define WIDGET_STATE_CHANGED "changed"
/**
* @const WIDGET_STATE_PRESSED
*
*/
#define WIDGET_STATE_PRESSED "pressed"
/**
* @const WIDGET_STATE_OVER
*
*/
#define WIDGET_STATE_OVER "over"
/**
* @const WIDGET_STATE_DISABLE
*
*/
#define WIDGET_STATE_DISABLE "disable"
/**
* @const WIDGET_STATE_FOCUSED
*
*/
#define WIDGET_STATE_FOCUSED "focused"
/**
* @const WIDGET_STATE_CHECKED
*
*/
#define WIDGET_STATE_CHECKED "checked"
/**
* @const WIDGET_STATE_UNCHECKED
*
*/
#define WIDGET_STATE_UNCHECKED "unchecked"
/**
* @const WIDGET_STATE_EMPTY
*
*/
#define WIDGET_STATE_EMPTY "empty"
/**
* @const WIDGET_STATE_EMPTY_FOCUS
*
*/
#define WIDGET_STATE_EMPTY_FOCUS "empty_focus"
/**
* @const WIDGET_STATE_EMPTY_OVER
*
*/
#define WIDGET_STATE_EMPTY_OVER "empty_over"
/**
* @const WIDGET_STATE_ERROR
*
*/
#define WIDGET_STATE_ERROR "error"
/**
* @const WIDGET_STATE_SELECTED
*
*/
#define WIDGET_STATE_SELECTED "selected"
/*for active/selected/current */
/**
* @const WIDGET_STATE_NORMAL_OF_CHECKED
* ()
*/
#define WIDGET_STATE_NORMAL_OF_CHECKED "normal_of_checked"
/**
* @const WIDGET_STATE_PRESSED_OF_CHECKED
* ()
*/
#define WIDGET_STATE_PRESSED_OF_CHECKED "pressed_of_checked"
/**
* @const WIDGET_STATE_OVER_OF_CHECKED
* ()
*/
#define WIDGET_STATE_OVER_OF_CHECKED "over_of_checked"
/**
* @const WIDGET_STATE_DISABLE_OF_CHECKED
* ()
*/
#define WIDGET_STATE_DISABLE_OF_CHECKED "disable_of_checked"
/**
* @const WIDGET_STATE_FOCUSED_OF_CHECKED
* ()
*/
#define WIDGET_STATE_FOCUSED_OF_CHECKED "focused_of_checked"
/**
* @const WIDGET_STATE_NORMAL_OF_ACTIVE
* ()
*/
#define WIDGET_STATE_NORMAL_OF_ACTIVE "normal_of_active"
/**
* @const WIDGET_STATE_PRESSED_OF_ACTIVE
* ()
*/
#define WIDGET_STATE_PRESSED_OF_ACTIVE "pressed_of_active"
/**
* @const WIDGET_STATE_OVER_OF_ACTIVE
* ()
*/
#define WIDGET_STATE_OVER_OF_ACTIVE "over_of_active"
/**
* @const WIDGET_STATE_DISABLE_OF_ACTIVE
* ()
*/
#define WIDGET_STATE_DISABLE_OF_ACTIVE "disable_of_active"
/**
* @const WIDGET_STATE_FOCUSED_OF_ACTIVE
* ()
*/
#define WIDGET_STATE_FOCUSED_OF_ACTIVE "focused_of_active"
/**
* @enum widget_cursor_t
* @annotation ["scriptable", "string"]
* @prefix WIDGET_
*
*
*/
/**
* @const WIDGET_CURSOR_DEFAULT
*
*/
#define WIDGET_CURSOR_DEFAULT "cursor"
/**
* @const WIDGET_CURSOR_EDIT
*
*/
#define WIDGET_CURSOR_EDIT "cursor_text"
/**
* @const WIDGET_CURSOR_HAND
*
*/
#define WIDGET_CURSOR_HAND "cursor_hand"
/**
* @const WIDGET_CURSOR_WAIT
*
*/
#define WIDGET_CURSOR_WAIT "cursor_wait"
/**
* @const WIDGET_CURSOR_CROSS
*
*/
#define WIDGET_CURSOR_CROSS "cursor_cross"
/**
* @const WIDGET_CURSOR_NO
* Slashed circle or crossbones
*/
#define WIDGET_CURSOR_NO "cursor_no"
/**
* @const WIDGET_CURSOR_SIZENWSE
* Double arrow pointing northwest and southeast
*/
#define WIDGET_CURSOR_SIZENWSE "cursor_size_nwse"
/**
* @const WIDGET_CURSOR_SIZENESW
* Double arrow pointing northeast and southwest
*/
#define WIDGET_CURSOR_SIZENESW "cursor_size_nesw"
/**
* @const WIDGET_CURSOR_SIZEWE
* Double arrow pointing west and east
*/
#define WIDGET_CURSOR_SIZEWE "cursor_size_we"
/**
* @const WIDGET_CURSOR_SIZENS
* Double arrow pointing north and south
*/
#define WIDGET_CURSOR_SIZENS "cursor_size_ns"
/**
* @const WIDGET_CURSOR_SIZEALL
* Four pointed arrow pointing north, south, east, and west
*/
#define WIDGET_CURSOR_SIZEALL "cursor_size_all"
/*for fscript*/
#define STR_PROP_SELF "self"
#define STR_PROP_PARENT "parent"
#define STR_PROP_WINDOW "window"
#define STR_PROP_WINDOW_MANAGER "window_manager"
#define STR_PROP_MODEL "__model__"
END_C_DECLS
#endif /*TK_WIDGET_CONSTS_H*/