Search documentation of wx

# View Source wxStaticLine (wx v2.4.2)

Functions for wxStaticLine class

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 wxGTK) support specifying the transversal direction of the line (e.g. height for a horizontal line) so for maximal portability you should specify it as wxDefaultCoord.

Styles

This class supports the following styles:

See: `wxStaticBox`

This class is derived (and can use functions) from: `wxControl` `wxWindow` `wxEvtHandler`

wxWidgets docs: wxStaticLine

# Summary

## Types

wxStaticLine()

## Functions

create(This, Parent)
create/3

Creates the static line for two-step construction.

destroy(This)

Destroys the object.

getDefaultSize()

This static function returns the size which will be given to the smaller dimension of the static line, i.e.

isVertical(This)

Returns true if the line is vertical, false if horizontal.

new()

Default constructor.

new(Parent)
new/2

Constructor, creating and showing a static line.

# Types

Link to this type

# wxStaticLine()

View Source

    -type wxStaticLine() :: wx:wx_object().

# Functions

Link to this function

# create(This, Parent)

View Source

    -spec create(This, Parent) -> boolean() when This :: wxStaticLine(), Parent :: wxWindow:wxWindow().

Link to this function

# create/3

View Source

    -spec create(This, Parent, [Option]) -> boolean()
                    when
                        This :: wxStaticLine(),
                        Parent :: wxWindow:wxWindow(),
                        Option ::
                            {id, integer()} |
                            {pos, {X :: integer(), Y :: integer()}} |
                            {size, {W :: integer(), H :: integer()}} |
                            {style, integer()}.

Creates the static line for two-step construction.

See `new/2` for further details.

Link to this function

# destroy(This)

View Source

    -spec destroy(This :: wxStaticLine()) -> ok.

Destroys the object.

Link to this function

# getDefaultSize()

View Source

    -spec getDefaultSize() -> integer().

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.

Link to this function

# isVertical(This)

View Source

    -spec isVertical(This) -> boolean() when This :: wxStaticLine().

Returns true if the line is vertical, false if horizontal.

Link to this function

# new()

View Source

    -spec new() -> wxStaticLine().

Default constructor.

Link to this function

# new(Parent)

View Source

    -spec new(Parent) -> wxStaticLine() when Parent :: wxWindow:wxWindow().

Link to this function

# new/2

View Source

    -spec new(Parent, [Option]) -> wxStaticLine()
                 when
                     Parent :: wxWindow:wxWindow(),
                     Option ::
                         {id, integer()} |
                         {pos, {X :: integer(), Y :: integer()}} |
                         {size, {W :: integer(), H :: integer()}} |
                         {style, integer()}.

Constructor, creating and showing a static line.

See: `create/3`