wxStaticLine(3erl)
πΈ NAME πΈ
wxStaticLine β Functions for wxStaticLine class β¨
okay so this is the wxStaticLine(3erl) page from the Erlang Module Definition manual, and weβre gonna get you comfy with it, bestie π
π DESCRIPTION π
A static line is literally just a line, and you use it in a dialog to separate the groups of controls. Itβs giving βvisual divider energyβ π
The line may be only vertical or horizontal. No diagonal main-character nonsense.
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. That caveat is important, fr fr β if you want max portability, use wxDefaultCoord for that transversal dimension.
β¨ Styles β¨
This class supports the following styles:
(the source page doesnβt actually list any styles here, bestie π so thereβs nothing to bullet β thatβs not me skipping it, thatβs the whole vibe)
See: wxStaticBox
This class is derived (and can use functions) from: wxControl wxWindow wxEvtHandler
wxWidgets docs: wxStaticLine
π¦ DATA TYPES π¦
wxStaticLine() = wx:wx_object()
Thatβs the type, periodt π
β¨ EXPORTS β¨
π new/0 β default constructor π
new() -> wxStaticLine()
Default constructor.
πΈ new/1 β constructor with parent πΈ
new(Parent) -> wxStaticLine()
Types:
Parent = wxWindow:wxWindow()
π new/2 β constructor with parent and options π
new(Parent, Options :: [Option]) -> wxStaticLine()
Types:
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
π create/2 β two-step construction without options π
create(This, Parent) -> boolean()
Types:
This = wxStaticLine()
Parent = wxWindow:wxWindow()
π₯ create/3 β two-step construction with options π₯
create(This, Parent, Options :: [Option]) -> boolean()
Types:
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.
π¦ isVertical/1 β vibe check: vertical or not? π¦
isVertical(This) -> boolean()
Types:
This = wxStaticLine()
Returns true if the line is vertical, false if horizontal. Literally the whole plot π
π getDefaultSize/0 β default size for the smaller dimension π
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.
π destroy/1 β bye bye, object π
destroy(This :: wxStaticLine()) -> ok
Destroys the object.
Cute sign-off time, bestie: big love to the wxWidgets team β this page is from wx 2.2.2.1, and the manual tag is wxStaticLine(3erl). The source footer doesnβt show a separate date, so Iβm not inventing one, periodt π«Άπ
π¦ where this page comes from
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4.8 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms