mframe(3m17n)
β¨ mframe β it's giving "make me a frame" β¨
okay bestie, this one lives in the m17n Library manual, section 3m17n, and it's called mframe. π She's a little constructor function and she is very particular about her parameters, so let's get into it.
π SYNOPSIS π
MFrame* mframe (MPlist * plist)
πΈ DESCRIPTION πΈ
So basically, mframe() creates a brand new frame. π¦ You hand her plist, which is a list of parameters, and heads up β that plist is allowed to be NULL. No pressure.
The keys she recognizes inside plist are window system dependent. iykyk. But there's one key that is always recognized, no matter what:
Mdeviceβ the value has to be one ofMx,Mgd, orMnil. That's the whole vibe check.
Let's break down those three options because each one changes everything, fr fr:
- If the value is
Mx, the frame is for the X Window System. TheMDrawWindowargument you specify together with the frame must be of typeWindow. This frame is both readable and writable, which means literally all the GUI functions can be used on it. main character energy. π - If the value is
Mgd, the frame is for an image object of the GD library. TheMDrawWindowargument specified together with the frame must be of typegdImagePtr. This frame is writable only, sominput_XXXfunctions can't be used for the frame. Sorry bestie, no reading. π - If the value is
Mnil, the frame is for a null device. The frame is not writable nor readable, so functionsmdraw_XXXthat require theMDrawWindowargument and functionsminput_XXXcan't be used for the frame. It's giving... decorative. π
And then:
Mfaceβ the value must be a pointer toMFace. This value is used as the default face of the frame. Cute, we love a default. π
π
bonus keys (only when Mdevice is Mx) π
In addition, if the value of the key Mdevice is Mx, the following keys are recognized. These ones are all about specifying the root window and the depth of drawables that can be used with the frame.
Mdrawableβ the value type must beDrawable. A parameter of keyMdisplaymust also be specified. The created frame can be used for drawables whose root window and depth are the same as those of the specified drawable on the specified display. When this parameter is specified, the parameter of keyMscreenis ignored.Mwidgetβ the value type must beWidget. The created frame can be used for drawables whose root window and depth are the same as those of the specified widget. If a parameter of keyMfaceis not specified, the default face is created from the resources of the widget. When this parameter is specified, the parameters of keyMdisplay,Mscreen,Mdrawable,Mdepthare ignored. She said "I don't need those, thanks." πMdepthβ the value type must beunsigned. The created frame can be used for drawables of the specified depth.Mscreenβ the value type must be(Screen *). The created frame can be used for drawables whose root window is the same as the root window of the specified screen, and depth is the same at the default depth of the screen. When this parameter is specified, parameter of keyMdisplayis ignored.Mdisplayβ the value type must be(Display *). The created frame can be used for drawables whose root window is the same as the root window for the default screen of the display, and depth is the same as the default depth of the screen.Mcolormapβ the value type must be(Colormap). The created frame uses the specified colormap.Mfontβ the value must beMx,Mfreetype, orMxft. The created frame uses the specified font backend. The valueMxinstructs to use X core fonts,Mfreetypeto use local fonts supported by FreeType fonts, andMxftto use local fonts via Xft library. You can specify this parameter more than once with different values if you want to use multiple font backends. This is ignored if the specified font backend is not supported on the device. When this parameter is not specified, all font backends supported on the device are used. obsessed. β¨
β RETURN VALUE β
If the operation was successful, mframe() returns a pointer to a newly created frame. Otherwise, it returns NULL. π«Ά
π COPYRIGHT π
Copyright (C) 2001 Information-technology Promotion Agency (IPA)
Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License <http://www.gnu.org/licenses/fdl.html>.
and that's the whole page, bestie β Version 1.8.4, dated Mon Sep 25 2023, from the mframe(3m17n) girlies themselves. πβ¨π slay, go make some frames. ππ¦
π¦ where this page comes from
- debian trixie: m17n-docs 1.8.4-1
- ubuntu noble: m17n-docs 1.8.4-1
- ubuntu questing: m17n-docs 1.8.4-1
- ubuntu resolute: m17n-docs 1.8.4-1build1
- ubuntu stonking: m17n-docs 1.8.4-1build1
- Copyright (C) 2001 Information-technology Promotion Agency (IPA)
- Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms