# :stopdoc: # This file is automatically generated by the WXRuby3 documentation # generator. Do not alter this file. # :startdoc: module Wx # A static line is just a line which may be used in a dialog to separate the groups of controls. # The line may be only vertical or horizontal. Moreover, not all ports (notably not {Wx::GTK}) support specifying the transversal direction of the line (e.g. height for a horizontal line) so for maximal portability you should specify it as {Wx::DEFAULT_COORD}. # === Styles # # This class supports the following styles: # # - {Wx::LI_HORIZONTAL}: Creates a horizontal line. # - {Wx::LI_VERTICAL}: Creates a vertical line. # # === # # Category: {Wx::Controls} # @see Wx::StaticBox # # class StaticLine < Control # @overload initialize() # Default constructor. # @return [StaticLine] # @overload initialize(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::LI_HORIZONTAL, name=Wx::STATIC_LINE_NAME_STR) # Constructor, creating and showing a static line. # # @see Wx::StaticLine#create # @param parent [Wx::Window] Parent window. Must not be NULL. # @param id [Integer] Window identifier. The value {Wx::StandardID::ID_ANY} indicates a default value. # @param pos [Array(Integer, Integer), Wx::Point] Window position. If {Wx::DEFAULT_POSITION} is specified then a default position is chosen. # @param size [Array(Integer, Integer), Wx::Size] Size. Note that either the height or the width (depending on whether the line if horizontal or vertical) is ignored. # @param style [Integer] Window style (either {Wx::LI_HORIZONTAL} or {Wx::LI_VERTICAL}). # @param name [String] Window name. # @return [StaticLine] def initialize(*args) end # Creates the static line for two-step construction. # See {Wx::StaticLine#static_line} for further details. # @param parent [Wx::Window] # @param id [Integer] # @param pos [Array(Integer, Integer), Wx::Point] # @param size [Array(Integer, Integer), Wx::Size] # @param style [Integer] # @param name [String] # @return [true,false] def create(parent, id=Wx::ID_ANY, pos=Wx::DEFAULT_POSITION, size=Wx::DEFAULT_SIZE, style=Wx::LI_HORIZONTAL, name=Wx::STATIC_LINE_NAME_STR) end # Returns true if the line is vertical, false if horizontal. # @return [true,false] def is_vertical; end alias_method :vertical?, :is_vertical # This static function returns the size which will be given to the smaller dimension of the static line, i.e. # its height for a horizontal line or its width for a vertical one. # @return [Integer] def self.get_default_size; end end # StaticLine end