语言

Menu
Sites
Language
Tizen edc:- purpose of "fixed: 1 1"

What's purpose to use "fixed: 1 1;" in part's description?

 

For example:

part
         {
            name: "abc";
            type: TEXTBLOCK;
            description
            {
               state: "default" 0.0;
               fixed: 1 1;                  //     What's the purpose?          

               rel1.relative: 0.5 1.0;
               rel2.relative: 0.5 1.0;

               text.align: 0.5 0.5;
            }

编辑者为: Rabiul Islam 12 7月, 2019

响应

1 回复
Paul L

Hello, from doc: https://www.enlightenment.org/_legacy_embed/edcref.html

fixed [width, 0 or 1] [height, 0 or 1]

This affects the minimum size calculation. See edje_object_size_min_calc() and edje_object_size_min_restricted_calc(). This tells the min size calculation routine that this part does not change size in width or height (1 for it doesn't, 0 for it does), so the routine should not try and expand or contract the part.

 

fixed [width, 0 or 1] [height, 0 or 1]
 

This affects the minimum size calculation. See edje_object_size_min_calc() and edje_object_size_min_restricted_calc(). This tells the min size calculation routine that this part does not change size in width or height (1 for it doesn't, 0 for it does), so the routine should not try and expand or contract the part.

Defaults: 0 0