# :stopdoc: # This file is automatically generated by the WXRuby3 documentation # generator. Do not alter this file. # :startdoc: module Wx # {Wx::StaticBoxSizer} is a sizer derived from {Wx::BoxSizer} but adds a static box around the sizer. # The static box may be either created independently or the sizer may create it itself as a convenience. In any case, the sizer owns the {Wx::StaticBox} control and will delete it in the {Wx::StaticBoxSizer} destructor. # Note that since wxWidgets 2.9.1 you are strongly encouraged to create the windows which are added to {Wx::StaticBoxSizer} as children of {Wx::StaticBox} itself, see this class documentation for more details. # Example of use of this class: # ```ruby # class MyFrame < Wx::Frame # # def create_controls # panel = Wx::Panel.new(self) # ... # sz = Wx::StaticBoxSizer.new(Wx::VERTICAL, panel, "Box") # sz.add(Wx::StaticText.new(sz.get_static_box, Wx::ID_ANY, # "This window is a child of the staticbox")) # ... # end # # end # ``` # # === # # Category: Window Layout # @see Wx::Sizer # @see Wx::StaticBox # @see Wx::BoxSizer # @see Sizers Overview # # class StaticBoxSizer < BoxSizer # @overload initialize(box, orient) # This constructor uses an already existing static box. # @param box [Wx::StaticBox] The static box to associate with the sizer (which will take its ownership). # @param orient [Integer] Can be either {Wx::Orientation::VERTICAL} or {Wx::Orientation::HORIZONTAL}. # @return [Wx::StaticBoxSizer] # @overload initialize(orient, parent, label=('')) # This constructor creates a new static box with the given label and parent window. # @param orient [Integer] # @param parent [Wx::Window] # @param label [String] # @return [Wx::StaticBoxSizer] def initialize(*args) end # Returns the static box associated with the sizer. # @return [Wx::StaticBox] def get_static_box; end alias_method :static_box, :get_static_box # 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 # 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::StaticBoxSizer#calc_min}. # @param minSize [Array(Integer, Integer), Wx::Size] # @return [void] def reposition_children(minSize) end end # StaticBoxSizer end