lights FAQ Forum github.com/luapower/winapi

Native OS APIs
winapi
winapi.wglpanel
winapi.cairopanel
objc
xlib

buttonclass

Push-buttons


require'winapi.buttonclass'

This module implements the Button class for creating buttons.

Button

Hierarchy

Initial fields and properties

NOTE: in the table below i means initial field, r means property which can be read, w means property which can be set.

field/property irw description default reference
text irw button’s label ‘&OK’ Get/SetWindowText
w, h irw size 100, 24
text_margin irw margins that go with autosize {20,5} BCM_GET/SETTEXTMARGIN
autosize irw set size based on text false
pushed irw pushed state BM_GET/SETSTATE
ideal_size r get ideal size for text ({w=, h=}) BCM_GETIDEALSIZE

Last updated: 3 years ago | Edit on GitHub

Package:winapi
Pkg type:Lua+ffi
Version: 16101d6
Last commit:
License: Public Domain

Requires: +events  +glue  +luajit 

Required by: cairo  cplayer  hidapi  nw  proc  sock  winapi.cairopanel  winapi.wglpanel  dollar  opengl  testui  ui 


Top