silk/frame

A frame is a window whose size and position can (usually) be changed by the user.

It usually has thick borders and a title bar, and can optionally contain a menu bar, toolbar and status bar. A frame can contain any window that is not a frame or dialog.

Derived from WxTopLevelWindow WxWindow WxEvtHandler

Types

pub type Option {
  Pos(#(Int, Int))
  Size(#(Int, Int))
  Style(Int)
}

Constructors

  • Pos(#(Int, Int))
  • Size(#(Int, Int))
  • Style(Int)
pub type WxFrame =
  WxWindow(types.WxFrame)

Functions

pub fn create(
  this: WxObject(WxWindow(WxFrame)),
  parent: WxObject(WxWindow(a)),
  id: Int,
  title: String,
) -> Bool

Equivalent to create(this, parent, id, title, []).

pub fn create5(
  this: WxObject(WxWindow(WxFrame)),
  parent: WxObject(WxWindow(a)),
  id: Int,
  title: String,
  options: List(Option),
) -> Bool

Used in two-step frame construction.

pub fn destroy(this: WxObject(WxWindow(WxFrame))) -> OkT

Destroys the object

pub fn get_client_area_origin(
  this: WxObject(WxWindow(WxFrame)),
) -> #(Int, Int)

Returns the origin of the frame client area (in client coordinates).

pub fn new() -> WxObject(WxWindow(WxFrame))

Default constructor.

pub fn new3(
  parent: WxObject(WxWindow(a)),
  id: Int,
  title: String,
) -> WxObject(WxWindow(WxFrame))

Equivalent to new(parent, id, title, []).

pub fn new4(
  parent: WxObject(WxWindow(a)),
  id: Int,
  title: String,
  options: List(Option),
) -> WxObject(WxWindow(WxFrame))

Constructor, creating the window.

pub fn process_command(
  this: WxObject(WxWindow(WxFrame)),
  id: Int,
) -> Bool

Simulate a menu command.

pub fn send_size_event(this: WxObject(WxWindow(WxFrame))) -> OkT

Equivalent to send_size_event(this, []).

pub fn set_status_text(
  this: WxObject(WxWindow(WxFrame)),
  text: String,
) -> OkT

Equivalent to set_status_text(this, text, []).

pub fn set_status_widths(
  this: WxObject(WxWindow(WxFrame)),
  widths_field: List(Int),
) -> OkT

Sets the widths of the fields in the status bar.

Search Document