Home
last modified time | relevance | path

Searched refs:sizeType (Results 1 - 25 of 27) sorted by relevance

12

/foundation/arkui/ace_engine/frameworks/core/components/common/layout/
H A Dgrid_column_info.cpp37 auto sizeType = parent_->GetSizeType(); in GetWidth() local
38 uint32_t columns = IsValid(sizeType) ? columns_[sizeType] : 0; in GetWidth()
63 auto sizeType = parent_->GetSizeType(); in GetMaxWidth() local
64 if (IsValid(sizeType)) { in GetMaxWidth()
65 columns = maxColumns_[sizeType]; in GetMaxWidth()
67 columns = columns_[sizeType]; in GetMaxWidth()
82 auto sizeType = parent_->GetSizeType(); in GetOffset() local
84 return IsValid(sizeType) ? dimOffsets_[sizeType] in GetOffset()
[all...]
H A Dgrid_system_manager.h32 GridSizeType sizeType, const Dimension& gutter, const Dimension& margin, int32_t columns, int32_t maxColumns) in SystemGridInfo()
33 : sizeType(sizeType), gutter(gutter), margin(margin), columns(columns), maxColumns(maxColumns) in SystemGridInfo()
35 SystemGridInfo(GridSizeType sizeType, const Dimension& gutter, const Dimension& margin, int32_t columns) in SystemGridInfo()
36 : sizeType(sizeType), gutter(gutter), margin(margin), columns(columns), maxColumns(columns) in SystemGridInfo()
40 GridSizeType sizeType = GridSizeType::UNDEFINED; member
54 static SystemGridInfo GetSystemGridInfo(const GridSizeType& sizeType);
H A Dgrid_system_manager.cpp137 SystemGridInfo GridSystemManager::GetSystemGridInfo(const GridSizeType& sizeType) in GetSystemGridInfo() argument
139 if (sizeType == GridSizeType::XS) { in GetSystemGridInfo()
141 } else if (sizeType == GridSizeType::SM) { in GetSystemGridInfo()
143 } else if (sizeType == GridSizeType::MD) { in GetSystemGridInfo()
145 } else if (sizeType >= GridSizeType::LG) { in GetSystemGridInfo()
154 GridSizeType sizeType = ScreenSystemManager::GetInstance().GetCurrentSize(); in GetCurrentGridInfo() local
155 systemGridInfo_ = GetSystemGridInfo(sizeType); in GetCurrentGridInfo()
161 GridSizeType sizeType = ScreenSystemManager::GetInstance().GetSize(width); in GetSystemGridInfo() local
163 return GetSystemGridInfo(sizeType); in GetSystemGridInfo()
165 if (sizeType in GetSystemGridInfo()
[all...]
H A Dgrid_container_info.h75 void SetSizeType(const GridSizeType& sizeType) in SetSizeType() argument
77 containerInfo_->sizeType_ = sizeType; in SetSizeType()
H A Dgrid_container_info.cpp46 if (currentSizeType_ != systemGridInfo.sizeType) { in BuildColumnWidth()
48 currentSizeType_ = systemGridInfo.sizeType; in BuildColumnWidth()
/foundation/arkui/ace_engine/frameworks/core/components_v2/grid_layout/
H A Drender_grid_row.cpp43 std::string ConvertSizeTypeToString(GridSizeType sizeType) in ConvertSizeTypeToString() argument
45 switch (sizeType) { in ConvertSizeTypeToString()
131 auto sizeType = GridContainerUtils::ProcessGridSizeType(component->GetBreakPoints(), maxSize, context); in PerformLayout() local
132 if (currentSizeType_ != sizeType) { in PerformLayout()
133 auto sizeTypeString = ConvertSizeTypeToString(sizeType); in PerformLayout()
135 currentSizeType_ = sizeType; in PerformLayout()
137 auto gutter = GridContainerUtils::ProcessGutter(sizeType, component->GetGutter()); in PerformLayout()
139 int32_t columnNum = GridContainerUtils::ProcessColumn(sizeType, component->GetTotalCol()); in PerformLayout()
141 LayoutEachChild(columnUnitWidth, maxSize.Height(), gutterInDouble.first, sizeType, columnNum); in PerformLayout()
152 auto currentChildSpan = GetGridColSpan(gridColChild, sizeType); in PerformLayout()
210 LayoutEachChild( double columnUnitWidth, double childHeightLimit, double xGutter, GridSizeType sizeType, int32_t columnNum) LayoutEachChild() argument
254 CalculateOffsetOfNewline(const RefPtr<RenderNode>& node, int32_t currentChildSpan, int32_t restColumnNum, int32_t totalColumnNum, GridSizeType sizeType, NewLineOffset& newLineOffset) const CalculateOffsetOfNewline() argument
[all...]
H A Drender_grid_col.cpp46 int32_t RenderGridCol::GetSpan(GridSizeType sizeType) const in GetSpan()
53 return gridCol->GetSpan(sizeType); in GetSpan()
56 int32_t RenderGridCol::GetOffset(GridSizeType sizeType) const in GetOffset()
63 return gridCol->GetOffset(sizeType); in GetOffset()
66 int32_t RenderGridCol::GetOrder(GridSizeType sizeType) const in GetOrder()
73 return gridCol->GetOrder(sizeType); in GetOrder()
H A Drender_grid_col.h34 void SetSizeType(GridSizeType sizeType) in SetSizeType() argument
36 sizeType_ = sizeType; in SetSizeType()
43 int32_t GetSpan(GridSizeType sizeType) const;
44 int32_t GetOffset(GridSizeType sizeType) const;
46 int32_t GetOrder(GridSizeType sizeType) const;
H A Dgrid_col_component.h52 int32_t GetSpan(GridSizeType sizeType) const in GetSpan()
54 switch (sizeType) { in GetSpan()
83 int32_t GetOffset(GridSizeType sizeType) const in GetOffset()
85 switch (sizeType) { in GetOffset()
114 int32_t GetOrder(GridSizeType sizeType) const in GetOrder()
116 switch (sizeType) { in GetOrder()
H A Dgrid_container_utils.h39 static std::pair<Dimension, Dimension> ProcessGutter(GridSizeType sizeType, const RefPtr<Gutter>& gutter);
40 static std::pair<Dimension, Dimension> ProcessGutter(GridSizeType sizeType, const Gutter& gutter);
42 static int32_t ProcessColumn(GridSizeType sizeType, const GridContainerSize& columnNum);
43 static int32_t ProcessColumn(GridSizeType sizeType, const RefPtr<GridContainerSize>& columnNum);
H A Dgrid_container_utils.cpp93 std::pair<Dimension, Dimension> GridContainerUtils::ProcessGutter(GridSizeType sizeType, const Gutter& gutter) in ProcessGutter() argument
95 switch (sizeType) { in ProcessGutter()
113 std::pair<Dimension, Dimension> GridContainerUtils::ProcessGutter(GridSizeType sizeType, const RefPtr<Gutter>& gutter) in ProcessGutter() argument
115 return ProcessGutter(sizeType, *gutter); in ProcessGutter()
118 int32_t GridContainerUtils::ProcessColumn(GridSizeType sizeType, const GridContainerSize& columnNum) in ProcessColumn() argument
120 switch (sizeType) { in ProcessColumn()
138 int32_t GridContainerUtils::ProcessColumn(GridSizeType sizeType, const RefPtr<GridContainerSize>& columnNum) in ProcessColumn() argument
140 return ProcessColumn(sizeType, *columnNum); in ProcessColumn()
H A Drender_grid_row.h43 void LayoutEachChild(double childWidthLimit, double childHeightLimit, double xGetter, GridSizeType sizeType,
47 int32_t totalColumnNum, GridSizeType sizeType, NewLineOffset& newLineOffset) const;
48 inline int32_t GetRelativeOffset(const RefPtr<RenderNode>& node, GridSizeType sizeType) const;
49 inline int32_t GetGridColSpan(const RefPtr<RenderNode>& node, GridSizeType sizeType) const;
H A Dgrid_row_component.h97 void FirebreakPointEvent(const std::string& sizeType) in FirebreakPointEvent() argument
100 (*eventbreakPointChange_)(sizeType); in FirebreakPointEvent()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid_col/
H A Dgrid_col_layout_property.cpp31 auto sizeType = GetSizeTypeValue(V2::GridSizeType::UNDEFINED); in ToJsonValue() local
33 auto span = GetSpan(sizeType); in ToJsonValue()
34 auto offset = GetOffset(sizeType); in ToJsonValue()
35 auto order = GetOrder(sizeType); in ToJsonValue()
42 int32_t GridColLayoutProperty::GetPropValue(const V2::GridContainerSize& prop, V2::GridSizeType sizeType) in GetPropValue() argument
44 switch (sizeType) { in GetPropValue()
H A Dgrid_col_layout_property.h59 int32_t GetSpan(V2::GridSizeType sizeType) const in GetSpan()
62 return GetPropValue(span, sizeType); in GetSpan()
65 int32_t GetOrder(V2::GridSizeType sizeType) const in GetOrder()
68 return GetPropValue(order, sizeType); in GetOrder()
71 int32_t GetOffset(V2::GridSizeType sizeType) const in GetOffset()
74 return GetPropValue(offset, sizeType); in GetOffset()
78 static int32_t GetPropValue(const V2::GridContainerSize& prop, V2::GridSizeType sizeType);
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid_row/
H A Dgrid_row_layout_algorithm.cpp50 int32_t restColumnNum, int32_t totalColumnNum, GridSizeType sizeType, NewLineOffset& newLineOffset) in CalculateOffsetOfNewline()
53 int32_t offset = gridCol->GetOffset(sizeType); in CalculateOffsetOfNewline()
99 double childHeightLimit, std::pair<double, double>& gutter, GridSizeType sizeType, int32_t columnNum) in MeasureChildren()
102 children.sort([sizeType](const RefPtr<LayoutWrapper>& left, const RefPtr<LayoutWrapper>& right) { in MeasureChildren()
109 return (leftCol->GetOrder(sizeType) < rightCol->GetOrder(sizeType)); in MeasureChildren()
126 gridCol->UpdateSizeType(sizeType); in MeasureChildren()
129 auto span = std::min(gridCol->GetSpan(sizeType), columnNum); in MeasureChildren()
133 CalculateOffsetOfNewline(gridCol, span, columnNum - offset, columnNum, sizeType, newLineOffset); in MeasureChildren()
235 auto sizeType in Measure() local
49 CalculateOffsetOfNewline(const RefPtr<GridColLayoutProperty>& gridCol, int32_t currentChildSpan, int32_t restColumnNum, int32_t totalColumnNum, GridSizeType sizeType, NewLineOffset& newLineOffset) CalculateOffsetOfNewline() argument
98 MeasureChildren(LayoutWrapper* layoutWrapper, double columnUnitWidth, double childHeightLimit, std::pair<double, double>& gutter, GridSizeType sizeType, int32_t columnNum) MeasureChildren() argument
[all...]
H A Dgrid_row_layout_algorithm.h54 static std::string ConvertSizeTypeToString(V2::GridSizeType sizeType) in ConvertSizeTypeToString() argument
56 auto index = static_cast<int32_t>(sizeType); in ConvertSizeTypeToString()
64 std::pair<double, double>& gutter, V2::GridSizeType sizeType, int32_t columnNum);
H A Dgrid_row_layout_property.cpp46 auto sizeType = GetSizeTypeValue(V2::GridSizeType::UNDEFINED); in ToJsonValue() local
49 auto gutter = GridContainerUtils::ProcessGutter(sizeType, GetGutterValue()); in ToJsonValue()
56 auto columns = GridContainerUtils::ProcessColumn(sizeType, GetColumnsValue()); in ToJsonValue()
/foundation/arkui/ace_engine/frameworks/bridge/common/dom/
H A Ddom_grid_container.cpp70 auto sizeType = gridContainerInfo_->GetSizeType(); in CallSpecializedMethod() local
72 if (sizeType == GridSizeType::LG) { in CallSpecializedMethod()
74 } else if (sizeType == GridSizeType::MD) { in CallSpecializedMethod()
76 } else if (sizeType == GridSizeType::SM) { in CallSpecializedMethod()
78 } else if (sizeType == GridSizeType::XS) { in CallSpecializedMethod()
124 auto sizeType = GridSizeType::UNDEFINED; in SetSpecializedAttr() local
127 sizeType = iter->second; in SetSpecializedAttr()
129 container.infoBuilder_.SetSizeType(sizeType); in SetSpecializedAttr()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_grid_container.cpp55 // sizeType?: SizeType in Create()
56 JSRef<JSVal> sizeType = obj->GetProperty("sizeType"); in Create() local
57 if (sizeType->IsNumber()) { in Create()
58 auto value = sizeType->ToNumber<int32_t>(); in Create()
/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/
H A Dgrid_row_composed_element.cpp74 auto sizeType = renderGridRow->GetCurrentSizeType(); in GetGridRowSizeType() local
75 switch (sizeType) { in GetGridRowSizeType()
/foundation/communication/ipc/ipc/native/c/manager/src/
H A Dserializer.c681 static bool WriteBufferAddTerminator(IpcIo *io, const void *value, size_t size, size_t sizeType) in WriteBufferAddTerminator() argument
683 if (value == NULL || size < sizeType || io == NULL) { in WriteBufferAddTerminator()
684 RPC_LOG_ERROR("IPC value == NULL || size < sizeType || io == NULL failed: %s:%d\n", __FUNCTION__, __LINE__); in WriteBufferAddTerminator()
697 if (memcpy_s(ptr, desireCapacity, value, size - sizeType) != EOK) { in WriteBufferAddTerminator()
701 if (memset_s(ptr + (size - sizeType), desireCapacity - size + sizeType, 0, in WriteBufferAddTerminator()
702 desireCapacity - size + sizeType) != EOK) { in WriteBufferAddTerminator()
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Dskia_decoration_painter.cpp514 auto sizeType = in GetCircleSize() local
516 switch (sizeType) { in GetCircleSize()
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/rosen/
H A Ddrawing_decoration_painter.cpp487 auto sizeType = in GetCircleSize() local
489 switch (sizeType) { in GetCircleSize()
/foundation/arkui/ace_engine/frameworks/core/components/common/painter/
H A Drosen_decoration_painter.cpp744 auto sizeType = in GetCircleSize() local
746 switch (sizeType) { in GetCircleSize()
789 auto sizeType = in GetCircleSize() local
791 switch (sizeType) { in GetCircleSize()

Completed in 19 milliseconds

12