123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264 |
- deferred class IUP_LINEAL_BOX
- inherit
- IUP_CONTAINER
- IUP_WIDGET_EXPAND
- IUP_WIDGET_SIZE
- IUP_WIDGET_RASTERSIZE
- IUP_WIDGET_USERSIZE
- IUP_WIDGET_WID
- IUP_WIDGET_FONT
- IUP_WIDGET_CLIENTSIZE
- IUP_WIDGET_CLIENTOFFSET
- IUP_WIDGET_POSITION
- IUP_WIDGET_MAXMIN_SIZE
- IUP_WIDGET_CHILD
- IUP_WIDGET_NAME
- IUP_WIDGET_CUSTOM_ATTRIBUTES
- IUP_WIDGET_NORMALIZE_SIZE
- feature {ANY}
-
- set_alignment (value: STRING)
- require
- is_valid: is_valid_alignment(value)
- do
- iup_open.set_attribute(Current, "ALIGNMENT", value)
- end
- get_alignment: STRING
-
- do
- Result := iup_open.get_attribute(Current, "ALIGNMENT")
- end
- set_gap (space: INTEGER)
-
- require
- space >= 0
- do
- iup_open.set_attribute(Current, "GAP", space.out)
- end
- get_gap: INTEGER
-
- local
- value: STRING
- do
- value := iup_open.get_attribute(Current, "GAP")
- Result := value.to_integer
- end
- set_cgap (space: INTEGER)
-
-
- require
- space >= 0
- do
- iup_open.set_attribute(Current, "CGAP", space.out)
- end
- get_cgap: INTEGER
-
- local
- value: STRING
- do
- value := iup_open.get_attribute(Current, "CGAP")
- Result := value.to_integer
- end
- set_ngap (space: INTEGER)
-
- require
- space >= 0
- do
- iup_open.set_attribute(Current, "NGAP", space.out)
- end
- get_ngap: INTEGER
-
- local
- value: STRING
- do
- value := iup_open.get_attribute(Current, "NGAP")
- Result := value.to_integer
- end
- set_ncgap (space: INTEGER)
-
- require
- space >= 0
- do
- iup_open.set_attribute(Current, "NCGAP", space.out)
- end
- get_ncgap: INTEGER
-
- local
- value: STRING
- do
- value := iup_open.get_attribute(Current, "NCGAP")
- Result := value.to_integer
- end
- set_homogeneous (state: BOOLEAN)
-
-
-
-
- do
- iup_open.set_attribute(Current, "HOMOGENEOUS", boolean_to_yesno(state))
- end
- is_homogeneous: BOOLEAN
-
- local
- str: STRING
- do
- str := iup_open.get_attribute(Current, "HOMOGENEOUS")
- Result := yesno_to_boolean(str)
- end
- set_margin (horizontal, vertical: INTEGER)
-
- require
- horizontal >= 0
- vertical >= 0
- local
- margin: STRING
- do
- margin := horizontal.out
- margin.append_string("x")
- margin.append_string(vertical.out)
- iup_open.set_attribute(Current, "MARGIN", margin)
- end
- get_margin: TUPLE[INTEGER, INTEGER]
-
- local
- margin: STRING
- do
- margin := iup_open.get_attribute(Current, "MARGIN")
- Result := components_of_size(margin)
- end
- set_cmargin (horizontal, vertical: INTEGER)
-
-
- require
- horizontal >= 0
- vertical >= 0
- local
- margin: STRING
- do
- margin := horizontal.out
- margin.append_string("x")
- margin.append_string(vertical.out)
- iup_open.set_attribute(Current, "CMARGIN", margin)
- end
- get_cmargin: TUPLE[INTEGER, INTEGER]
-
- local
- margin: STRING
- do
- margin := iup_open.get_attribute(Current, "CMARGIN")
- Result := components_of_size(margin)
- end
- set_nmargin (horizontal, vertical: INTEGER)
-
- require
- horizontal >= 0
- vertical >= 0
- local
- margin: STRING
- do
- margin := horizontal.out
- margin.append_string("x")
- margin.append_string(vertical.out)
- iup_open.set_attribute(Current, "NMARGIN", margin)
- end
- get_nmargin: TUPLE[INTEGER, INTEGER]
-
- local
- margin: STRING
- do
- margin := iup_open.get_attribute(Current, "NMARGIN")
- Result := components_of_size(margin)
- end
- set_ncmargin (horizontal, vertical: INTEGER)
-
- require
- horizontal >= 0
- vertical >= 0
- local
- margin: STRING
- do
- margin := horizontal.out
- margin.append_string("x")
- margin.append_string(vertical.out)
- iup_open.set_attribute(Current, "NCMARGIN", margin)
- end
- get_ncmargin: TUPLE[INTEGER, INTEGER]
-
- local
- margin: STRING
- do
- margin := iup_open.get_attribute(Current, "NCMARGIN")
- Result := components_of_size(margin)
- end
- set_expand_children (state: BOOLEAN)
- do
- iup_open.set_attribute(Current, "EXPANDCHILDREN", boolean_to_yesno(state))
- end
- is_expand_children: BOOLEAN
- local
- str: STRING
- do
- str := iup_open.get_attribute(Current, "EXPANDCHILDREN")
- Result := yesno_to_boolean(str)
- end
-
- is_valid_alignment (value: STRING): BOOLEAN
- deferred
- end
-
- end
|