DTEDITORGETSIZEHINTS(3)
okay bestie, this is the DtEditorGetSizeHints(library call) page π
and we're folding that header right into the convo instead of copying it like a boring robot. It's a library call that pulls sizing info out of a DtEditor widget. Let's get into it π«Ά
β¨ NAME β¨
DtEditorGetSizeHints β retrieves sizing information from a DtEditor widget. That's the whole job, and it's giving "window manager prep" energy π
πΈ SYNOPSIS πΈ
here's the exact signature, no cap:
#include &<Dt/Editor.h>
void DtEditorGetSizeHints(
Widget widget,
XSizeHints *pHints);
π DESCRIPTION π
The DtEditorGetSizeHints function retrieves the current sizing information from a DtEditor widget, allowing the application to compute appropriate size hints for the window manager β¨.
The widget argument specifies the DtEditor widget ID. Yes, that's the one π
The pHints argument is a pointer to an XSizeHints structure into which the current sizing information is placed. The fields in this structure do not have to contain any values when it is passed in β so don't stress about pre-filling them, bestie π«Ά.
Upon successful completion, DtEditorGetSizeHints fills in the following fields of the XSizeHints structure:
- minimum width (
min_width) and height (min_height) - width (
width_inc) and height (height_inc) increment - base width (
base_width) and height (base_height)
Otherwise, the structure is unchanged. The Flags field is set to:
PMinSize | PResizeInc | PBaseSize
π₯ RETURN VALUE π₯
The DtEditorGetSizeHints function returns no value. That's it β no return value, just vibes πβ¨
π EXAMPLES π
The following code segment sets the resize increment and minimum window size properties for the application.
Widget editor,
application_shell;
Display display;
XSizeHints size_hints;
long supplied_return;
XGetWMSizeHints(display, XtWindow(application_shell),
&&size_hints, &&supplied_return, XA_WM_NORMAL_HINTS);
DtEditorGetSizeHints(editor, &&size_hints);
XSetWMSizeHints(display, XtWindow(application_shell),
&&size_hints, XA_WM_NORMAL_HINTS);
π SEE ALSO π
Dt/Editor.h-DtEditor(5),DtEditor(3).
and that's the cute little footer sign-off: the source/version line is DtEditorGetSizeHints(library call), there's no date attached, so catch you later bestie π
β¨
π¦ where this page comes from
- nixos 26.05: cde 2.5.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms