Difference between revisions of "Scrollbar"

From WikiPrizm
Jump to navigationJump to search
(Created page with "{{syscall | name = Scrollbar | index = 0x1A0A | signature = void Scrollbar( TScrollbar* scrollbar) | header = display_syscalls.h | comments = Displays a vertical scrollbar tha...")
 
m (libfxcg API)
 
(3 intermediate revisions by one other user not shown)
Line 2: Line 2:
 
| name = Scrollbar
 
| name = Scrollbar
 
| index = 0x1A0A
 
| index = 0x1A0A
| signature = void Scrollbar( TScrollbar* scrollbar)
+
| signature = void Scrollbar(struct scrollbar* scrollbar)
| header = display_syscalls.h
+
| header = fxcg/display.h
| comments = Displays a vertical scrollbar that cannot reach the statusbar area at the top.
+
| synopsis = Displays a vertical scrollbar that cannot reach the status area at the top.
}}
+
| parameters = * ''TScrollbar*'' '''scrollbar''' - settings for the scrollbar (indicator and bar position and size).
=== Inputs ===
 
* ''TScrollbar*'' '''scrollbar''' - The settings for the scrollbar.
 
  
 
  <nowiki>typedef struct{
 
  <nowiki>typedef struct{
Line 20: Line 18:
 
   unsigned short barwidth; // width of the bar in pixels
 
   unsigned short barwidth; // width of the bar in pixels
 
} TScrollbar;</nowiki>
 
} TScrollbar;</nowiki>
 
+
}}
=== Outputs ===
+
[[Category:Syscalls:UI elements]]
Scrollbar with settings defined in a TScrollbar.
 

Latest revision as of 20:28, 22 November 2014


Synopsis

Header: fxcg/display.h
Syscall index: 0x1A0A
Function signature: void Scrollbar(struct scrollbar* scrollbar)

Displays a vertical scrollbar that cannot reach the status area at the top.

Parameters

  • TScrollbar* scrollbar - settings for the scrollbar (indicator and bar position and size).
typedef struct{
  unsigned int i1; // unknown, set to zero
  unsigned int indicatormaximum; // maximum logical indicator range
  unsigned int indicatorheight; // height of the indicator in units of indicatormaximum
  unsigned int indicatorpos; // indicator position in units of indicatormaxiumum
  unsigned int i5; // unknown, set to zero
  unsigned short barleft; // left position of the bar in pixels
  unsigned short bartop; // top position of the bar in pixels
  unsigned short barheight; // height of the bar in pixels
  unsigned short barwidth; // width of the bar in pixels
} TScrollbar;