# :stopdoc: # This file is automatically generated by the WXRuby3 documentation # generator. Do not alter this file. # :startdoc: module Wx # The basic idea behind a box sizer is that windows will most often be laid out in rather simple basic geometry, typically in a row or a column or several hierarchies of either. # For more information, please see {Wx::BoxSizer}. # === # # Category: Window Layout # @see Wx::Sizer # @see Sizers Overview # # class BoxSizer < Sizer # Constructor for a {Wx::BoxSizer}. # orient may be either of {Wx::Orientation::VERTICAL} or {Wx::Orientation::HORIZONTAL} for creating either a column sizer or a row sizer. # @param orient [Integer] # @return [BoxSizer] def initialize(orient) end # Adds non-stretchable space to the main orientation of the sizer only. # More readable way of calling: # # if ( wxBoxSizer::IsVertical() ) # { # wxBoxSizer::Add(0, size, 0). # } # else # { # wxBoxSizer::Add(size, 0, 0). # } # @param size [Integer] # @return [Wx::SizerItem] def add_spacer(size) end # Implements the calculation of a box sizer's minimal. # It is used internally only and must not be called by the user. Documented for information. # @return [Wx::Size] def calc_min; end # Returns the orientation of the box sizer, either {Wx::Orientation::VERTICAL} or {Wx::Orientation::HORIZONTAL}. # @return [Integer] def get_orientation; end alias_method :orientation, :get_orientation # Sets the orientation of the box sizer, either {Wx::Orientation::VERTICAL} or {Wx::Orientation::HORIZONTAL}. # @param orient [Integer] # @return [void] def set_orientation(orient) end alias_method :orientation=, :set_orientation # Method which must be overridden in the derived sizer classes. # The implementation should reposition the children using the current total size available to the sizer (m_size) and the size computed by the last call to {Wx::BoxSizer#calc_min}. # @param minSize [Array(Integer, Integer), Wx::Size] # @return [void] def reposition_children(minSize) end end # BoxSizer end