X-Git-Url: https://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=man%2Fmitem_current.3x;h=648213ac376afb5a8b567272e55b957442c3246c;hb=2de8c14bb2c6f8e61cfbbfb1f0f30d1ad64c8d68;hp=ba87410ca799b8a5dda17ba49c3bf310205f3e2a;hpb=f79c210479470378389aab5b8d4d42d4a7f3d9a4;p=ncurses.git diff --git a/man/mitem_current.3x b/man/mitem_current.3x index ba87410c..648213ac 100644 --- a/man/mitem_current.3x +++ b/man/mitem_current.3x @@ -1,6 +1,5 @@ -'\" t .\"*************************************************************************** -.\" Copyright 2018-2021,2022 Thomas E. Dickey * +.\" Copyright 2018-2022,2023 Thomas E. Dickey * .\" Copyright 1998-2006,2010 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -28,23 +27,23 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: mitem_current.3x,v 1.24 2022/02/12 20:02:20 tom Exp $ -.TH mitem_current 3X 2022-02-12 "ncurses 6.4" "Library calls" +.\" $Id: mitem_current.3x,v 1.33 2023/10/07 21:19:07 tom Exp $ +.TH mitem_current 3X 2023-10-07 "ncurses 6.4" "Library calls" .SH NAME -\fBmitem_current\fP \- set and get current_menu_item +\fBmitem_current\fP \- +set and get current_menu_item .SH SYNOPSIS -\fB#include \fP -.sp -\fBint set_current_item(MENU *\fImenu\fB, ITEM *\fIitem\fB);\fR -.br -\fBITEM *current_item(const MENU *\fImenu\fB);\fR -.sp -\fBint set_top_row(MENU *\fImenu\fB, int \fIrow\fB);\fR -.br -\fBint top_row(const MENU *\fImenu\fB);\fR -.sp -\fBint item_index(const ITEM *\fIitem\fB);\fR -.br +.nf +\fB#include +.PP +\fBint set_current_item(MENU *\fImenu\fP, ITEM *\fIitem\fP); +\fBITEM *current_item(const MENU *\fImenu\fP); +.PP +\fBint set_top_row(MENU *\fImenu\fP, int \fIrow\fP); +\fBint top_row(const MENU *\fImenu\fP); +.PP +\fBint item_index(const ITEM *\fIitem\fP); +.fi .SH DESCRIPTION The function \fBset_current_item\fP sets the current item (the item on which the menu cursor is positioned). @@ -84,8 +83,6 @@ No items are connected to the menu. .TP 5 .B E_SYSTEM_ERROR System error occurred (see \fBerrno\fP(3)). -.SH SEE ALSO -\fBcurses\fP(3X), \fBmenu\fP(3X). .SH NOTES The header file \fB\fP automatically includes the header file \fB\fP. @@ -99,3 +96,6 @@ The SVr4 menu library documentation specifies the \fBtop_row\fP and .SH AUTHORS Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond. +.SH SEE ALSO +\fB\%curses\fP(3X), +\fB\%menu\fP(3X)