// File: /workspace/github_c_makefile_star2_O2/enzo1982[P]smooth/classes/gui/widgets/multi/list/listboxheader.cpp
// Function: smooth::GUI::ListBoxHeader::ListBoxHeader(smooth::GUI::Point const&, smooth::GUI::Size const&)
S::GUI::ListBoxHeader::ListBoxHeader(const Point &iPos, const Size &iSize) : Widget(iPos, iSize)
{
	moveTab		  = -1;
	draggingTab	  = False;

	moveTabStartWidth = 0;
	lastTabStartWidth = 0;

	type		  = classID;

	font.SetWeight(Font::Bold);

	dragHotspot	  = new Hotspot(Point(0, 0), GetSize());
	dragHotspot->SetIndependent(True);
	dragHotspot->onMouseDragStart.Connect(&ListBoxHeader::OnMouseDragStart, this);
	dragHotspot->onMouseDrag.Connect(&ListBoxHeader::OnMouseDrag, this);
	dragHotspot->onMouseDragEnd.Connect(&ListBoxHeader::OnMouseDragEnd, this);
	dragHotspot->onLeftButtonClick.Connect(&ListBoxHeader::OnLeftButtonClick, this);

	Add(dragHotspot);

	onChangeSize.Connect(&ListBoxHeader::OnChangeSize, this);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
callq 0x58c80
movq 0xdf1eb(%rip), %rax     # 0x161b18
addq $0x10, %rax
movq %rax, (%rbx)
andq $0x0, 0x5c0(%rbx)
leaq 0x5d8(%rbx), %r14
movq %r14, %rdi
callq 0x64972
leaq 0x630(%rbx), %r15
movq %r15, %rdi
callq 0x839de
leaq 0x688(%rbx), %r12
movq %r12, %rdi
callq 0x839de
leaq 0x6e0(%rbx), %r13
movq %r13, %rdi
callq 0x7e808
andq $0x0, 0x740(%rbx)
leaq 0xd5411(%rip), %rax     # 0x157d98
movq %rax, 0x738(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x748(%rbx)
orl $-0x1, 0x5b8(%rbx)
movb $0x0, 0x5bc(%rbx)
andq $0x0, 0x5c8(%rbx)
movq 0xded2b(%rip), %rax     # 0x1616e0
movzwl (%rax), %eax
movw %ax, 0x20(%rbx)
leaq 0x140(%rbx), %rdi
movq 0xdea7e(%rip), %rax     # 0x161448
movswl (%rax), %esi
callq 0x586e0
movl $0x5b8, %edi            # imm = 0x5B8
callq 0x56700
movq %rax, %rbp
leaq 0x10(%rsp), %rsi
andq $0x0, (%rsi)
leaq 0xb0(%rbx), %rdx
movq %rax, %rdi
callq 0x56aa0
movq %rbp, 0x5d0(%rbx)
movb $0x1, 0xcf(%rbp)
addq $0x3f8, %rbp            # imm = 0x3F8
movq 0xdeb8d(%rip), %rsi     # 0x1615a0
movq %rbp, %rdi
xorl %edx, %edx
movq %rbx, %rcx
callq 0x839f4
movl $0x418, %edi            # imm = 0x418
addq 0x5d0(%rbx), %rdi
movq 0xded05(%rip), %rsi     # 0x161738
xorl %edx, %edx
movq %rbx, %rcx
callq 0x839f4
movl $0x438, %edi            # imm = 0x438
addq 0x5d0(%rbx), %rdi
movq 0xdea38(%rip), %rsi     # 0x161488
xorl %edx, %edx
movq %rbx, %rcx
callq 0x839f4
movl $0x338, %edi            # imm = 0x338
addq 0x5d0(%rbx), %rdi
movq 0xdf24b(%rip), %rsi     # 0x161cb8
xorl %edx, %edx
movq %rbx, %rcx
callq 0x839f4
movq 0x5d0(%rbx), %rsi
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x30(%rax)
leaq 0x298(%rbx), %rdi
movq 0xdf2f3(%rip), %rsi     # 0x161d88
xorl %edx, %edx
movq %rbx, %rcx
callq 0x83a90
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, 0x8(%rsp)
movl $0x5b8, %esi            # imm = 0x5B8
movq %rbp, %rdi
callq 0x564c0
jmp 0x82ae3
movq %rax, 0x8(%rsp)
jmp 0x82af7
movq %rax, 0x8(%rsp)
jmp 0x82aff
movq %rax, 0x8(%rsp)
jmp 0x82b07
movq %rax, 0x8(%rsp)
jmp 0x82b0f
movq %rax, 0x8(%rsp)
leaq 0x738(%rbx), %rdi
callq 0x724c6
movq %r13, %rdi
callq 0x7e834
movq %r12, %rdi
callq 0x83b2c
movq %r15, %rdi
callq 0x83b2c
movq %r14, %rdi
callq 0x64988
movq %rbx, %rdi
callq 0x58860
movq 0x8(%rsp), %rdi
callq 0x58260
nop