12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- class IUP_SPACE
- -- Creates void element, which occupies an empty space.
- --
- -- It does not have a native representation.
- --
- -- Notes:
- --
- -- When an IUP_FILL is inside a IUP_VBOX or IUP_HBOX it will affect the
- -- expansion of the box because it is always expandable. Even when you set its
- -- size to a given value, it will still affect the layout, because it is always
- -- marked as an expandable element.
- --
- -- IUP_SPACE will simply occupy a space in the layout. It does not have a
- -- natural size, it is 0x0 by default. It can be expandable or not, EXPAND will
- -- work as a regular element. The attributes SIZE and RASTERSIZE can be
- -- normally set.
-
- inherit
- IUP_WIDGET
- IUP_WIDGET_SIZE
- IUP_WIDGET_RASTERSIZE
- IUP_WIDGET_EXPAND
- IUP_WIDGET_FONT
- IUP_WIDGET_POSITION
- IUP_WIDGET_MAXMIN_SIZE
- IUP_WIDGET_WID
- create {ANY}
- space
- feature {ANY}
- space
- local
- a_space: POINTER
- do
- a_space := int_space
- set_widget(a_space)
- end
- feature {NONE}
- -- Internals
-
- int_space: POINTER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return IupSpace();"
- end
- end -- class IUP_SPACE
- -- The MIT License (MIT)
- -- Copyright (c) 2019 by German A. Arias
- -- Permission is hereby granted, free of charge, to any person obtaining a copy
- -- of this software and associated documentation files (the "Software"), to deal
- -- in the Software without restriction, including without limitation the rights
- -- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- -- copies of the Software, and to permit persons to whom the Software is
- -- furnished to do so, subject to the following conditions:
- --
- -- The above copyright notice and this permission notice shall be included in
- -- all copies or substantial portions of the Software.
- --
- -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- -- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- -- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- -- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- -- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- -- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- -- SOFTWARE.
|