The Salam UI style standard: every property with its English and Persian name, value syntax, validation with clear errors, defaults per element, inheritance, interpolation for transitions and the CSS the web target writes.
Constants and variables
The keyword auto (Persian خودکار).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword none (Persian هیچ).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword normal (Persian عادی).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword all (Persian همه).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword true (Persian درست).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword false (Persian نادرست).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword column (Persian ستون).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword row (Persian ردیف).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword grid (Persian شبکه).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword stack (Persian پشته).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword flow (Persian جریان).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword dense (Persian فشرده).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_ROW_DENSE: i32 = 13 The keyword row dense (Persian ردیف فشرده).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_COLUMN_DENSE: i32 = 14 The keyword column dense (Persian ستون فشرده).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword start (Persian ابتدا).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_CENTER: i32 = 16 The keyword center (Persian وسط).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword end (Persian انتها).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_STRETCH: i32 = 18 The keyword stretch (Persian کشیده).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_BASELINE: i32 = 19 The keyword baseline (Persian خط پایه).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_BETWEEN: i32 = 20 The keyword between (Persian میان).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_AROUND: i32 = 21 The keyword around (Persian پیرامون).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_EVENLY: i32 = 22 The keyword evenly (Persian یکسان).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_ABSOLUTE: i32 = 23 The keyword absolute (Persian مطلق).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword fixed (Persian ثابت).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_STICKY: i32 = 25 The keyword sticky (Persian چسبان).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword top (Persian بالا).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_BOTTOM: i32 = 27 The keyword bottom (Persian پایین).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword left (Persian چپ).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword right (Persian راست).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword fill (Persian پر).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword fit (Persian متناسب).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_MIN_CONTENT: i32 = 32 The keyword min content (Persian کمینه محتوا).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_MAX_CONTENT: i32 = 33 The keyword max content (Persian بیشینه محتوا).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_VISIBLE: i32 = 34 The keyword visible (Persian نمایان).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_HIDDEN: i32 = 35 The keyword hidden (Persian پنهان).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_SCROLL: i32 = 36 The keyword scroll (Persian پیمایش).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword cover (Persian پوشش).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_CONTAIN: i32 = 38 The keyword contain (Persian گنجاندن).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword x (Persian افقی).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword y (Persian عمودی).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword solid (Persian توپر).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_DASHED: i32 = 42 The keyword dashed (Persian خط چین).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_DOTTED: i32 = 43 The keyword dotted (Persian نقطه چین).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_DOUBLE: i32 = 44 The keyword double (Persian دوخطی).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword wavy (Persian موجی).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword inset (Persian درونی).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_MULTIPLY: i32 = 47 The keyword multiply (Persian ضرب).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_SCREEN: i32 = 48 The keyword screen (Persian پرده).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_OVERLAY: i32 = 49 The keyword overlay (Persian روکش).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_DARKEN: i32 = 50 The keyword darken (Persian تیرهتر).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_LIGHTEN: i32 = 51 The keyword lighten (Persian روشنتر).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_COLOR_DODGE: i32 = 52 The keyword color dodge (Persian رنگ گریز).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_COLOR_BURN: i32 = 53 The keyword color burn (Persian رنگ سوز).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_HARD_LIGHT: i32 = 54 The keyword hard light (Persian نور سخت).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_SOFT_LIGHT: i32 = 55 The keyword soft light (Persian نور نرم).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_DIFFERENCE: i32 = 56 The keyword difference (Persian تفاوت).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_EXCLUSION: i32 = 57 The keyword exclusion (Persian طرد).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword hue (Persian فام).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_SATURATION: i32 = 59 The keyword saturation (Persian اشباع).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword color (Persian رنگ).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_LUMINOSITY: i32 = 61 The keyword luminosity (Persian درخشندگی).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_DEFAULT: i32 = 62 The keyword default (Persian پیشفرض).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_POINTER: i32 = 63 The keyword pointer (Persian اشاره).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword text (Persian متن).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword move (Persian جابجایی).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword grab (Persian گرفتن).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_GRABBING: i32 = 67 The keyword grabbing (Persian چنگ زده).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_NOT_ALLOWED: i32 = 68 The keyword not allowed (Persian غیرمجاز).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword wait (Persian انتظار).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_PROGRESS: i32 = 70 The keyword progress (Persian مشغول).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_CROSSHAIR: i32 = 71 The keyword crosshair (Persian نشانه).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword help (Persian راهنما).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_RESIZE: i32 = 73 The keyword resize (Persian تغییر اندازه).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_RESIZE_X: i32 = 74 The keyword resize x (Persian تغییر اندازه افقی).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_RESIZE_Y: i32 = 75 The keyword resize y (Persian تغییر اندازه عمودی).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_ZOOM_IN: i32 = 76 The keyword zoom in (Persian بزرگنمایی).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_ZOOM_OUT: i32 = 77 The keyword zoom out (Persian کوچکنمایی).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_SCALE_DOWN: i32 = 78 The keyword scale down (Persian کوچکسازی).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword thin (Persian نازک).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword light (Persian سبک).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_MEDIUM: i32 = 81 The keyword medium (Persian متوسط).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_SEMIBOLD: i32 = 82 The keyword semibold (Persian نیمپررنگ).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword bold (Persian پررنگ).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword black (Persian بسیار پررنگ).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword sans (Persian ساده).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword serif (Persian گیرهدار).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword mono (Persian تکفاصله).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_SYSTEM: i32 = 88 The keyword system (Persian سیستمی).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_JUSTIFY: i32 = 89 The keyword justify (Persian همتراز).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_UNDERLINE: i32 = 90 The keyword underline (Persian زیرخط).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_OVERLINE: i32 = 91 The keyword overline (Persian روخط).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_STRIKE: i32 = 92 The keyword strike (Persian خط خورده).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword upper (Persian بزرگ).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword lower (Persian کوچک).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_CAPITALIZE: i32 = 95 The keyword capitalize (Persian حرف اول بزرگ).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword rtl (Persian راست به چپ).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword ltr (Persian چپ به راست).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword keep (Persian حفظ).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_LINEAR: i32 = 99 The keyword linear (Persian خطی).
The example for this item is shown with the ones above: gui-style-Props.salam
The keyword ease (Persian نرم).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_EASE_IN: i32 = 101 The keyword ease in (Persian نرم ابتدا).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_EASE_OUT: i32 = 102 The keyword ease out (Persian نرم انتها).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_EASE_IN_OUT: i32 = 103 The keyword ease in out (Persian نرم دوسویه).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_CIRCLE: i32 = 104 The keyword circle (Persian دایره).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_ELLIPSE: i32 = 105 The keyword ellipse (Persian بیضی).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_TO_TOP: i32 = 106 The keyword to top (Persian به بالا).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_TO_BOTTOM: i32 = 107 The keyword to bottom (Persian به پایین).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_TO_LEFT: i32 = 108 The keyword to left (Persian به چپ).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_TO_RIGHT: i32 = 109 The keyword to right (Persian به راست).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_TO_TOP_LEFT: i32 = 110 The keyword to top left (Persian به بالا چپ).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_TO_TOP_RIGHT: i32 = 111 The keyword to top right (Persian به بالا راست).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_TO_BOTTOM_LEFT: i32 = 112 The keyword to bottom left (Persian به پایین چپ).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_TO_BOTTOM_RIGHT: i32 = 113 The keyword to bottom right (Persian به پایین راست).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_PAN_X: i32 = 114 The keyword pan x (Persian کشیدن افقی).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_PAN_Y: i32 = 115 The keyword pan y (Persian کشیدن عمودی).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_PINCH: i32 = 116 The keyword pinch (Persian نیشگون).
The example for this item is shown with the ones above: gui-style-Props.salam
const KW_MANIPULATION: i32 = 117 The keyword manipulation (Persian دستکاری).
The example for this item is shown with the ones above: gui-style-Props.salam
const KEYWORD_COUNT: i32 = 118 One more than the last keyword id; ids start at 1.
The example for this item is shown with the ones above: gui-style-Props.salam
The id of the layout property (Persian چیدمان), a word value.
The example for this item is shown with the ones above: gui-style-Props.salam
The id of the gap property (Persian شکاف), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
The id of the align property (Persian تراز), a word value.
The example for this item is shown with the ones above: gui-style-Props.salam
The id of the justify property (Persian چینش), a word value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_ALIGN_CONTENT: i32 = 4 The id of the align content property (Persian محتوا تراز), a word value.
The example for this item is shown with the ones above: gui-style-Props.salam
The id of the wrap property (Persian پیچش), a bool value.
The example for this item is shown with the ones above: gui-style-Props.salam
The id of the reverse property (Persian معکوس), a bool value.
The example for this item is shown with the ones above: gui-style-Props.salam
The id of the columns property (Persian ستونها), a tracks value.
The example for this item is shown with the ones above: gui-style-Props.salam
The id of the rows property (Persian ردیفها), a tracks value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_AUTO_COLUMNS: i32 = 9 The id of the auto columns property (Persian ستونهای خودکار), a tracks value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_AUTO_ROWS: i32 = 10 The id of the auto rows property (Persian ردیفهای خودکار), a tracks value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_AUTO_FLOW: i32 = 11 The id of the auto flow property (Persian جریان خودکار), a word value.
The example for this item is shown with the ones above: gui-style-Props.salam
The id of the grow property (Persian رشد), a number value.
The example for this item is shown with the ones above: gui-style-Props.salam
The id of the shrink property (Persian جمعشدن), a number value.
The example for this item is shown with the ones above: gui-style-Props.salam
The id of the basis property (Persian پایه), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_ALIGN_SELF: i32 = 15 The id of the align self property (Persian خود تراز), a word value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_JUSTIFY_SELF: i32 = 16 The id of the justify self property (Persian خود چینش), a word value.
The example for this item is shown with the ones above: gui-style-Props.salam
The id of the column property (Persian ستون), a int value.
The example for this item is shown with the ones above: gui-style-Props.salam
The id of the row property (Persian ردیف), a int value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_COLUMN_SPAN: i32 = 19 The id of the column span property (Persian گستره ستون), a int value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_ROW_SPAN: i32 = 20 The id of the row span property (Persian گستره ردیف), a int value.
The example for this item is shown with the ones above: gui-style-Props.salam
The id of the order property (Persian ترتیب نمایش), a int value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_POSITION: i32 = 22 The id of the position property (Persian موقعیت), a word value.
The example for this item is shown with the ones above: gui-style-Props.salam
The id of the top property (Persian بالا), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
The id of the bottom property (Persian پایین), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
The id of the start property (Persian ابتدا), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
The id of the end property (Persian انتها), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
The id of the left property (Persian چپ), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
The id of the right property (Persian راست), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
The id of the inset property (Persian فاصله از لبه), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
The id of the layer property (Persian لایه), a int value.
The example for this item is shown with the ones above: gui-style-Props.salam
The id of the width property (Persian عرض), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
The id of the height property (Persian ارتفاع), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_MIN_WIDTH: i32 = 33 The id of the min width property (Persian کمینه عرض), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_MIN_HEIGHT: i32 = 34 The id of the min height property (Persian کمینه ارتفاع), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_MAX_WIDTH: i32 = 35 The id of the max width property (Persian بیشینه عرض), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_MAX_HEIGHT: i32 = 36 The id of the max height property (Persian بیشینه ارتفاع), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_ASPECT_RATIO: i32 = 37 The id of the aspect ratio property (Persian نسبت ابعاد), a number value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_PADDING: i32 = 38 The id of the padding property (Persian فاصله), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_PADDING_TOP: i32 = 39 The id of the padding top property (Persian فاصله بالا), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_PADDING_BOTTOM: i32 = 40 The id of the padding bottom property (Persian فاصله پایین), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_PADDING_START: i32 = 41 The id of the padding start property (Persian فاصله ابتدا), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_PADDING_END: i32 = 42 The id of the padding end property (Persian فاصله انتها), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_PADDING_LEFT: i32 = 43 The id of the padding left property (Persian فاصله چپ), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_PADDING_RIGHT: i32 = 44 The id of the padding right property (Persian فاصله راست), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_PADDING_X: i32 = 45 The id of the padding x property (Persian فاصله افقی), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_PADDING_Y: i32 = 46 The id of the padding y property (Persian فاصله عمودی), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
The id of the margin property (Persian فضا), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_MARGIN_TOP: i32 = 48 The id of the margin top property (Persian فضا بالا), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_MARGIN_BOTTOM: i32 = 49 The id of the margin bottom property (Persian فضا پایین), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_MARGIN_START: i32 = 50 The id of the margin start property (Persian فضا ابتدا), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_MARGIN_END: i32 = 51 The id of the margin end property (Persian فضا انتها), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_MARGIN_LEFT: i32 = 52 The id of the margin left property (Persian فضا چپ), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_MARGIN_RIGHT: i32 = 53 The id of the margin right property (Persian فضا راست), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_MARGIN_X: i32 = 54 The id of the margin x property (Persian فضا افقی), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_MARGIN_Y: i32 = 55 The id of the margin y property (Persian فضا عمودی), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_OVERFLOW: i32 = 56 The id of the overflow property (Persian سرریز), a word value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_OVERFLOW_X: i32 = 57 The id of the overflow x property (Persian سرریز افقی), a word value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_OVERFLOW_Y: i32 = 58 The id of the overflow y property (Persian سرریز عمودی), a word value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_VISIBLE: i32 = 59 The id of the visible property (Persian نمایان), a bool value.
The example for this item is shown with the ones above: gui-style-Props.salam
The id of the clip property (Persian برش), a bool value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_BACKGROUND: i32 = 61 The id of the background property (Persian پسزمینه), a paint value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_BACKGROUND_SIZE: i32 = 62 The id of the background size property (Persian اندازه پسزمینه), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_BACKGROUND_POSITION: i32 = 63 The id of the background position property (Persian موقعیت پسزمینه), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_BACKGROUND_REPEAT: i32 = 64 The id of the background repeat property (Persian تکرار پسزمینه), a word value.
The example for this item is shown with the ones above: gui-style-Props.salam
The id of the border property (Persian کادر), a border value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_BORDER_TOP: i32 = 66 The id of the border top property (Persian کادر بالا), a border value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_BORDER_BOTTOM: i32 = 67 The id of the border bottom property (Persian کادر پایین), a border value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_BORDER_START: i32 = 68 The id of the border start property (Persian کادر ابتدا), a border value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_BORDER_END: i32 = 69 The id of the border end property (Persian کادر انتها), a border value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_BORDER_LEFT: i32 = 70 The id of the border left property (Persian کادر چپ), a border value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_BORDER_RIGHT: i32 = 71 The id of the border right property (Persian کادر راست), a border value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_BORDER_WIDTH: i32 = 72 The id of the border width property (Persian ضخامت کادر), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_BORDER_STYLE: i32 = 73 The id of the border style property (Persian سبک کادر), a word value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_BORDER_COLOR: i32 = 74 The id of the border color property (Persian رنگ کادر), a color value.
The example for this item is shown with the ones above: gui-style-Props.salam
The id of the radius property (Persian گردی), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_RADIUS_TOP_START: i32 = 76 The id of the radius top start property (Persian گردی بالا ابتدا), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_RADIUS_TOP_END: i32 = 77 The id of the radius top end property (Persian گردی بالا انتها), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_RADIUS_BOTTOM_END: i32 = 78 The id of the radius bottom end property (Persian گردی پایین انتها), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_RADIUS_BOTTOM_START: i32 = 79 The id of the radius bottom start property (Persian گردی پایین ابتدا), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_OUTLINE: i32 = 80 The id of the outline property (Persian دورخط), a border value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_OUTLINE_OFFSET: i32 = 81 The id of the outline offset property (Persian فاصله دورخط), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
The id of the shadow property (Persian سایه), a shadow value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_OPACITY: i32 = 83 The id of the opacity property (Persian شفافیت), a number value.
The example for this item is shown with the ones above: gui-style-Props.salam
The id of the blur property (Persian تاری), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_BRIGHTNESS: i32 = 85 The id of the brightness property (Persian روشنایی), a number value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_CONTRAST: i32 = 86 The id of the contrast property (Persian کنتراست), a number value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_GRAYSCALE: i32 = 87 The id of the grayscale property (Persian خاکستری), a number value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_SATURATE: i32 = 88 The id of the saturate property (Persian اشباع رنگ), a number value.
The example for this item is shown with the ones above: gui-style-Props.salam
The id of the sepia property (Persian سپیا), a number value.
The example for this item is shown with the ones above: gui-style-Props.salam
The id of the invert property (Persian وارونگی), a number value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_HUE_ROTATE: i32 = 91 The id of the hue rotate property (Persian چرخش فام), a angle value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_BACKDROP_BLUR: i32 = 92 The id of the backdrop blur property (Persian تاری پشت), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_BACKDROP_BRIGHTNESS: i32 = 93 The id of the backdrop brightness property (Persian روشنایی پشت), a number value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_BACKDROP_CONTRAST: i32 = 94 The id of the backdrop contrast property (Persian کنتراست پشت), a number value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_BACKDROP_GRAYSCALE: i32 = 95 The id of the backdrop grayscale property (Persian خاکستری پشت), a number value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_BACKDROP_SATURATE: i32 = 96 The id of the backdrop saturate property (Persian اشباع رنگ پشت), a number value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_BACKDROP_SEPIA: i32 = 97 The id of the backdrop sepia property (Persian سپیا پشت), a number value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_BACKDROP_INVERT: i32 = 98 The id of the backdrop invert property (Persian وارونگی پشت), a number value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_BACKDROP_HUE_ROTATE: i32 = 99 The id of the backdrop hue rotate property (Persian چرخش فام پشت), a angle value.
The example for this item is shown with the ones above: gui-style-Props.salam
The id of the blend property (Persian آمیختگی), a word value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_TRANSLATE: i32 = 101 The id of the translate property (Persian جابهجایی), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_ROTATE: i32 = 102 The id of the rotate property (Persian چرخش), a angle value.
The example for this item is shown with the ones above: gui-style-Props.salam
The id of the scale property (Persian مقیاس), a number value.
The example for this item is shown with the ones above: gui-style-Props.salam
The id of the skew property (Persian کجی), a angle value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_ORIGIN: i32 = 105 The id of the origin property (Persian مبدا), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_CURSOR: i32 = 106 The id of the cursor property (Persian نشانگر), a word value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_INTERACTIVE: i32 = 107 The id of the interactive property (Persian تعاملی), a bool value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_SELECTABLE: i32 = 108 The id of the selectable property (Persian انتخابپذیر), a bool value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_IMAGE_FIT: i32 = 109 The id of the image fit property (Persian جاگیری تصویر), a word value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_ACCENT: i32 = 110 The id of the accent property (Persian رنگ تاکید), a color value.
The example for this item is shown with the ones above: gui-style-Props.salam
The id of the caret property (Persian رنگ نشانگر متن), a color value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_SCROLLBAR: i32 = 112 The id of the scrollbar property (Persian نوار پیمایش), a word value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_SCROLLBAR_COLOR: i32 = 113 The id of the scrollbar color property (Persian رنگ نوار پیمایش), a color value.
The example for this item is shown with the ones above: gui-style-Props.salam
The id of the color property (Persian رنگ), a color value.
The example for this item is shown with the ones above: gui-style-Props.salam
The id of the font property (Persian قلم), a fonts value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_FONT_SIZE: i32 = 116 The id of the font size property (Persian اندازه قلم), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_FONT_WEIGHT: i32 = 117 The id of the font weight property (Persian وزن قلم), a number value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_ITALIC: i32 = 118 The id of the italic property (Persian کج), a bool value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_LINE_HEIGHT: i32 = 119 The id of the line height property (Persian ارتفاع خط), a number value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_LETTER_SPACING: i32 = 120 The id of the letter spacing property (Persian فاصله حروف), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_WORD_SPACING: i32 = 121 The id of the word spacing property (Persian فاصله واژهها), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_TEXT_ALIGN: i32 = 122 The id of the text align property (Persian تراز متن), a word value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_DECORATION: i32 = 123 The id of the decoration property (Persian تزیین متن), a word value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_DECORATION_COLOR: i32 = 124 The id of the decoration color property (Persian رنگ تزیین متن), a color value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_DECORATION_STYLE: i32 = 125 The id of the decoration style property (Persian سبک تزیین متن), a word value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_DECORATION_THICKNESS: i32 = 126 The id of the decoration thickness property (Persian ضخامت تزیین متن), a length value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_TRANSFORM_TEXT: i32 = 127 The id of the transform text property (Persian دگرگونی متن), a word value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_WRAP_TEXT: i32 = 128 The id of the wrap text property (Persian پیچش متن), a bool value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_MAX_LINES: i32 = 129 The id of the max lines property (Persian بیشینه سطرها), a int value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_ELLIPSIS: i32 = 130 The id of the ellipsis property (Persian سهنقطه), a bool value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_DIRECTION: i32 = 131 The id of the direction property (Persian جهت متن), a word value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_WHITE_SPACE: i32 = 132 The id of the white space property (Persian فضای سفید), a word value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_TEXT_SHADOW: i32 = 133 The id of the text shadow property (Persian سایه متن), a text shadow value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_FONT_FEATURES: i32 = 134 The id of the font features property (Persian ویژگیهای قلم), a strings value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_TRANSITION: i32 = 135 The id of the transition property (Persian گذار), a transition value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_TRANSITION_PROPERTIES: i32 = 136 The id of the transition properties property (Persian ویژگیهای گذار), a props value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_TAB_SIZE: i32 = 137 The id of the tab size property (Persian اندازه تب), an integer value.
The example for this item is shown with the ones above: gui-style-Props.salam
const P_TOUCH_ACTION: i32 = 138 The id of the touch action property (Persian کنش لمس), a word value.
The example for this item is shown with the ones above: gui-style-Props.salam
const PROP_COUNT: i32 = 139 The number of properties; ids run from 0 to PROP_COUNT - 1.
The example for this item is shown with the ones above: gui-style-Props.salam
gui-style-Parse.salam Copy
import gui.style
func main :
each text in [ "8, 16" , "100% - 20" , "۸، ۱۶٪" , "8 16" , "-4" ]:
mut v := style.Value {}
if style. Parse (style.P_PADDING, text, v):
println "padding =" ,
text,
"->" ,
style. Format (style.P_PADDING, v),
"/" ,
v.items. Len (),
"items"
else :
println style. Error (style.P_PADDING, text)
end
end
mut b := style.Value {}
style. Parse (style.P_BORDER, "#3366aa, 2" , b)
println "border:" , style. Format (style.P_BORDER, b)
mut sh := style.Value {}
style. Parse (style.P_SHADOW, "[0, 4, 8, black], [0, 1, 2, red]" , sh)
println "shadow groups:" ,
sh.starts. Len (),
"first item kind is a length:" ,
sh.items. Get ( 0 ).kind == style.ITEM_LEN
end Output padding = 8, 16 -> 8, 16 / 2 items
padding = 100% - 20 -> 100% - 20 / 1 items
padding = ۸، ۱۶٪ -> 8, 16% / 2 items
padding: lengths are joined with + or -, and a list needs commas; expected 1 to 4 lengths (top, end, bottom, start), not negative, for example padding = 8, 16
padding: a negative length is not allowed; expected 1 to 4 lengths (top, end, bottom, start), not negative, for example padding = 8, 16
border: 2, solid, #3366aa
shadow groups: 2 first item kind is a length: true
Value kind: true or false.
The example for this item is shown with the ones above: gui-style-Parse.salam
const KIND_NUMBER: i32 = 3 The example for this item is shown with the ones above: gui-style-Parse.salam
Value kind: a whole number.
The example for this item is shown with the ones above: gui-style-Parse.salam
const KIND_LENGTH: i32 = 5 The example for this item is shown with the ones above: gui-style-Parse.salam
const KIND_ANGLE: i32 = 6 The example for this item is shown with the ones above: gui-style-Parse.salam
const KIND_COLOR: i32 = 7 The example for this item is shown with the ones above: gui-style-Parse.salam
const KIND_PAINT: i32 = 8 Value kind: paint layers.
The example for this item is shown with the ones above: gui-style-Parse.salam
const KIND_TRACKS: i32 = 9 The example for this item is shown with the ones above: gui-style-Parse.salam
const KIND_BORDER: i32 = 10 Value kind: a border: width, style and colour.
The example for this item is shown with the ones above: gui-style-Parse.salam
const KIND_SHADOW: i32 = 11 The example for this item is shown with the ones above: gui-style-Parse.salam
const KIND_TEXT_SHADOW: i32 = 12 Value kind: text shadows.
The example for this item is shown with the ones above: gui-style-Parse.salam
const KIND_TRANSITION: i32 = 13 The example for this item is shown with the ones above: gui-style-Parse.salam
const KIND_PROPS: i32 = 14 Value kind: property names.
The example for this item is shown with the ones above: gui-style-Parse.salam
const KIND_FONTS: i32 = 15 Value kind: font families.
The example for this item is shown with the ones above: gui-style-Parse.salam
const KIND_STRINGS: i32 = 16 The example for this item is shown with the ones above: gui-style-Parse.salam
The example for this item is shown with the ones above: gui-style-Parse.salam
The example for this item is shown with the ones above: gui-style-Parse.salam
Item kind: a whole number.
The example for this item is shown with the ones above: gui-style-Parse.salam
Item kind: true or false.
The example for this item is shown with the ones above: gui-style-Parse.salam
Item kind: a time in milliseconds.
The example for this item is shown with the ones above: gui-style-Parse.salam
const ITEM_ANGLE: i32 = 6 Item kind: an angle in degrees.
The example for this item is shown with the ones above: gui-style-Parse.salam
const ITEM_COLOR: i32 = 7 The example for this item is shown with the ones above: gui-style-Parse.salam
The example for this item is shown with the ones above: gui-style-Parse.salam
The example for this item is shown with the ones above: gui-style-Parse.salam
const ITEM_PAINT: i32 = 10 Item kind: a gradient or an image.
The example for this item is shown with the ones above: gui-style-Parse.salam
const ITEM_EASE: i32 = 11 The example for this item is shown with the ones above: gui-style-Parse.salam
const ITEM_TRACK: i32 = 12 The example for this item is shown with the ones above: gui-style-Parse.salam
const ITEM_PROP: i32 = 13 Item kind: a property name.
The example for this item is shown with the ones above: gui-style-Parse.salam
const PAINT_COLOR: i32 = 1 Paint kind: a plain colour.
The example for this item is shown with the ones above: gui-style-Source.salam
const PAINT_LINEAR: i32 = 2 The example for this item is shown with the ones above: gui-style-Source.salam
const PAINT_RADIAL: i32 = 3 The example for this item is shown with the ones above: gui-style-Source.salam
const PAINT_CONIC: i32 = 4 The example for this item is shown with the ones above: gui-style-Source.salam
const PAINT_IMAGE: i32 = 5 Paint kind: image("...").
The example for this item is shown with the ones above: gui-style-Source.salam
const EASE_LINEAR: i32 = 1 The example for this item is shown with the ones above: gui-style-Lerp.salam
The example for this item is shown with the ones above: gui-style-Lerp.salam
The example for this item is shown with the ones above: gui-style-Lerp.salam
The example for this item is shown with the ones above: gui-style-Lerp.salam
const EASE_IN_OUT: i32 = 5 The example for this item is shown with the ones above: gui-style-Lerp.salam
const EASE_CUBIC: i32 = 6 Easing: ease(x1, y1, x2, y2).
The example for this item is shown with the ones above: gui-style-Lerp.salam
const EASE_STEPS: i32 = 7 The example for this item is shown with the ones above: gui-style-Lerp.salam
const EASE_SPRING: i32 = 8 Easing: spring(stiffness, damping).
The example for this item is shown with the ones above: gui-style-Lerp.salam
const TRACK_SIZE: i32 = 1 Track kind: one size: a length, fr or a keyword.
The example for this item is shown with the ones above: gui-style-Source.salam
const TRACK_MINMAX: i32 = 2 Track kind: minmax(a, b).
The example for this item is shown with the ones above: gui-style-Source.salam
The example for this item is shown with the ones above: gui-style-Source.salam
const TRACK_REPEAT: i32 = 4 Track kind: repeat(n, tracks).
The example for this item is shown with the ones above: gui-style-Source.salam