PawsScrollBar: Difference between revisions

From PSwiki
Jump to navigation Jump to search
Redhound (talk | contribs)
mNo edit summary
Redhound (talk | contribs)
mNo edit summary
Line 7: Line 7:
   '''tick''' = ''float''  
   '''tick''' = ''float''  
   ''widget-attributes''>
   ''widget-attributes''>
      <up ''scrollbar-button-settings'' />
  <!-- Content: (up? down? thumb? ''widget-elements'') -->
      <down ''scrollbar-button-settings'' />
</widget>
      <thumb
        '''stopped''' = "ScrollBar Thumb"
        '''moving''' = "ScrollBar Thumb Moving" />
</widget>


''scrollbar-button-settings'' ::=
''up'' ::=
    '''grey''' = ''qname''
  <up ''scrollbar-button-settings'' />
    '''unpressed''' = ''qname''
 
    '''pressed''' = ''qname''
''down'' ::=
    '''offsetx''' = ''int''
  <down ''scrollbar-button-settings'' />
    '''offsety''' = ''int''
 
    '''width''' = ''int''
’'thumb'’ ::=
    '''height''' = ''int''
  <thumb
      '''stopped''' = "ScrollBar Thumb"
      '''moving''' = "ScrollBar Thumb Moving" />
 
''scrollbar-button-settings'' ::=
  '''grey''' = ''qname''
  '''unpressed''' = ''qname''
  '''pressed''' = ''qname''
  '''offsetx''' = ''int''
  '''offsety''' = ''int''
  '''width''' = ''int''
  '''height''' = ''int''


The '''pawsScrollBar''' factory is used to create a horizontal of vertical scrollbar. This is part of the common '''PAWS''' library.
The '''pawsScrollBar''' factory is used to create a horizontal of vertical scrollbar. This is part of the common '''PAWS''' library.


[[Category:Engine documents]]
[[Category:Engine documents]]

Revision as of 16:57, 9 May 2014

<widget
  name = qname
  factory = "pawsScrollBar"
  direction = { "horizontal" | "vertical" }
  minValue = float
  maxValue = float
  tick = float 
  widget-attributes>

</widget>

up ::=

  <up scrollbar-button-settings />

down ::=

  <down scrollbar-button-settings />

’'thumb'’ ::=

  <thumb 
     stopped = "ScrollBar Thumb" 
     moving = "ScrollBar Thumb Moving" />

scrollbar-button-settings ::=

  grey = qname
  unpressed = qname
  pressed = qname
  offsetx = int
  offsety = int
  width = int
  height = int

The pawsScrollBar factory is used to create a horizontal of vertical scrollbar. This is part of the common PAWS library.