Home
last modified time | relevance | path

Searched refs:val (Results 1 – 25 of 106) sorted by relevance

12345

/GUIX-v6.2.1/samples/demo_guix_smart_watch/
Dpage_1_weather_screen.c4 #define CAL_ANIMATION_VAL(val) ((val) * animation_step / ANIMATION_TOTAL_STEPS) argument
36 INT val; in animation_update() local
41 val = get_calorie_burned_progress_val(); in animation_update()
42 …ompt_value_set(&weather_screen.weather_screen_calorie_burned_progress_val, CAL_ANIMATION_VAL(val)); in animation_update()
44 val = val * (-360) / 100; in animation_update()
45 …ress_bar_value_set(&weather_screen.weather_screen_calorie_burned_progress, CAL_ANIMATION_VAL(val)); in animation_update()
47 val = get_running_progress_val(); in animation_update()
48 …eric_prompt_value_set(&weather_screen.weather_screen_running_progress_val, CAL_ANIMATION_VAL(val)); in animation_update()
50 val = val * (-360) / 100; in animation_update()
51 …al_progress_bar_value_set(&weather_screen.weather_screen_running_progress, CAL_ANIMATION_VAL(val)); in animation_update()
[all …]
Dpage_3_fitness_screen.c10 #define CAL_ANIMATION_VAL(val) ((val) * animation_step / ANIMATION_TOTAL_STEPS) argument
81 INT val; in animation_update() local
85 val = get_running_steps(); in animation_update()
86 … gx_numeric_prompt_value_set(&fitness_screen.fitness_screen_running_steps, CAL_ANIMATION_VAL(val)); in animation_update()
88 val = get_running_distance(); in animation_update()
89 …_numeric_prompt_value_set(&fitness_screen.fitness_screen_running_distance, CAL_ANIMATION_VAL(val)); in animation_update()
91 val = get_calorie_burned_progress_val(); in animation_update()
92 …ompt_value_set(&fitness_screen.fitness_screen_calorie_burned_progress_val, CAL_ANIMATION_VAL(val)); in animation_update()
94 val = val * (-360) / 100; in animation_update()
95 …ress_bar_value_set(&fitness_screen.fitness_screen_calorie_burned_progress, CAL_ANIMATION_VAL(val)); in animation_update()
[all …]
/GUIX-v6.2.1/guix_studio/
Dimage_reader.cpp350 Pixel val; in BitmapStretchStep() local
395 val = mpReadOutputPixel(this, xIn); in BitmapStretchStep()
396 mpWritePixel(this, val); in BitmapStretchStep()
720 Pixel val; in ComputeGrayThreshod() local
729 mpReadInputPixel(this, col, &val); in ComputeGrayThreshod()
731 if (val.Alpha > 128) in ComputeGrayThreshod()
733 ConvertRGBToGray(val.Red, val.Green, val.Blue, (GX_UBYTE *)&gray); in ComputeGrayThreshod()
850 Pixel val; in ColorSpaceConvertRow() local
855 mpReadInputPixel(this, PixIndex, &val); in ColorSpaceConvertRow()
856 mpWritePixel(this, val); in ColorSpaceConvertRow()
[all …]
Dxml_writer.cpp77 void xml_writer::WriteInt(const char *name, int val) in WriteInt() argument
80 cVal.Format(_T("%d"), val); in WriteInt()
85 void xml_writer::WriteUnsigned(const char *name, ULONG val) in WriteUnsigned() argument
88 cVal.Format(_T("%u"), val); in WriteUnsigned()
93 void xml_writer::WriteUByte(const char *name, GX_UBYTE val) in WriteUByte() argument
96 cVal.Format(_T("%u"), val); in WriteUByte()
102 void xml_writer::WriteHex(const char *name, ULONG val) in WriteHex() argument
105 cVal.Format(_T("%08x"), val); in WriteHex()
121 void xml_writer::WriteBool(const char *name, BOOL val) in WriteBool() argument
125 if (val) in WriteBool()
[all …]
Dxml_writer.h13 void WriteInt(const char *name, int val);
14 void WriteUByte(const char *name, GX_UBYTE val);
15 void WriteUnsigned(const char *name, ULONG val);
16 void WriteHex(const char *name, ULONG val);
17 void WriteBool(const char *name, BOOL val);
18 void WriteString(const char *name, const char *val, BOOL bForce = FALSE);
19 void WriteString(const char *name, const CString &val, BOOL bForce = FALSE);
Dstudiox_util.cpp438 void SelectDropListItem(CComboBox *box, long val) in SelectDropListItem() argument
444 if (box->GetItemData(box_index) == val) in SelectDropListItem()
1080 CString val(""); in GetTestingParam() local
1105 val = CString(param); in GetTestingParam()
1109 return val; in GetTestingParam()
1115 CString val(""); in GetMallocName() local
1119 val = gpOpenProject->mHeader.malloc_name; in GetMallocName()
1121 return val; in GetMallocName()
1263 GX_COLOR val; in ColorRefToGxColor() local
1268 val = red; in ColorRefToGxColor()
[all …]
Dgrid_setting_dlg.cpp129 int val = GetDlgItemInt(IDC_EDIT_GRID_SPACING); in OnEditGridSpacing() local
131 if ((val >= MIN_GRID_SNAP_SPACE) && (val <= MAX_GRID_SNAP_SPACE)) in OnEditGridSpacing()
133 mGridSpacingVal = val; in OnEditGridSpacing()
148 int val = GetDlgItemInt(IDC_EDIT_SNAP_SPACING); in OnEditSnapSpacing() local
150 if ((val >= MIN_GRID_SNAP_SPACE) && (val <= MAX_GRID_SNAP_SPACE)) in OnEditSnapSpacing()
152 mSnapSpacingVal = val; in OnEditSnapSpacing()
Dcolor_edit_dialog.cpp992 int val = GetDlgItemInt(IDC_EDIT_RED); in OnEnChangeEditRed() local
993 if (val >= 0 && val <= 255) in OnEnChangeEditRed()
995 mRed = val; in OnEnChangeEditRed()
1011 int val = GetDlgItemInt(IDC_EDIT_GREEN); in OnEnChangeEditGreen() local
1012 if (val >= 0 && val <= 255) in OnEnChangeEditGreen()
1014 mGreen = val; in OnEnChangeEditGreen()
1030 int val = GetDlgItemInt(IDC_EDIT_BLUE); in OnEnChangeEditBlue() local
1031 if (val >= 0 && val <= 255) in OnEnChangeEditBlue()
1033 mBlue = val; in OnEnChangeEditBlue()
1048 int val = GetDlgItemInt(IDC_EDIT_ALPHA); in OnEnChangeEditAlpha() local
[all …]
Dxml_reader.cpp109 ULONG val; in ReadUnsigned() local
116 val = strtoul(mSection.string, NULL, 10); in ReadUnsigned()
117 put = val; in ReadUnsigned()
129 GX_UBYTE val; in ReadUByte() local
136 val = (GX_UBYTE) strtoul(mSection.string, NULL, 10); in ReadUByte()
137 put = val; in ReadUByte()
151 ULONG val; in ReadHex() local
158 val = strtoul(mSection.string, NULL, 16); in ReadHex()
159 put = val; in ReadHex()
217 CString val; in ReadString() local
[all …]
Dresource_gen.cpp1815 CString resource_gen::RichTextResIdName2ResId(studiox_project* project, int display, CString &val) in RichTextResIdName2ResId() argument
1829 index = val.Find('<'); in RichTextResIdName2ResId()
1833 out.Append(val.Left(index + 1)); in RichTextResIdName2ResId()
1834 val = val.Mid(index + 1); in RichTextResIdName2ResId()
1836 index = val.Find(_T(" ")); in RichTextResIdName2ResId()
1841 tag = val.Left(index); in RichTextResIdName2ResId()
1858 out.Append(val.Left(index + 1)); in RichTextResIdName2ResId()
1859 val = val.Mid(index + 1); in RichTextResIdName2ResId()
1861 index = val.Find(_T(">")); in RichTextResIdName2ResId()
1865 id_name = val.Left(index); in RichTextResIdName2ResId()
[all …]
Dstring_table.cpp150 int val = 1; in CreateId() local
163 num.Format(_T("%d"), val); in CreateId()
169 val++; in CreateId()
794 CString string_table::UpdateRichTextResourceName(CString& val, int res_type, CString old_id_name, C… in UpdateRichTextResourceName() argument
815 index = val.Find('<'); in UpdateRichTextResourceName()
819 out.Append(val.Left(index + 1)); in UpdateRichTextResourceName()
820 val = val.Mid(index + 1); in UpdateRichTextResourceName()
822 index = val.Find(_T(" ")); in UpdateRichTextResourceName()
827 tag = val.Left(index); in UpdateRichTextResourceName()
834 out.Append(val.Left(index + 1)); in UpdateRichTextResourceName()
[all …]
Dsprite_edit_dialog.cpp13 #define READ_FRAME_FIELD(id, str, val) \ argument
17 val = FRAME_INFO_NOT_EQUAL;\
128 void sprite_edit_dialog::SelectDropListItem(CComboBox* box, long val) in SelectDropListItem() argument
134 if (box->GetItemData(box_index) == val) in SelectDropListItem()
493 int val = GetDlgItemInt(IDC_ALPHA_VALUE); in OnEnKillfocusAlphaValue() local
494 if (val < 0 || val > 255) in OnEnKillfocusAlphaValue()
505 int val = GetDlgItemInt(IDC_X_OFFSET); in OnEnKillfocusXOffset() local
506 if (val < -65535 || val > 65535) in OnEnKillfocusXOffset()
517 int val = GetDlgItemInt(IDC_Y_OFFSET); in OnEnKillfocusYOffset() local
518 if (val < -65535 || val > 65535) in OnEnKillfocusYOffset()
[all …]
DPaletteLayoutDlg.cpp829 int val = GetDlgItemInt(ID_ALPHAFIELD); in ColorChanged() local
830 if (val < 0 || val > 255) in ColorChanged()
836 mAlpha = val; in ColorChanged()
840 val = GetDlgItemInt(ID_REDFIELD); in ColorChanged()
841 if (val < 0 || val > 255) in ColorChanged()
847 mRed = val; in ColorChanged()
851 val = GetDlgItemInt(ID_GREENFIELD); in ColorChanged()
852 if (val < 0 || val > 255) in ColorChanged()
858 mGreen = val; in ColorChanged()
861 val = GetDlgItemInt(ID_BLUEFIELD); in ColorChanged()
[all …]
Dfont_path_dialog.cpp506 int val; in OnEditRangeField() local
510 val = _tcstol(text.GetBuffer(), NULL, 16); in OnEditRangeField()
514 if (val >= 0 && val <= mpInfo->last_char) in OnEditRangeField()
516 mpInfo->first_char = val; in OnEditRangeField()
526 if (val >= 0 && val <= 0x10ffff) in OnEditRangeField()
528 mpInfo->first_char = val; in OnEditRangeField()
538 val = _tcstol(text.GetBuffer(), NULL, 16); in OnEditRangeField()
542 if (val >= mpInfo->first_char && val < 0xffff) in OnEditRangeField()
544 mpInfo->last_char = val; in OnEditRangeField()
554 if (val >= 0 && val <= 0x10ffff) in OnEditRangeField()
[all …]
Dgx_studio_font_util.cpp504 UCHAR val; in CopyGlyphData() local
537 val = *read_data; in CopyGlyphData()
542 in_byte = val; in CopyGlyphData()
543 val = 0; in CopyGlyphData()
551 val |= out_mask; in CopyGlyphData()
559 *write_data++ = val; in CopyGlyphData()
565 *write_data++ = val; in CopyGlyphData()
580 val = 0; in CopyGlyphData()
589 val |= (in_byte & 0xf0); // keep high nibble in CopyGlyphData()
593 val |= (in_byte >> 4); in CopyGlyphData()
[all …]
/GUIX-v6.2.1/guix_studio/libs/libgit2/include/git2/
Dstdint.h230 #define INT8_C(val) val##i8 argument
231 #define INT16_C(val) val##i16 argument
232 #define INT32_C(val) val##i32 argument
233 #define INT64_C(val) val##i64 argument
235 #define UINT8_C(val) val##ui8 argument
236 #define UINT16_C(val) val##ui16 argument
237 #define UINT32_C(val) val##ui32 argument
238 #define UINT64_C(val) val##ui64 argument
/GUIX-v6.2.1/samples/demo_guix_car_infotainment/
Dvolume_screen_base.c59 INT val; in progress_bar_animation_update() local
63val = (progress_bar_animation_target_val - progress_bar_animation_start_val) * progress_bar_animat… in progress_bar_animation_update()
64 val /= PROGRESS_BAR_ANIMATION_TOTAL_STEPS; in progress_bar_animation_update()
65 val += progress_bar_animation_start_val; in progress_bar_animation_update()
67 gx_progress_bar_value_set(progress_bar, val); in progress_bar_animation_update()
161 INT val; in volume_progress_bar_event_process() local
180val = (size->gx_rectangle_bottom - event_ptr->gx_event_payload.gx_event_pointdata.gx_point_y + 2); in volume_progress_bar_event_process()
181 val *= (info->gx_progress_bar_info_max_val - info->gx_progress_bar_info_min_val); in volume_progress_bar_event_process()
182 val /= (size->gx_rectangle_bottom - size->gx_rectangle_top + 1); in volume_progress_bar_event_process()
183 val += info->gx_progress_bar_info_min_val; in volume_progress_bar_event_process()
[all …]
Daudio.c36 GX_VALUE val = bar->gx_radial_progress_bar_info.gx_radial_progress_bar_info_current_val; in music_play_update() local
37 if (val - 10 < MAX_PROGRESS_VAL) in music_play_update()
39 val = 0; in music_play_update()
44 val -= 3; in music_play_update()
51 gx_radial_progress_bar_value_set(bar, val); in music_play_update()
Dclimate.c165 INT val; in custom_progress_bar_event_process() local
172val = (size->gx_rectangle_bottom - event_ptr->gx_event_payload.gx_event_pointdata.gx_point_y + 2); in custom_progress_bar_event_process()
173 val *= (info->gx_progress_bar_info_max_val - info->gx_progress_bar_info_min_val); in custom_progress_bar_event_process()
174 val /= (size->gx_rectangle_bottom - size->gx_rectangle_top + 1); in custom_progress_bar_event_process()
175 val += info->gx_progress_bar_info_min_val; in custom_progress_bar_event_process()
177 gx_progress_bar_value_set(bar, val); in custom_progress_bar_event_process()
/GUIX-v6.2.1/test/guix_test/regression_test/tests/
Dvalidation_guix_all_widgets_progress_bar_32bpp.c79 UINT index, property_index = 0, style_index = 0, border_index = 0, val; in control_thread_entry() local
110 … for(val = property[property_index].min_value; val < property[property_index].max_value; val += 10) in control_thread_entry()
117 gx_progress_bar_value_set(progress_bar, val); in control_thread_entry()
119 sprintf(test_comment, "Value: %d, ", val); in control_thread_entry()
/GUIX-v6.2.1/test/example_internal/all_widgets_16bpp/
Dlines_screen.c47 static GX_CHAR val[10]; in update_prompt() local
54 gx_utility_ltoa(value, val, 10); in update_prompt()
55 string.gx_string_ptr = val; in update_prompt()
56 string.gx_string_length = strnlen(val, sizeof(val)); in update_prompt()
/GUIX-v6.2.1/test/example_internal/all_widgets_565bgr/
Dlines_screen.c47 static GX_CHAR val[10]; in update_prompt() local
54 gx_utility_ltoa(value, val, 10); in update_prompt()
55 string.gx_string_ptr = val; in update_prompt()
56 string.gx_string_length = strnlen(val, sizeof(val)); in update_prompt()
/GUIX-v6.2.1/common/src/
Dgx_numeric_scroll_wheel_text_get.c73 INT val; in _gx_numeric_scroll_wheel_text_get() local
92 val = wheel -> gx_numeric_scroll_wheel_start_val + (step * row); in _gx_numeric_scroll_wheel_text_get()
93 …_gx_utility_ltoa(val, wheel -> gx_numeric_scroll_wheel_string_buffer, GX_NUMERIC_SCROLL_WHEEL_STRI… in _gx_numeric_scroll_wheel_text_get()
Dgx_system_timer_expiration.c77 VOID _gx_system_timer_expiration(ULONG val) in _gx_system_timer_expiration() argument
81 GX_PARAMETER_NOT_USED(val); in _gx_system_timer_expiration()
/GUIX-v6.2.1/test/example_internal/lines/
Ddemo_guix_lines.c118 static GX_CHAR val[10]; in update_prompt() local
125 gx_utility_ltoa(value, val, 10); in update_prompt()
126 string.gx_string_ptr = val; in update_prompt()
127 string.gx_string_length = string_length_get(val, sizeof(val) - 1); in update_prompt()

12345