mirror of
https://github.com/fltk/fltk.git
synced 2026-05-29 04:26:27 +08:00
Documentation: correct spelling errors
This commit is contained in:
+2
-2
@@ -164,10 +164,10 @@ public:
|
|||||||
Fl::screen_xywh(int &X, int &Y, int &W, int &H, int n) can be used to
|
Fl::screen_xywh(int &X, int &Y, int &W, int &H, int n) can be used to
|
||||||
discover the coordinates of the area of screen #n.
|
discover the coordinates of the area of screen #n.
|
||||||
When these screens have various scale factor
|
When these screens have various scale factor
|
||||||
values, an \p (x, y) pair may not be enough to specify the targetted screen
|
values, an \p (x, y) pair may not be enough to specify the targeted screen
|
||||||
for the window, because the same \p (x,y) pair can belong to several screens.
|
for the window, because the same \p (x,y) pair can belong to several screens.
|
||||||
In that situation, a call to Fl_Window::screen_num(int) is to be used to identify
|
In that situation, a call to Fl_Window::screen_num(int) is to be used to identify
|
||||||
unambiguously the targetted screen.
|
unambiguously the targeted screen.
|
||||||
|
|
||||||
\see Fl_Window(int w, int h, const char *title)
|
\see Fl_Window(int w, int h, const char *title)
|
||||||
\see Fl::screen_xywh(int &X, int &Y, int &W, int &H, int n)
|
\see Fl::screen_xywh(int &X, int &Y, int &W, int &H, int n)
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ and often named 'link'. Access to such a list is possible memorizing a value of
|
|||||||
<tt>struct wl_list</tt> computed by macro \c wl_list_init().
|
<tt>struct wl_list</tt> computed by macro \c wl_list_init().
|
||||||
Macro <tt>wl_list_for_each(arg1, arg2, arg3)</tt> allows to run through all list elements with:
|
Macro <tt>wl_list_for_each(arg1, arg2, arg3)</tt> allows to run through all list elements with:
|
||||||
- \c arg1 is a pointer variable of the type of elements of the linked list;
|
- \c arg1 is a pointer variable of the type of elements of the linked list;
|
||||||
- \c arg2 is the address of a variable of type <tt>struct wl_list</tt> identifying the targetted list;
|
- \c arg2 is the address of a variable of type <tt>struct wl_list</tt> identifying the targeted list;
|
||||||
- \c arg3 is the name of the member variable of these elements used to link them together.
|
- \c arg3 is the name of the member variable of these elements used to link them together.
|
||||||
|
|
||||||
For example, \c wl_list_for_each() can be used as follows to scan the linked list
|
For example, \c wl_list_for_each() can be used as follows to scan the linked list
|
||||||
@@ -387,7 +387,7 @@ in the system displays. Nevertheless, for multi-display systems, Wayland allows
|
|||||||
on what display should the compositor map a fullscreen window. That is done inside function
|
on what display should the compositor map a fullscreen window. That is done inside function
|
||||||
\c handle_configure() which calls \c libdecor_frame_set_fullscreen() for DECORATED windows
|
\c handle_configure() which calls \c libdecor_frame_set_fullscreen() for DECORATED windows
|
||||||
and inside function \c xdg_toplevel_configure() which calls \c xdg_toplevel_set_fullscreen()
|
and inside function \c xdg_toplevel_configure() which calls \c xdg_toplevel_set_fullscreen()
|
||||||
for UNFRAMED. The <tt>struct wl_output</tt> pointer for the targetted display is transmitted
|
for UNFRAMED. The <tt>struct wl_output</tt> pointer for the targeted display is transmitted
|
||||||
as 2nd argument of these calls.
|
as 2nd argument of these calls.
|
||||||
|
|
||||||
\section menu-windows Menu windows and other popups
|
\section menu-windows Menu windows and other popups
|
||||||
@@ -1065,7 +1065,7 @@ EGL needs 2 more objects created for each \c Fl_Gl_Window. They have types
|
|||||||
function \c Fl_Wayland_Gl_Window_Driver::make_current_before() which runs at the
|
function \c Fl_Wayland_Gl_Window_Driver::make_current_before() which runs at the
|
||||||
beginning of \c Fl_Gl_Window::make_current().
|
beginning of \c Fl_Gl_Window::make_current().
|
||||||
The first argument of the call to \c wl_egl_window_create() therein has type
|
The first argument of the call to \c wl_egl_window_create() therein has type
|
||||||
<tt>struct wl_surface *</tt> and is what connects EGL with the targetted Wayland window.
|
<tt>struct wl_surface *</tt> and is what connects EGL with the targeted Wayland window.
|
||||||
|
|
||||||
EGL creates with \c eglCreateContext() an object of type \c EGLContext via member
|
EGL creates with \c eglCreateContext() an object of type \c EGLContext via member
|
||||||
function \c Fl_Wayland_Gl_Window_Driver::create_gl_context() called by
|
function \c Fl_Wayland_Gl_Window_Driver::create_gl_context() called by
|
||||||
|
|||||||
Reference in New Issue
Block a user