Documentation ¶
Overview ¶
Package motif has a few functions to allow easy access to Motif related properties.
The main purpose here is that some applications communicate "no window decorations" to the window manager using _MOTIF_WM_HINTS. (Like Google Chrome.) I haven't seen Motif stuff used for other purposes in the wild for a long time.
As a result, only the useful bits are implemented here. More may be added on an on-demand basis, but don't count on it.
Try not to bash your head against your desk too hard: http://www.opengroup.org/openmotif/hardcopydocs.html
Example ¶
To test if a window wants decorations or not:
mh, err := motif.WmHintsGet(XUtilValue, window-id) if err != nil { log.Fatal(err) } else { log.Println("Decorations? ", motif.Decor(mh)) }
Index ¶
Constants ¶
View Source
const ( HintFunctions = (1 << iota) HintDecorations HintInputMode HintStatus )
View Source
const ( FunctionAll = (1 << iota) FunctionResize FunctionMove FunctionMinimize FunctionMaximize FunctionClose FunctionNone = 0 )
View Source
const ( DecorationAll = (1 << iota) DecorationBorder DecorationResizeH DecorationTitle DecorationMenu DecorationMinimize DecorationMaximize DecorationNone = 0 )
View Source
const ( InputPrimaryApplicationModal = (1 << iota) InputSystemModal InputFullApplicationModal InputModeless = 0 )
View Source
const StatusTearoffWindow = 1
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.